19 #ifndef INCLUDED_SVX_PALETTEMANAGER_HXX
20 #define INCLUDED_SVX_PALETTEMANAGER_HXX
23 #include <rtl/ustring.hxx>
32 namespace svx {
class ToolboxButtonColorUpdaterBase; }
60 std::vector<OUString> GetPaletteList();
61 void SetPalette( sal_Int32 nPos );
62 sal_Int32 GetPalette()
const;
64 OUString GetPaletteName();
65 OUString GetSelectedPalettePath();
69 void AddRecentColor(
const Color& rRecentColor,
const OUString& rColorName,
bool bFront =
true);
72 void PopupColorPicker(
weld::Window* pParent,
const OUString& aCommand,
const Color& rInitialColor);
76 bool IsThemePaletteSelected()
const;
78 static void GetThemeIndexLumModOff(sal_uInt16 nItemId, sal_Int16& rThemeIndex,
79 sal_Int16& rLumMod, sal_Int16& rLumOff);
84 #endif // INCLUDED_SVX_PALETTEMANAGER_HXX
A color with an optional name and other theming-related properties.
svx::ToolboxButtonColorUpdaterBase * mpBtnUpdater
sal_Int32 GetPaletteCount() const
const sal_uInt16 mnMaxRecentColors
ColorSelectFunction maColorSelectFunction
std::deque< NamedColor > maRecentColors
sal_uInt16 mnCurrentPalette
#define SVXCORE_DLLPUBLIC
std::vector< std::unique_ptr< Palette > > m_Palettes
sal_uInt16 mnNumOfPalettes
std::unique_ptr< SvColorDialog > m_pColorDlg
std::function< void(const OUString &, const svx::NamedThemedColor &)> ColorSelectFunction