diff options
Diffstat (limited to 'sc/source/ui/inc/undoblk.hxx')
-rw-r--r-- | sc/source/ui/inc/undoblk.hxx | 732 |
1 files changed, 366 insertions, 366 deletions
diff --git a/sc/source/ui/inc/undoblk.hxx b/sc/source/ui/inc/undoblk.hxx index a6eb727a7554..b07fb0172b1e 100644 --- a/sc/source/ui/inc/undoblk.hxx +++ b/sc/source/ui/inc/undoblk.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -61,29 +61,29 @@ public: const ScRange& rRange, SCTAB nNewCount, SCTAB* pNewTabs, SCTAB* pNewScenarios, InsCellCmd eNewCmd, ScDocument* pUndoDocument, ScRefUndoData* pRefData, BOOL bNewPartOfPaste ); - virtual ~ScUndoInsertCells(); + virtual ~ScUndoInsertCells(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat( SfxRepeatTarget& rTarget ); - virtual BOOL CanRepeat( SfxRepeatTarget& rTarget ) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat( SfxRepeatTarget& rTarget ); + virtual BOOL CanRepeat( SfxRepeatTarget& rTarget ) const; - virtual String GetComment() const; + virtual String GetComment() const; - virtual BOOL Merge( SfxUndoAction *pNextAction ); + virtual BOOL Merge( SfxUndoAction *pNextAction ); private: - ScRange aEffRange; + ScRange aEffRange; SCTAB nCount; SCTAB* pTabs; SCTAB* pScenarios; - ULONG nEndChangeAction; - InsCellCmd eCmd; - BOOL bPartOfPaste; - SfxUndoAction* pPasteUndo; + ULONG nEndChangeAction; + InsCellCmd eCmd; + BOOL bPartOfPaste; + SfxUndoAction* pPasteUndo; - void DoChange ( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange ( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -92,28 +92,28 @@ class ScUndoDeleteCells: public ScMoveUndo public: TYPEINFO(); ScUndoDeleteCells( ScDocShell* pNewDocShell, - const ScRange& rRange, SCTAB nNewCount, SCTAB* pNewTabs, SCTAB* pNewScenarios, + const ScRange& rRange, SCTAB nNewCount, SCTAB* pNewTabs, SCTAB* pNewScenarios, DelCellCmd eNewCmd, ScDocument* pUndoDocument, ScRefUndoData* pRefData ); - virtual ~ScUndoDeleteCells(); + virtual ~ScUndoDeleteCells(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aEffRange; + ScRange aEffRange; SCTAB nCount; SCTAB* pTabs; SCTAB* pScenarios; - ULONG nStartChangeAction; - ULONG nEndChangeAction; - DelCellCmd eCmd; + ULONG nStartChangeAction; + ULONG nEndChangeAction; + DelCellCmd eCmd; - void DoChange ( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange ( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -125,26 +125,26 @@ public: BOOL bNewRows, BOOL bNeedsRefresh, SCTAB nNewTab, const SCCOLROW* pRng, SCCOLROW nRngCnt, ScDocument* pUndoDocument, ScRefUndoData* pRefData ); - virtual ~ScUndoDeleteMulti(); + virtual ~ScUndoDeleteMulti(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - BOOL bRows; + BOOL bRows; BOOL bRefresh; - SCTAB nTab; - SCCOLROW* pRanges; - SCCOLROW nRangeCnt; - ULONG nStartChangeAction; - ULONG nEndChangeAction; + SCTAB nTab; + SCCOLROW* pRanges; + SCCOLROW nRangeCnt; + ULONG nStartChangeAction; + ULONG nEndChangeAction; - void DoChange() const; - void SetChangeTrack(); + void DoChange() const; + void SetChangeTrack(); }; @@ -157,24 +157,24 @@ public: ScAddress aOldEnd, // end position without adjustment const ScMarkData& rMark, // selected sheets ScDocument* pNewUndoDoc ); - virtual ~ScUndoCut(); + virtual ~ScUndoCut(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: ScMarkData aMarkData; - ScDocument* pUndoDoc; - ScRange aExtendedRange; - ULONG nStartChangeAction; - ULONG nEndChangeAction; + ScDocument* pUndoDoc; + ScRange aExtendedRange; + ULONG nStartChangeAction; + ULONG nEndChangeAction; - void DoChange( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -208,29 +208,29 @@ public: ScRefUndoData* pRefData, void* pFill1, void* pFill2, void* pFill3, BOOL bRedoIsFilled = TRUE, const ScUndoPasteOptions* pOptions = NULL ); - virtual ~ScUndoPaste(); + virtual ~ScUndoPaste(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScMarkData aMarkData; - ScDocument* pUndoDoc; - ScDocument* pRedoDoc; - USHORT nFlags; - ScRefUndoData* pRefUndoData; - ScRefUndoData* pRefRedoData; - ULONG nStartChangeAction; - ULONG nEndChangeAction; - BOOL bRedoFilled; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + ScDocument* pRedoDoc; + USHORT nFlags; + ScRefUndoData* pRefUndoData; + ScRefUndoData* pRefRedoData; + ULONG nStartChangeAction; + ULONG nEndChangeAction; + BOOL bRedoFilled; ScUndoPasteOptions aPasteOptions; - void DoChange( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -242,27 +242,27 @@ public: const ScRange& rRange, ScAddress aNewDestPos, BOOL bNewCut, ScDocument* pUndoDocument, ScRefUndoData* pRefData, BOOL bScenario ); - virtual ~ScUndoDragDrop(); + virtual ~ScUndoDragDrop(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aSrcRange; - ScRange aDestRange; - ULONG nStartChangeAction; - ULONG nEndChangeAction; - BOOL bCut; - BOOL bKeepScenarioFlags; + ScRange aSrcRange; + ScRange aDestRange; + ULONG nStartChangeAction; + ULONG nEndChangeAction; + BOOL bCut; + BOOL bKeepScenarioFlags; - void PaintArea( ScRange aRange, USHORT nExtFlags ) const; - void DoUndo( ScRange aRange ) const; + void PaintArea( ScRange aRange, USHORT nExtFlags ) const; + void DoUndo( ScRange aRange ) const; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -275,27 +275,27 @@ public: const ScRange& rRange, ScDocument* pNewUndoDoc, BOOL bNewMulti, USHORT nNewFlags, BOOL bObjects ); - virtual ~ScUndoDeleteContents(); + virtual ~ScUndoDeleteContents(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aRange; - ScMarkData aMarkData; - ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten - SdrUndoAction* pDrawUndo; // geloeschte Objekte - ULONG nStartChangeAction; - ULONG nEndChangeAction; - USHORT nFlags; - BOOL bMulti; // Mehrfachselektion + ScRange aRange; + ScMarkData aMarkData; + ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten + SdrUndoAction* pDrawUndo; // geloeschte Objekte + ULONG nStartChangeAction; + ULONG nEndChangeAction; + USHORT nFlags; + BOOL bMulti; // Mehrfachselektion - void DoChange( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -309,30 +309,30 @@ public: SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocument* pNewUndoDoc, BOOL bNewMulti, SCTAB nSrc, USHORT nFlg, USHORT nFunc, BOOL bSkip, BOOL bLink ); - virtual ~ScUndoFillTable(); + virtual ~ScUndoFillTable(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aRange; - ScMarkData aMarkData; - ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten - ULONG nStartChangeAction; - ULONG nEndChangeAction; - USHORT nFlags; - USHORT nFunction; - SCTAB nSrcTab; - BOOL bMulti; // Mehrfachselektion - BOOL bSkipEmpty; - BOOL bAsLink; + ScRange aRange; + ScMarkData aMarkData; + ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten + ULONG nStartChangeAction; + ULONG nEndChangeAction; + USHORT nFlags; + USHORT nFunction; + SCTAB nSrcTab; + BOOL bMulti; // Mehrfachselektion + BOOL bSkipEmpty; + BOOL bAsLink; - void DoChange( const BOOL bUndo ); - void SetChangeTrack(); + void DoChange( const BOOL bUndo ); + void SetChangeTrack(); }; @@ -348,27 +348,27 @@ public: const ScPatternAttr* pNewApply, const SvxBoxItem* pNewOuter = NULL, const SvxBoxInfoItem* pNewInner = NULL ); - virtual ~ScUndoSelectionAttr(); + virtual ~ScUndoSelectionAttr(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; ScEditDataArray* GetDataArray(); private: - ScMarkData aMarkData; - ScRange aRange; + ScMarkData aMarkData; + ScRange aRange; ScEditDataArray aDataArray; - ScDocument* pUndoDoc; - BOOL bMulti; - ScPatternAttr* pApplyPattern; - SvxBoxItem* pLineOuter; - SvxBoxInfoItem* pLineInner; + ScDocument* pUndoDoc; + BOOL bMulti; + ScPatternAttr* pApplyPattern; + SvxBoxItem* pLineOuter; + SvxBoxInfoItem* pLineInner; - void DoChange( const BOOL bUndo ); + void DoChange( const BOOL bUndo ); void ChangeEditData( const bool bUndo ); }; @@ -386,29 +386,29 @@ public: ScOutlineTable* pNewUndoTab, ScSizeMode eNewMode, USHORT nNewSizeTwips, BOOL bNewWidth ); - virtual ~ScUndoWidthOrHeight(); + virtual ~ScUndoWidthOrHeight(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; virtual String GetComment() const; private: - ScMarkData aMarkData; - SCCOLROW nStart; - SCCOLROW nEnd; - SCTAB nStartTab; - SCTAB nEndTab; - ScDocument* pUndoDoc; - ScOutlineTable* pUndoTab; - SCCOLROW nRangeCnt; - SCCOLROW* pRanges; - USHORT nNewSize; - BOOL bWidth; - ScSizeMode eMode; - SdrUndoAction* pDrawUndo; + ScMarkData aMarkData; + SCCOLROW nStart; + SCCOLROW nEnd; + SCTAB nStartTab; + SCTAB nEndTab; + ScDocument* pUndoDoc; + ScOutlineTable* pUndoTab; + SCCOLROW nRangeCnt; + SCCOLROW* pRanges; + USHORT nNewSize; + BOOL bWidth; + ScSizeMode eMode; + SdrUndoAction* pDrawUndo; }; @@ -423,30 +423,30 @@ public: FillCmd eNewFillCmd, FillDateCmd eNewFillDateCmd, double fNewStartValue, double fNewStepValue, double fNewMaxValue, USHORT nMaxShIndex ); - virtual ~ScUndoAutoFill(); + virtual ~ScUndoAutoFill(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aSource; - ScMarkData aMarkData; - ScDocument* pUndoDoc; - FillDir eFillDir; - FillCmd eFillCmd; - FillDateCmd eFillDateCmd; - double fStartValue; - double fStepValue; - double fMaxValue; - ULONG nStartChangeAction; - ULONG nEndChangeAction; - USHORT nMaxSharedIndex; + ScRange aSource; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + FillDir eFillDir; + FillCmd eFillCmd; + FillDateCmd eFillDateCmd; + double fStartValue; + double fStepValue; + double fMaxValue; + ULONG nStartChangeAction; + ULONG nEndChangeAction; + USHORT nMaxSharedIndex; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -456,22 +456,22 @@ public: TYPEINFO(); ScUndoMerge( ScDocShell* pNewDocShell, const ScCellMergeOption& rOption, bool bMergeContents, ScDocument* pUndoDoc, SdrUndoAction* pDrawUndo); - virtual ~ScUndoMerge(); + virtual ~ScUndoMerge(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: ScCellMergeOption maOption; bool mbMergeContents; // Merge contents in Redo(). - ScDocument* mpUndoDoc; // wenn Daten zusammengefasst + ScDocument* mpUndoDoc; // wenn Daten zusammengefasst SdrUndoAction* mpDrawUndo; - void DoChange( bool bUndo ) const; + void DoChange( bool bUndo ) const; }; @@ -483,20 +483,20 @@ public: const ScRange& rRange, ScDocument* pNewUndoDoc, const ScMarkData& rMark, BOOL bNewSize, USHORT nNewFormatNo ); - virtual ~ScUndoAutoFormat(); + virtual ~ScUndoAutoFormat(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; // geloeschte Daten - ScMarkData aMarkData; - BOOL bSize; - USHORT nFormatNo; + ScDocument* pUndoDoc; // geloeschte Daten + ScMarkData aMarkData; + BOOL bSize; + USHORT nFormatNo; }; @@ -509,25 +509,25 @@ public: SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, const String& rNewUndoStr, ScDocument* pNewUndoDoc, const SvxSearchItem* pItem ); - virtual ~ScUndoReplace(); + virtual ~ScUndoReplace(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScAddress aCursorPos; - ScMarkData aMarkData; - String aUndoStr; // Daten bei Einfachmarkierung - ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten - SvxSearchItem* pSearchItem; - ULONG nStartChangeAction; - ULONG nEndChangeAction; + ScAddress aCursorPos; + ScMarkData aMarkData; + String aUndoStr; // Daten bei Einfachmarkierung + ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten + SvxSearchItem* pSearchItem; + ULONG nStartChangeAction; + ULONG nEndChangeAction; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -544,23 +544,23 @@ public: const ScRefAddress& rRowCell, const ScRefAddress& rColCell, BYTE nMode ); - virtual ~ScUndoTabOp(); + virtual ~ScUndoTabOp(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScRange aRange; - ScDocument* pUndoDoc; // geloeschte Daten - ScRefAddress theFormulaCell; - ScRefAddress theFormulaEnd; - ScRefAddress theRowCell; - ScRefAddress theColCell; - BYTE nMode; + ScRange aRange; + ScDocument* pUndoDoc; // geloeschte Daten + ScRefAddress theFormulaCell; + ScRefAddress theFormulaEnd; + ScRefAddress theRowCell; + ScRefAddress theColCell; + BYTE nMode; }; @@ -634,20 +634,20 @@ public: ScUndoListNames( ScDocShell* pNewDocShell, const ScRange& rRange, ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc ); - virtual ~ScUndoListNames(); + virtual ~ScUndoListNames(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; - ScDocument* pRedoDoc; + ScDocument* pUndoDoc; + ScDocument* pRedoDoc; - void DoChange( ScDocument* pSrcDoc ) const; + void DoChange( ScDocument* pSrcDoc ) const; }; @@ -659,20 +659,20 @@ public: const ScMarkData& rMark, const ScArea& rDestArea, ScDocument* pNewUndoDoc, const String& rNewName ); - virtual ~ScUndoUseScenario(); + virtual ~ScUndoUseScenario(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; virtual String GetComment() const; private: - ScDocument* pUndoDoc; - ScRange aRange; - ScMarkData aMarkData; - String aName; + ScDocument* pUndoDoc; + ScRange aRange; + ScMarkData aMarkData; + String aName; }; @@ -685,23 +685,23 @@ public: const ScRange& rRange, const String& rName, ScDocument* pNewUndoDoc ); - virtual ~ScUndoSelectionStyle(); + virtual ~ScUndoSelectionStyle(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; - virtual USHORT GetId() const; + virtual String GetComment() const; + virtual USHORT GetId() const; private: - ScMarkData aMarkData; - ScDocument* pUndoDoc; - String aStyleName; - ScRange aRange; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + String aStyleName; + ScRange aRange; - void DoChange( const BOOL bUndo ); + void DoChange( const BOOL bUndo ); }; @@ -711,18 +711,18 @@ public: TYPEINFO(); ScUndoRefreshLink( ScDocShell* pNewDocShell, ScDocument* pNewUndoDoc ); - virtual ~ScUndoRefreshLink(); + virtual ~ScUndoRefreshLink(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; - ScDocument* pRedoDoc; + ScDocument* pUndoDoc; + ScDocument* pRedoDoc; }; @@ -734,23 +734,23 @@ public: const ScRange& rArea, ScDocument* pNewUndoDoc, const String& rForm ); - virtual ~ScUndoEnterMatrix(); + virtual ~ScUndoEnterMatrix(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; - String aFormula; + ScDocument* pUndoDoc; + String aFormula; formula::FormulaGrammar::AddressConvention eConv; - ULONG nStartChangeAction; - ULONG nEndChangeAction; + ULONG nStartChangeAction; + ULONG nEndChangeAction; - void SetChangeTrack(); + void SetChangeTrack(); }; @@ -763,22 +763,22 @@ public: const String& rFlt, const String& rOpt, const String& rArea, const ScRange& rDestRange, ULONG nRefreshDelay ); - virtual ~ScUndoInsertAreaLink(); + virtual ~ScUndoInsertAreaLink(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String aDocName; - String aFltName; - String aOptions; - String aAreaName; - ScRange aRange; - ULONG nRefreshDelay; + String aDocName; + String aFltName; + String aOptions; + String aAreaName; + ScRange aRange; + ULONG nRefreshDelay; }; @@ -791,26 +791,26 @@ public: const String& rFlt, const String& rOpt, const String& rArea, const ScRange& rDestRange, ULONG nRefreshDelay ); - virtual ~ScUndoRemoveAreaLink(); + virtual ~ScUndoRemoveAreaLink(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String aDocName; - String aFltName; - String aOptions; - String aAreaName; - ScRange aRange; - ULONG nRefreshDelay; + String aDocName; + String aFltName; + String aOptions; + String aAreaName; + ScRange aRange; + ULONG nRefreshDelay; }; -class ScUndoUpdateAreaLink : public ScSimpleUndo //! auch BlockUndo umstellen? +class ScUndoUpdateAreaLink : public ScSimpleUndo //! auch BlockUndo umstellen? { public: TYPEINFO(); @@ -825,33 +825,33 @@ public: ULONG nNewRD, ScDocument* pUndo, ScDocument* pRedo, BOOL bDoInsert ); - virtual ~ScUndoUpdateAreaLink(); + virtual ~ScUndoUpdateAreaLink(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - String aOldDoc; - String aOldFlt; - String aOldOpt; - String aOldArea; - ScRange aOldRange; - String aNewDoc; - String aNewFlt; - String aNewOpt; - String aNewArea; - ScRange aNewRange; - ScDocument* pUndoDoc; - ScDocument* pRedoDoc; - ULONG nOldRefresh; - ULONG nNewRefresh; - BOOL bWithInsert; - - void DoChange( const BOOL bUndo ) const; + String aOldDoc; + String aOldFlt; + String aOldOpt; + String aOldArea; + ScRange aOldRange; + String aNewDoc; + String aNewFlt; + String aNewOpt; + String aNewArea; + ScRange aNewRange; + ScDocument* pUndoDoc; + ScDocument* pRedoDoc; + ULONG nOldRefresh; + ULONG nNewRefresh; + BOOL bWithInsert; + + void DoChange( const BOOL bUndo ) const; }; @@ -861,19 +861,19 @@ public: TYPEINFO(); ScUndoIndent( ScDocShell* pNewDocShell, const ScMarkData& rMark, ScDocument* pNewUndoDoc, BOOL bIncrement ); - virtual ~ScUndoIndent(); + virtual ~ScUndoIndent(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScMarkData aMarkData; - ScDocument* pUndoDoc; - BOOL bIsIncrement; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + BOOL bIsIncrement; }; @@ -883,19 +883,19 @@ public: TYPEINFO(); ScUndoTransliterate( ScDocShell* pNewDocShell, const ScMarkData& rMark, ScDocument* pNewUndoDoc, sal_Int32 nType ); - virtual ~ScUndoTransliterate(); + virtual ~ScUndoTransliterate(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScMarkData aMarkData; - ScDocument* pUndoDoc; - sal_Int32 nTransliterationType; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + sal_Int32 nTransliterationType; }; @@ -905,19 +905,19 @@ public: TYPEINFO(); ScUndoClearItems( ScDocShell* pNewDocShell, const ScMarkData& rMark, ScDocument* pNewUndoDoc, const USHORT* pW ); - virtual ~ScUndoClearItems(); + virtual ~ScUndoClearItems(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScMarkData aMarkData; - ScDocument* pUndoDoc; - USHORT* pWhich; + ScMarkData aMarkData; + ScDocument* pUndoDoc; + USHORT* pWhich; }; @@ -927,18 +927,18 @@ public: TYPEINFO(); ScUndoRemoveBreaks( ScDocShell* pNewDocShell, SCTAB nNewTab, ScDocument* pNewUndoDoc ); - virtual ~ScUndoRemoveBreaks(); + virtual ~ScUndoRemoveBreaks(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - SCTAB nTab; - ScDocument* pUndoDoc; + SCTAB nTab; + ScDocument* pUndoDoc; }; @@ -949,20 +949,20 @@ public: ScUndoRemoveMerge( ScDocShell* pNewDocShell, const ScCellMergeOption& rOption, ScDocument* pNewUndoDoc ); - virtual ~ScUndoRemoveMerge(); + virtual ~ScUndoRemoveMerge(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: void SetCurTab(); ScCellMergeOption maOption; - ScDocument* pUndoDoc; + ScDocument* pUndoDoc; }; @@ -975,20 +975,20 @@ public: ScDocument* pNewUndoDoc, const SvxBoxItem& rNewOuter, const SvxBoxInfoItem& rNewInner ); - virtual ~ScUndoBorder(); + virtual ~ScUndoBorder(); - virtual void Undo(); - virtual void Redo(); - virtual void Repeat(SfxRepeatTarget& rTarget); - virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const; - virtual String GetComment() const; + virtual String GetComment() const; private: - ScDocument* pUndoDoc; - ScRangeList* pRanges; - SvxBoxItem* pOuter; - SvxBoxInfoItem* pInner; + ScDocument* pUndoDoc; + ScRangeList* pRanges; + SvxBoxItem* pOuter; + SvxBoxInfoItem* pInner; }; |