LibreOffice Module cui (master)  1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
BackgroundPreviewImpl Class Reference

Preview window for brush or bitmap. More...

Inheritance diagram for BackgroundPreviewImpl:
Collaboration diagram for BackgroundPreviewImpl:

Public Member Functions

 BackgroundPreviewImpl ()
void setBmp (bool bBmp)
void NotifyChange (const Color &rColor)
void NotifyChange (const BitmapEx *pBitmap)
void SetFillColor (const Color &rColor)
- 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 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)
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
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 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

Protected Member Functions

virtual void Paint (vcl::RenderContext &, const ::tools::Rectangle &rRect) override
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
virtual void Resize () override

Private Member Functions

void recalcDrawPos ()

Private Attributes

bool bIsBmp
std::unique_ptr< BitmapExpBitmap
Point aDrawPos
Size aDrawSize
::tools::Rectangle aDrawRect
Color aColor

Additional Inherited Members

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

Detailed Description

Preview window for brush or bitmap.

Definition at line 107 of file backgrnd.cxx.

Constructor & Destructor Documentation

BackgroundPreviewImpl::BackgroundPreviewImpl ( )

Definition at line 134 of file backgrnd.cxx.

Member Function Documentation

void BackgroundPreviewImpl::NotifyChange ( const Color rColor)
void BackgroundPreviewImpl::NotifyChange ( const BitmapEx pBitmap)
void BackgroundPreviewImpl::Paint ( vcl::RenderContext rRenderContext,
const ::tools::Rectangle rRect 
void BackgroundPreviewImpl::recalcDrawPos ( )
void BackgroundPreviewImpl::Resize ( )
void BackgroundPreviewImpl::setBmp ( bool  bBmp)

Definition at line 149 of file backgrnd.cxx.

References bIsBmp, and weld::CustomWidgetController::Invalidate().

void BackgroundPreviewImpl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
void BackgroundPreviewImpl::SetFillColor ( const Color rColor)

Definition at line 115 of file backgrnd.cxx.

Referenced by NotifyChange().

Member Data Documentation

Color BackgroundPreviewImpl::aColor

Definition at line 131 of file backgrnd.cxx.

Referenced by Paint().

Point BackgroundPreviewImpl::aDrawPos

Definition at line 128 of file backgrnd.cxx.

Referenced by Paint(), and recalcDrawPos().

::tools::Rectangle BackgroundPreviewImpl::aDrawRect

Definition at line 130 of file backgrnd.cxx.

Referenced by NotifyChange(), Paint(), Resize(), and SetDrawingArea().

Size BackgroundPreviewImpl::aDrawSize

Definition at line 129 of file backgrnd.cxx.

Referenced by Paint(), and recalcDrawPos().

bool BackgroundPreviewImpl::bIsBmp

Definition at line 126 of file backgrnd.cxx.

Referenced by NotifyChange(), Paint(), and setBmp().

std::unique_ptr<BitmapEx> BackgroundPreviewImpl::pBitmap

Definition at line 127 of file backgrnd.cxx.

Referenced by NotifyChange(), Paint(), and recalcDrawPos().

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