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 232 of file swcrsr.hxx.

Constructor & Destructor Documentation

◆ SwCursorSaveState()

SwCursorSaveState::SwCursorSaveState ( SwCursor rC)
inline

Definition at line 237 of file swcrsr.hxx.

References SwCursor::SaveState().

◆ ~SwCursorSaveState()

SwCursorSaveState::~SwCursorSaveState ( )
inline

Definition at line 238 of file swcrsr.hxx.

References m_rCursor, and SwCursor::RestoreState().

Member Data Documentation

◆ m_rCursor

SwCursor& SwCursorSaveState::m_rCursor
private

Definition at line 235 of file swcrsr.hxx.

Referenced by ~SwCursorSaveState().


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