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, sal_uInt16 nSlotId, css::uno::Reference< css::frame::XFrame > xFrame)
 
virtual ~ToolboxButtonColorUpdaterBase ()
 
void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
void SetRecentColor (const NamedColor &rNamedColor)
 
void Update (const NamedColor &rNamedColor)
 
void Update (const Color &rColor, bool bForceUpdate=false)
 
Color const & GetCurrentColor () const
 
OUString GetCurrentColorName () const
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () 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
 
sal_uInt16 mnSlotId
 
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 52 of file tbxcolorupdate.hxx.

Constructor & Destructor Documentation

◆ ToolboxButtonColorUpdaterBase() [1/2]

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

Definition at line 43 of file tbxcolorupdate.cxx.

References COL_TRANSPARENT(), Size16, and xFrame.

◆ ~ToolboxButtonColorUpdaterBase()

svx::ToolboxButtonColorUpdaterBase::~ToolboxButtonColorUpdaterBase ( )
virtual

Definition at line 175 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 65 of file tbxcolorupdate.hxx.

References maCurColor.

◆ GetCurrentColorName()

OUString svx::ToolboxButtonColorUpdaterBase::GetCurrentColorName ( ) const

Definition at line 275 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

◆ Notify()

void svx::ToolboxButtonColorUpdaterBase::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

Reimplemented from SfxListener.

Definition at line 102 of file tbxcolorupdate.cxx.

References SfxListener::EndListeningAll(), SfxHint::GetId(), mnSlotId, and Update().

◆ 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

◆ SetRecentColor()

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

Definition at line 115 of file tbxcolorupdate.cxx.

References mbWideButton, mnSlotId, mxFrame, Update(), and xModel.

Referenced by PaletteManager::SetSplitButtonColor().

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

Referenced by Update().

◆ maCommandLabel

OUString svx::ToolboxButtonColorUpdaterBase::maCommandLabel
protected

Definition at line 80 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ maCommandURL

OUString svx::ToolboxButtonColorUpdaterBase::maCommandURL
protected

Definition at line 81 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ maCurColor

Color svx::ToolboxButtonColorUpdaterBase::maCurColor
protected

Definition at line 76 of file tbxcolorupdate.hxx.

Referenced by GetCurrentColor(), and Update().

◆ maUpdRect

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

Definition at line 77 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ mbWasHiContrastMode

bool svx::ToolboxButtonColorUpdaterBase::mbWasHiContrastMode
protected

Definition at line 74 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ mbWideButton

bool svx::ToolboxButtonColorUpdaterBase::mbWideButton
protected

◆ meImageType

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

Definition at line 79 of file tbxcolorupdate.hxx.

Referenced by Update().

◆ mnSlotId

sal_uInt16 svx::ToolboxButtonColorUpdaterBase::mnSlotId
protected

Definition at line 75 of file tbxcolorupdate.hxx.

Referenced by Notify(), and SetRecentColor().

◆ mxFrame

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

Definition at line 82 of file tbxcolorupdate.hxx.

Referenced by Init(), SetRecentColor(), and Update().


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