From f7764214f2ab8aff030aaeb29efd693275822761 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 13 Oct 2015 15:54:56 +0200 Subject: 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 --- include/editeng/editview.hxx | 2 ++ include/editeng/outliner.hxx | 1 + 2 files changed, 3 insertions(+) (limited to 'include/editeng') 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& 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& rLogicRects) const; void RemoveAttribs( bool bRemoveParaAttribs = false, sal_uInt16 nWhich = 0, bool bKeepLanguages = false ); void RemoveAttribsKeepLanguages( bool bRemoveParaAttribs ); -- cgit