LibreOffice Module sw (master) 1
|
Access to the block cursor. More...
#include <BlockCursor.hxx>
Public Member Functions | |
SwBlockCursor (const SwCursorShell &rCursorSh, const SwPosition &rPos) | |
SwShellCursor & | getShellCursor () |
Access to the shell cursor. More... | |
void | setStartPoint (const Point &rPt) |
Defines the starting vertex of the block selection. More... | |
void | setEndPoint (const Point &rPt) |
Defines the ending vertex of the block selection. More... | |
std::optional< Point > const & | getStartPoint () const |
The document coordinates where the block selection has been started. More... | |
std::optional< Point > const & | getEndPoint () const |
The document coordinates where the block selection ends (at the moment) More... | |
void | clearPoints () |
Deletion of the mouse created rectangle. More... | |
~SwBlockCursor () | |
Private Attributes | |
SwShellCursor | maCursor |
std::optional< Point > | maStartPt |
std::optional< Point > | maEndPt |
Access to the block cursor.
A block cursor contains a SwShellCursor and additional information about the rectangle which has been created by pressing the mouse button and moving the mouse.
It's simply an aggregation of a SwShellCursor and a rectangle defined by a start and an end point.
Definition at line 39 of file BlockCursor.hxx.
|
inline |
Definition at line 46 of file BlockCursor.hxx.
SwBlockCursor::~SwBlockCursor | ( | ) |
Definition at line 23 of file BlockCursor.cxx.
|
inline |
Deletion of the mouse created rectangle.
When start and end points exist, the block cursor depends on this. If the cursor is moved by cursor keys (e.g. up/down, home/end) the mouse rectangle is obsolete and has to be deleted.
Definition at line 84 of file BlockCursor.hxx.
References maEndPt, and maStartPt.
Referenced by SwCursorShell::CursorToBlockCursor(), SwCursorShell::KillPams(), SwCursorShell::LeftRight(), SwCursorShell::LRMargin(), SwCursorShell::SttEndDoc(), and SwCursorShell::UpDown().
|
inline |
The document coordinates where the block selection ends (at the moment)
Definition at line 77 of file BlockCursor.hxx.
References maEndPt.
Referenced by SwCursorShell::RefreshBlockCursor().
SwShellCursor & SwBlockCursor::getShellCursor | ( | ) |
Access to the shell cursor.
Definition at line 25 of file BlockCursor.cxx.
References maCursor.
Referenced by SwCursorShell::BlockCursorToCursor(), SwCursorShell::CursorToBlockCursor(), SwCursorShell::getShellCursor(), SwCursorShell::KillPams(), SwCursorShell::RefreshBlockCursor(), and SwCursorShell::SttEndDoc().
|
inline |
The document coordinates where the block selection has been started.
Definition at line 72 of file BlockCursor.hxx.
References maStartPt.
Referenced by SwCursorShell::RefreshBlockCursor(), and SwCursorShell::SetCursor().
|
inline |
Defines the ending vertex of the block selection.
rPt | rPt should contain the document coordinates of the mouse cursor when the block selection has started and the mouse has been moved (MouseMove) |
Definition at line 67 of file BlockCursor.hxx.
References maEndPt.
Referenced by SwCursorShell::SetCursor().
|
inline |
Defines the starting vertex of the block selection.
rPt | rPt should contain the document coordinates of the mouse cursor when the block selection starts (MouseButtonDown) |
Definition at line 60 of file BlockCursor.hxx.
References maStartPt.
Referenced by SwCursorShell::SetCursor().
|
private |
Definition at line 41 of file BlockCursor.hxx.
Referenced by getShellCursor().
|
private |
Definition at line 43 of file BlockCursor.hxx.
Referenced by clearPoints(), getEndPoint(), and setEndPoint().
|
private |
Definition at line 42 of file BlockCursor.hxx.
Referenced by clearPoints(), getStartPoint(), and setStartPoint().