summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/colorwindow.hxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-04-02 13:14:25 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-04-02 13:14:25 +0000
commitd765ac695b618a8009bd4db8b8d7712aa7000105 (patch)
tree096fe6b3830ab16d94d85fdcf81299bc8ade9f16 /svx/source/tbxctrls/colorwindow.hxx
parent43edb843c46b11640a5cfbbca9e37c42376f4171 (diff)
INTEGRATION: CWS sj05 (1.1.2); FILE ADDED
2004/01/23 15:40:57 cl 1.1.2.1: #i20484# adding autoshape ui
Diffstat (limited to 'svx/source/tbxctrls/colorwindow.hxx')
-rw-r--r--svx/source/tbxctrls/colorwindow.hxx76
1 files changed, 76 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/colorwindow.hxx b/svx/source/tbxctrls/colorwindow.hxx
new file mode 100644
index 000000000000..42f0f7d33f26
--- /dev/null
+++ b/svx/source/tbxctrls/colorwindow.hxx
@@ -0,0 +1,76 @@
+//========================================================================
+// class SvxColorWindow_Impl --------------------------------------------------
+//========================================================================
+#ifndef __SVX_COLORWINDOW_HXX_
+#define __SVX_COLORWINDOW_HXX_
+
+#ifndef _SFXTBXCTRL_HXX
+#include <sfx2/tbxctrl.hxx>
+#endif
+#ifndef _VALUESET_HXX
+#include <vcl/valueset.hxx>
+#endif
+#ifndef _SFXLSTNER_HXX
+#include <svtools/lstner.hxx>
+#endif
+
+class SvxColorWindow_Impl : public SfxPopupWindow, public SfxListener
+{
+private:
+ const USHORT theSlotId;
+ ValueSet aColorSet;
+
+#if _SOLAR__PRIVATE
+ DECL_LINK( SelectHdl, void * );
+#endif
+
+protected:
+ virtual void Resize();
+ virtual BOOL Close();
+
+public:
+ SvxColorWindow_Impl( USHORT nId, USHORT nSlotId,
+ const String& rWndTitle,
+ SfxBindings& rBindings );
+ ~SvxColorWindow_Impl();
+ void StartSelection();
+
+ virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
+ const SfxHint& rHint, const TypeId& rHintType );
+ virtual void KeyInput( const KeyEvent& rKEvt );
+
+ virtual SfxPopupWindow* Clone() const;
+};
+
+//========================================================================
+// class SvxTbxButtonColorUpdater_Impl ----------------------------------------
+//========================================================================
+#define TBX_UPDATER_MODE_NONE 0x00
+#define TBX_UPDATER_MODE_CHAR_COLOR 0x01
+#define TBX_UPDATER_MODE_CHAR_BACKGROUND 0x02
+#define TBX_UPDATER_MODE_CHAR_COLOR_NEW 0x03
+
+class SvxTbxButtonColorUpdater_Impl
+{
+public:
+ SvxTbxButtonColorUpdater_Impl( USHORT nTbxBtnId,
+ ToolBox* ptrTbx, USHORT nMode = 0 );
+ ~SvxTbxButtonColorUpdater_Impl();
+
+ void Update( const Color& rColor );
+
+protected:
+ void DrawChar(VirtualDevice&, const Color&);
+
+private:
+ USHORT nDrawMode;
+ USHORT nBtnId;
+ ToolBox* pTbx;
+ Bitmap* pBtnBmp;
+ Color aCurColor;
+ Rectangle theUpdRect;
+ Size theBmpSize;
+ BOOL bWasHiContrastMode;
+};
+
+#endif