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

#include <undocell.hxx>

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

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...
 
- 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 (const ScPatternAttr *pWhichPattern, const std::unique_ptr< EditTextObject > &pEditData) const
 

Private Attributes

SCCOL nCol
 
SCROW nRow
 
SCTAB nTab
 
ScPatternAttrpOldPattern
 
ScPatternAttrpNewPattern
 
ScPatternAttrpApplyPattern
 
std::unique_ptr< EditTextObjectpOldEditData
 
std::unique_ptr< EditTextObjectpNewEditData
 

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 37 of file undocell.hxx.

Constructor & Destructor Documentation

ScUndoCursorAttr::ScUndoCursorAttr ( ScDocShell pNewDocShell,
SCCOL  nNewCol,
SCROW  nNewRow,
SCTAB  nNewTab,
const ScPatternAttr pOldPat,
const ScPatternAttr pNewPat,
const ScPatternAttr pApplyPat 
)
ScUndoCursorAttr::~ScUndoCursorAttr ( )
overridevirtual

Member Function Documentation

bool ScUndoCursorAttr::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 152 of file undocell.cxx.

void ScUndoCursorAttr::DoChange ( const ScPatternAttr pWhichPattern,
const std::unique_ptr< EditTextObject > &  pEditData 
) const
private
OUString ScUndoCursorAttr::GetComment ( ) const
overridevirtual

own text for automatic attribution

Reimplemented from SfxUndoAction.

Definition at line 90 of file undocell.cxx.

References ScResId().

void ScUndoCursorAttr::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 139 of file undocell.cxx.

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

void ScUndoCursorAttr::Repeat ( SfxRepeatTarget rTarget)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 146 of file undocell.cxx.

References pApplyPattern.

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 96 of file undocell.cxx.

References pNewEditData, and pOldEditData.

void ScUndoCursorAttr::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 132 of file undocell.cxx.

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

Member Data Documentation

SCCOL ScUndoCursorAttr::nCol
private

Definition at line 59 of file undocell.hxx.

Referenced by DoChange().

SCROW ScUndoCursorAttr::nRow
private

Definition at line 60 of file undocell.hxx.

Referenced by DoChange().

SCTAB ScUndoCursorAttr::nTab
private

Definition at line 61 of file undocell.hxx.

Referenced by DoChange().

ScPatternAttr* ScUndoCursorAttr::pApplyPattern
private

Definition at line 64 of file undocell.hxx.

Referenced by DoChange(), Repeat(), ScUndoCursorAttr(), and ~ScUndoCursorAttr().

std::unique_ptr<EditTextObject> ScUndoCursorAttr::pNewEditData
private

Definition at line 66 of file undocell.hxx.

Referenced by Redo(), and SetEditData().

ScPatternAttr* ScUndoCursorAttr::pNewPattern
private

Definition at line 63 of file undocell.hxx.

Referenced by Redo(), ScUndoCursorAttr(), and ~ScUndoCursorAttr().

std::unique_ptr<EditTextObject> ScUndoCursorAttr::pOldEditData
private

Definition at line 65 of file undocell.hxx.

Referenced by SetEditData(), and Undo().

ScPatternAttr* ScUndoCursorAttr::pOldPattern
private

Definition at line 62 of file undocell.hxx.

Referenced by ScUndoCursorAttr(), Undo(), and ~ScUndoCursorAttr().


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