summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/undostyl.hxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-09-20 12:47:49 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-09-20 12:47:49 +0000
commit250e66b85cb28483c7494fb21d14991f696f8665 (patch)
tree10a79c7adb43b7669f7f7c489f9002a52fdb0b76 /sc/source/ui/inc/undostyl.hxx
parentfe596c7ce54324e4f845ec51be29d6299a58f9b3 (diff)
INTEGRATION: CWS calc21 (1.2.122); FILE MERGED
2004/08/31 11:46:31 dr 1.2.122.1: #103832# apply page styles to several sheets
Diffstat (limited to 'sc/source/ui/inc/undostyl.hxx')
-rw-r--r--sc/source/ui/inc/undostyl.hxx26
1 files changed, 17 insertions, 9 deletions
diff --git a/sc/source/ui/inc/undostyl.hxx b/sc/source/ui/inc/undostyl.hxx
index 7f44e5a7b51a..f5d0b39b0789 100644
--- a/sc/source/ui/inc/undostyl.hxx
+++ b/sc/source/ui/inc/undostyl.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: undostyl.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: obo $ $Date: 2004-06-04 11:44:55 $
+ * last change: $Author: rt $ $Date: 2004-09-20 13:47:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -124,23 +124,31 @@ public:
class ScUndoApplyPageStyle: public ScSimpleUndo
{
-private:
- SCTAB nTab;
- String aOldStyle;
- String aNewStyle;
-
public:
TYPEINFO();
- ScUndoApplyPageStyle( ScDocShell* pDocSh, SCTAB nT,
- const String& rOld, const String& rNew );
+ ScUndoApplyPageStyle( ScDocShell* pDocSh, const String& rNewStyle );
virtual ~ScUndoApplyPageStyle();
+ void AddSheetAction( SCTAB nTab, const String& rOld );
+
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
+
+private:
+ struct ApplyStyleEntry
+ {
+ SCTAB mnTab;
+ String maOldStyle;
+ explicit ApplyStyleEntry( SCTAB nTab, const String& rOldStyle );
+ };
+ typedef ::std::vector< ApplyStyleEntry > ApplyStyleVec;
+
+ ApplyStyleVec maEntries;
+ String maNewStyle;
};