LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
GalleryPreview Class Referencefinal

#include <galctrl.hxx>

Inheritance diagram for GalleryPreview:
Collaboration diagram for GalleryPreview:

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 Resize ()
virtual bool MouseMove (const MouseEvent &)
virtual bool MouseButtonUp (const MouseEvent &)
virtual void GetFocus ()
virtual void LoseFocus ()
virtual void StyleUpdated ()
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)
weld::DrawingAreaGetDrawingArea () const
void Invalidate ()
void Invalidate (const tools::Rectangle &rRect)
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 OString &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 SetDragDataTransferrable (rtl::Reference< TransferDataContainer > &rTransferrable, sal_uInt8 eDNDConstants)
void set_size_request (int nWidth, int nHeight)
void queue_resize ()
 CustomWidgetController ()
virtual ~CustomWidgetController ()
 CustomWidgetController (CustomWidgetController const &)=default
 CustomWidgetController (CustomWidgetController &&)=default
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
CustomWidgetControlleroperator= (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< GalleryDragDropmxDragDropTargetHelper
std::unique_ptr< weld::ScrolledWindowmxScrolledWindow
GraphicObject aGraphicObj
tools::Rectangle aPreviewRect

Detailed Description

Definition at line 34 of file galctrl.hxx.

Constructor & Destructor Documentation

GalleryPreview::GalleryPreview ( GalleryBrowser2 pParent,
std::unique_ptr< weld::ScrolledWindow xScrolledWindow 

Definition at line 38 of file galctrl.cxx.

References mpParent.

GalleryPreview::~GalleryPreview ( )

Definition at line 57 of file galctrl.cxx.

Member Function Documentation

bool GalleryPreview::Command ( const CommandEvent rCEvt)
void GalleryPreview::Hide ( )

Reimplemented from weld::CustomWidgetController.

Definition at line 51 of file galctrl.cxx.

References weld::CustomWidgetController::Hide(), and mxScrolledWindow.

bool GalleryPreview::ImplGetGraphicCenterRect ( const Graphic rGraphic,
tools::Rectangle rResultRect 
) const

Definition at line 109 of file galctrl.cxx.

Referenced by Paint().

bool GalleryPreview::KeyInput ( const KeyEvent rKEvt)
bool GalleryPreview::MouseButtonDown ( const MouseEvent rMEvt)

Reimplemented from weld::CustomWidgetController.

Definition at line 131 of file galctrl.cxx.

References MouseEvent::GetClicks(), mpParent, mpTheme, and GalleryBrowser2::TogglePreview().

void GalleryPreview::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
void GalleryPreview::PreviewMedia ( const INetURLObject rURL)
void GalleryPreview::SetDrawingArea ( weld::DrawingArea pDrawingArea)
void GalleryPreview::SetGraphic ( const Graphic rGraphic)

Definition at line 65 of file galctrl.hxx.

References GraphicObject::SetGraphic().

void GalleryPreview::SetTheme ( GalleryTheme pTheme)

Definition at line 57 of file galctrl.hxx.

void GalleryPreview::Show ( )

Reimplemented from weld::CustomWidgetController.

Definition at line 45 of file galctrl.cxx.

References mxScrolledWindow, and weld::CustomWidgetController::Show().

bool GalleryPreview::StartDrag ( )

Reimplemented from weld::CustomWidgetController.

Definition at line 191 of file galctrl.cxx.

References mpParent, mpTheme, and GalleryBrowser2::StartDrag().

Member Data Documentation

GraphicObject GalleryPreview::aGraphicObj

Definition at line 40 of file galctrl.hxx.

Referenced by Paint().

tools::Rectangle GalleryPreview::aPreviewRect

Definition at line 41 of file galctrl.hxx.

Referenced by Paint().

GalleryBrowser2* GalleryPreview::mpParent

Definition at line 42 of file galctrl.hxx.

Referenced by Command(), KeyInput(), MouseButtonDown(), SetDrawingArea(), and StartDrag().

GalleryTheme* GalleryPreview::mpTheme

Definition at line 43 of file galctrl.hxx.

Referenced by Command(), KeyInput(), MouseButtonDown(), and StartDrag().

std::unique_ptr<GalleryDragDrop> GalleryPreview::mxDragDropTargetHelper

Definition at line 38 of file galctrl.hxx.

Referenced by SetDrawingArea().

std::unique_ptr<weld::ScrolledWindow> GalleryPreview::mxScrolledWindow

Definition at line 39 of file galctrl.hxx.

Referenced by Hide(), and Show().

The documentation for this class was generated from the following files: