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 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::DrawingAreaGetDrawingArea () 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
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::GalleryPreview ( GalleryBrowser2 pParent,
std::unique_ptr< weld::ScrolledWindow xScrolledWindow 

Definition at line 38 of file galctrl.cxx.

References mpParent.

◆ ~GalleryPreview()

GalleryPreview::~GalleryPreview ( )

Definition at line 57 of file galctrl.cxx.

Member Function Documentation

◆ Command()

bool GalleryPreview::Command ( const CommandEvent rCEvt)

◆ Hide()

void GalleryPreview::Hide ( )

Reimplemented from weld::CustomWidgetController.

Definition at line 51 of file galctrl.cxx.

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

◆ ImplGetGraphicCenterRect()

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

Definition at line 109 of file galctrl.cxx.

Referenced by Paint().

◆ KeyInput()

bool GalleryPreview::KeyInput ( const KeyEvent rKEvt)

◆ MouseButtonDown()

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().

◆ Paint()

void GalleryPreview::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 

◆ PreviewMedia()

void GalleryPreview::PreviewMedia ( const INetURLObject rURL)

◆ SetDrawingArea()

void GalleryPreview::SetDrawingArea ( weld::DrawingArea pDrawingArea)

◆ SetGraphic()

void GalleryPreview::SetGraphic ( const Graphic rGraphic)

Definition at line 65 of file galctrl.hxx.

References aGraphicObj, and GraphicObject::SetGraphic().

◆ SetTheme()

void GalleryPreview::SetTheme ( GalleryTheme pTheme)

Definition at line 57 of file galctrl.hxx.

References mpTheme.

◆ Show()

void GalleryPreview::Show ( )

Reimplemented from weld::CustomWidgetController.

Definition at line 45 of file galctrl.cxx.

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

◆ StartDrag()

bool GalleryPreview::StartDrag ( )

Reimplemented from weld::CustomWidgetController.

Definition at line 191 of file galctrl.cxx.

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

Member Data Documentation

◆ aGraphicObj

GraphicObject GalleryPreview::aGraphicObj

Definition at line 40 of file galctrl.hxx.

Referenced by Paint(), and SetGraphic().

◆ aPreviewRect

tools::Rectangle GalleryPreview::aPreviewRect

Definition at line 41 of file galctrl.hxx.

Referenced by Paint().

◆ mpParent

GalleryBrowser2* GalleryPreview::mpParent

Definition at line 42 of file galctrl.hxx.

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

◆ mpTheme

GalleryTheme* GalleryPreview::mpTheme

Definition at line 43 of file galctrl.hxx.

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

◆ mxDragDropTargetHelper

std::unique_ptr<GalleryDragDrop> GalleryPreview::mxDragDropTargetHelper

Definition at line 38 of file galctrl.hxx.

Referenced by SetDrawingArea().

◆ mxScrolledWindow

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: