summaryrefslogtreecommitdiff
path: root/include/svx/PaletteManager.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-28 13:37:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-11-04 17:14:26 +0000
commit43bc3031483d172eccd72c3804e2d4fc2ef37de4 (patch)
tree991d98e8e61fae47ada28ba7a0b02e1d6c8e443f /include/svx/PaletteManager.hxx
parent44523738f094ff3987e85ea0c47b8c636bbe5786 (diff)
unify color selectors
Note: this removes the use of auto-color from writer's asian text grid, because its always invisible as far as I can see in practice. Change-Id: Ie850790d740a4d56c43015e493e093678cef3b4e
Diffstat (limited to 'include/svx/PaletteManager.hxx')
-rw-r--r--include/svx/PaletteManager.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/svx/PaletteManager.hxx b/include/svx/PaletteManager.hxx
index c527b85f0f88..2347f0f65ef5 100644
--- a/include/svx/PaletteManager.hxx
+++ b/include/svx/PaletteManager.hxx
@@ -48,11 +48,10 @@ class SVX_DLLPUBLIC PaletteManager
XColorListRef pColorList;
Color mLastColor;
- typedef std::pair<Color, OUString> color_and_name;
- std::deque<color_and_name> maRecentColors;
+ std::deque<NamedColor> maRecentColors;
std::vector<std::unique_ptr<Palette>> m_Palettes;
- std::function<void(const OUString&, const Color&)> maColorSelectFunction;
+ std::function<void(const OUString&, const NamedColor&)> maColorSelectFunction;
css::uno::Reference < css::uno::XComponentContext > m_context;
public:
PaletteManager();
@@ -74,14 +73,14 @@ public:
const Color& GetLastColor();
void SetLastColor(const Color& rLastColor);
- void AddRecentColor(const Color& rRecentColor, const OUString& rColorName);
+ void AddRecentColor(const Color& rRecentColor, const OUString& rColorName, bool bFront = true);
void SetBtnUpdater(svx::ToolboxButtonColorUpdater* pBtnUpdater);
void PopupColorPicker(const OUString& aCommand);
- void SetColorSelectFunction(const std::function<void(const OUString&, const Color&)>& aColorSelectFunction);
+ void SetColorSelectFunction(const std::function<void(const OUString&, const NamedColor&)>& aColorSelectFunction);
- static void DispatchColorCommand(const OUString& aCommand, const Color& rColor);
+ static void DispatchColorCommand(const OUString& aCommand, const NamedColor& rColor);
};
#endif // INCLUDED_SVX_PALETTEMANAGER_HXX