tdf#90855 add table header entries to resources

removed hardcoded table header entries

Change-Id: Ib0268421d1b0035e7764555054377d08ee47a29d
Reviewed-on: https://gerrit.libreoffice.org/23520
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
Jakub Trzebiatowski
2016-03-26 12:54:18 +01:00
committed by Samuel Mehrbrodt
parent bb2fdee74f
commit 8d123bf149
3 changed files with 17 additions and 4 deletions

View File

@@ -95,6 +95,9 @@
// free
#define STR_BOOKMARK_NAME (RC_GLOBALS_BEGIN + 36)
#define STR_BOOKMARK_TEXT (RC_GLOBALS_BEGIN + 37)
#define STR_LOAD_HTML_DOC (RC_GLOBALS_BEGIN + 38)
#define STR_JAVA_EDIT (RC_GLOBALS_BEGIN + 39)

View File

@@ -223,6 +223,16 @@ String STR_REMOVE_WARNING
Text [ en-US ] = "The following characters are not valid and have been removed: ";
};
String STR_BOOKMARK_NAME
{
Text [ en-US ] = "Name";
};
String STR_BOOKMARK_TEXT
{
Text [ en-US ] = "Text";
};
String SW_STR_NONE
{
Text [ en-US ] = "[None]" ;

View File

@@ -337,13 +337,13 @@ void SwInsertBookmarkDlg::dispose()
BookmarkTable::BookmarkTable(SvSimpleTableContainer& rParent) :
SvSimpleTable(rParent, 0)
{
static long nTabs[] = {3, 0, 30, 150};
static long nTabs[] = {3, 0, 40, 150};
SetTabs(nTabs, MAP_PIXEL);
SetSelectionMode(MULTIPLE_SELECTION);
InsertHeaderEntry("Page");
InsertHeaderEntry("Name");
InsertHeaderEntry("Text");
InsertHeaderEntry(OUString(SW_RES(STR_PAGE)));
InsertHeaderEntry(OUString(SW_RES(STR_BOOKMARK_NAME)));
InsertHeaderEntry(OUString(SW_RES(STR_BOOKMARK_TEXT)));
rParent.SetTable(this);
}