diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-08-19 23:43:39 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-08-20 00:14:51 +0200 |
commit | cf7db8226240ca7f425cf649e164767988c80001 (patch) | |
tree | 69b6b2c983ea7f417d58c862636c9d510ff8d9b1 /include/svx/PaletteManager.hxx | |
parent | 6038ba92be0a4c821ffa29ed0512905e4b3cd8f8 (diff) |
handle new color picker correctly in chart sidebar
This implements the basics for that and implements it in the AreaPanel.
Change-Id: I6d9e5012bbcc2c953d478a09a839f35f2ef64c5b
Diffstat (limited to 'include/svx/PaletteManager.hxx')
-rw-r--r-- | include/svx/PaletteManager.hxx | 5 |
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); }; |