LibreOffice Module svx (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
svx::ToolboxButtonColorUpdaterBase Class Referenceabstract

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

#include <tbxcolorupdate.hxx>

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

Public Member Functions

 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 ()
 

Protected Member Functions

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

Protected Attributes

bool const mbWideButton
 
bool mbWasHiContrastMode
 
Color maCurColor
 
tools::Rectangle maUpdRect
 
Size maBmpSize
 
OUString maCommandLabel
 
OUString maCommandURL
 
css::uno::Reference< css::frame::XFrame > mxFrame
 

Private Member Functions

 ToolboxButtonColorUpdaterBase (ToolboxButtonColorUpdaterBase const &)=delete
 
ToolboxButtonColorUpdaterBaseoperator= (ToolboxButtonColorUpdaterBase const &)=delete
 

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 52 of file tbxcolorupdate.hxx.

Constructor & Destructor Documentation

svx::ToolboxButtonColorUpdaterBase::ToolboxButtonColorUpdaterBase ( bool  bWideButton,
const OUString &  rCommandLabel,
const OUString &  rCommandURL,
const css::uno::Reference< css::frame::XFrame > &  rFrame 
)

Definition at line 42 of file tbxcolorupdate.cxx.

References COL_TRANSPARENT().

svx::ToolboxButtonColorUpdaterBase::~ToolboxButtonColorUpdaterBase ( )
virtual

Definition at line 129 of file tbxcolorupdate.cxx.

svx::ToolboxButtonColorUpdaterBase::ToolboxButtonColorUpdaterBase ( ToolboxButtonColorUpdaterBase const &  )
privatedelete

Member Function Documentation

virtual VclPtr<VirtualDevice> svx::ToolboxButtonColorUpdaterBase::CreateVirtualDevice ( ) const
protectedpure virtual
Color const& svx::ToolboxButtonColorUpdaterBase::GetCurrentColor ( ) const
inline

Definition at line 63 of file tbxcolorupdate.hxx.

References maCurColor.

OUString svx::ToolboxButtonColorUpdaterBase::GetCurrentColorName ( )

Definition at line 216 of file tbxcolorupdate.cxx.

References GetQuickHelpText(), and nLength.

virtual vcl::ImageType svx::ToolboxButtonColorUpdaterBase::GetImageSize ( ) const
protectedpure virtual
virtual Size svx::ToolboxButtonColorUpdaterBase::GetItemSize ( ) const
protectedpure virtual
virtual OUString svx::ToolboxButtonColorUpdaterBase::GetQuickHelpText ( ) const
protectedpure virtual
void svx::ToolboxButtonColorUpdaterBase::Init ( sal_uInt16  nSlotId)
protected
ToolboxButtonColorUpdaterBase& svx::ToolboxButtonColorUpdaterBase::operator= ( ToolboxButtonColorUpdaterBase const &  )
privatedelete
virtual void svx::ToolboxButtonColorUpdaterBase::SetImage ( VirtualDevice pVirDev)
protectedpure virtual
virtual void svx::ToolboxButtonColorUpdaterBase::SetQuickHelpText ( const OUString &  rText)
protectedpure virtual
void svx::ToolboxButtonColorUpdaterBase::Update ( const NamedColor rNamedColor)

Definition at line 132 of file tbxcolorupdate.cxx.

References maCommandLabel, mbWideButton, and SetQuickHelpText().

Referenced by Init(), and PaletteManager::PopupColorPicker().

void svx::ToolboxButtonColorUpdaterBase::Update ( const Color rColor,
bool  bForceUpdate = false 
)

Member Data Documentation

Size svx::ToolboxButtonColorUpdaterBase::maBmpSize
protected

Definition at line 75 of file tbxcolorupdate.hxx.

Referenced by svx::VclToolboxButtonColorUpdater::SetImage(), and Update().

OUString svx::ToolboxButtonColorUpdaterBase::maCommandLabel
protected

Definition at line 76 of file tbxcolorupdate.hxx.

Referenced by Update().

OUString svx::ToolboxButtonColorUpdaterBase::maCommandURL
protected

Definition at line 77 of file tbxcolorupdate.hxx.

Referenced by Update().

Color svx::ToolboxButtonColorUpdaterBase::maCurColor
protected

Definition at line 73 of file tbxcolorupdate.hxx.

Referenced by GetCurrentColor(), and Update().

tools::Rectangle svx::ToolboxButtonColorUpdaterBase::maUpdRect
protected

Definition at line 74 of file tbxcolorupdate.hxx.

Referenced by Update().

bool svx::ToolboxButtonColorUpdaterBase::mbWasHiContrastMode
protected

Definition at line 72 of file tbxcolorupdate.hxx.

Referenced by Update().

bool const svx::ToolboxButtonColorUpdaterBase::mbWideButton
protected
css::uno::Reference<css::frame::XFrame> svx::ToolboxButtonColorUpdaterBase::mxFrame
protected

Definition at line 78 of file tbxcolorupdate.hxx.

Referenced by Update().


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