summaryrefslogtreecommitdiff
path: root/include/svx/PaletteManager.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svx/PaletteManager.hxx')
-rw-r--r--include/svx/PaletteManager.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/svx/PaletteManager.hxx b/include/svx/PaletteManager.hxx
index 7ad0cdb8ee86..561dcac43d93 100644
--- a/include/svx/PaletteManager.hxx
+++ b/include/svx/PaletteManager.hxx
@@ -50,6 +50,8 @@ class PaletteManager
std::deque<Color> maRecentColors;
std::vector<std::unique_ptr<Palette>> m_Palettes;
+ std::function<void(const OUString&, const Color&)> maColorSelectFunction;
+
public:
PaletteManager();
~PaletteManager();
@@ -69,6 +71,9 @@ public:
void SetBtnUpdater(svx::ToolboxButtonColorUpdater* pBtnUpdater);
void PopupColorPicker(const OUString& aCommand);
+
+ void SetColorSelectFunction(std::function<void(const OUString&, const Color&)> aColorSelectFunction);
+
static void DispatchColorCommand(const OUString& aCommand, const Color& rColor);
};