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

#include <tbxcolorupdate.hxx>

Inheritance diagram for svx::ToolboxButtonColorUpdater:
Collaboration diagram for svx::ToolboxButtonColorUpdater:

Public Member Functions

 ToolboxButtonColorUpdater (sal_uInt16 nSlotId, const OUString &rTbxBtnId, weld::Toolbar *ptrTbx, bool bWideButton, const OUString &rCommandLabel, const css::uno::Reference< css::frame::XFrame > &rFrame)
- Public Member Functions inherited from svx::ToolboxButtonColorUpdaterBase
 ToolboxButtonColorUpdaterBase (bool bWideButton, OUString aCommandLabel, OUString aCommandURL, css::uno::Reference< css::frame::XFrame > xFrame)
virtual ~ToolboxButtonColorUpdaterBase ()
void Update (const NamedColor &rNamedColor)
void Update (const Color &rColor, bool bForceUpdate=false)
Color const & GetCurrentColor () const
OUString GetCurrentColorName () const

Private Member Functions

virtual void SetQuickHelpText (const OUString &rText) override
virtual OUString GetQuickHelpText () const override
virtual void SetImage (VirtualDevice *pVirDev) override
virtual VclPtr< VirtualDeviceCreateVirtualDevice () const override
virtual bool RecordVirtualDevice () const override
virtual vcl::ImageType GetImageSize () const override
virtual Size GetItemSize (const Size &rImageSize) const override

Private Attributes

OUString msBtnId

Additional Inherited Members

- Protected Member Functions inherited from svx::ToolboxButtonColorUpdaterBase
void Init (sal_uInt16 nSlotId)
virtual void SetQuickHelpText (const OUString &rText)=0
virtual OUString GetQuickHelpText () const =0
virtual void SetImage (VirtualDevice *pVirDev)=0
virtual VclPtr< VirtualDeviceCreateVirtualDevice () const =0
virtual bool RecordVirtualDevice () const =0
virtual vcl::ImageType GetImageSize () const =0
virtual Size GetItemSize (const Size &rImageSize) const =0
- Protected Attributes inherited from svx::ToolboxButtonColorUpdaterBase
bool mbWideButton
bool mbWasHiContrastMode
Color maCurColor
tools::Rectangle maUpdRect
Size maBmpSize
vcl::ImageType meImageType
OUString maCommandLabel
OUString maCommandURL
css::uno::Reference< css::frame::XFrame > mxFrame

Detailed Description

Definition at line 116 of file tbxcolorupdate.hxx.

Constructor & Destructor Documentation

◆ ToolboxButtonColorUpdater()

svx::ToolboxButtonColorUpdater::ToolboxButtonColorUpdater ( sal_uInt16  nSlotId,
const OUString &  rTbxBtnId,
weld::Toolbar ptrTbx,
bool  bWideButton,
const OUString &  rCommandLabel,
const css::uno::Reference< css::frame::XFrame > &  rFrame 

Definition at line 251 of file tbxcolorupdate.cxx.

References svx::ToolboxButtonColorUpdaterBase::Init().

Member Function Documentation

◆ CreateVirtualDevice()

VclPtr< VirtualDevice > svx::ToolboxButtonColorUpdater::CreateVirtualDevice ( ) const

◆ GetImageSize()

vcl::ImageType svx::ToolboxButtonColorUpdater::GetImageSize ( ) const

Implements svx::ToolboxButtonColorUpdaterBase.

Definition at line 280 of file tbxcolorupdate.cxx.

References weld::Toolbar::get_icon_size(), and mpTbx.

◆ GetItemSize()

Size svx::ToolboxButtonColorUpdater::GetItemSize ( const Size rImageSize) const

◆ GetQuickHelpText()

OUString svx::ToolboxButtonColorUpdater::GetQuickHelpText ( ) const

◆ RecordVirtualDevice()

virtual bool svx::ToolboxButtonColorUpdater::RecordVirtualDevice ( ) const

Implements svx::ToolboxButtonColorUpdaterBase.

Definition at line 130 of file tbxcolorupdate.hxx.

◆ SetImage()

void svx::ToolboxButtonColorUpdater::SetImage ( VirtualDevice pVirDev)

◆ SetQuickHelpText()

void svx::ToolboxButtonColorUpdater::SetQuickHelpText ( const OUString &  rText)

Member Data Documentation

◆ mpTbx

weld::Toolbar* svx::ToolboxButtonColorUpdater::mpTbx

◆ msBtnId

OUString svx::ToolboxButtonColorUpdater::msBtnId

Definition at line 123 of file tbxcolorupdate.hxx.

Referenced by GetQuickHelpText(), SetImage(), and SetQuickHelpText().

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