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

Constructor & Destructor Documentation

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

Definition at line 491 of file undocell.cxx.

ScUndoPageBreak::~ScUndoPageBreak ( )
overridevirtual

Definition at line 503 of file undocell.cxx.

Member Function Documentation

bool ScUndoPageBreak::CanRepeat ( SfxRepeatTarget rTarget) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 566 of file undocell.cxx.

void ScUndoPageBreak::DoChange ( bool  bInsert) const
private
OUString ScUndoPageBreak::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 507 of file undocell.cxx.

References bColumn, bInsert, and ScResId().

void ScUndoPageBreak::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 546 of file undocell.cxx.

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

void ScUndoPageBreak::Repeat ( SfxRepeatTarget rTarget)
overridevirtual
void ScUndoPageBreak::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 539 of file undocell.cxx.

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

Member Data Documentation

bool ScUndoPageBreak::bColumn
private

Definition at line 178 of file undocell.hxx.

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

bool ScUndoPageBreak::bInsert
private

Definition at line 179 of file undocell.hxx.

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

SCCOL ScUndoPageBreak::nCol
private

Definition at line 175 of file undocell.hxx.

Referenced by DoChange().

SCROW ScUndoPageBreak::nRow
private

Definition at line 176 of file undocell.hxx.

Referenced by DoChange().

SCTAB ScUndoPageBreak::nTab
private

Definition at line 177 of file undocell.hxx.

Referenced by DoChange().


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