diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-13 15:54:56 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-13 16:42:41 +0200 |
commit | f7764214f2ab8aff030aaeb29efd693275822761 (patch) | |
tree | 31678334a77fb53e5d788d304eff9261f38786e4 /include | |
parent | 2e0b9891764bb4cae6ed9a1b111d9b6dafeee92d (diff) |
editeng: add EditView::GetSelectionRectangles()
This gives sd access to the selection rectangles as well (as opposed
only to the document model positions of selections).
Change-Id: Icb903e91f9e868573403b360bbe839705ddf2916
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editview.hxx | 2 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx index 835e540ec5fc..d6b21f2960d4 100644 --- a/include/editeng/editview.hxx +++ b/include/editeng/editview.hxx @@ -122,6 +122,8 @@ public: ESelection GetSelection() const; void SetSelection( const ESelection& rNewSel ); bool SelectCurrentWord( sal_Int16 nWordType = ::com::sun::star::i18n::WordType::ANYWORD_IGNOREWHITESPACES ); + /// Returns the rectangles of the current selection in TWIPs. + void GetSelectionRectangles(std::vector<Rectangle>& rLogicRects) const; bool IsInsertMode() const; void SetInsertMode( bool bInsert ); diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index b996ef2cd08e..d797f9d462c3 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -314,6 +314,7 @@ public: void SetVisArea( const Rectangle& rRect ); void SetSelection( const ESelection& ); + void GetSelectionRectangles(std::vector<Rectangle>& rLogicRects) const; void RemoveAttribs( bool bRemoveParaAttribs = false, sal_uInt16 nWhich = 0, bool bKeepLanguages = false ); void RemoveAttribsKeepLanguages( bool bRemoveParaAttribs ); |