summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-09-01 16:29:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-13 23:08:19 +0200
commit4cef3204e011b235b807d26ddb3c901690b633ff (patch)
tree05eaab280e051daf96ab846a8c2c8c3e65001667 /sw
parent51c558930a261a5bd63569965fe360f316b9f3f4 (diff)
tdf#150712 limit the dialog to only a sample of the data
instead of the entire area, which makes the dialog pretty much instantaneous Change-Id: Icb08a09733ee872b67d5be00cb083139f05fba7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139214 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit b24eceb5178fda17fcc4b20c5286e8d27c5ae474) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139186
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/view.hxx2
-rw-r--r--sw/source/uibase/uiview/view.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx
index 422da7fe3ea6..b249710715d7 100644
--- a/sw/inc/view.hxx
+++ b/sw/inc/view.hxx
@@ -397,7 +397,7 @@ public:
OUString GetSelectionTextParam( bool bCompleteWords,
bool bEraseTrail );
virtual bool HasSelection( bool bText = true ) const override;
- virtual OUString GetSelectionText( bool bCompleteWords = false ) override;
+ virtual OUString GetSelectionText( bool bCompleteWords = false, bool bOnlyASample = false ) override;
virtual bool PrepareClose( bool bUI = true ) override;
virtual void MarginChanged() override;
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index 4159b8714a7c..3ecd3450ae6c 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -1647,7 +1647,7 @@ bool SwView::HasSelection( bool bText ) const
: GetWrtShell().HasSelection();
}
-OUString SwView::GetSelectionText( bool bCompleteWrds )
+OUString SwView::GetSelectionText( bool bCompleteWrds, bool /*bOnlyASample*/ )
{
return GetSelectionTextParam( bCompleteWrds, true );
}