|
LibreOffice Module sc (master) 1
|
#include <undocell.hxx>
Public Member Functions | |
| ScUndoCursorAttr (ScDocShell *pNewDocShell, SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, const ScPatternAttr *pOldPat, const ScPatternAttr *pNewPat, const ScPatternAttr *pApplyPat) | |
| virtual | ~ScUndoCursorAttr () 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 |
| void | SetEditData (std::unique_ptr< EditTextObject > pOld, std::unique_ptr< EditTextObject > pNew) |
| once the objects are passed to this class, their life-cycle is managed by this class; the calling function must pass new'ed objects to this method. More... | |
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 ScPatternAttr *pWhichPattern, const std::unique_ptr< EditTextObject > &pEditData) const |
Private Attributes | |
| SCCOL | nCol |
| SCROW | nRow |
| SCTAB | nTab |
| ScPatternAttr * | pOldPattern |
| ScPatternAttr * | pNewPattern |
| ScPatternAttr * | pApplyPattern |
| std::unique_ptr< EditTextObject > | pOldEditData |
| std::unique_ptr< EditTextObject > | pNewEditData |
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 36 of file undocell.hxx.
| ScUndoCursorAttr::ScUndoCursorAttr | ( | ScDocShell * | pNewDocShell, |
| SCCOL | nNewCol, | ||
| SCROW | nNewRow, | ||
| SCTAB | nNewTab, | ||
| const ScPatternAttr * | pOldPat, | ||
| const ScPatternAttr * | pNewPat, | ||
| const ScPatternAttr * | pApplyPat | ||
| ) |
Definition at line 75 of file undocell.cxx.
References ScDocShell::GetDocument(), ScDocument::GetPool(), pApplyPattern, ScSimpleUndo::pDocShell, pNewPattern, pOldPattern, and SfxItemPool::Put().
|
overridevirtual |
Definition at line 92 of file undocell.cxx.
References ScDocShell::GetDocument(), ScDocument::GetPool(), pApplyPattern, ScSimpleUndo::pDocShell, pNewPattern, pOldPattern, and SfxItemPool::Remove().
|
overridevirtual |
|
private |
Definition at line 112 of file undocell.cxx.
References ScViewFunc::AdjustBlockHeight(), ATTR_CONDITIONAL(), ATTR_HOR_JUSTIFY(), ATTR_SHADOW(), CELLTYPE_EDIT, ScTabViewShell::GetActiveViewShell(), ScDocument::GetCellType(), ScDocShell::GetDocument(), ScPatternAttr::GetItemSet(), SfxItemSet::GetItemState(), Grid, ScTabView::MoveCursorAbs(), nCol, nRow, nTab, pApplyPattern, ScSimpleUndo::pDocShell, ScDocShell::PostPaint(), SC_FOLLOW_JUMP, SC_PF_LINES, SC_PF_TESTMERGE, SC_PF_WHOLEROWS, ScDocument::SetEditText(), ScDocument::SetPattern(), and ScTabView::SetTabNo().
|
overridevirtual |
own text for automatic attribution
Reimplemented from SfxUndoAction.
Definition at line 100 of file undocell.cxx.
References ScResId().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 149 of file undocell.cxx.
References ScSimpleUndo::BeginRedo(), DoChange(), ScSimpleUndo::EndRedo(), pNewEditData, and pNewPattern.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 156 of file undocell.cxx.
References pApplyPattern, and rTarget.
| void ScUndoCursorAttr::SetEditData | ( | std::unique_ptr< EditTextObject > | pOld, |
| std::unique_ptr< EditTextObject > | pNew | ||
| ) |
once the objects are passed to this class, their life-cycle is managed by this class; the calling function must pass new'ed objects to this method.
Definition at line 106 of file undocell.cxx.
References pNewEditData, and pOldEditData.
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 142 of file undocell.cxx.
References ScSimpleUndo::BeginUndo(), DoChange(), ScSimpleUndo::EndUndo(), pOldEditData, and pOldPattern.
|
private |
Definition at line 58 of file undocell.hxx.
Referenced by DoChange().
|
private |
Definition at line 59 of file undocell.hxx.
Referenced by DoChange().
|
private |
Definition at line 60 of file undocell.hxx.
Referenced by DoChange().
|
private |
Definition at line 63 of file undocell.hxx.
Referenced by DoChange(), Repeat(), ScUndoCursorAttr(), and ~ScUndoCursorAttr().
|
private |
Definition at line 65 of file undocell.hxx.
Referenced by Redo(), and SetEditData().
|
private |
Definition at line 62 of file undocell.hxx.
Referenced by Redo(), ScUndoCursorAttr(), and ~ScUndoCursorAttr().
|
private |
Definition at line 64 of file undocell.hxx.
Referenced by SetEditData(), and Undo().
|
private |
Definition at line 61 of file undocell.hxx.
Referenced by ScUndoCursorAttr(), Undo(), and ~ScUndoCursorAttr().