LibreOffice Module svx (master) 1
|
#include <colorwindow.hxx>
Public Member Functions | |
ColorWindow (OUString rCommand, std::shared_ptr< PaletteManager > xPaletteManager, ColorStatus &rColorStatus, sal_uInt16 nSlotId, const css::uno::Reference< css::frame::XFrame > &rFrame, const MenuOrToolMenuButton &rMenuButton, TopLevelParentFunction aTopLevelParentFunction, ColorSelectFunction aColorSelectFunction) | |
virtual | ~ColorWindow () override |
void | ShowNoneButton () |
void | SetNoSelection () |
bool | IsNoSelection () const |
void | SelectEntry (const NamedColor &rColor) |
void | SelectEntry (const Color &rColor) |
NamedColor | GetSelectEntryColor () const |
virtual void | statusChanged (const css::frame::FeatureStateEvent &rEvent) override |
virtual void | GrabFocus () override |
Public Member Functions inherited from WeldToolbarPopup | |
WeldToolbarPopup (css::uno::Reference< css::frame::XFrame > xFrame, weld::Widget *pParent, const OUString &rUIFile, const OUString &rId) | |
virtual | ~WeldToolbarPopup () |
weld::Container * | getTopLevel () |
weld::Container * | getContainer () |
void | AddStatusListener (const OUString &rCommandURL) |
virtual void | statusChanged (const css::frame::FeatureStateEvent &Event) |
virtual void | GrabFocus ()=0 |
Private Member Functions | |
DECL_DLLPRIVATE_LINK (SelectHdl, ValueSet *, void) | |
DECL_DLLPRIVATE_LINK (SelectPaletteHdl, weld::ComboBox &, void) | |
DECL_DLLPRIVATE_LINK (AutoColorClickHdl, weld::Button &, void) | |
DECL_DLLPRIVATE_LINK (OpenPickerClickHdl, weld::Button &, void) | |
NamedColor | GetAutoColor () const |
Static Private Member Functions | |
static bool | SelectValueSetEntry (SvxColorValueSet *pColorSet, const Color &rColor) |
static NamedColor | GetSelectEntryColor (ValueSet const *pColorSet) |
Private Attributes | |
const sal_uInt16 | theSlotId |
OUString | maCommand |
MenuOrToolMenuButton | maMenuButton |
std::shared_ptr< PaletteManager > | mxPaletteManager |
ColorStatus & | mrColorStatus |
TopLevelParentFunction | maTopLevelParentFunction |
ColorSelectFunction | maColorSelectFunction |
std::unique_ptr< SvxColorValueSet > | mxColorSet |
std::unique_ptr< SvxColorValueSet > | mxRecentColorSet |
std::unique_ptr< weld::ComboBox > | mxPaletteListBox |
std::unique_ptr< weld::Button > | mxButtonAutoColor |
std::unique_ptr< weld::Button > | mxButtonNoneColor |
std::unique_ptr< weld::Button > | mxButtonPicker |
std::unique_ptr< weld::Widget > | mxAutomaticSeparator |
std::unique_ptr< weld::CustomWeld > | mxColorSetWin |
std::unique_ptr< weld::CustomWeld > | mxRecentColorSetWin |
weld::Button * | mpDefaultButton |
Additional Inherited Members | |
Protected Attributes inherited from WeldToolbarPopup | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Container > | m_xTopLevel |
std::unique_ptr< weld::Container > | m_xContainer |
css::uno::Reference< css::frame::XFrame > | m_xFrame |
rtl::Reference< svt::FrameStatusListener > | m_xStatusListener |
Definition at line 80 of file colorwindow.hxx.
ColorWindow::ColorWindow | ( | OUString | rCommand, |
std::shared_ptr< PaletteManager > | xPaletteManager, | ||
ColorStatus & | rColorStatus, | ||
sal_uInt16 | nSlotId, | ||
const css::uno::Reference< css::frame::XFrame > & | rFrame, | ||
const MenuOrToolMenuButton & | rMenuButton, | ||
TopLevelParentFunction | aTopLevelParentFunction, | ||
ColorSelectFunction | aColorSelectFunction | ||
) |
Definition at line 2015 of file tbcontrl.cxx.
References WeldToolbarPopup::AddStatusListener(), EditResId(), SvxColorValueSet::getColumnCount(), SvxColorValueSet::getMaxRowCount(), Size::Height(), HID_POPUP_COLOR, HID_POPUP_COLOR_CTRL, LINK, WeldToolbarPopup::m_xTopLevel, maCommand, mxAutomaticSeparator, mxButtonAutoColor, mxButtonNoneColor, mxButtonPicker, mxColorSet, mxPaletteListBox, mxPaletteManager, mxRecentColorSet, SvxResId(), theSlotId, WB_3DLOOK, WB_FLATVALUESET, WB_ITEMBORDER, WB_NO_DIRECTSELECT, WB_TABSTOP, and Size::Width().
|
overridevirtual |
Definition at line 2137 of file tbcontrl.cxx.
|
private |
|
private |
References GrabFocus.
|
private |
|
private |
|
private |
Definition at line 2251 of file tbcontrl.cxx.
References theSlotId.
Referenced by GetSelectEntryColor().
NamedColor ColorWindow::GetSelectEntryColor | ( | ) | const |
Definition at line 2196 of file tbcontrl.cxx.
References GetAutoColor(), GetSelectEntryColor(), mpDefaultButton, mxButtonNoneColor, mxColorSet, and mxRecentColorSet.
Referenced by GetSelectEntryColor().
|
staticprivate |
Definition at line 2141 of file tbcontrl.cxx.
References ValueSet::GetItemColor(), ValueSet::GetItemText(), and ValueSet::GetSelectedItemId().
Referenced by ColorListBox::SelectEntry().
|
overridevirtual |
Implements WeldToolbarPopup.
Definition at line 2124 of file tbcontrl.cxx.
References weld::Widget::grab_focus(), mpDefaultButton, and mxColorSet.
Referenced by IMPL_LINK().
bool ColorWindow::IsNoSelection | ( | ) | const |
Definition at line 2296 of file tbcontrl.cxx.
References mxButtonAutoColor, mxButtonNoneColor, mxColorSet, and mxRecentColorSet.
void ColorWindow::SelectEntry | ( | const Color & | rColor | ) |
Definition at line 2370 of file tbcontrl.cxx.
References Color::AsRGBHexString(), and SelectEntry().
void ColorWindow::SelectEntry | ( | const NamedColor & | rColor | ) |
Definition at line 2335 of file tbcontrl.cxx.
References COL_NONE_COLOR, Color::IsFullyTransparent(), NamedColor::m_aColor, NamedColor::m_aName, mpDefaultButton, mxButtonAutoColor, mxButtonNoneColor, mxColorSet, mxPaletteManager, mxRecentColorSet, SelectValueSetEntry(), and SetNoSelection().
Referenced by SelectEntry(), ColorListBox::SelectEntry(), and statusChanged().
|
staticprivate |
Definition at line 2322 of file tbcontrl.cxx.
References ValueSet::GetItemColor(), ValueSet::GetItemCount(), i, and ValueSet::SelectItem().
Referenced by SelectEntry().
void ColorWindow::SetNoSelection | ( | ) |
Definition at line 2289 of file tbcontrl.cxx.
References mpDefaultButton, mxColorSet, and mxRecentColorSet.
Referenced by SelectEntry().
void ColorWindow::ShowNoneButton | ( | ) |
Definition at line 2132 of file tbcontrl.cxx.
References mxButtonNoneColor.
|
overridevirtual |
Reimplemented from WeldToolbarPopup.
Definition at line 2305 of file tbcontrl.cxx.
References ColorStatus::GetColor(), mrColorStatus, mxColorSet, mxPaletteManager, SelectEntry(), and ColorStatus::statusChanged().
|
private |
Definition at line 89 of file colorwindow.hxx.
|
private |
Definition at line 84 of file colorwindow.hxx.
Referenced by ColorWindow().
|
private |
Definition at line 85 of file colorwindow.hxx.
|
private |
Definition at line 88 of file colorwindow.hxx.
|
private |
Definition at line 100 of file colorwindow.hxx.
Referenced by GetSelectEntryColor(), GrabFocus(), SelectEntry(), and SetNoSelection().
|
private |
Definition at line 87 of file colorwindow.hxx.
Referenced by statusChanged().
|
private |
Definition at line 97 of file colorwindow.hxx.
Referenced by ColorWindow().
|
private |
Definition at line 94 of file colorwindow.hxx.
Referenced by ColorWindow(), IsNoSelection(), and SelectEntry().
|
private |
Definition at line 95 of file colorwindow.hxx.
Referenced by ColorWindow(), GetSelectEntryColor(), IsNoSelection(), SelectEntry(), and ShowNoneButton().
|
private |
Definition at line 96 of file colorwindow.hxx.
Referenced by ColorWindow().
|
private |
Definition at line 91 of file colorwindow.hxx.
Referenced by ColorWindow(), GetSelectEntryColor(), GrabFocus(), IsNoSelection(), SelectEntry(), SetNoSelection(), and statusChanged().
|
private |
Definition at line 98 of file colorwindow.hxx.
|
private |
Definition at line 93 of file colorwindow.hxx.
Referenced by ColorWindow().
|
private |
Definition at line 86 of file colorwindow.hxx.
Referenced by ColorWindow(), SelectEntry(), and statusChanged().
|
private |
Definition at line 92 of file colorwindow.hxx.
Referenced by ColorWindow(), GetSelectEntryColor(), IsNoSelection(), SelectEntry(), and SetNoSelection().
|
private |
Definition at line 99 of file colorwindow.hxx.
|
private |
Definition at line 83 of file colorwindow.hxx.
Referenced by ColorWindow(), and GetAutoColor().