LibreOffice Module svx (master) 1
|
#include <galctrl.hxx>
Public Member Functions | |
GalleryPreview (GalleryBrowser2 *pParent, std::unique_ptr< weld::ScrolledWindow > xScrolledWindow) | |
void | SetTheme (GalleryTheme *pTheme) |
virtual | ~GalleryPreview () override |
virtual bool | StartDrag () override |
virtual void | Show () override |
virtual void | Hide () override |
void | SetGraphic (const Graphic &rGraphic) |
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 |
Static Public Member Functions | |
static void | PreviewMedia (const INetURLObject &rURL) |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Private Member Functions | |
bool | ImplGetGraphicCenterRect (const Graphic &rGraphic, tools::Rectangle &rResultRect) const |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | Command (const CommandEvent &rCEvt) override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
Private Attributes | |
std::unique_ptr< GalleryDragDrop > | mxDragDropTargetHelper |
std::unique_ptr< weld::ScrolledWindow > | mxScrolledWindow |
GraphicObject | aGraphicObj |
tools::Rectangle | aPreviewRect |
GalleryBrowser2 * | mpParent |
GalleryTheme * | mpTheme |
Definition at line 34 of file galctrl.hxx.
GalleryPreview::GalleryPreview | ( | GalleryBrowser2 * | pParent, |
std::unique_ptr< weld::ScrolledWindow > | xScrolledWindow | ||
) |
Definition at line 38 of file galctrl.cxx.
References mpParent.
|
overridevirtual |
Definition at line 57 of file galctrl.cxx.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 138 of file galctrl.cxx.
References CommandEvent::GetCommand(), mpParent, mpTheme, and GalleryBrowser2::ShowContextMenu().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 51 of file galctrl.cxx.
References weld::CustomWidgetController::Hide(), and mxScrolledWindow.
|
private |
Definition at line 109 of file galctrl.cxx.
Referenced by Paint().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 148 of file galctrl.cxx.
References First, vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), KEY_BACKSPACE, KEY_DOWN, KEY_END, KEY_HOME, KEY_LEFT, KEY_RIGHT, KEY_UP, GalleryBrowser2::KeyInput(), Last, mpParent, mpTheme, Next, Previous, GalleryBrowser2::TogglePreview(), and GalleryBrowser2::Travel().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 131 of file galctrl.cxx.
References MouseEvent::GetClicks(), mpParent, mpTheme, and GalleryBrowser2::TogglePreview().
|
overrideprivatevirtual |
Implements weld::CustomWidgetController.
Definition at line 114 of file galctrl.cxx.
References aGraphicObj, aPreviewRect, GraphicObject::Draw(), OutputDevice::Erase(), GALLERY_BG_COLOR, GraphicObject::GetGraphic(), tools::Rectangle::GetSize(), ImplGetGraphicCenterRect(), GraphicObject::IsAnimated(), OutputDevice::SetBackground(), GraphicObject::StartAnimation(), and tools::Rectangle::TopLeft().
|
static |
Definition at line 198 of file galctrl.cxx.
References SfxViewFrame::Current(), INetURLObject::GetMainURL(), avmedia::getMediaFloater(), INetURLObject::GetProtocol(), avmedia::MediaFloater::setURL(), and INetURLObject::Unambiguous.
Referenced by GalleryBrowser2::SetMode(), and GalleryBrowser2::Travel().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 61 of file galctrl.cxx.
References weld::Widget::get_drop_target(), weld::DrawingArea::get_ref_device(), Size::Height(), HID_GALLERY_WINDOW, OutputDevice::LogicToPixel(), mpParent, mxDragDropTargetHelper, weld::Widget::set_help_id(), weld::Widget::set_size_request(), weld::CustomWidgetController::SetOutputSizePixel(), and Size::Width().
|
inline |
Definition at line 65 of file galctrl.hxx.
References aGraphicObj, and GraphicObject::SetGraphic().
|
inline |
Definition at line 57 of file galctrl.hxx.
References mpTheme.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 45 of file galctrl.cxx.
References mxScrolledWindow, and weld::CustomWidgetController::Show().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 191 of file galctrl.cxx.
References mpParent, mpTheme, and GalleryBrowser2::StartDrag().
|
private |
Definition at line 40 of file galctrl.hxx.
Referenced by Paint(), and SetGraphic().
|
private |
Definition at line 41 of file galctrl.hxx.
Referenced by Paint().
|
private |
Definition at line 42 of file galctrl.hxx.
Referenced by Command(), KeyInput(), MouseButtonDown(), SetDrawingArea(), and StartDrag().
|
private |
Definition at line 43 of file galctrl.hxx.
Referenced by Command(), KeyInput(), MouseButtonDown(), SetTheme(), and StartDrag().
|
private |
Definition at line 38 of file galctrl.hxx.
Referenced by SetDrawingArea().
|
private |
Definition at line 39 of file galctrl.hxx.