summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2014-09-09 09:47:25 +0200
committerAndras Timar <andras.timar@collabora.com>2014-09-09 10:37:39 +0200
commit5390946c8651bfae8b88e2e9f2a286bcd5fbdf3b (patch)
tree4da344bd8739f8452cbfe177c02c0e6c88d00af2 /sc
parentc45be916f63477e7cd8b0fe54fd6935acf1526e4 (diff)
fdo#80098 make header of Search Result dialog localizable
Change-Id: I16ec29e4f35f00e39d88dd334284db7bf051a846
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/sc.hrc6
-rw-r--r--sc/source/ui/dialogs/searchresults.cxx3
-rw-r--r--sc/source/ui/src/scstring.src15
3 files changed, 23 insertions, 1 deletions
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index db71dbee528a..420d1492497a 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -915,6 +915,12 @@
#define SCSTR_PRINT_OPTIONS (STR_START + 216)
#define SCSTR_WARN_ME_IN_FUTURE_CHECK (STR_START + 217)
+// header of search result dialog
+
+#define STR_SHEET (STR_START + 218)
+#define STR_CELL (STR_START + 219)
+#define STR_CONTENT (STR_START + 220)
+
// navigator - in the same order as SC_CONTENT_...
#define SCSTR_CONTENT_ROOT (STR_START + 250)
#define SCSTR_CONTENT_TABLE (STR_START + 251)
diff --git a/sc/source/ui/dialogs/searchresults.cxx b/sc/source/ui/dialogs/searchresults.cxx
index 26471baba9fb..ba6e8ddaa372 100644
--- a/sc/source/ui/dialogs/searchresults.cxx
+++ b/sc/source/ui/dialogs/searchresults.cxx
@@ -18,6 +18,7 @@
#include "rangeutl.hxx"
#include "tabvwsh.hxx"
#include <sc.hrc>
+#include "scresid.hxx"
namespace sc {
@@ -34,7 +35,7 @@ SearchResultsDlg::SearchResultsDlg( SfxBindings* _pBindings, Window* pParent, sa
mpList = new SvSimpleTable(*pContainer);
long nTabs[] = {3, 0, 40, 60};
mpList->SetTabs(&nTabs[0]);
- mpList->InsertHeaderEntry("Sheet\tCell\tContent");
+ mpList->InsertHeaderEntry(SC_RESSTR(STR_SHEET) + "\t" + SC_RESSTR(STR_CELL) + "\t" + SC_RESSTR(STR_CONTENT));
mpList->SetSelectHdl( LINK(this, SearchResultsDlg, ListSelectHdl) );
}
diff --git a/sc/source/ui/src/scstring.src b/sc/source/ui/src/scstring.src
index cc07d2c79a5a..ffa400bd8f7c 100644
--- a/sc/source/ui/src/scstring.src
+++ b/sc/source/ui/src/scstring.src
@@ -967,4 +967,19 @@ String STR_SUM
Text [ en-US ] = "Total" ;
};
+String STR_SHEET
+{
+ Text [ en-US ] = "Sheet" ;
+};
+
+String STR_CELL
+{
+ Text [ en-US ] = "Cell" ;
+};
+
+String STR_CONTENT
+{
+ Text [ en-US ] = "Content" ;
+};
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */