LibreOffice Module svx (master)
1
|
#include <colorbox.hxx>
Public Member Functions | |
ColorListBox (std::unique_ptr< weld::MenuButton > pControl, weld::Window *pTopLevelWindow) | |
~ColorListBox () | |
void | SetSelectHdl (const Link< ColorListBox &, void > &rLink) |
void | SetSlotId (sal_uInt16 nSlotId, bool bShowNoneButton=false) |
Color const & | GetSelectEntryColor () const |
NamedColor const & | GetSelectedEntry () 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 OString &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 () |
ColorWindow * | getColorWindow () const |
DECL_LINK (ToggleHdl, weld::ToggleButton &, void) | |
Private Attributes | |
std::unique_ptr< ColorWindow > | m_xColorWindow |
std::unique_ptr< weld::MenuButton > | m_xButton |
weld::Window * | m_pTopLevel |
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 |
ColorStatus | m_aColorStatus |
Friends | |
class | ListBoxColorWrapper |
Definition at line 29 of file colorbox.hxx.
ColorListBox::ColorListBox | ( | std::unique_ptr< weld::MenuButton > | pControl, |
weld::Window * | pTopLevelWindow | ||
) |
Definition at line 3831 of file tbcontrl.cxx.
References LINK, LockWidthRequest(), m_aSelectedColor, m_nSlotId, m_xButton, and ShowPreview().
ColorListBox::~ColorListBox | ( | ) |
Definition at line 3851 of file tbcontrl.cxx.
|
inline |
Definition at line 85 of file colorbox.hxx.
|
inline |
Definition at line 89 of file colorbox.hxx.
|
private |
Definition at line 3862 of file tbcontrl.cxx.
References SfxViewFrame::Current(), EnsurePaletteManager(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), m_aColorStatus, m_aColorWrapper, m_aSelectedColor, m_bShowNoneButton, m_nSlotId, m_pTopLevel, m_xButton, m_xColorWindow, m_xPaletteManager, SetNoSelection(), and xFrame.
Referenced by getColorWindow(), and SetSlotId().
|
private |
void ColorListBox::EnsurePaletteManager | ( | ) |
Definition at line 3811 of file tbcontrl.cxx.
References m_aColorWrapper, and m_xPaletteManager.
Referenced by createColorWindow().
|
inline |
Definition at line 80 of file colorbox.hxx.
|
inline |
Definition at line 93 of file colorbox.hxx.
|
private |
Definition at line 3855 of file tbcontrl.cxx.
References createColorWindow(), and m_xColorWindow.
Referenced by SelectEntry().
|
inline |
Definition at line 63 of file colorbox.hxx.
|
inline |
Definition at line 62 of file colorbox.hxx.
Referenced by Svx3DWin::ClickLight(), IMPL_LINK(), and Svx3DWin::Update().
|
inline |
Definition at line 82 of file colorbox.hxx.
|
inline |
Definition at line 69 of file colorbox.hxx.
|
inline |
Definition at line 77 of file colorbox.hxx.
|
private |
Definition at line 3919 of file tbcontrl.cxx.
References XColorList::CreateStdColorList(), XPropertyEntry::GetName(), m_xButton, ShowPreview(), and Width.
Referenced by ColorListBox().
|
inline |
Definition at line 76 of file colorbox.hxx.
|
private |
Definition at line 3908 of file tbcontrl.cxx.
References Link< class, class >::Call(), Link< class, class >::IsSet(), m_aSelectedColor, m_aSelectedLink, and ShowPreview().
Referenced by ListBoxColorWrapper::operator()().
void ColorListBox::SelectEntry | ( | const NamedColor & | rColor | ) |
Definition at line 3887 of file tbcontrl.cxx.
References getColorWindow(), ColorWindow::GetSelectEntryColor(), m_aSelectedColor, ColorWindow::SelectEntry(), and ShowPreview().
Referenced by Svx3DWin::LBSelectColor().
Definition at line 3900 of file tbcontrl.cxx.
References getColorWindow(), ColorWindow::GetSelectEntryColor(), m_aSelectedColor, ColorWindow::SelectEntry(), and ShowPreview().
|
inline |
Definition at line 84 of file colorbox.hxx.
|
inline |
Definition at line 79 of file colorbox.hxx.
Referenced by IMPL_LINK().
|
inline |
Definition at line 83 of file colorbox.hxx.
Definition at line 71 of file colorbox.hxx.
|
inline |
Definition at line 68 of file colorbox.hxx.
Referenced by createColorWindow(), and Svx3DWin::LBSelectColor().
|
inline |
Definition at line 58 of file colorbox.hxx.
void ColorListBox::SetSlotId | ( | sal_uInt16 | nSlotId, |
bool | bShowNoneButton = false |
||
) |
Definition at line 3820 of file tbcontrl.cxx.
References createColorWindow(), m_aSelectedColor, m_bShowNoneButton, m_nSlotId, m_xButton, m_xColorWindow, and ShowPreview().
|
inline |
Definition at line 81 of file colorbox.hxx.
Referenced by IMPL_LINK().
void ColorListBox::ShowPreview | ( | const NamedColor & | rColor | ) |
Definition at line 3938 of file tbcontrl.cxx.
References COL_AUTO(), COL_NONE_COLOR, COL_WHITE, StyleSettings::GetDisableColor(), StyleSettings::GetListBoxPreviewDefaultPixelSize(), Application::GetSettings(), tools::Rectangle::GetSize(), AllSettings::GetStyleSettings(), m_aAutoDisplayColor, m_bShowNoneButton, m_xButton, Point, and tools::Rectangle::TopLeft().
Referenced by ColorListBox(), LockWidthRequest(), Selected(), SelectEntry(), and SetSlotId().
|
friend |
Definition at line 32 of file colorbox.hxx.
|
private |
Definition at line 38 of file colorbox.hxx.
Referenced by ShowPreview().
|
private |
Definition at line 44 of file colorbox.hxx.
Referenced by createColorWindow().
|
private |
Definition at line 37 of file colorbox.hxx.
Referenced by createColorWindow(), and EnsurePaletteManager().
|
private |
Definition at line 39 of file colorbox.hxx.
|
private |
Definition at line 40 of file colorbox.hxx.
Referenced by ColorListBox(), createColorWindow(), Selected(), SelectEntry(), and SetSlotId().
|
private |
Definition at line 36 of file colorbox.hxx.
Referenced by Selected().
|
private |
Definition at line 42 of file colorbox.hxx.
Referenced by createColorWindow(), SetSlotId(), and ShowPreview().
|
private |
Definition at line 41 of file colorbox.hxx.
Referenced by ColorListBox(), createColorWindow(), and SetSlotId().
|
private |
Definition at line 35 of file colorbox.hxx.
Referenced by createColorWindow().
|
private |
Definition at line 34 of file colorbox.hxx.
Referenced by 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 43 of file colorbox.hxx.
Referenced by createColorWindow(), and EnsurePaletteManager().