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

helper class to update a color in a toolbox button image More...

#include <tbxcolorupdate.hxx>

Collaboration diagram for svx::ToolboxButtonColorUpdater:
[legend]

Public Member Functions

 ToolboxButtonColorUpdater (sal_uInt16 nSlotId, sal_uInt16 nTbxBtnId, ToolBox *ptrTbx, bool bWideButton, const OUString &rCommandLabel)
 
 ~ToolboxButtonColorUpdater ()
 
void Update (const NamedColor &rNamedColor)
 
void Update (const Color &rColor, bool bForceUpdate=false)
 
Color const & GetCurrentColor () const
 
OUString GetCurrentColorName ()
 

Private Member Functions

 ToolboxButtonColorUpdater (ToolboxButtonColorUpdater const &)=delete
 
ToolboxButtonColorUpdateroperator= (ToolboxButtonColorUpdater const &)=delete
 

Private Attributes

bool const mbWideButton
 
sal_uInt16 const mnBtnId
 
VclPtr< ToolBoxmpTbx
 
Color maCurColor
 
tools::Rectangle maUpdRect
 
Size maBmpSize
 
bool mbWasHiContrastMode
 
OUString maCommandLabel
 

Detailed Description

helper class to update a color in a toolbox button image

formerly known as SvxTbxButtonColorUpdater_Impl, residing in svx/source/tbxctrls/colorwindow.hxx.

Definition at line 45 of file tbxcolorupdate.hxx.

Constructor & Destructor Documentation

svx::ToolboxButtonColorUpdater::ToolboxButtonColorUpdater ( sal_uInt16  nSlotId,
sal_uInt16  nTbxBtnId,
ToolBox ptrTbx,
bool  bWideButton,
const OUString &  rCommandLabel 
)
svx::ToolboxButtonColorUpdater::~ToolboxButtonColorUpdater ( )

Definition at line 71 of file tbxcolorupdate.cxx.

svx::ToolboxButtonColorUpdater::ToolboxButtonColorUpdater ( ToolboxButtonColorUpdater const &  )
privatedelete

Member Function Documentation

Color const& svx::ToolboxButtonColorUpdater::GetCurrentColor ( ) const
inline

Definition at line 54 of file tbxcolorupdate.hxx.

OUString svx::ToolboxButtonColorUpdater::GetCurrentColorName ( )

Definition at line 157 of file tbxcolorupdate.cxx.

References ToolBox::GetQuickHelpText(), mnBtnId, mpTbx, and nLength.

ToolboxButtonColorUpdater& svx::ToolboxButtonColorUpdater::operator= ( ToolboxButtonColorUpdater const &  )
privatedelete
void svx::ToolboxButtonColorUpdater::Update ( const NamedColor rNamedColor)
void svx::ToolboxButtonColorUpdater::Update ( const Color rColor,
bool  bForceUpdate = false 
)

Member Data Documentation

Size svx::ToolboxButtonColorUpdater::maBmpSize
private

Definition at line 66 of file tbxcolorupdate.hxx.

Referenced by Update().

OUString svx::ToolboxButtonColorUpdater::maCommandLabel
private

Definition at line 68 of file tbxcolorupdate.hxx.

Referenced by Update().

Color svx::ToolboxButtonColorUpdater::maCurColor
private

Definition at line 64 of file tbxcolorupdate.hxx.

Referenced by Update().

tools::Rectangle svx::ToolboxButtonColorUpdater::maUpdRect
private

Definition at line 65 of file tbxcolorupdate.hxx.

Referenced by Update().

bool svx::ToolboxButtonColorUpdater::mbWasHiContrastMode
private

Definition at line 67 of file tbxcolorupdate.hxx.

Referenced by ToolboxButtonColorUpdater(), and Update().

bool const svx::ToolboxButtonColorUpdater::mbWideButton
private

Definition at line 61 of file tbxcolorupdate.hxx.

Referenced by Update().

sal_uInt16 const svx::ToolboxButtonColorUpdater::mnBtnId
private

Definition at line 62 of file tbxcolorupdate.hxx.

Referenced by GetCurrentColorName(), and Update().

VclPtr<ToolBox> svx::ToolboxButtonColorUpdater::mpTbx
private

Definition at line 63 of file tbxcolorupdate.hxx.

Referenced by GetCurrentColorName(), and Update().


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