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, const ScCellMergeOption &rOption, 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...
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) 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 428 of file undoblk.hxx.

Constructor & Destructor Documentation

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

Definition at line 634 of file undoblk3.cxx.

ScUndoMerge::~ScUndoMerge ( )
overridevirtual

Definition at line 644 of file undoblk3.cxx.

References mpDrawUndo.

Member Function Documentation

bool ScUndoMerge::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 759 of file undoblk3.cxx.

void ScUndoMerge::DoChange ( bool  bUndo) const
private
OUString ScUndoMerge::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 649 of file undoblk3.cxx.

References ScResId().

void ScUndoMerge::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 742 of file undoblk3.cxx.

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

void ScUndoMerge::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 749 of file undoblk3.cxx.

References ScViewFunc::MergeCells().

void ScUndoMerge::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 735 of file undoblk3.cxx.

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

Member Data Documentation

ScCellMergeOption ScUndoMerge::maOption
private

Definition at line 444 of file undoblk.hxx.

Referenced by DoChange().

bool ScUndoMerge::mbMergeContents
private

Definition at line 445 of file undoblk.hxx.

Referenced by DoChange().

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

Definition at line 447 of file undoblk.hxx.

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

ScDocumentUniquePtr ScUndoMerge::mxUndoDoc
private

Definition at line 446 of file undoblk.hxx.

Referenced by DoChange().


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