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:
[legend]
Collaboration diagram for GalleryPreview:
[legend]

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 IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
void Enable () const
 
void Disable () const
 
bool IsActive () const
 
int GetTextHeight () const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () 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 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
 
GalleryBrowser2mpParent
 
GalleryThemempTheme
 

Detailed Description

Definition at line 35 of file galctrl.hxx.

Constructor & Destructor Documentation

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

Definition at line 44 of file galctrl.cxx.

References mpParent.

GalleryPreview::~GalleryPreview ( )
overridevirtual

Definition at line 63 of file galctrl.cxx.

Member Function Documentation

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

Reimplemented from weld::CustomWidgetController.

Definition at line 57 of file galctrl.cxx.

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

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

Definition at line 115 of file galctrl.cxx.

Referenced by Paint().

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

Reimplemented from weld::CustomWidgetController.

Definition at line 137 of file galctrl.cxx.

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

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

Definition at line 66 of file galctrl.hxx.

References GraphicObject::SetGraphic().

void GalleryPreview::SetTheme ( GalleryTheme pTheme)
inline

Definition at line 58 of file galctrl.hxx.

void GalleryPreview::Show ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 51 of file galctrl.cxx.

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

bool GalleryPreview::StartDrag ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 197 of file galctrl.cxx.

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

Member Data Documentation

GraphicObject GalleryPreview::aGraphicObj
private

Definition at line 41 of file galctrl.hxx.

Referenced by Paint().

tools::Rectangle GalleryPreview::aPreviewRect
private

Definition at line 42 of file galctrl.hxx.

Referenced by Paint().

GalleryBrowser2* GalleryPreview::mpParent
private

Definition at line 43 of file galctrl.hxx.

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

GalleryTheme* GalleryPreview::mpTheme
private

Definition at line 44 of file galctrl.hxx.

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

std::unique_ptr<GalleryDragDrop> GalleryPreview::mxDragDropTargetHelper
private

Definition at line 39 of file galctrl.hxx.

Referenced by SetDrawingArea().

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

Definition at line 40 of file galctrl.hxx.

Referenced by Hide(), and Show().


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