|
LibreOffice Module svx (master) 1
|
#include <colorbox.hxx>
Public Member Functions | |
| ColorListBox (std::unique_ptr< weld::MenuButton > pControl, TopLevelParentFunction aTopLevelParentFunction, const ColorListBox *pCache=nullptr) | |
| ~ColorListBox () | |
| void | SetSelectHdl (const Link< ColorListBox &, void > &rLink) |
| void | SetSlotId (sal_uInt16 nSlotId, bool bShowNoneButton=false) |
| Color const & | GetSelectEntryColor () const |
| NamedColor | GetSelectedEntry () const |
| const NamedColor & | GetSelectedEntryThemedColor () const |
| void | SelectEntry (const NamedColor &rColor) |
| void | SelectEntry (const Color &rColor) |
| void | SetNoSelection () |
| bool | IsNoSelection () const |
| void | SetAutoDisplayColor (const Color &rColor) |
| void | ShowPreview (const NamedColor &rColor) |
| void | EnsurePaletteManager () |
| void | SaveValue () |
| bool | IsValueChangedFromSaved () const |
| void | set_sensitive (bool sensitive) |
| bool | get_sensitive () const |
| void | show () |
| void | hide () |
| void | set_visible (bool bShow) |
| void | set_help_id (const OUString &rHelpId) |
| void | connect_focus_in (const Link< weld::Widget &, void > &rLink) |
| void | connect_focus_out (const Link< weld::Widget &, void > &rLink) |
| weld::MenuButton & | get_widget () |
Private Member Functions | |
| void | Selected (const NamedColor &rNamedColor) |
| void | createColorWindow () |
| void | LockWidthRequest (int nWidthRequest) |
| int | CalcBestWidthRequest () |
| ColorWindow * | getColorWindow () const |
| DECL_DLLPRIVATE_LINK (ToggleHdl, weld::Toggleable &, void) | |
Private Attributes | |
| std::unique_ptr< ColorWindow > | m_xColorWindow |
| std::unique_ptr< weld::MenuButton > | m_xButton |
| Link< ColorListBox &, void > | m_aSelectedLink |
| ListBoxColorWrapper | m_aColorWrapper |
| Color | m_aAutoDisplayColor |
| Color | m_aSaveColor |
| NamedColor | m_aSelectedColor |
| sal_uInt16 | m_nSlotId |
| bool | m_bShowNoneButton |
| std::shared_ptr< PaletteManager > | m_xPaletteManager |
| TopLevelParentFunction | m_aTopLevelParentFunction |
| ColorStatus | m_aColorStatus |
Friends | |
| class | ListBoxColorWrapper |
Definition at line 29 of file colorbox.hxx.
| ColorListBox::ColorListBox | ( | std::unique_ptr< weld::MenuButton > | pControl, |
| TopLevelParentFunction | aTopLevelParentFunction, | ||
| const ColorListBox * | pCache = nullptr |
||
| ) |
Definition at line 4268 of file tbcontrl.cxx.
References CalcBestWidthRequest(), LINK, LockWidthRequest(), m_aColorWrapper, m_aSelectedColor, m_nSlotId, m_xButton, m_xPaletteManager, and ShowPreview().
| ColorListBox::~ColorListBox | ( | ) |
Definition at line 4301 of file tbcontrl.cxx.
|
private |
Definition at line 4369 of file tbcontrl.cxx.
References XColorList::CreateStdColorList(), XPropertyEntry::GetName(), i, NamedColor::m_aName, m_xButton, and ShowPreview().
Referenced by ColorListBox().
|
inline |
Definition at line 89 of file colorbox.hxx.
|
inline |
Definition at line 93 of file colorbox.hxx.
|
private |
Definition at line 4312 of file tbcontrl.cxx.
References SfxViewFrame::Current(), EnsurePaletteManager(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), m_aColorStatus, m_aColorWrapper, m_aSelectedColor, m_aTopLevelParentFunction, m_bShowNoneButton, m_nSlotId, m_xButton, m_xColorWindow, m_xPaletteManager, SetNoSelection(), and xFrame.
Referenced by getColorWindow(), and SetSlotId().
|
private |
| void ColorListBox::EnsurePaletteManager | ( | ) |
Definition at line 4248 of file tbcontrl.cxx.
References m_aColorWrapper, and m_xPaletteManager.
Referenced by createColorWindow().
|
inline |
Definition at line 84 of file colorbox.hxx.
|
inline |
Definition at line 97 of file colorbox.hxx.
|
private |
Definition at line 4305 of file tbcontrl.cxx.
References createColorWindow(), and m_xColorWindow.
Referenced by SelectEntry().
|
inline |
Definition at line 66 of file colorbox.hxx.
|
inline |
Definition at line 67 of file colorbox.hxx.
|
inline |
Definition at line 65 of file colorbox.hxx.
References NamedColor::m_aColor.
Referenced by Svx3DWin::ClickLight(), IMPL_LINK(), and Svx3DWin::Update().
|
inline |
Definition at line 86 of file colorbox.hxx.
|
inline |
Definition at line 73 of file colorbox.hxx.
|
inline |
Definition at line 81 of file colorbox.hxx.
|
private |
|
inline |
Definition at line 80 of file colorbox.hxx.
|
private |
Definition at line 4358 of file tbcontrl.cxx.
References Link< typename Arg, typename Ret >::Call(), Link< typename Arg, typename Ret >::IsSet(), m_aSelectedColor, m_aSelectedLink, and ShowPreview().
Referenced by ListBoxColorWrapper::operator()().
| void ColorListBox::SelectEntry | ( | const Color & | rColor | ) |
Definition at line 4350 of file tbcontrl.cxx.
References getColorWindow(), ColorWindow::GetSelectEntryColor(), m_aSelectedColor, ColorWindow::SelectEntry(), and ShowPreview().
| void ColorListBox::SelectEntry | ( | const NamedColor & | rColor | ) |
Definition at line 4337 of file tbcontrl.cxx.
References getColorWindow(), ColorWindow::GetSelectEntryColor(), NamedColor::m_aColor, NamedColor::m_aName, m_aSelectedColor, SelectEntry(), ColorWindow::SelectEntry(), ShowPreview(), and o3tl::trim().
Referenced by Svx3DWin::LBSelectColor(), and SelectEntry().
|
inline |
Definition at line 88 of file colorbox.hxx.
|
inline |
Definition at line 83 of file colorbox.hxx.
Referenced by IMPL_LINK().
|
inline |
Definition at line 87 of file colorbox.hxx.
|
inline |
Definition at line 75 of file colorbox.hxx.
|
inline |
Definition at line 72 of file colorbox.hxx.
Referenced by createColorWindow(), and Svx3DWin::LBSelectColor().
|
inline |
Definition at line 61 of file colorbox.hxx.
| void ColorListBox::SetSlotId | ( | sal_uInt16 | nSlotId, |
| bool | bShowNoneButton = false |
||
| ) |
Definition at line 4257 of file tbcontrl.cxx.
References createColorWindow(), m_aSelectedColor, m_bShowNoneButton, m_nSlotId, m_xButton, m_xColorWindow, and ShowPreview().
|
inline |
Definition at line 85 of file colorbox.hxx.
Referenced by IMPL_LINK().
| void ColorListBox::ShowPreview | ( | const NamedColor & | rColor | ) |
Definition at line 4393 of file tbcontrl.cxx.
References COL_AUTO(), COL_NONE_COLOR, COL_WHITE(), VclPtr< class reference_type >::get(), StyleSettings::GetDisableColor(), StyleSettings::GetListBoxPreviewDefaultPixelSize(), Application::GetSettings(), tools::Rectangle::GetSize(), AllSettings::GetStyleSettings(), Size::Height(), m_aAutoDisplayColor, NamedColor::m_aColor, NamedColor::m_aName, m_bShowNoneButton, m_xButton, tools::Rectangle::TopLeft(), and Size::Width().
Referenced by CalcBestWidthRequest(), ColorListBox(), Selected(), SelectEntry(), and SetSlotId().
|
friend |
Definition at line 32 of file colorbox.hxx.
|
private |
Definition at line 37 of file colorbox.hxx.
Referenced by ShowPreview().
|
private |
Definition at line 44 of file colorbox.hxx.
Referenced by createColorWindow().
|
private |
Definition at line 36 of file colorbox.hxx.
Referenced by ColorListBox(), createColorWindow(), and EnsurePaletteManager().
|
private |
Definition at line 38 of file colorbox.hxx.
|
private |
Definition at line 39 of file colorbox.hxx.
Referenced by ColorListBox(), createColorWindow(), Selected(), SelectEntry(), and SetSlotId().
|
private |
Definition at line 35 of file colorbox.hxx.
Referenced by Selected().
|
private |
Definition at line 43 of file colorbox.hxx.
Referenced by createColorWindow().
|
private |
Definition at line 41 of file colorbox.hxx.
Referenced by createColorWindow(), SetSlotId(), and ShowPreview().
|
private |
Definition at line 40 of file colorbox.hxx.
Referenced by ColorListBox(), createColorWindow(), and SetSlotId().
|
private |
Definition at line 34 of file colorbox.hxx.
Referenced by CalcBestWidthRequest(), ColorListBox(), createColorWindow(), LockWidthRequest(), SetSlotId(), and ShowPreview().
|
private |
Definition at line 33 of file colorbox.hxx.
Referenced by createColorWindow(), getColorWindow(), and SetSlotId().
|
private |
Definition at line 42 of file colorbox.hxx.
Referenced by ColorListBox(), createColorWindow(), and EnsurePaletteManager().