LibreOffice Module vcl (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
TextUndo Class Referenceabstract

#include <textundo.hxx>

Inheritance diagram for TextUndo:
Collaboration diagram for TextUndo:

Public Member Functions

 TextUndo (TextEngine *pTextEngine)
virtual ~TextUndo () override
TextEngineGetTextEngine () const
virtual void Undo () override=0
virtual void Redo () override=0
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

Protected Member Functions

TextViewGetView () const
void SetSelection (const TextSelection &rSel)
TextDocGetDoc () const
TEParaPortionsGetTEParaPortions () const

Private Attributes


Detailed Description

Definition at line 52 of file textundo.hxx.

Constructor & Destructor Documentation

◆ TextUndo()

TextUndo::TextUndo ( TextEngine pTextEngine)

Definition at line 119 of file textundo.cxx.

References mpTextEngine, and p.

◆ ~TextUndo()

TextUndo::~TextUndo ( )

Definition at line 124 of file textundo.cxx.

Member Function Documentation

◆ GetComment()

OUString TextUndo::GetComment ( ) const

Reimplemented from SfxUndoAction.

Reimplemented in TextUndoDelPara, TextUndoConnectParas, TextUndoSplitPara, TextUndoInsertChars, and TextUndoRemoveChars.

Definition at line 128 of file textundo.cxx.

◆ GetDoc()

TextDoc * TextUndo::GetDoc ( ) const

Definition at line 62 of file textundo.hxx.

References TextEngine::mpDoc, and mpTextEngine.

Referenced by TextUndoDelPara::Redo().

◆ GetTEParaPortions()

TEParaPortions * TextUndo::GetTEParaPortions ( ) const

Definition at line 63 of file textundo.hxx.

References TextEngine::mpTEParaPortions, and mpTextEngine.

Referenced by TextUndoDelPara::Redo().

◆ GetTextEngine()

TextEngine * TextUndo::GetTextEngine ( ) const

◆ GetView()

TextView * TextUndo::GetView ( ) const

Definition at line 59 of file textundo.hxx.

References TextEngine::GetActiveView(), and mpTextEngine.

Referenced by SetSelection(), and TextUndoDelPara::Undo().

◆ Redo()

virtual void TextUndo::Redo ( )
overridepure virtual

◆ SetSelection()

void TextUndo::SetSelection ( const TextSelection rSel)

◆ Undo()

virtual void TextUndo::Undo ( )
overridepure virtual

Member Data Documentation

◆ mpTextEngine

TextEngine* TextUndo::mpTextEngine

Definition at line 55 of file textundo.hxx.

Referenced by GetDoc(), GetTEParaPortions(), GetTextEngine(), GetView(), and TextUndo().

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