LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScUndoSubTotals Class Reference

#include <undodat.hxx>

Inheritance diagram for ScUndoSubTotals:
[legend]
Collaboration diagram for ScUndoSubTotals:
[legend]

Public Member Functions

 ScUndoSubTotals (ScDocShell *pNewDocShell, SCTAB nNewTab, const ScSubTotalParam &rNewParam, SCROW nNewEndY, ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr< ScOutlineTable > pNewUndoTab, std::unique_ptr< ScRangeName > pNewUndoRange, std::unique_ptr< ScDBCollection > pNewUndoDB)
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual void Repeat (SfxRepeatTarget &rTarget) override
 
virtual bool CanRepeat (SfxRepeatTarget &rTarget) const override
 
virtual OUString GetComment () const override
 
- Public Member Functions inherited from ScDBFuncUndo
 ScDBFuncUndo (ScDocShell *pDocSh, const ScRange &rOriginal)
 
virtual ~ScDBFuncUndo () override
 
void BeginUndo ()
 
void EndUndo ()
 
void BeginRedo ()
 
void EndRedo ()
 
- Public Member Functions inherited from ScSimpleUndo
 ScSimpleUndo (ScDocShell *pDocSh)
 
virtual bool Merge (SfxUndoAction *pNextAction) override
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
virtual std::optional< ScRangegetAffectedRange () const
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void Undo ()
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void Redo ()
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual void Repeat (SfxRepeatTarget &)
 
virtual bool CanRepeat (SfxRepeatTarget &) const
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetComment () const
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
virtual ViewShellId GetViewShellId () const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

SCTAB nTab
 
ScSubTotalParam aParam
 
SCROW nNewEndRow
 
ScDocumentUniquePtr xUndoDoc
 
std::unique_ptr< ScOutlineTablexUndoTable
 
std::unique_ptr< ScRangeNamexUndoRange
 
std::unique_ptr< ScDBCollectionxUndoDB
 

Additional Inherited Members

- Public Types inherited from ScSimpleUndo
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > DataSpansType
 
- Protected Member Functions inherited from ScSimpleUndo
bool IsPaintLocked () const
 
bool SetViewMarkData (const ScMarkData &rMarkData)
 
void BeginUndo ()
 
void EndUndo ()
 
void BeginRedo ()
 
void EndRedo ()
 
void BroadcastChanges (const ScRange &rRange)
 
void BroadcastChanges (const DataSpansType &rSpans)
 Broadcast changes on specified spans. More...
 
- Static Protected Member Functions inherited from ScSimpleUndo
static void ShowTable (SCTAB nTab)
 
static void ShowTable (const ScRange &rRange)
 
- Protected Attributes inherited from ScDBFuncUndo
std::unique_ptr< ScDBDatapAutoDBRange
 
ScRange aOriginalRange
 
- Protected Attributes inherited from ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 183 of file undodat.hxx.

Constructor & Destructor Documentation

◆ ScUndoSubTotals()

ScUndoSubTotals::ScUndoSubTotals ( ScDocShell pNewDocShell,
SCTAB  nNewTab,
const ScSubTotalParam rNewParam,
SCROW  nNewEndY,
ScDocumentUniquePtr  pNewUndoDoc,
std::unique_ptr< ScOutlineTable pNewUndoTab,
std::unique_ptr< ScRangeName pNewUndoRange,
std::unique_ptr< ScDBCollection pNewUndoDB 
)

Definition at line 604 of file undodat.cxx.

Member Function Documentation

◆ CanRepeat()

bool ScUndoSubTotals::CanRepeat ( SfxRepeatTarget &  rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 713 of file undodat.cxx.

◆ GetComment()

OUString ScUndoSubTotals::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 620 of file undodat.cxx.

References ScResId().

◆ Redo()

void ScUndoSubTotals::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoSubTotals::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 709 of file undodat.cxx.

◆ Undo()

void ScUndoSubTotals::Undo ( )
overridevirtual

Member Data Documentation

◆ aParam

ScSubTotalParam ScUndoSubTotals::aParam
private

Definition at line 200 of file undodat.hxx.

Referenced by Redo(), and Undo().

◆ nNewEndRow

SCROW ScUndoSubTotals::nNewEndRow
private

Definition at line 201 of file undodat.hxx.

Referenced by Undo().

◆ nTab

SCTAB ScUndoSubTotals::nTab
private

Definition at line 199 of file undodat.hxx.

Referenced by Redo(), and Undo().

◆ xUndoDB

std::unique_ptr<ScDBCollection> ScUndoSubTotals::xUndoDB
private

Definition at line 205 of file undodat.hxx.

Referenced by Undo().

◆ xUndoDoc

ScDocumentUniquePtr ScUndoSubTotals::xUndoDoc
private

Definition at line 202 of file undodat.hxx.

Referenced by Undo().

◆ xUndoRange

std::unique_ptr<ScRangeName> ScUndoSubTotals::xUndoRange
private

Definition at line 204 of file undodat.hxx.

Referenced by Undo().

◆ xUndoTable

std::unique_ptr<ScOutlineTable> ScUndoSubTotals::xUndoTable
private

Definition at line 203 of file undodat.hxx.

Referenced by Undo().


The documentation for this class was generated from the following files: