LibreOffice Module svx (master) 1
|
helper class to update a color in a toolbox button image More...
#include <tbxcolorupdate.hxx>
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< VirtualDevice > | CreateVirtualDevice () 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 | |
ToolboxButtonColorUpdaterBase & | operator= (ToolboxButtonColorUpdaterBase const &)=delete |
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.
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.
|
virtual |
Definition at line 135 of file tbxcolorupdate.cxx.
|
privatedelete |
|
protectedpure virtual |
Implemented in svx::VclToolboxButtonColorUpdater, and svx::ToolboxButtonColorUpdater.
Referenced by Update().
|
inline |
Definition at line 62 of file tbxcolorupdate.hxx.
References maCurColor.
OUString svx::ToolboxButtonColorUpdaterBase::GetCurrentColorName | ( | ) | const |
Definition at line 238 of file tbxcolorupdate.cxx.
References GetQuickHelpText(), and nLength.
|
protectedpure virtual |
Implemented in svx::VclToolboxButtonColorUpdater, and svx::ToolboxButtonColorUpdater.
Referenced by Update().
|
protectedpure virtual |
Implemented in svx::VclToolboxButtonColorUpdater, and svx::ToolboxButtonColorUpdater.
Referenced by Update().
|
protectedpure virtual |
Implemented in svx::VclToolboxButtonColorUpdater, and svx::ToolboxButtonColorUpdater.
Referenced by GetCurrentColorName().
|
protected |
Definition at line 55 of file tbxcolorupdate.cxx.
References COL_DEFAULT_FONT, COL_DEFAULT_FRAMELINE, COL_DEFAULT_HIGHLIGHT, COL_DEFAULT_SHAPE_FILLING, COL_DEFAULT_SHAPE_STROKE, COL_TRANSPARENT(), SvxResId(), and Update().
Referenced by svx::ToolboxButtonColorUpdater::ToolboxButtonColorUpdater(), and svx::VclToolboxButtonColorUpdater::VclToolboxButtonColorUpdater().
|
privatedelete |
|
protectedpure virtual |
Implemented in svx::VclToolboxButtonColorUpdater, and svx::ToolboxButtonColorUpdater.
Referenced by Update().
|
protectedpure virtual |
Implemented in svx::VclToolboxButtonColorUpdater, and svx::ToolboxButtonColorUpdater.
Referenced by Update().
|
protectedpure virtual |
Implemented in svx::VclToolboxButtonColorUpdater, and svx::ToolboxButtonColorUpdater.
Referenced by Update().
void svx::ToolboxButtonColorUpdaterBase::Update | ( | const Color & | rColor, |
bool | bForceUpdate = false |
||
) |
Definition at line 151 of file tbxcolorupdate.cxx.
References vcl::CLIPREGION, COL_AUTO(), COL_TRANSPARENT(), CreateVirtualDevice(), vcl::Region::Exclude(), VclPtr< class reference_type >::get(), StyleSettings::GetDisableColor(), StyleSettings::GetHighContrastMode(), GetImageSize(), GetItemSize(), Application::GetSettings(), Image::GetSizePixel(), AllSettings::GetStyleSettings(), vcl::CommandInfoProvider::GetXGraphicForCommand(), Size::Height(), Color::IsFullyTransparent(), maBmpSize, maCommandURL, maCurColor, maUpdRect, mbWasHiContrastMode, meImageType, mxFrame, Point, RecordVirtualDevice(), SetImage(), vcl::Size32, and Size::Width().
void svx::ToolboxButtonColorUpdaterBase::Update | ( | const NamedColor & | rNamedColor | ) |
Definition at line 138 of file tbxcolorupdate.cxx.
References maCommandLabel, mbWideButton, SetQuickHelpText(), and Update().
Referenced by Init(), PaletteManager::PopupColorPicker(), and Update().
|
protected |
Definition at line 74 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 76 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 77 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 72 of file tbxcolorupdate.hxx.
Referenced by GetCurrentColor(), and Update().
|
protected |
Definition at line 73 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 71 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 70 of file tbxcolorupdate.hxx.
Referenced by svx::VclToolboxButtonColorUpdater::GetItemSize(), svx::ToolboxButtonColorUpdater::GetItemSize(), and Update().
|
protected |
Definition at line 75 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 78 of file tbxcolorupdate.hxx.
Referenced by Update().