10 #ifndef INCLUDED_SVX_COLORBOX_HXX
11 #define INCLUDED_SVX_COLORBOX_HXX
47 void createColorWindow();
48 void LockWidthRequest();
61 void SetSlotId(sal_uInt16 nSlotId,
bool bShowNoneButton =
false);
68 void SelectEntry(
const Color& rColor);
71 bool IsNoSelection()
const {
return getColorWindow()->IsNoSelection(); }
76 void EnsurePaletteManager();
78 void SaveValue() { m_aSaveColor = GetSelectEntryColor(); }
81 void set_sensitive(
bool sensitive) { m_xButton->set_sensitive(sensitive); }
83 void show() { m_xButton->show(); }
84 void hide() { m_xButton->hide(); }
85 void set_visible(
bool bShow) { m_xButton->set_visible(bShow); }
86 void set_help_id(
const OString& rHelpId) { m_xButton->set_help_id(rHelpId); }
89 m_xButton->connect_focus_in(rLink);
93 m_xButton->connect_focus_out(rLink);
std::pair< Color, OUString > NamedColor
A color with an optional name and other theming-related properties.
void set_help_id(const OString &rHelpId)
bool IsNoSelection() const
void SetAutoDisplayColor(const Color &rColor)
NamedColor GetSelectedEntry() const
svx::NamedThemedColor m_aSelectedColor
bool get_sensitive() const
TopLevelParentFunction m_aTopLevelParentFunction
bool IsValueChangedFromSaved() const
void connect_focus_in(const Link< weld::Widget &, void > &rLink)
const svx::NamedThemedColor & GetSelectedEntryThemedColor() const
void operator()(const OUString &rCommand, const svx::NamedThemedColor &rColor)
void SetSelectHdl(const Link< ColorListBox &, void > &rLink)
std::function< weld::Window *()> TopLevelParentFunction
ColorStatus m_aColorStatus
weld::MenuButton & get_widget()
Color const & GetSelectEntryColor() const
ListBoxColorWrapper(ColorListBox *pControl)
std::unique_ptr< ColorWindow > m_xColorWindow
Color m_aAutoDisplayColor
void connect_focus_out(const Link< weld::Widget &, void > &rLink)
#define SVXCORE_DLLPUBLIC
std::shared_ptr< PaletteManager > m_xPaletteManager
Link< ColorListBox &, void > m_aSelectedLink
void set_sensitive(bool sensitive)
void set_visible(bool bShow)
ListBoxColorWrapper m_aColorWrapper
NamedColor ToNamedColor() const
#define DECL_DLLPRIVATE_LINK(Member, ArgType, RetType)
std::unique_ptr< weld::MenuButton > m_xButton