LibreOffice Module svx (master)
1
|
#include <colorwindow.hxx>
Public Member Functions | |
ColorWindow (const OUString &rCommand, std::shared_ptr< PaletteManager > const &rPaletteManager, ColorStatus &rColorStatus, sal_uInt16 nSlotId, const css::uno::Reference< css::frame::XFrame > &rFrame, weld::Window *pParentWindow, const MenuOrToolMenuButton &rMenuButton, ColorSelectFunction const &rColorSelectFunction) | |
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 |
void | SetSelectedHdl (const Link< const NamedColor &, void > &rLink) |
virtual void | GrabFocus () override |
![]() | |
WeldToolbarPopup (const css::uno::Reference< css::frame::XFrame > &rFrame, weld::Widget *pParent, const OUString &rUIFile, const OString &rId) | |
virtual | ~WeldToolbarPopup () |
weld::Container * | getTopLevel () |
weld::Container * | getContainer () |
void | AddStatusListener (const OUString &rCommandURL) |
Private Member Functions | |
DECL_LINK (SelectHdl, ValueSet *, void) | |
DECL_LINK (SelectPaletteHdl, weld::ComboBox &, void) | |
DECL_LINK (AutoColorClickHdl, weld::Button &, void) | |
DECL_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 |
weld::Window * | mpParentWindow |
MenuOrToolMenuButton | maMenuButton |
std::shared_ptr< PaletteManager > | mxPaletteManager |
ColorStatus & | mrColorStatus |
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 |
Link< const NamedColor &, void > | maSelectedLink |
Additional Inherited Members | |
![]() | |
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 79 of file colorwindow.hxx.
ColorWindow::ColorWindow | ( | const OUString & | rCommand, |
std::shared_ptr< PaletteManager > const & | rPaletteManager, | ||
ColorStatus & | rColorStatus, | ||
sal_uInt16 | nSlotId, | ||
const css::uno::Reference< css::frame::XFrame > & | rFrame, | ||
weld::Window * | pParentWindow, | ||
const MenuOrToolMenuButton & | rMenuButton, | ||
ColorSelectFunction const & | rColorSelectFunction | ||
) |
Definition at line 1758 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 1880 of file tbcontrl.cxx.
|
private |
|
private |
|
private |
|
private |
Definition at line 1979 of file tbcontrl.cxx.
References theSlotId.
Referenced by GetSelectEntryColor().
|
staticprivate |
Definition at line 1884 of file tbcontrl.cxx.
References ValueSet::GetItemColor(), ValueSet::GetItemText(), and ValueSet::GetSelectedItemId().
Referenced by ColorListBox::SelectEntry().
NamedColor ColorWindow::GetSelectEntryColor | ( | ) | const |
Definition at line 1937 of file tbcontrl.cxx.
References GetAutoColor(), mpDefaultButton, mxButtonNoneColor, mxColorSet, and mxRecentColorSet.
|
overridevirtual |
Implements WeldToolbarPopup.
Definition at line 1867 of file tbcontrl.cxx.
References weld::Widget::grab_focus(), mpDefaultButton, and mxColorSet.
bool ColorWindow::IsNoSelection | ( | ) | const |
Definition at line 2024 of file tbcontrl.cxx.
References mxButtonAutoColor, mxButtonNoneColor, mxColorSet, and mxRecentColorSet.
void ColorWindow::SelectEntry | ( | const NamedColor & | rColor | ) |
Definition at line 2063 of file tbcontrl.cxx.
References COL_AUTO(), COL_NONE_COLOR, COL_TRANSPARENT(), mpDefaultButton, mxButtonAutoColor, mxButtonNoneColor, mxColorSet, mxPaletteManager, mxRecentColorSet, SelectValueSetEntry(), and SetNoSelection().
Referenced by ColorListBox::SelectEntry(), SelectEntry(), and statusChanged().
Definition at line 2098 of file tbcontrl.cxx.
References Color::AsRGBHexString(), and SelectEntry().
|
staticprivate |
Definition at line 2050 of file tbcontrl.cxx.
References ValueSet::GetItemColor(), ValueSet::GetItemCount(), and ValueSet::SelectItem().
Referenced by SelectEntry().
void ColorWindow::SetNoSelection | ( | ) |
Definition at line 2017 of file tbcontrl.cxx.
References mpDefaultButton, mxColorSet, and mxRecentColorSet.
Referenced by SelectEntry().
|
inline |
Definition at line 129 of file colorwindow.hxx.
void ColorWindow::ShowNoneButton | ( | ) |
Definition at line 1875 of file tbcontrl.cxx.
References mxButtonNoneColor.
|
overridevirtual |
Reimplemented from WeldToolbarPopup.
Definition at line 2033 of file tbcontrl.cxx.
References ColorStatus::GetColor(), mrColorStatus, mxColorSet, mxPaletteManager, SelectEntry(), and ColorStatus::statusChanged().
|
private |
Definition at line 88 of file colorwindow.hxx.
|
private |
Definition at line 83 of file colorwindow.hxx.
Referenced by ColorWindow().
|
private |
Definition at line 85 of file colorwindow.hxx.
|
private |
Definition at line 101 of file colorwindow.hxx.
|
private |
Definition at line 99 of file colorwindow.hxx.
Referenced by GetSelectEntryColor(), GrabFocus(), SelectEntry(), and SetNoSelection().
|
private |
Definition at line 84 of file colorwindow.hxx.
|
private |
Definition at line 87 of file colorwindow.hxx.
Referenced by statusChanged().
|
private |
Definition at line 96 of file colorwindow.hxx.
Referenced by ColorWindow().
|
private |
Definition at line 93 of file colorwindow.hxx.
Referenced by ColorWindow(), IsNoSelection(), and SelectEntry().
|
private |
Definition at line 94 of file colorwindow.hxx.
Referenced by ColorWindow(), GetSelectEntryColor(), IsNoSelection(), SelectEntry(), and ShowNoneButton().
|
private |
Definition at line 95 of file colorwindow.hxx.
Referenced by ColorWindow().
|
private |
Definition at line 90 of file colorwindow.hxx.
Referenced by ColorWindow(), GetSelectEntryColor(), GrabFocus(), IsNoSelection(), SelectEntry(), SetNoSelection(), and statusChanged().
|
private |
Definition at line 97 of file colorwindow.hxx.
|
private |
Definition at line 92 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 91 of file colorwindow.hxx.
Referenced by ColorWindow(), GetSelectEntryColor(), IsNoSelection(), SelectEntry(), and SetNoSelection().
|
private |
Definition at line 98 of file colorwindow.hxx.
|
private |
Definition at line 82 of file colorwindow.hxx.
Referenced by ColorWindow(), and GetAutoColor().