LibreOffice Module starmath (master) 1
Public Member Functions | Private Attributes | List of all members
SmFormatAction Class Referencefinal

#include <action.hxx>

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

Public Member Functions

 SmFormatAction (SmDocShell *pDocSh, const SmFormat &rOldFormat, const SmFormat &rNewFormat)
 
virtual void Undo () override
 
virtual void Redo () override
 
virtual void Repeat (SfxRepeatTarget &rDocSh) override
 
virtual OUString GetComment () const override
 
- 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 Attributes

SmDocShellpDoc
 
SmFormat aOldFormat
 
SmFormat aNewFormat
 

Detailed Description

Definition at line 27 of file action.hxx.

Constructor & Destructor Documentation

◆ SmFormatAction()

SmFormatAction::SmFormatAction ( SmDocShell pDocSh,
const SmFormat rOldFormat,
const SmFormat rNewFormat 
)

Definition at line 24 of file action.cxx.

Member Function Documentation

◆ GetComment()

OUString SmFormatAction::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 48 of file action.cxx.

References RID_UNDOFORMATNAME.

◆ Redo()

void SmFormatAction::Redo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 38 of file action.cxx.

References aNewFormat, pDoc, and SmDocShell::SetFormat().

◆ Repeat()

void SmFormatAction::Repeat ( SfxRepeatTarget &  rDocSh)
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 43 of file action.cxx.

References aNewFormat, and SetFormat().

◆ Undo()

void SmFormatAction::Undo ( )
overridevirtual

Reimplemented from SfxUndoAction.

Definition at line 33 of file action.cxx.

References aOldFormat, pDoc, and SmDocShell::SetFormat().

Member Data Documentation

◆ aNewFormat

SmFormat SmFormatAction::aNewFormat
private

Definition at line 31 of file action.hxx.

Referenced by Redo(), and Repeat().

◆ aOldFormat

SmFormat SmFormatAction::aOldFormat
private

Definition at line 30 of file action.hxx.

Referenced by Undo().

◆ pDoc

SmDocShell* SmFormatAction::pDoc
private

Definition at line 29 of file action.hxx.

Referenced by Redo(), and Undo().


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