LibreOffice Module extensions (master) 1
|
Public Member Functions | |
ScanPreview () | |
void | Init (SaneDlg *pParent) |
void | ResetForNewScanner () |
void | EnableDrag () |
void | DisableDrag () |
bool | IsDragEnabled () const |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
Point | GetPixelPos (const Point &rIn) const |
Point | GetLogicPos (const Point &rIn) const |
void | GetPreviewLogicRect (Point &rTopLeft, Point &rBottomRight) const |
void | GetMaxLogicRect (Point &rTopLeft, Point &rBottomRight) const |
void | ChangePreviewLogicTopLeftY (tools::Long Y) |
void | ChangePreviewLogicTopLeftX (tools::Long X) |
void | ChangePreviewLogicBottomRightY (tools::Long Y) |
void | ChangePreviewLogicBottomRightX (tools::Long X) |
void | SetPreviewLogicRect (const Point &rTopLeft, const Point &rBottomRight) |
void | SetPreviewMaxRect (const Point &rTopLeft, const Point &rBottomRight) |
void | DrawDrag (vcl::RenderContext &rRenderContext) |
void | UpdatePreviewBounds () |
void | SetBitmap (SvStream &rStream) |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
Public Member Functions inherited from weld::CustomWidgetController | |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0 |
virtual void | Resize () |
virtual bool | MouseButtonDown (const MouseEvent &) |
virtual bool | MouseMove (const MouseEvent &) |
virtual bool | MouseButtonUp (const MouseEvent &) |
virtual void | GetFocus () |
virtual void | LoseFocus () |
virtual void | StyleUpdated () |
virtual bool | Command (const CommandEvent &) |
virtual bool | KeyInput (const KeyEvent &) |
virtual tools::Rectangle | GetFocusRect () |
virtual FactoryFunction | GetUITestFactory () const |
virtual OUString | RequestHelp (tools::Rectangle &) |
virtual OUString | GetHelpText () const |
Size const & | GetOutputSizePixel () const |
void | SetOutputSizePixel (const Size &rSize) |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) |
weld::DrawingArea * | GetDrawingArea () const |
void | Invalidate () |
void | Invalidate (const tools::Rectangle &rRect) |
virtual void | Show () |
virtual void | Hide () |
void | SetCursor (void *pData) |
void | GrabFocus () |
bool | HasFocus () const |
bool | HasChildFocus () const |
bool | IsVisible () const |
bool | IsReallyVisible () const |
bool | IsEnabled () const |
void | Enable () const |
void | Disable () const |
bool | IsActive () const |
int | GetTextHeight () const |
int | GetTextWidth (const OUString &rText) const |
OUString | GetAccessibleName () const |
OUString | GetAccessibleDescription () const |
void | CaptureMouse () |
bool | IsMouseCaptured () const |
Point | GetPointerPosPixel () const |
void | EnableRTL (bool bEnable) |
bool | IsRTLEnabled () const |
void | ReleaseMouse () |
void | SetPointer (PointerStyle ePointerStyle) |
void | SetHelpId (const OUString &rHelpId) |
void | SetAccessibleName (const OUString &rName) |
void | SetInputContext (const InputContext &rInputContext) |
void | SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth) |
virtual int | GetSurroundingText (OUString &) |
virtual bool | DeleteSurroundingText (const Selection &) |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () |
css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const |
void | SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants) |
virtual bool | StartDrag () |
void | set_size_request (int nWidth, int nHeight) |
void | queue_resize () |
CustomWidgetController () | |
virtual | ~CustomWidgetController () |
CustomWidgetController (CustomWidgetController const &)=default | |
CustomWidgetController (CustomWidgetController &&)=default | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (CustomWidgetController &&)=default |
Private Types | |
enum | DragDirection { TopLeft , Top , TopRight , Right , BottomRight , Bottom , BottomLeft , Left } |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Definition at line 97 of file sanedlg.cxx.
|
private |
Enumerator | |
---|---|
TopLeft | |
Top | |
TopRight | |
Right | |
BottomRight | |
Bottom | |
BottomLeft | |
Left |
Definition at line 100 of file sanedlg.cxx.
|
inline |
Definition at line 113 of file sanedlg.cxx.
|
inline |
Definition at line 186 of file sanedlg.cxx.
References GetPixelPos(), maBottomRight, Point::setX(), X, and Point::X().
|
inline |
Definition at line 180 of file sanedlg.cxx.
References GetPixelPos(), maBottomRight, Point::setY(), Y, and Point::Y().
|
inline |
Definition at line 174 of file sanedlg.cxx.
References GetPixelPos(), maTopLeft, Point::setX(), X, and Point::X().
|
inline |
Definition at line 168 of file sanedlg.cxx.
References GetPixelPos(), maTopLeft, Point::setY(), Y, and Point::Y().
|
inline |
Definition at line 140 of file sanedlg.cxx.
References mbDragEnable.
void ScanPreview::DrawDrag | ( | vcl::RenderContext & | rRenderContext | ) |
Definition at line 1204 of file sanedlg.cxx.
References maBottomRight, maTopLeft, mbDragEnable, and OutputDevice::SetMapMode().
Referenced by Paint().
|
inline |
Definition at line 135 of file sanedlg.cxx.
References mbDragEnable.
Definition at line 1229 of file sanedlg.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), maMaxBottomRight, maMinTopLeft, OutputDevice::PixelToLogic(), PREVIEW_HEIGHT, PREVIEW_WIDTH, Point::setX(), Point::setY(), Point::X(), and Point::Y().
Referenced by GetPreviewLogicRect(), and MouseMove().
Definition at line 162 of file sanedlg.cxx.
References maMaxBottomRight, and maMinTopLeft.
Definition at line 1216 of file sanedlg.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), OutputDevice::LogicToPixel(), maMaxBottomRight, maMinTopLeft, PREVIEW_HEIGHT, PREVIEW_WIDTH, Point::X(), and Point::Y().
Referenced by ChangePreviewLogicBottomRightX(), ChangePreviewLogicBottomRightY(), ChangePreviewLogicTopLeftX(), ChangePreviewLogicTopLeftY(), MouseMove(), and SetPreviewLogicRect().
Definition at line 157 of file sanedlg.cxx.
References GetLogicPos(), maBottomRight, and maTopLeft.
|
inline |
Definition at line 122 of file sanedlg.cxx.
References mpParentDialog.
|
inline |
Definition at line 145 of file sanedlg.cxx.
References mbDragEnable.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1119 of file sanedlg.cxx.
References Bottom, BottomLeft, BottomRight, MouseEvent::GetPosPixel(), weld::CustomWidgetController::Invalidate(), Left, maBottomRight, maTopLeft, mbDragEnable, mbIsDragging, meDragDirection, RECT_SIZE_PIX, Right, Top, TopLeft, TopRight, Point::X(), and Point::Y().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1195 of file sanedlg.cxx.
References mbIsDragging, mpParentDialog, and SaneDlg::UpdateScanArea().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1074 of file sanedlg.cxx.
References Bottom, BottomLeft, BottomRight, GetLogicPos(), GetPixelPos(), MouseEvent::GetPosPixel(), weld::CustomWidgetController::Invalidate(), Left, maBottomRight, maTopLeft, mbIsDragging, meDragDirection, mpParentDialog, Right, Point::setX(), Point::setY(), Top, TopLeft, TopRight, SaneDlg::UpdateScanArea(), Point::X(), and Point::Y().
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 938 of file sanedlg.cxx.
References COL_WHITE(), OutputDevice::DrawBitmapEx(), DrawDrag(), OutputDevice::DrawRect(), tools::Rectangle::GetSize(), maPreviewBitmapEx, maPreviewRect, PREVIEW_HEIGHT, PREVIEW_WIDTH, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), OutputDevice::SetMapMode(), and tools::Rectangle::TopLeft().
|
inline |
Definition at line 127 of file sanedlg.cxx.
References maBottomRight, maMaxBottomRight, maMinTopLeft, maTopLeft, PREVIEW_HEIGHT, and PREVIEW_WIDTH.
|
inline |
Definition at line 207 of file sanedlg.cxx.
References maPreviewBitmapEx, and ReadDIBBitmapEx().
|
inlineoverridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 211 of file sanedlg.cxx.
References weld::DrawingArea::get_ref_device(), Size::getHeight(), Size::getWidth(), Size::Height(), OutputDevice::LogicToPixel(), PREVIEW_HEIGHT, PREVIEW_WIDTH, weld::Widget::set_size_request(), Size::setHeight(), weld::CustomWidgetController::SetOutputSizePixel(), Size::setWidth(), and Size::Width().
Definition at line 192 of file sanedlg.cxx.
References GetPixelPos(), maBottomRight, maPreviewRect, maTopLeft, Point::X(), and Point::Y().
Definition at line 200 of file sanedlg.cxx.
References maMaxBottomRight, and maMinTopLeft.
void ScanPreview::UpdatePreviewBounds | ( | ) |
Definition at line 909 of file sanedlg.cxx.
References BitmapEx::GetSizePixel(), Size::Height(), maBottomRight, maPreviewBitmapEx, maPreviewRect, maTopLeft, mbDragEnable, Size::Width(), Point::X(), and Point::Y().
|
private |
Definition at line 105 of file sanedlg.cxx.
Referenced by ChangePreviewLogicBottomRightX(), ChangePreviewLogicBottomRightY(), DrawDrag(), GetPreviewLogicRect(), MouseButtonDown(), MouseMove(), ResetForNewScanner(), SetPreviewLogicRect(), and UpdatePreviewBounds().
|
private |
Definition at line 106 of file sanedlg.cxx.
Referenced by GetLogicPos(), GetMaxLogicRect(), GetPixelPos(), ResetForNewScanner(), and SetPreviewMaxRect().
|
private |
Definition at line 106 of file sanedlg.cxx.
Referenced by GetLogicPos(), GetMaxLogicRect(), GetPixelPos(), ResetForNewScanner(), and SetPreviewMaxRect().
|
private |
Definition at line 103 of file sanedlg.cxx.
Referenced by Paint(), SetBitmap(), and UpdatePreviewBounds().
|
private |
Definition at line 104 of file sanedlg.cxx.
Referenced by Paint(), SetPreviewLogicRect(), and UpdatePreviewBounds().
|
private |
Definition at line 105 of file sanedlg.cxx.
Referenced by ChangePreviewLogicTopLeftX(), ChangePreviewLogicTopLeftY(), DrawDrag(), GetPreviewLogicRect(), MouseButtonDown(), MouseMove(), ResetForNewScanner(), SetPreviewLogicRect(), and UpdatePreviewBounds().
|
private |
Definition at line 109 of file sanedlg.cxx.
Referenced by DisableDrag(), DrawDrag(), EnableDrag(), IsDragEnabled(), MouseButtonDown(), and UpdatePreviewBounds().
|
private |
Definition at line 110 of file sanedlg.cxx.
Referenced by MouseButtonDown(), MouseButtonUp(), and MouseMove().
|
private |
Definition at line 108 of file sanedlg.cxx.
Referenced by MouseButtonDown(), and MouseMove().
|
private |
Definition at line 107 of file sanedlg.cxx.
Referenced by Init(), MouseButtonUp(), and MouseMove().