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:
[legend]
Collaboration diagram for TextUndo:
[legend]

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

TextEnginempTextEngine
 

Detailed Description

Definition at line 52 of file textundo.hxx.

Constructor & Destructor Documentation

◆ TextUndo()

TextUndo::TextUndo ( TextEngine pTextEngine)
explicit

Definition at line 119 of file textundo.cxx.

References mpTextEngine, and p.

◆ ~TextUndo()

TextUndo::~TextUndo ( )
overridevirtual

Definition at line 124 of file textundo.cxx.

Member Function Documentation

◆ GetComment()

OUString TextUndo::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

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

Definition at line 128 of file textundo.cxx.

◆ GetDoc()

TextDoc * TextUndo::GetDoc ( ) const
inlineprotected

Definition at line 62 of file textundo.hxx.

References TextEngine::mpDoc, and mpTextEngine.

Referenced by TextUndoDelPara::Redo().

◆ GetTEParaPortions()

TEParaPortions * TextUndo::GetTEParaPortions ( ) const
inlineprotected

Definition at line 63 of file textundo.hxx.

References TextEngine::mpTEParaPortions, and mpTextEngine.

Referenced by TextUndoDelPara::Redo().

◆ GetTextEngine()

TextEngine * TextUndo::GetTextEngine ( ) const
inline

◆ GetView()

TextView * TextUndo::GetView ( ) const
inlineprotected

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)
protected

◆ Undo()

virtual void TextUndo::Undo ( )
overridepure virtual

Member Data Documentation

◆ mpTextEngine

TextEngine* TextUndo::mpTextEngine
private

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: