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

#include <undoblk.hxx>

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

Public Member Functions

 ScUndoRemoveMerge (ScDocShell *pNewDocShell, const ScCellMergeOption &rOption, ScDocumentUniquePtr pNewUndoDoc)
 
 ScUndoRemoveMerge (ScDocShell *pNewDocShell, const ScRange &rRange, ScDocumentUniquePtr pNewUndoDoc)
 
virtual ~ScUndoRemoveMerge () 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
 
ScDocumentGetUndoDoc ()
 
void AddCellMergeOption (const ScCellMergeOption &rOption)
 
- Public Member Functions inherited from ScBlockUndo
 ScBlockUndo (ScDocShell *pDocSh, const ScRange &rRange, ScBlockUndoMode eBlockMode)
 
virtual ~ScBlockUndo () 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 SetCurTab ()
 

Private Attributes

std::vector< ScCellMergeOptionmaOptions
 
ScDocumentUniquePtr pUndoDoc
 

Additional Inherited Members

- Public Types inherited from ScSimpleUndo
typedef std::map< SCTAB, std::unique_ptr< sc::ColumnSpanSet > > DataSpansType
 
- Protected Member Functions inherited from ScBlockUndo
void BeginUndo ()
 
void EndUndo ()
 
void EndRedo ()
 
bool AdjustHeight ()
 
void ShowBlock ()
 
- 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 ScBlockUndo
ScRange aBlockRange
 
std::unique_ptr< SdrUndoActionpDrawUndo
 
ScBlockUndoMode eMode
 
- Protected Attributes inherited from ScSimpleUndo
ScDocShellpDocShell
 
std::unique_ptr< SfxUndoActionpDetectiveUndo
 
ViewShellId mnViewShellId
 

Detailed Description

Definition at line 933 of file undoblk.hxx.

Constructor & Destructor Documentation

ScUndoRemoveMerge::ScUndoRemoveMerge ( ScDocShell pNewDocShell,
const ScCellMergeOption rOption,
ScDocumentUniquePtr  pNewUndoDoc 
)

Definition at line 2210 of file undoblk.cxx.

References maOptions.

ScUndoRemoveMerge::ScUndoRemoveMerge ( ScDocShell pNewDocShell,
const ScRange rRange,
ScDocumentUniquePtr  pNewUndoDoc 
)

Definition at line 2218 of file undoblk.cxx.

ScUndoRemoveMerge::~ScUndoRemoveMerge ( )
overridevirtual

Definition at line 2225 of file undoblk.cxx.

Member Function Documentation

void ScUndoRemoveMerge::AddCellMergeOption ( const ScCellMergeOption rOption)

Definition at line 2239 of file undoblk.cxx.

References maOptions.

Referenced by ScDocFunc::UnmergeCells().

bool ScUndoRemoveMerge::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 2332 of file undoblk.cxx.

OUString ScUndoRemoveMerge::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 2229 of file undoblk.cxx.

References ScResId().

ScDocument * ScUndoRemoveMerge::GetUndoDoc ( )

Definition at line 2234 of file undoblk.cxx.

References pUndoDoc.

Referenced by ScDocFunc::UnmergeCells().

void ScUndoRemoveMerge::Redo ( )
overridevirtual
void ScUndoRemoveMerge::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 2326 of file undoblk.cxx.

void ScUndoRemoveMerge::SetCurTab ( )
private
void ScUndoRemoveMerge::Undo ( )
overridevirtual

Member Data Documentation

std::vector<ScCellMergeOption> ScUndoRemoveMerge::maOptions
private

Definition at line 957 of file undoblk.hxx.

Referenced by AddCellMergeOption(), Redo(), ScUndoRemoveMerge(), and Undo().

ScDocumentUniquePtr ScUndoRemoveMerge::pUndoDoc
private

Definition at line 958 of file undoblk.hxx.

Referenced by GetUndoDoc(), and Undo().


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