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

#include <undodat.hxx>

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

Public Member Functions

 ScUndoQuery (ScDocShell *pNewDocShell, SCTAB nNewTab, const ScQueryParam &rParam, ScDocumentUniquePtr pNewUndoDoc, std::unique_ptr< ScDBCollection > pNewUndoDB, const ScRange *pOld, bool bSize, const ScRange *pAdvSrc)
 
virtual ~ScUndoQuery () override
 
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

std::unique_ptr< SdrUndoActionpDrawUndo
 
SCTAB nTab
 
ScQueryParam aQueryParam
 
ScDocumentUniquePtr xUndoDoc
 
std::unique_ptr< ScDBCollectionxUndoDB
 
ScRange aOldDest
 
ScRange aAdvSource
 
bool bIsAdvanced
 
bool bDestArea
 
bool bDoSize
 

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 208 of file undodat.hxx.

Constructor & Destructor Documentation

◆ ScUndoQuery()

ScUndoQuery::ScUndoQuery ( ScDocShell pNewDocShell,
SCTAB  nNewTab,
const ScQueryParam rParam,
ScDocumentUniquePtr  pNewUndoDoc,
std::unique_ptr< ScDBCollection pNewUndoDB,
const ScRange pOld,
bool  bSize,
const ScRange pAdvSrc 
)

◆ ~ScUndoQuery()

ScUndoQuery::~ScUndoQuery ( )
overridevirtual

Definition at line 745 of file undodat.cxx.

References pDrawUndo.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 893 of file undodat.cxx.

◆ GetComment()

OUString ScUndoQuery::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 750 of file undodat.cxx.

References ScResId().

◆ Redo()

void ScUndoQuery::Redo ( )
overridevirtual

◆ Repeat()

void ScUndoQuery::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 889 of file undodat.cxx.

◆ Undo()

void ScUndoQuery::Undo ( )
overridevirtual

Member Data Documentation

◆ aAdvSource

ScRange ScUndoQuery::aAdvSource
private

Definition at line 231 of file undodat.hxx.

Referenced by Redo(), and ScUndoQuery().

◆ aOldDest

ScRange ScUndoQuery::aOldDest
private

Definition at line 230 of file undodat.hxx.

Referenced by ScUndoQuery(), and Undo().

◆ aQueryParam

ScQueryParam ScUndoQuery::aQueryParam
private

Definition at line 227 of file undodat.hxx.

Referenced by Redo(), and Undo().

◆ bDestArea

bool ScUndoQuery::bDestArea
private

Definition at line 233 of file undodat.hxx.

Referenced by ScUndoQuery(), and Undo().

◆ bDoSize

bool ScUndoQuery::bDoSize
private

Definition at line 234 of file undodat.hxx.

Referenced by Undo().

◆ bIsAdvanced

bool ScUndoQuery::bIsAdvanced
private

Definition at line 232 of file undodat.hxx.

Referenced by Redo(), and ScUndoQuery().

◆ nTab

SCTAB ScUndoQuery::nTab
private

Definition at line 226 of file undodat.hxx.

Referenced by Redo(), and Undo().

◆ pDrawUndo

std::unique_ptr<SdrUndoAction> ScUndoQuery::pDrawUndo
private

Definition at line 225 of file undodat.hxx.

Referenced by ScUndoQuery(), Undo(), and ~ScUndoQuery().

◆ xUndoDB

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

Definition at line 229 of file undodat.hxx.

Referenced by Undo().

◆ xUndoDoc

ScDocumentUniquePtr ScUndoQuery::xUndoDoc
private

Definition at line 228 of file undodat.hxx.

Referenced by Undo().


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