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

A helper class to save cursor state (position). More...

#include <swcrsr.hxx>

Collaboration diagram for SwCursorSaveState:
[legend]

Public Member Functions

 SwCursorSaveState (SwCursor &rC)
 
 ~SwCursorSaveState ()
 

Private Attributes

SwCursorm_rCursor
 

Detailed Description

A helper class to save cursor state (position).

Create SwCursorSaveState object to save current state, use SwCursor::RestoreSavePos() to actually restore cursor state to the saved state (SwCursorSaveState destructor only removes the saved state from an internal stack). It is possible to stack several SwCursorSaveState objects.

Definition at line 230 of file swcrsr.hxx.

Constructor & Destructor Documentation

SwCursorSaveState::SwCursorSaveState ( SwCursor rC)
inline

Definition at line 235 of file swcrsr.hxx.

References SwCursor::SaveState().

SwCursorSaveState::~SwCursorSaveState ( )
inline

Definition at line 236 of file swcrsr.hxx.

References SwCursor::RestoreState().

Member Data Documentation

SwCursor& SwCursorSaveState::m_rCursor
private

Definition at line 233 of file swcrsr.hxx.


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