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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoMerge (ScDocShell *pNewDocShell, ScCellMergeOption aOption, bool bMergeContents, ScDocumentUniquePtr pUndoDoc, std::unique_ptr< SdrUndoAction > pDrawUndo)
 
virtual ~ScUndoMerge () 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 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 Member Functions

void DoChange (bool bUndo) const
 

Private Attributes

ScCellMergeOption maOption
 
bool mbMergeContents
 
ScDocumentUniquePtr mxUndoDoc
 
std::unique_ptr< SdrUndoActionmpDrawUndo
 

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 ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 427 of file undoblk.hxx.

Constructor & Destructor Documentation

◆ ScUndoMerge()

ScUndoMerge::ScUndoMerge ( ScDocShell pNewDocShell,
ScCellMergeOption  aOption,
bool  bMergeContents,
ScDocumentUniquePtr  pUndoDoc,
std::unique_ptr< SdrUndoAction pDrawUndo 
)

Definition at line 638 of file undoblk3.cxx.

◆ ~ScUndoMerge()

ScUndoMerge::~ScUndoMerge ( )
overridevirtual

Definition at line 648 of file undoblk3.cxx.

References mpDrawUndo.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 763 of file undoblk3.cxx.

References rTarget.

◆ DoChange()

void ScUndoMerge::DoChange ( bool  bUndo) const
private

◆ GetComment()

OUString ScUndoMerge::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 653 of file undoblk3.cxx.

References ScResId().

◆ Redo()

void ScUndoMerge::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 746 of file undoblk3.cxx.

References ScSimpleUndo::BeginRedo(), DoChange(), and ScSimpleUndo::EndRedo().

◆ Repeat()

void ScUndoMerge::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 753 of file undoblk3.cxx.

References SfxShell::GetViewShell(), ScViewFunc::MergeCells(), and rTarget.

◆ Undo()

void ScUndoMerge::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 739 of file undoblk3.cxx.

References ScSimpleUndo::BeginUndo(), DoChange(), and ScSimpleUndo::EndUndo().

Member Data Documentation

◆ maOption

ScCellMergeOption ScUndoMerge::maOption
private

Definition at line 443 of file undoblk.hxx.

Referenced by DoChange().

◆ mbMergeContents

bool ScUndoMerge::mbMergeContents
private

Definition at line 444 of file undoblk.hxx.

Referenced by DoChange().

◆ mpDrawUndo

std::unique_ptr<SdrUndoAction> ScUndoMerge::mpDrawUndo
private

Definition at line 446 of file undoblk.hxx.

Referenced by DoChange(), and ~ScUndoMerge().

◆ mxUndoDoc

ScDocumentUniquePtr ScUndoMerge::mxUndoDoc
private

Definition at line 445 of file undoblk.hxx.

Referenced by DoChange().


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