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

#include <undocell.hxx>

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

Public Member Functions

 ScUndoPrintZoom (ScDocShell *pNewDocShell, SCTAB nT, sal_uInt16 nOS, sal_uInt16 nOP, sal_uInt16 nNS, sal_uInt16 nNP)
 
virtual ~ScUndoPrintZoom () 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 bUndo)
 

Private Attributes

SCTAB nTab
 
sal_uInt16 nOldScale
 
sal_uInt16 nOldPages
 
sal_uInt16 nNewScale
 
sal_uInt16 nNewPages
 

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

Constructor & Destructor Documentation

◆ ScUndoPrintZoom()

ScUndoPrintZoom::ScUndoPrintZoom ( ScDocShell pNewDocShell,
SCTAB  nT,
sal_uInt16  nOS,
sal_uInt16  nOP,
sal_uInt16  nNS,
sal_uInt16  nNP 
)

Definition at line 580 of file undocell.cxx.

◆ ~ScUndoPrintZoom()

ScUndoPrintZoom::~ScUndoPrintZoom ( )
overridevirtual

Definition at line 591 of file undocell.cxx.

Member Function Documentation

◆ CanRepeat()

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

Reimplemented from SfxUndoAction.

Definition at line 645 of file undocell.cxx.

References rTarget.

◆ DoChange()

void ScUndoPrintZoom::DoChange ( bool  bUndo)
private

◆ GetComment()

OUString ScUndoPrintZoom::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 595 of file undocell.cxx.

References ScResId().

◆ Redo()

void ScUndoPrintZoom::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 628 of file undocell.cxx.

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

◆ Repeat()

void ScUndoPrintZoom::Repeat ( SfxRepeatTarget &  rTarget)
overridevirtual

◆ Undo()

void ScUndoPrintZoom::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 621 of file undocell.cxx.

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

Member Data Documentation

◆ nNewPages

sal_uInt16 ScUndoPrintZoom::nNewPages
private

Definition at line 209 of file undocell.hxx.

Referenced by DoChange(), and Repeat().

◆ nNewScale

sal_uInt16 ScUndoPrintZoom::nNewScale
private

Definition at line 208 of file undocell.hxx.

Referenced by DoChange(), and Repeat().

◆ nOldPages

sal_uInt16 ScUndoPrintZoom::nOldPages
private

Definition at line 207 of file undocell.hxx.

Referenced by DoChange().

◆ nOldScale

sal_uInt16 ScUndoPrintZoom::nOldScale
private

Definition at line 206 of file undocell.hxx.

Referenced by DoChange().

◆ nTab

SCTAB ScUndoPrintZoom::nTab
private

Definition at line 205 of file undocell.hxx.

Referenced by DoChange().


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