LibreOffice Module sc (master) 1
|
#include <undoblk.hxx>
Public Member Functions | |
ScUndoSelectionAttr (ScDocShell *pNewDocShell, const ScMarkData &rMark, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ, ScDocumentUniquePtr pNewUndoDoc, bool bNewMulti, const ScPatternAttr *pNewApply, const SvxBoxItem *pNewOuter=nullptr, const SvxBoxInfoItem *pNewInner=nullptr, const ScRange *pRangeCover=nullptr) | |
virtual | ~ScUndoSelectionAttr () 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 |
ScEditDataArray * | GetDataArray () |
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 (const bool bUndo) |
void | ChangeEditData (const bool bUndo) |
Private Attributes | |
ScMarkData | aMarkData |
ScRange | aRange |
ScRange | aRangeCover |
std::unique_ptr< ScEditDataArray > | mpDataArray |
ScDocumentUniquePtr | pUndoDoc |
bool | bMulti |
ScPatternAttr * | pApplyPattern |
SvxBoxItem * | pLineOuter |
SvxBoxInfoItem * | pLineInner |
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 319 of file undoblk.hxx.
ScUndoSelectionAttr::ScUndoSelectionAttr | ( | ScDocShell * | pNewDocShell, |
const ScMarkData & | rMark, | ||
SCCOL | nStartX, | ||
SCROW | nStartY, | ||
SCTAB | nStartZ, | ||
SCCOL | nEndX, | ||
SCROW | nEndY, | ||
SCTAB | nEndZ, | ||
ScDocumentUniquePtr | pNewUndoDoc, | ||
bool | bNewMulti, | ||
const ScPatternAttr * | pNewApply, | ||
const SvxBoxItem * | pNewOuter = nullptr , |
||
const SvxBoxInfoItem * | pNewInner = nullptr , |
||
const ScRange * | pRangeCover = nullptr |
||
) |
Definition at line 342 of file undoblk3.cxx.
References aRange, aRangeCover, ScDocShell::GetDocument(), ScDocument::GetPool(), pApplyPattern, ScSimpleUndo::pDocShell, pLineInner, pLineOuter, and SfxItemPool::Put().
|
overridevirtual |
Definition at line 364 of file undoblk3.cxx.
References ScDocShell::GetDocument(), ScDocument::GetPool(), pApplyPattern, ScSimpleUndo::pDocShell, pLineInner, pLineOuter, pUndoDoc, and SfxItemPool::Remove().
|
overridevirtual |
|
private |
Definition at line 427 of file undoblk3.cxx.
References CELLTYPE_EDIT, ScDocument::GetCellType(), ScDocShell::GetDocument(), mpDataArray, ScSimpleUndo::pDocShell, ScDocument::SetEditText(), and ScDocument::SetEmptyCell().
Referenced by DoChange().
|
private |
Definition at line 387 of file undoblk3.cxx.
References ScViewFunc::AdjustBlockHeight(), ScRange::aEnd, aMarkData, ScDocument::ApplySelectionFrame(), ScDocument::ApplySelectionPattern(), aRange, aRangeCover, ScRange::aStart, ATTRIB, bMulti, ChangeEditData(), ScDocument::ExtendMerge(), Extras, ScTabViewShell::GetActiveViewShell(), ScDocShell::GetDocument(), ScDocument::GetTableCount(), Grid, ScDocument::HasAttrib(), ScMarkData::MarkToMulti(), ScMarkData::MarkToSimple(), Merged, pApplyPattern, ScSimpleUndo::pDocShell, pLineInner, pLineOuter, ScDocShell::PostPaint(), pUndoDoc, ScAddress::SetTab(), ScSimpleUndo::SetViewMarkData(), ScSimpleUndo::ShowTable(), and ScDocShell::UpdatePaintExt().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 376 of file undoblk3.cxx.
References pLineOuter, and ScResId().
ScEditDataArray * ScUndoSelectionAttr::GetDataArray | ( | ) |
Definition at line 382 of file undoblk3.cxx.
References mpDataArray.
Referenced by ScViewFunc::ApplySelectionPattern().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 460 of file undoblk3.cxx.
References ScSimpleUndo::BeginRedo(), DoChange(), and ScSimpleUndo::EndRedo().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 467 of file undoblk3.cxx.
References ScViewFunc::ApplyPatternLines(), ScViewFunc::ApplySelectionPattern(), SfxShell::GetViewShell(), pApplyPattern, pLineInner, pLineOuter, and rTarget.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 453 of file undoblk3.cxx.
References ScSimpleUndo::BeginUndo(), DoChange(), and ScSimpleUndo::EndUndo().
|
private |
Definition at line 342 of file undoblk.hxx.
Referenced by DoChange().
|
private |
Definition at line 343 of file undoblk.hxx.
Referenced by DoChange(), and ScUndoSelectionAttr().
|
private |
Definition at line 344 of file undoblk.hxx.
Referenced by DoChange(), and ScUndoSelectionAttr().
|
private |
Definition at line 347 of file undoblk.hxx.
Referenced by DoChange().
|
private |
Definition at line 345 of file undoblk.hxx.
Referenced by ChangeEditData(), and GetDataArray().
|
private |
Definition at line 348 of file undoblk.hxx.
Referenced by DoChange(), Repeat(), ScUndoSelectionAttr(), and ~ScUndoSelectionAttr().
|
private |
Definition at line 350 of file undoblk.hxx.
Referenced by DoChange(), Repeat(), ScUndoSelectionAttr(), and ~ScUndoSelectionAttr().
|
private |
Definition at line 349 of file undoblk.hxx.
Referenced by DoChange(), GetComment(), Repeat(), ScUndoSelectionAttr(), and ~ScUndoSelectionAttr().
|
private |
Definition at line 346 of file undoblk.hxx.
Referenced by DoChange(), and ~ScUndoSelectionAttr().