summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKrisztian Pinter <pin.terminator@gmail.com>2014-07-30 17:15:49 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2014-09-17 10:19:51 +0200
commit1bf3b9f2da8fe6e79e1e20d57784b55958ee3db4 (patch)
tree0fb1d4fcc50be8b274e7e4ecf33a5cb3db702dd4 /include
parentChange palette selection ComboBox to ListBox (diff)
downloadcore-1bf3b9f2da8fe6e79e1e20d57784b55958ee3db4.tar.gz
core-1bf3b9f2da8fe6e79e1e20d57784b55958ee3db4.zip
Make color picker apply color immediately
Change-Id: I38695a43ced63bd5207b631a072231d81aa7e0f9
Diffstat (limited to 'include')
-rw-r--r--include/svx/PaletteManager.hxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/svx/PaletteManager.hxx b/include/svx/PaletteManager.hxx
index 1bd0bd1fd39d..9d40d48426be 100644
--- a/include/svx/PaletteManager.hxx
+++ b/include/svx/PaletteManager.hxx
@@ -24,6 +24,14 @@
#include <rtl/ustring.hxx>
#include <svx/tbxcolorupdate.hxx>
+#include <tools/urlobj.hxx>
+#include <com/sun/star/util/XURLTransformer.hpp>
+#include <com/sun/star/util/URLTransformer.hpp>
+#include <com/sun/star/frame/XDispatch.hpp>
+#include <com/sun/star/frame/Desktop.hpp>
+#include <com/sun/star/frame/XDispatchProvider.hpp>
+#include <comphelper/processfactory.hxx>
+
class PaletteManager
{
sal_uInt16 mnNumOfPalettes;
@@ -48,7 +56,8 @@ public:
const Color& GetLastColor();
void SetLastColor(const Color& rLastColor);
void SetBtnUpdater(svx::ToolboxButtonColorUpdater* pBtnUpdater);
- void PopupColorPicker();
+ void PopupColorPicker(const OUString aCommand);
+ static void DispatchColorCommand(const OUString aCommand, const Color aColor);
};
#endif // INCLUDED_SVX_PALETTEMANAGER_HXX