diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-27 19:49:02 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-30 09:23:55 +0200 |
commit | 99394c8e09631280f9d76a790832133f5ef7b873 (patch) | |
tree | a0fe4223609d39fbde44afc61afd336ba5dcab9e /include | |
parent | dc755a3f7581b915f1f278e87af04d164514061d (diff) |
Add SvxTableController::setCursorLogicPosition()
With this, it's possible to drag the start or end handle of an Impress
table selection and let it grow/shrink.
Change-Id: Icdee1207c1c3a6b1c4fb15d00008db6327d6e2de
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/sdr/table/tablecontroller.hxx | 2 | ||||
-rw-r--r-- | include/svx/selectioncontroller.hxx | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/svx/sdr/table/tablecontroller.hxx b/include/svx/sdr/table/tablecontroller.hxx index b6d610cbd9d3..6145dc4eab1b 100644 --- a/include/svx/sdr/table/tablecontroller.hxx +++ b/include/svx/sdr/table/tablecontroller.hxx @@ -93,6 +93,8 @@ public: SVX_DLLPRIVATE virtual bool PasteObjModel( const SdrModel& rModel ) SAL_OVERRIDE; SVX_DLLPRIVATE virtual bool hasSelectedCells() const SAL_OVERRIDE { return mbCellSelectionMode || mpView->IsTextEdit(); } + /// @see sdr::SelectionController::setCursorLogicPosition(). + SVX_DLLPRIVATE virtual void setCursorLogicPosition(const Point& rPosition, bool bPoint) SAL_OVERRIDE; void getSelectedCells( CellPos& rFirstPos, CellPos& rLastPos ); void setSelectedCells( const CellPos& rFirstPos, const CellPos& rLastPos ); diff --git a/include/svx/selectioncontroller.hxx b/include/svx/selectioncontroller.hxx index f629b20cffd1..214ccd9cff75 100644 --- a/include/svx/selectioncontroller.hxx +++ b/include/svx/selectioncontroller.hxx @@ -32,6 +32,7 @@ class SfxRequest; class SfxStyleSheet; class SdrPage; class SdrModel; +class Point; namespace sdr { @@ -70,6 +71,8 @@ public: virtual bool ApplyFormatPaintBrush( SfxItemSet& rFormatSet, bool bNoCharacterFormats, bool bNoParagraphFormats ); /// This is a table object, and one or more of its cells are selected. virtual bool hasSelectedCells() const; + /// Allows adjusting the point or mark of the selection to a document coordinate. + virtual void setCursorLogicPosition(const Point& rPosition, bool bPoint); }; } |