summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorJoren De Cuyper <jorendc@libreoffice.org>2015-05-02 17:21:24 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-05-10 19:49:19 +0000
commit69b35cb45375c324c1e28fd4547ce874e4894f30 (patch)
tree9154b89ca5612498ddf25f0e247de26397fc9dbc /svx/source
parent2523972f6a066488c649ab97dcba4f458126f18b (diff)
related tdf#88608: find: add string for reaching start of document
If you searched backwards and reached the start of the document, the text "Reached the end of the document" was shown. Change-Id: Ic35884de2f1ada07e76c9c3e27cf6c81c4a83304 Reviewed-on: https://gerrit.libreoffice.org/15597 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/dialog/srchdlg.cxx2
-rw-r--r--svx/source/dialog/srchdlg.src4
2 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index 415c14020e1a..33dbbb806797 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -2319,6 +2319,8 @@ void SvxSearchDialogWrapper::SetSearchLabel(const SearchLabel& rSL)
OUString sStr;
if (rSL == SL_End)
sStr = SVX_RESSTR(RID_SVXSTR_SEARCH_END);
+ else if (rSL == SL_Start)
+ sStr = SVX_RESSTR(RID_SVXSTR_SEARCH_START);
else if (rSL == SL_EndSheet)
sStr = SVX_RESSTR(RID_SVXSTR_SEARCH_END_SHEET);
else if (rSL == SL_NotFound)
diff --git a/svx/source/dialog/srchdlg.src b/svx/source/dialog/srchdlg.src
index c0fd4e5b6933..e50d3d7014e5 100644
--- a/svx/source/dialog/srchdlg.src
+++ b/svx/source/dialog/srchdlg.src
@@ -54,5 +54,9 @@ String RID_SVXSTR_SEARCH_NOT_FOUND
{
Text [ en-US ] = "Search key not found" ;
};
+String RID_SVXSTR_SEARCH_START
+{
+ Text [ en-US ] = "Reached the beginning of the document" ;
+};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */