summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2020-05-23 16:52:09 +0200
committerTomaž Vajngerl <quikee@gmail.com>2020-05-23 19:15:21 +0200
commitbeacca27ecc1b1463477c644e36a7e5815053433 (patch)
tree46ae3ed03a6aee25d620a2b01cb6845dccc773b6 /sd
parent0f593cbec826e79051a13c5b18bbe796cef12519 (diff)
sd: move SearchSelection constructor to header file
Change-Id: I71d7986044208b6c733c1d46db7bf84bc6254915 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94727 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/inc/Outliner.hxx7
-rw-r--r--sd/source/ui/view/Outliner.cxx11
2 files changed, 6 insertions, 12 deletions
diff --git a/sd/inc/Outliner.hxx b/sd/inc/Outliner.hxx
index c95786577b62..3a73b9339f09 100644
--- a/sd/inc/Outliner.hxx
+++ b/sd/inc/Outliner.hxx
@@ -46,13 +46,18 @@ struct SearchSelection
{
/// 0-based index of the page that has the selection.
int m_nPage;
+
/**
* List of selection rectangles in twips -- multiple rectangles only in
* case the selection spans over more layout lines.
*/
OString m_aRectangles;
- SearchSelection(int nPage, const OString& rRectangles);
+ SearchSelection(int nPage, const OString& rRectangles)
+ : m_nPage(nPage)
+ , m_aRectangles(rRectangles)
+ {
+ }
bool operator==(const SearchSelection& rOther) const
{
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index e67d823e9a11..e7f676f43e4e 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -66,17 +66,6 @@ using namespace ::com::sun::star::linguistic2;
class SfxStyleSheetPool;
-namespace sd {
-
-SearchSelection::SearchSelection(int nPage, const OString& rRectangles)
- : m_nPage(nPage),
- m_aRectangles(rRectangles)
-{
-}
-
-} // end of namespace sd
-
-
class SdOutliner::Implementation
{
public: