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

#include <undocell.hxx>

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

Public Member Functions

 ScUndoPageBreak (ScDocShell *pNewDocShell, SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, bool bNewColumn, bool bNewInsert)
 
virtual ~ScUndoPageBreak () 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< ScRangegetAffectedRange () 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 DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Member Functions

void DoChange (bool bInsert) const
 

Private Attributes

SCCOL nCol
 
SCROW nRow
 
SCTAB nTab
 
bool bColumn
 
bool bInsert
 

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

Constructor & Destructor Documentation

◆ ScUndoPageBreak()

ScUndoPageBreak::ScUndoPageBreak ( ScDocShell pNewDocShell,
SCCOL  nNewCol,
SCROW  nNewRow,
SCTAB  nNewTab,
bool  bNewColumn,
bool  bNewInsert 
)

Definition at line 500 of file undocell.cxx.

◆ ~ScUndoPageBreak()

ScUndoPageBreak::~ScUndoPageBreak ( )
overridevirtual

Definition at line 512 of file undocell.cxx.

Member Function Documentation

◆ CanRepeat()

bool ScUndoPageBreak::CanRepeat ( SfxRepeatTarget &  rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 575 of file undocell.cxx.

References rTarget.

◆ DoChange()

void ScUndoPageBreak::DoChange ( bool  bInsert) const
private

◆ GetComment()

OUString ScUndoPageBreak::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 516 of file undocell.cxx.

References bColumn, bInsert, and ScResId().

◆ Redo()

void ScUndoPageBreak::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 555 of file undocell.cxx.

References ScSimpleUndo::BeginRedo(), bInsert, DoChange(), and ScSimpleUndo::EndRedo().

◆ Repeat()

void ScUndoPageBreak::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

◆ Undo()

void ScUndoPageBreak::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 548 of file undocell.cxx.

References ScSimpleUndo::BeginUndo(), bInsert, DoChange(), and ScSimpleUndo::EndUndo().

Member Data Documentation

◆ bColumn

bool ScUndoPageBreak::bColumn
private

Definition at line 184 of file undocell.hxx.

Referenced by DoChange(), GetComment(), and Repeat().

◆ bInsert

bool ScUndoPageBreak::bInsert
private

Definition at line 185 of file undocell.hxx.

Referenced by GetComment(), Redo(), Repeat(), and Undo().

◆ nCol

SCCOL ScUndoPageBreak::nCol
private

Definition at line 181 of file undocell.hxx.

Referenced by DoChange().

◆ nRow

SCROW ScUndoPageBreak::nRow
private

Definition at line 182 of file undocell.hxx.

Referenced by DoChange().

◆ nTab

SCTAB ScUndoPageBreak::nTab
private

Definition at line 183 of file undocell.hxx.

Referenced by DoChange().


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