LibreOffice Module sc (master) 1
|
#include <undoblk.hxx>
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< ScRange > | getAffectedRange () 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 DateTime & | GetDateTime () 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< SdrUndoAction > | mpDrawUndo |
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 | |
ScDocShell * | pDocShell |
std::unique_ptr< SfxUndoAction > | pDetectiveUndo |
ViewShellId | mnViewShellId |
Definition at line 427 of file undoblk.hxx.
ScUndoMerge::ScUndoMerge | ( | ScDocShell * | pNewDocShell, |
ScCellMergeOption | aOption, | ||
bool | bMergeContents, | ||
ScDocumentUniquePtr | pUndoDoc, | ||
std::unique_ptr< SdrUndoAction > | pDrawUndo | ||
) |
Definition at line 638 of file undoblk3.cxx.
|
overridevirtual |
Definition at line 648 of file undoblk3.cxx.
References mpDrawUndo.
|
overridevirtual |
|
private |
Definition at line 658 of file undoblk3.cxx.
References ScViewFunc::AdjustRowHeight(), ScRange::aEnd, ALL, ScDocument::ApplyAttr(), ScRange::aStart, ATTR_HOR_JUSTIFY(), ATTR_VER_JUSTIFY(), ScDocument::BroadcastCells(), ScAddress::Col(), CONTENTS, ScDocument::DeleteAreaTab(), ScDocument::DoMerge(), ScDocument::DoMergeContents(), DoSdrUndoAction(), FORGETCAPTIONS, ScTabViewShell::GetActiveViewShell(), ScDocShell::GetCurTab(), ScDocShell::GetDocument(), ScCellMergeOption::getSingleRange(), maOption, ScUndoUtil::MarkSimpleBlock(), ScCellMergeOption::maTabs, ScCellMergeOption::mbCenter, mbMergeContents, ScCellMergeOption::mnEndRow, ScCellMergeOption::mnStartRow, mpDrawUndo, mxUndoDoc, NOCAPTIONS, ScUndoUtil::PaintMore(), ScSimpleUndo::pDocShell, RedoSdrUndoAction(), ScDocument::RemoveMerge(), ScAddress::Row(), ScTabView::SetTabNo(), ScSimpleUndo::ShowTable(), and ScAddress::Tab().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 653 of file undoblk3.cxx.
References ScResId().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 746 of file undoblk3.cxx.
References ScSimpleUndo::BeginRedo(), DoChange(), and ScSimpleUndo::EndRedo().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 753 of file undoblk3.cxx.
References SfxShell::GetViewShell(), ScViewFunc::MergeCells(), and rTarget.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 739 of file undoblk3.cxx.
References ScSimpleUndo::BeginUndo(), DoChange(), and ScSimpleUndo::EndUndo().
|
private |
Definition at line 443 of file undoblk.hxx.
Referenced by DoChange().
|
private |
Definition at line 444 of file undoblk.hxx.
Referenced by DoChange().
|
private |
Definition at line 446 of file undoblk.hxx.
Referenced by DoChange(), and ~ScUndoMerge().
|
private |
Definition at line 445 of file undoblk.hxx.
Referenced by DoChange().