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, 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
 

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

Protected Attributes

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
 

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

Constructor & Destructor Documentation

◆ ToolboxButtonColorUpdaterBase() [1/2]

svx::ToolboxButtonColorUpdaterBase::ToolboxButtonColorUpdaterBase ( bool  bWideButton,
OUString  aCommandLabel,
OUString  aCommandURL,
css::uno::Reference< css::frame::XFrame >  xFrame 
)

Definition at line 42 of file tbxcolorupdate.cxx.

References COL_TRANSPARENT(), Size16, and xFrame.

◆ ~ToolboxButtonColorUpdaterBase()

svx::ToolboxButtonColorUpdaterBase::~ToolboxButtonColorUpdaterBase ( )
virtual

Definition at line 135 of file tbxcolorupdate.cxx.

◆ ToolboxButtonColorUpdaterBase() [2/2]

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

Member Function Documentation

◆ CreateVirtualDevice()

virtual VclPtr< VirtualDevice > svx::ToolboxButtonColorUpdaterBase::CreateVirtualDevice ( ) const
protectedpure virtual

◆ GetCurrentColor()

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

Definition at line 62 of file tbxcolorupdate.hxx.

References maCurColor.

◆ GetCurrentColorName()

OUString svx::ToolboxButtonColorUpdaterBase::GetCurrentColorName ( ) const

Definition at line 238 of file tbxcolorupdate.cxx.

References GetQuickHelpText(), and nLength.

◆ GetImageSize()

virtual vcl::ImageType svx::ToolboxButtonColorUpdaterBase::GetImageSize ( ) const
protectedpure virtual

◆ GetItemSize()

virtual Size svx::ToolboxButtonColorUpdaterBase::GetItemSize ( const Size rImageSize) const
protectedpure virtual

◆ GetQuickHelpText()

virtual OUString svx::ToolboxButtonColorUpdaterBase::GetQuickHelpText ( ) const
protectedpure virtual

◆ Init()

void svx::ToolboxButtonColorUpdaterBase::Init ( sal_uInt16  nSlotId)
protected

◆ operator=()

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

◆ RecordVirtualDevice()

virtual bool svx::ToolboxButtonColorUpdaterBase::RecordVirtualDevice ( ) const
protectedpure virtual

◆ SetImage()

virtual void svx::ToolboxButtonColorUpdaterBase::SetImage ( VirtualDevice pVirDev)
protectedpure virtual

◆ SetQuickHelpText()

virtual void svx::ToolboxButtonColorUpdaterBase::SetQuickHelpText ( const OUString &  rText)
protectedpure virtual

◆ Update() [1/2]

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

◆ Update() [2/2]

void svx::ToolboxButtonColorUpdaterBase::Update ( const NamedColor rNamedColor)

Member Data Documentation

◆ maBmpSize

Size svx::ToolboxButtonColorUpdaterBase::maBmpSize
protected

Definition at line 74 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ maCommandLabel

OUString svx::ToolboxButtonColorUpdaterBase::maCommandLabel
protected

Definition at line 76 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ maCommandURL

OUString svx::ToolboxButtonColorUpdaterBase::maCommandURL
protected

Definition at line 77 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ maCurColor

Color svx::ToolboxButtonColorUpdaterBase::maCurColor
protected

Definition at line 72 of file tbxcolorupdate.hxx.

Referenced by GetCurrentColor(), and Update().

◆ maUpdRect

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

Definition at line 73 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ mbWasHiContrastMode

bool svx::ToolboxButtonColorUpdaterBase::mbWasHiContrastMode
protected

Definition at line 71 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ mbWideButton

bool svx::ToolboxButtonColorUpdaterBase::mbWideButton
protected

◆ meImageType

vcl::ImageType svx::ToolboxButtonColorUpdaterBase::meImageType
protected

Definition at line 75 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ mxFrame

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: