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 UndoWithContext (SfxUndoContext &i_context)
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual void Repeat (SfxRepeatTarget &)
 
virtual bool CanRepeat (SfxRepeatTarget &) const
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
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 53 of file textundo.hxx.

Constructor & Destructor Documentation

TextUndo::TextUndo ( TextEngine pTextEngine)
explicit

Definition at line 118 of file textundo.cxx.

References mpTextEngine.

TextUndo::~TextUndo ( )
overridevirtual

Definition at line 123 of file textundo.cxx.

Member Function Documentation

OUString TextUndo::GetComment ( ) const
overridevirtual

Reimplemented from SfxUndoAction.

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

Definition at line 127 of file textundo.cxx.

TextDoc* TextUndo::GetDoc ( ) const
inlineprotected

Definition at line 63 of file textundo.hxx.

References TextEngine::mpDoc.

Referenced by TextUndoDelPara::Redo().

TEParaPortions* TextUndo::GetTEParaPortions ( ) const
inlineprotected

Definition at line 64 of file textundo.hxx.

References TextEngine::mpTEParaPortions.

Referenced by TextUndoDelPara::Redo().

TextEngine* TextUndo::GetTextEngine ( ) const
inline
TextView* TextUndo::GetView ( ) const
inlineprotected

Definition at line 60 of file textundo.hxx.

References TextEngine::GetActiveView().

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

virtual void TextUndo::Redo ( )
overridepure virtual
void TextUndo::SetSelection ( const TextSelection rSel)
protected
virtual void TextUndo::Undo ( )
overridepure virtual

Member Data Documentation

TextEngine* TextUndo::mpTextEngine
private

Definition at line 56 of file textundo.hxx.

Referenced by GetTextEngine(), and TextUndo().


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