summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/colorwindow.hxx
diff options
context:
space:
mode:
authorKrisztian Pinter <pin.terminator@gmail.com>2014-07-03 18:47:10 +0200
committerKrisztian Pinter <pin.terminator@gmail.com>2014-07-25 17:14:12 +0200
commit0ac41beac1495e86b103889ffa8d2ba6bf64ddcd (patch)
tree8693979221a9343754b50d58a90666d53942faf3 /svx/source/tbxctrls/colorwindow.hxx
parent1cff66591f531f2acc40a4400c704f8708d8027d (diff)
Add PaletteManager, refactor palette code
Change-Id: I7e30fc895834318514b51bc648d32aa6d297bfae
Diffstat (limited to 'svx/source/tbxctrls/colorwindow.hxx')
-rw-r--r--svx/source/tbxctrls/colorwindow.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/tbxctrls/colorwindow.hxx b/svx/source/tbxctrls/colorwindow.hxx
index c6999860d535..5a700c7297a8 100644
--- a/svx/source/tbxctrls/colorwindow.hxx
+++ b/svx/source/tbxctrls/colorwindow.hxx
@@ -29,6 +29,7 @@
#include <rtl/ustring.hxx>
#include <com/sun/star/frame/XFrame.hpp>
#include <svx/SvxColorValueSet.hxx>
+#include <svx/PaletteManager.hxx>
// class SvxColorWindow_Impl --------------------------------------------------
@@ -43,15 +44,15 @@ private:
SvxColorValueSet aColorSet;
PushButton aButtonLeft;
PushButton aButtonRight;
+ FixedText aPaletteName;
OUString maCommand;
Link maSelectedLink;
const sal_uInt16 nNavButtonWidth;
const sal_uInt16 nNavButtonHeight;
- sal_uInt16& rnCurrentPalette;
- sal_uInt16 nNumOfPalettes;
+ PaletteManager& mrPaletteManager;
- void ReloadColorSet();
+ void Update();
DECL_LINK( SelectHdl, void * );
DECL_LINK( StepLeftClickHdl, void * );
@@ -63,7 +64,7 @@ protected:
public:
SvxColorWindow_Impl( const OUString& rCommand,
- sal_uInt16& rnCurrentPalette_,
+ PaletteManager& rPaletteManager,
sal_uInt16 nSlotId,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
const OUString& rWndTitle,