summaryrefslogtreecommitdiff
path: root/sd/source/ui/inc/fuformatpaintbrush.hxx
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2009-10-23 11:25:33 +0000
committerChristian Lippka <cl@openoffice.org>2009-10-23 11:25:33 +0000
commita7d2dd5d5dcfa2056b82856a0b5a42758000a689 (patch)
tree080b7f0bc2caa67a9f6f73689a4b6da6cacc3c1f /sd/source/ui/inc/fuformatpaintbrush.hxx
parent5e668fcbac328aa89b2be2997a6c3d0f861ed88f (diff)
#i57928# reworked formatpaintbrush feature to support more shapes and text selection
Diffstat (limited to 'sd/source/ui/inc/fuformatpaintbrush.hxx')
-rw-r--r--sd/source/ui/inc/fuformatpaintbrush.hxx29
1 files changed, 20 insertions, 9 deletions
diff --git a/sd/source/ui/inc/fuformatpaintbrush.hxx b/sd/source/ui/inc/fuformatpaintbrush.hxx
index 44b6548b50ce..c1d0fb9318ca 100644
--- a/sd/source/ui/inc/fuformatpaintbrush.hxx
+++ b/sd/source/ui/inc/fuformatpaintbrush.hxx
@@ -31,15 +31,19 @@
#ifndef SD_FU_FORMATPAINTBRUSH_HXX
#define SD_FU_FORMATPAINTBRUSH_HXX
-#include "fupoor.hxx"
+#include "futext.hxx"
// header for class SfxItemSet
#include <svtools/itemset.hxx>
+#include <boost/scoped_ptr.hpp>
+
+class SfxItemSet;
namespace sd {
-class FuFormatPaintBrush
- : public FuPoor
+class DrawViewShell;
+
+class FuFormatPaintBrush : public FuText
{
public:
TYPEINFO();
@@ -54,14 +58,21 @@ public:
virtual void Activate();
virtual void Deactivate();
+ static void GetMenuState( DrawViewShell& rDrawViewShell, SfxItemSet &rSet );
+ static bool CanCopyThisType( UINT32 nObjectInventor, UINT16 nObjectIdentifier );
+
private:
- FuFormatPaintBrush (
- ViewShell* pViewSh,
- ::sd::Window* pWin,
- ::sd::View* pView,
- SdDrawDocument* pDoc,
- SfxRequest& rReq);
+ FuFormatPaintBrush ( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq);
+
+ void DoExecute( SfxRequest& rReq );
+
+ bool HasContentForThisType( UINT32 nObjectInventor, UINT16 nObjectIdentifier ) const;
+ void Paste( bool, bool );
+
+ void implcancel();
+ ::boost::shared_ptr<SfxItemSet> mpItemSet;
+ bool mbPermanent;
};
} // end of namespace sd