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, 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 () 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 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 50 of file tbxcolorupdate.hxx.
svx::ToolboxButtonColorUpdaterBase::ToolboxButtonColorUpdaterBase | ( | bool | bWideButton, |
const OUString & | rCommandLabel, | ||
const OUString & | rCommandURL, | ||
const css::uno::Reference< css::frame::XFrame > & | rFrame | ||
) |
Definition at line 40 of file tbxcolorupdate.cxx.
References COL_TRANSPARENT(), and Size16.
|
virtual |
Definition at line 127 of file tbxcolorupdate.cxx.
|
privatedelete |
|
protectedpure virtual |
Implemented in svx::ToolboxButtonColorUpdater, and svx::VclToolboxButtonColorUpdater.
Referenced by Update().
|
inline |
Definition at line 61 of file tbxcolorupdate.hxx.
References maCurColor.
OUString svx::ToolboxButtonColorUpdaterBase::GetCurrentColorName | ( | ) | const |
Definition at line 220 of file tbxcolorupdate.cxx.
References GetQuickHelpText(), and nLength.
|
protectedpure virtual |
Implemented in svx::ToolboxButtonColorUpdater, and svx::VclToolboxButtonColorUpdater.
Referenced by Update().
|
protectedpure virtual |
Implemented in svx::ToolboxButtonColorUpdater, and svx::VclToolboxButtonColorUpdater.
Referenced by Update().
|
protectedpure virtual |
Implemented in svx::ToolboxButtonColorUpdater, and svx::VclToolboxButtonColorUpdater.
Referenced by GetCurrentColorName().
|
protected |
Definition at line 53 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::ToolboxButtonColorUpdater, and svx::VclToolboxButtonColorUpdater.
Referenced by Update().
|
protectedpure virtual |
Implemented in svx::ToolboxButtonColorUpdater, and svx::VclToolboxButtonColorUpdater.
Referenced by Update().
void svx::ToolboxButtonColorUpdaterBase::Update | ( | const NamedColor & | rNamedColor | ) |
Definition at line 130 of file tbxcolorupdate.cxx.
References maCommandLabel, mbWideButton, and SetQuickHelpText().
Referenced by Init(), and PaletteManager::PopupColorPicker().
Definition at line 143 of file tbxcolorupdate.cxx.
References COL_AUTO(), COL_TRANSPARENT(), CreateVirtualDevice(), vcl::Region::Exclude(), VclPtr< VirtualDevice >::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, SetImage(), svx::Size, vcl::Size32, and Size::Width().
|
protected |
Definition at line 73 of file tbxcolorupdate.hxx.
Referenced by svx::VclToolboxButtonColorUpdater::SetImage(), and Update().
|
protected |
Definition at line 75 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 76 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 71 of file tbxcolorupdate.hxx.
Referenced by GetCurrentColor(), and Update().
|
protected |
Definition at line 72 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 70 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 69 of file tbxcolorupdate.hxx.
Referenced by svx::VclToolboxButtonColorUpdater::GetItemSize(), svx::ToolboxButtonColorUpdater::GetItemSize(), and Update().
|
protected |
Definition at line 74 of file tbxcolorupdate.hxx.
Referenced by Update().
|
protected |
Definition at line 77 of file tbxcolorupdate.hxx.
Referenced by Update().