diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-05 15:50:59 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-05 15:50:59 +0000 |
commit | 04181713c7a13e82d78cd0d2e6e3fe8fe5f3665e (patch) | |
tree | c6ef794a5e3b7ae2a46803106bba3686780e3bec /sw/inc/undobj.hxx | |
parent | 4cb85b23eda1c14714dbf8ef5f2cb20390ba10dd (diff) |
INTEGRATION: CWS swnewlistlevelattrs_DEV300 (1.40.18); FILE MERGED
2008/02/13 11:07:12 od 1.40.18.1: #i85348# new class <SwUndoFmtResetAttr> for undo/redo of reset of format
attributes
Diffstat (limited to 'sw/inc/undobj.hxx')
-rw-r--r-- | sw/inc/undobj.hxx | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/sw/inc/undobj.hxx b/sw/inc/undobj.hxx index 1e2603a09579..0e82e352e5e8 100644 --- a/sw/inc/undobj.hxx +++ b/sw/inc/undobj.hxx @@ -4,9 +4,9 @@ * * $RCSfile: undobj.hxx,v $ * - * $Revision: 1.40 $ + * $Revision: 1.41 $ * - * last change: $Author: vg $ $Date: 2008-01-29 08:36:55 $ + * last change: $Author: kz $ $Date: 2008-03-05 16:50:59 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -678,6 +678,27 @@ public: SwFmt* GetFmt( SwDoc& rDoc ); // prueft, ob es noch im Doc ist! }; +// --> OD 2008-02-12 #newlistlevelattrs# +class SwUndoFmtResetAttr : public SwUndo +{ + public: + SwUndoFmtResetAttr( SwFmt& rChangedFormat, + const USHORT nWhichId ); + ~SwUndoFmtResetAttr(); + + virtual void Undo( SwUndoIter& ); + virtual void Redo( SwUndoIter& ); + + private: + // format at which a certain attribute is reset. + SwFmt* mpChangedFormat; + // which ID of the reset attribute + USHORT mnWhichId; + // old attribute which has been reset - needed for undo. + SfxPoolItem* mpOldItem; +}; +// <-- + class SwUndoDontExpandFmt : public SwUndo { ULONG nNode; |