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

#include <StylesPreviewWindow.hxx>

Inheritance diagram for StyleItemController:
[legend]
Collaboration diagram for StyleItemController:
[legend]

Public Member Functions

 StyleItemController (const OUString &aStyleName, css::uno::Reference< css::frame::XDispatchProvider > &xDispatchProvider)
 
void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
bool MouseButtonDown (const MouseEvent &) override
 
void SetStyle (const OUString &sStyleName)
 
void Select (bool bSelect)
 
- 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 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 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
 
int GetTextWidth (const OUString &rText) 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)
 
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
 

Private Member Functions

void DrawEntry (vcl::RenderContext &rRenderContext)
 
void DrawText (vcl::RenderContext &rRenderContext)
 
void DrawHighlight (vcl::RenderContext &rRenderContext, Color aFontBack)
 

Static Private Member Functions

static void DrawSelection (vcl::RenderContext &rRenderContext)
 
static void DrawContentBackground (vcl::RenderContext &rRenderContext, tools::Rectangle &aContentRect, Color &aColor)
 

Private Attributes

SfxStyleFamily m_eStyleFamily
 
OUString m_aStyleName
 
bool m_bSelected
 
css::uno::Reference< css::frame::XDispatchProvider > m_xDispatchProvider
 

Static Private Attributes

static constexpr unsigned LEFT_MARGIN = 8
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 

Detailed Description

Definition at line 42 of file StylesPreviewWindow.hxx.

Constructor & Destructor Documentation

StyleItemController::StyleItemController ( const OUString &  aStyleName,
css::uno::Reference< css::frame::XDispatchProvider > &  xDispatchProvider 
)

Definition at line 73 of file StylesPreviewWindow.cxx.

References Para.

Member Function Documentation

void StyleItemController::DrawContentBackground ( vcl::RenderContext rRenderContext,
tools::Rectangle aContentRect,
Color aColor 
)
staticprivate
void StyleItemController::DrawEntry ( vcl::RenderContext rRenderContext)
private
void StyleItemController::DrawHighlight ( vcl::RenderContext rRenderContext,
Color  aFontBack 
)
private
void StyleItemController::DrawSelection ( vcl::RenderContext rRenderContext)
staticprivate
void StyleItemController::DrawText ( vcl::RenderContext rRenderContext)
private
bool StyleItemController::MouseButtonDown ( const MouseEvent )
overridevirtual
void StyleItemController::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overridevirtual
void StyleItemController::Select ( bool  bSelect)
void StyleItemController::SetStyle ( const OUString &  sStyleName)

Member Data Documentation

constexpr unsigned StyleItemController::LEFT_MARGIN = 8
staticprivate

Definition at line 44 of file StylesPreviewWindow.hxx.

Referenced by DrawHighlight(), and DrawText().

OUString StyleItemController::m_aStyleName
private

Definition at line 47 of file StylesPreviewWindow.hxx.

Referenced by DrawEntry(), DrawHighlight(), DrawText(), MouseButtonDown(), and SetStyle().

bool StyleItemController::m_bSelected
private

Definition at line 48 of file StylesPreviewWindow.hxx.

Referenced by DrawEntry(), and Select().

SfxStyleFamily StyleItemController::m_eStyleFamily
private

Definition at line 46 of file StylesPreviewWindow.hxx.

Referenced by DrawEntry(), and MouseButtonDown().

css::uno::Reference<css::frame::XDispatchProvider> StyleItemController::m_xDispatchProvider
private

Definition at line 49 of file StylesPreviewWindow.hxx.

Referenced by MouseButtonDown().


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