10#ifndef INCLUDED_SVX_COLORBOX_HXX
11#define INCLUDED_SVX_COLORBOX_HXX
47 void createColorWindow();
48 void LockWidthRequest(
int nWidthRequest);
49 int CalcBestWidthRequest();
63 void SetSlotId(sal_uInt16 nSlotId,
bool bShowNoneButton =
false);
70 void SelectEntry(
const Color& rColor);
73 bool IsNoSelection()
const {
return getColorWindow()->IsNoSelection(); }
78 void EnsurePaletteManager();
80 void SaveValue() { m_aSaveColor = GetSelectEntryColor(); }
83 void set_sensitive(
bool sensitive) { m_xButton->set_sensitive(sensitive); }
85 void show() { m_xButton->show(); }
86 void hide() { m_xButton->hide(); }
87 void set_visible(
bool bShow) { m_xButton->set_visible(bShow); }
88 void set_help_id(
const OUString& rHelpId) { m_xButton->set_help_id(rHelpId); }
91 m_xButton->connect_focus_in(rLink);
95 m_xButton->connect_focus_out(rLink);
std::unique_ptr< ColorWindow > m_xColorWindow
bool get_sensitive() const
Color const & GetSelectEntryColor() const
std::unique_ptr< weld::MenuButton > m_xButton
void SetSelectHdl(const Link< ColorListBox &, void > &rLink)
Link< ColorListBox &, void > m_aSelectedLink
void set_visible(bool bShow)
NamedColor m_aSelectedColor
bool IsValueChangedFromSaved() const
ColorStatus m_aColorStatus
NamedColor GetSelectedEntry() const
void connect_focus_in(const Link< weld::Widget &, void > &rLink)
ListBoxColorWrapper m_aColorWrapper
bool IsNoSelection() const
weld::MenuButton & get_widget()
void connect_focus_out(const Link< weld::Widget &, void > &rLink)
TopLevelParentFunction m_aTopLevelParentFunction
void set_sensitive(bool sensitive)
void SetAutoDisplayColor(const Color &rColor)
Color m_aAutoDisplayColor
DECL_DLLPRIVATE_LINK(ToggleHdl, weld::Toggleable &, void)
void set_help_id(const OUString &rHelpId)
std::shared_ptr< PaletteManager > m_xPaletteManager
const NamedColor & GetSelectedEntryThemedColor() const
ListBoxColorWrapper(ColorListBox *pControl)
void operator()(const OUString &rCommand, const NamedColor &rColor)
std::function< weld::Window *()> TopLevelParentFunction
#define SVXCORE_DLLPUBLIC