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

#include <tbxcolorupdate.hxx>

Inheritance diagram for svx::ToolboxButtonColorUpdater:
[legend]
Collaboration diagram for svx::ToolboxButtonColorUpdater:
[legend]

Public Member Functions

 ToolboxButtonColorUpdater (sal_uInt16 nSlotId, const OString &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, const OUString &rCommandLabel, const OUString &rCommandURL, const css::uno::Reference< css::frame::XFrame > &rFrame)
 
virtual ~ToolboxButtonColorUpdaterBase ()
 
void Update (const NamedColor &rNamedColor)
 
void Update (const Color &rColor, bool bForceUpdate=false)
 
Color const & GetCurrentColor () const
 
OUString GetCurrentColorName ()
 

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 vcl::ImageType GetImageSize () const override
 
virtual Size GetItemSize () const override
 

Private Attributes

OString msBtnId
 
weld::ToolbarmpTbx
 

Additional Inherited Members

- Protected Member Functions inherited from svx::ToolboxButtonColorUpdaterBase
void Init (sal_uInt16 nSlotId)
 
- Protected Attributes inherited from svx::ToolboxButtonColorUpdaterBase
bool const mbWideButton
 
bool mbWasHiContrastMode
 
Color maCurColor
 
tools::Rectangle maUpdRect
 
Size maBmpSize
 
OUString maCommandLabel
 
OUString maCommandURL
 
css::uno::Reference< css::frame::XFrame > mxFrame
 

Detailed Description

Definition at line 110 of file tbxcolorupdate.hxx.

Constructor & Destructor Documentation

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

Definition at line 229 of file tbxcolorupdate.cxx.

References svx::ToolboxButtonColorUpdaterBase::Init().

Member Function Documentation

VclPtr< VirtualDevice > svx::ToolboxButtonColorUpdater::CreateVirtualDevice ( ) const
overrideprivatevirtual
vcl::ImageType svx::ToolboxButtonColorUpdater::GetImageSize ( ) const
overrideprivatevirtual

Implements svx::ToolboxButtonColorUpdaterBase.

Definition at line 258 of file tbxcolorupdate.cxx.

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

Referenced by GetItemSize().

Size svx::ToolboxButtonColorUpdater::GetItemSize ( ) const
overrideprivatevirtual
OUString svx::ToolboxButtonColorUpdater::GetQuickHelpText ( ) const
overrideprivatevirtual
void svx::ToolboxButtonColorUpdater::SetImage ( VirtualDevice pVirDev)
overrideprivatevirtual
void svx::ToolboxButtonColorUpdater::SetQuickHelpText ( const OUString &  rText)
overrideprivatevirtual

Member Data Documentation

weld::Toolbar* svx::ToolboxButtonColorUpdater::mpTbx
private
OString svx::ToolboxButtonColorUpdater::msBtnId
private

Definition at line 117 of file tbxcolorupdate.hxx.

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


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