summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-11 20:56:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-21 08:20:50 +0100
commit00657aef09d854c74fb426a935a3e8b1fc390bb0 (patch)
treefd1a9bb264fe15dcc129498e62060ecd256b1ee7 /sw/source/ui/fldui
parentfa987cbb813cfd729fe490f2f1258b7c8d7fb174 (diff)
migrate to boost::gettext
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
Diffstat (limited to 'sw/source/ui/fldui')
-rw-r--r--sw/source/ui/fldui/changedb.cxx2
-rw-r--r--sw/source/ui/fldui/flddinf.cxx3
-rw-r--r--sw/source/ui/fldui/flddok.cxx13
-rw-r--r--sw/source/ui/fldui/fldfunc.cxx12
-rw-r--r--sw/source/ui/fldui/fldref.cxx43
-rw-r--r--sw/source/ui/fldui/fldui.src609
-rw-r--r--sw/source/ui/fldui/fldvar.cxx1
-rw-r--r--sw/source/ui/fldui/javaedit.cxx1
8 files changed, 60 insertions, 624 deletions
diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx
index c72019ece137..3f57f26562d5 100644
--- a/sw/source/ui/fldui/changedb.cxx
+++ b/sw/source/ui/fldui/changedb.cxx
@@ -40,7 +40,7 @@
#include <fldui.hrc>
#include <globals.hrc>
-#include <utlui.hrc>
+#include <strings.hrc>
#include "bitmaps.hlst"
#include <unomid.h>
diff --git a/sw/source/ui/fldui/flddinf.cxx b/sw/source/ui/fldui/flddinf.cxx
index 0295644857f3..8e587a072ada 100644
--- a/sw/source/ui/fldui/flddinf.cxx
+++ b/sw/source/ui/fldui/flddinf.cxx
@@ -27,6 +27,7 @@
#include <helpid.h>
#include <swtypes.hxx>
#include <globals.hrc>
+#include <strings.hrc>
#include <fldbas.hxx>
#include <docufld.hxx>
#include <wrtsh.hxx>
@@ -160,7 +161,7 @@ void SwFieldDokInfPage::Reset(const SfxItemSet* )
if( rProperties.getLength() )
{
- pInfo = m_pTypeTLB->InsertEntry( SwResId( STR_CUSTOM ) );
+ pInfo = m_pTypeTLB->InsertEntry(SwResId(STR_CUSTOM_FIELD));
pInfo->SetUserData(reinterpret_cast<void*>(USHRT_MAX));
for (sal_Int32 n=0; n < rProperties.getLength(); n++)
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
index 35c7df610a71..282103b90e12 100644
--- a/sw/source/ui/fldui/flddok.cxx
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -21,6 +21,7 @@
#include <flddat.hxx>
#include <docufld.hxx>
#include <globals.hrc>
+#include <strings.hrc>
#include <chpfld.hxx>
#include <fldui.hrc>
#include <flddok.hxx>
@@ -467,27 +468,27 @@ IMPL_LINK_NOARG(SwFieldDokPage, SubTypeHdl, ListBox&, void)
const sal_uInt16 nTypeId = (sal_uInt16)reinterpret_cast<sal_uLong>(m_pSelectionLB->GetEntryData(nPos));
FillFormatLB(nTypeId);
- sal_uInt32 nTextRes = 0;
+ const char* pTextRes = nullptr;
switch (nTypeId)
{
case TYP_CHAPTERFLD:
- nTextRes = STR_LEVEL;
+ pTextRes = STR_LEVEL;
break;
case TYP_PREVPAGEFLD:
case TYP_NEXTPAGEFLD:
- nTextRes = SVX_NUM_CHAR_SPECIAL == (sal_uInt16)reinterpret_cast<sal_uLong>(m_pFormatLB->GetEntryData(
+ pTextRes = SVX_NUM_CHAR_SPECIAL == (sal_uInt16)reinterpret_cast<sal_uLong>(m_pFormatLB->GetEntryData(
m_pFormatLB->GetSelectEntryPos() ))
? STR_VALUE : STR_OFFSET;
break;
case TYP_PAGENUMBERFLD:
- nTextRes = STR_OFFSET;
+ pTextRes = STR_OFFSET;
break;
}
- if( nTextRes )
- m_pValueFT->SetText( SwResId( nTextRes ));
+ if (pTextRes)
+ m_pValueFT->SetText(SwResId(pTextRes));
}
sal_Int32 SwFieldDokPage::FillFormatLB(sal_uInt16 nTypeId)
diff --git a/sw/source/ui/fldui/fldfunc.cxx b/sw/source/ui/fldui/fldfunc.cxx
index 5b5a1a3b280f..10843305d963 100644
--- a/sw/source/ui/fldui/fldfunc.cxx
+++ b/sw/source/ui/fldui/fldfunc.cxx
@@ -23,6 +23,7 @@
#include <docsh.hxx>
#include <swtypes.hxx>
#include <globals.hrc>
+#include <strings.hrc>
#include <fldbas.hxx>
#include <docufld.hxx>
#include <view.hxx>
@@ -210,6 +211,15 @@ void SwFieldFuncPage::Reset(const SfxItemSet* )
}
}
+static const char* FMT_MARK_ARY[] =
+{
+ FMT_MARK_TEXT,
+ FMT_MARK_TABLE,
+ FMT_MARK_FRAME,
+ FMT_MARK_GRAFIC,
+ FMT_MARK_OLE
+};
+
IMPL_LINK_NOARG(SwFieldFuncPage, TypeHdl, ListBox&, void)
{
// save old ListBoxPos
@@ -245,7 +255,7 @@ IMPL_LINK_NOARG(SwFieldFuncPage, TypeHdl, ListBox&, void)
if (nSize)
{
if (IsFieldEdit() && nTypeId == TYP_JUMPEDITFLD)
- m_pFormatLB->SelectEntry(SwResId(FMT_MARK_BEGIN + GetCurField()->GetFormat()));
+ m_pFormatLB->SelectEntry(SwResId(FMT_MARK_ARY[GetCurField()->GetFormat()]));
if (!m_pFormatLB->GetSelectEntryCount())
m_pFormatLB->SelectEntryPos(0);
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx
index bf4e837362ad..9813ad78930f 100644
--- a/sw/source/ui/fldui/fldref.cxx
+++ b/sw/source/ui/fldui/fldref.cxx
@@ -28,6 +28,7 @@
#include <fldui.hrc>
#include <globals.hrc>
+#include <strings.hrc>
#include <SwNodeNum.hxx>
#include <IDocumentMarkAccess.hxx>
#include <ndtxt.hxx>
@@ -739,6 +740,36 @@ bool SwFieldRefPage::MatchSubstring( const OUString& rListString, const OUString
return aListString.indexOf(aSubstr) >= 0;
}
+enum FMT_REF_IDX
+{
+ FMT_REF_PAGE_IDX = 0,
+ FMT_REF_CHAPTER_IDX = 1,
+ FMT_REF_TEXT_IDX = 2,
+ FMT_REF_UPDOWN_IDX = 3,
+ FMT_REF_PAGE_PGDSC_IDX = 4,
+ FMT_REF_ONLYNUMBER_IDX = 5,
+ FMT_REF_ONLYCAPTION_IDX = 6,
+ FMT_REF_ONLYSEQNO_IDX = 7,
+ FMT_REF_NUMBER_IDX = 8,
+ FMT_REF_NUMBER_NO_CONTEXT_IDX = 9,
+ FMT_REF_NUMBER_FULL_CONTEXT_IDX = 10
+};
+
+static const char* FMT_REF_ARY[] =
+{
+ FMT_REF_PAGE,
+ FMT_REF_CHAPTER,
+ FMT_REF_TEXT,
+ FMT_REF_UPDOWN,
+ FMT_REF_PAGE_PGDSC,
+ FMT_REF_ONLYNUMBER,
+ FMT_REF_ONLYCAPTION,
+ FMT_REF_ONLYSEQNO,
+ FMT_REF_NUMBER,
+ FMT_REF_NUMBER_NO_CONTEXT,
+ FMT_REF_NUMBER_FULL_CONTEXT
+};
+
sal_Int32 SwFieldRefPage::FillFormatLB(sal_uInt16 nTypeId)
{
OUString sOldSel;
@@ -765,7 +796,7 @@ sal_Int32 SwFieldRefPage::FillFormatLB(sal_uInt16 nTypeId)
case REFFLDFLAG_BOOKMARK:
case REFFLDFLAG_FOOTNOTE:
case REFFLDFLAG_ENDNOTE:
- nSize = FMT_REF_PAGE_PGDSC - FMT_REF_BEGIN + 1;
+ nSize = FMT_REF_PAGE_PGDSC_IDX + 1;
break;
default:
@@ -773,7 +804,7 @@ sal_Int32 SwFieldRefPage::FillFormatLB(sal_uInt16 nTypeId)
if ( REFFLDFLAG & nTypeId )
{
- nSize = FMT_REF_ONLYSEQNO - FMT_REF_BEGIN + 1;
+ nSize = FMT_REF_ONLYSEQNO_IDX + 1;
}
else
{
@@ -793,13 +824,13 @@ sal_Int32 SwFieldRefPage::FillFormatLB(sal_uInt16 nTypeId)
// #i83479#
if ( bAddCrossRefFormats )
{
- sal_uInt16 nFormat = FMT_REF_NUMBER - FMT_REF_BEGIN;
+ sal_uInt16 nFormat = FMT_REF_NUMBER_IDX;
sal_Int32 nPos = m_pFormatLB->InsertEntry(GetFieldMgr().GetFormatStr( nTypeId, nFormat ));
m_pFormatLB->SetEntryData( nPos, reinterpret_cast<void*>(GetFieldMgr().GetFormatId( nTypeId, nFormat )));
- nFormat = FMT_REF_NUMBER_NO_CONTEXT - FMT_REF_BEGIN;
+ nFormat = FMT_REF_NUMBER_NO_CONTEXT_IDX;
nPos = m_pFormatLB->InsertEntry(GetFieldMgr().GetFormatStr( nTypeId, nFormat ));
m_pFormatLB->SetEntryData( nPos, reinterpret_cast<void*>(GetFieldMgr().GetFormatId( nTypeId, nFormat )));
- nFormat = FMT_REF_NUMBER_FULL_CONTEXT - FMT_REF_BEGIN;
+ nFormat = FMT_REF_NUMBER_FULL_CONTEXT_IDX;
nPos = m_pFormatLB->InsertEntry(GetFieldMgr().GetFormatStr( nTypeId, nFormat ));
m_pFormatLB->SetEntryData( nPos, reinterpret_cast<void*>(GetFieldMgr().GetFormatId( nTypeId, nFormat )));
nSize += 3;
@@ -811,7 +842,7 @@ sal_Int32 SwFieldRefPage::FillFormatLB(sal_uInt16 nTypeId)
if (!IsFieldEdit())
m_pFormatLB->SelectEntry(sOldSel);
else
- m_pFormatLB->SelectEntry(SwResId(FMT_REF_BEGIN + GetCurField()->GetFormat()));
+ m_pFormatLB->SelectEntry(SwResId(FMT_REF_ARY[GetCurField()->GetFormat()]));
if (!m_pFormatLB->GetSelectEntryCount())
{
diff --git a/sw/source/ui/fldui/fldui.src b/sw/source/ui/fldui/fldui.src
deleted file mode 100644
index a3642cd4f9e7..000000000000
--- a/sw/source/ui/fldui/fldui.src
+++ /dev/null
@@ -1,609 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "index.hrc"
-#include "fldui.hrc"
-#include "helpid.h"
-
-/*--------------------------------------------------------------------
- Description: strings for the types
- --------------------------------------------------------------------*/
-
- // range document
-
-String STR_DATEFLD
-{
- Text [ en-US ] = "Date" ;
-};
-String STR_TIMEFLD
-{
- Text [ en-US ] = "Time" ;
-};
-String STR_FILENAMEFLD
-{
- Text [ en-US ] = "File name" ;
-};
-String STR_DBNAMEFLD
-{
- Text [ en-US ] = "Database Name" ;
-};
-String STR_CHAPTERFLD
-{
- Text [ en-US ] = "Chapter" ;
-};
-String STR_PAGENUMBERFLD
-{
- Text [ en-US ] = "Page numbers" ;
-};
-String STR_DOCSTATFLD
-{
- Text [ en-US ] = "Statistics" ;
-};
-String STR_AUTHORFLD
-{
- Text [ en-US ] = "Author" ;
-};
-String STR_TEMPLNAMEFLD
-{
- Text [ en-US ] = "Templates" ;
-};
-String STR_EXTUSERFLD
-{
- Text [ en-US ] = "Sender" ;
-};
-
- // range functions
-
-String STR_SETFLD
-{
- Text [ en-US ] = "Set variable" ;
-};
-String STR_GETFLD
-{
- Text [ en-US ] = "Show variable" ;
-};
-String STR_FORMELFLD
-{
- Text [ en-US ] = "Insert Formula" ;
-};
-String STR_INPUTFLD
-{
- Text [ en-US ] = "Input field" ;
-};
-String STR_SETINPUTFLD
-{
- Text [ en-US ] = "Input field (variable)" ;
-};
-String STR_USRINPUTFLD
-{
- Text [ en-US ] = "Input field (user)" ;
-};
-String STR_CONDTXTFLD
-{
- Text [ en-US ] = "Conditional text" ;
-};
-String STR_DDEFLD
-{
- Text [ en-US ] = "DDE field" ;
-};
-String STR_MACROFLD
-{
- Text [ en-US ] = "Execute macro" ;
-};
-String STR_SEQFLD
-{
- Text [ en-US ] = "Number range" ;
-};
-String STR_SETREFPAGEFLD
-{
- Text [ en-US ] = "Set page variable" ;
-};
-String STR_GETREFPAGEFLD
-{
- Text [ en-US ] = "Show page variable" ;
-};
-String STR_INTERNETFLD
-{
- Text [ en-US ] = "Load URL" ;
-};
-String STR_JUMPEDITFLD
-{
- Text [ en-US ] = "Placeholder" ;
-};
-String STR_COMBINED_CHARS
-{
- Text [ en-US ] = "Combine characters";
-};
-String STR_DROPDOWN
-{
- Text [ en-US ] = "Input list" ;
-};
-
- // range references
-
-String STR_SETREFFLD
-{
- Text [ en-US ] = "Set Reference" ;
-};
-String STR_GETREFFLD
-{
- Text [ en-US ] = "Insert Reference" ;
-};
-
- // range database
-
-String STR_DBFLD
-{
- Text [ en-US ] = "Mail merge fields" ;
-};
-String STR_DBNEXTSETFLD
-{
- Text [ en-US ] = "Next record" ;
-};
-String STR_DBNUMSETFLD
-{
- Text [ en-US ] = "Any record" ;
-};
-String STR_DBSETNUMBERFLD
-{
- Text [ en-US ] = "Record number" ;
-};
-String STR_PREVPAGEFLD
-{
- Text [ en-US ] = "Previous page" ;
-};
-String STR_NEXTPAGEFLD
-{
- Text [ en-US ] = "Next page" ;
-};
-String STR_HIDDENTXTFLD
-{
- Text [ en-US ] = "Hidden text" ;
-};
-
- // range user fields
-
-String STR_USERFLD
-{
- Text [ en-US ] = "User Field" ;
-};
-String STR_POSTITFLD
-{
- Text [ en-US ] = "Note" ;
-};
-String STR_SCRIPTFLD
-{
- Text [ en-US ] = "Script" ;
-};
-String STR_AUTHORITY
-{
- Text [ en-US ] = "Bibliography entry";
-};
-String STR_HIDDENPARAFLD
-{
- Text [ en-US ] = "Hidden Paragraph" ;
-};
-
- // range DocumentInfo
-
-String STR_DOCINFOFLD
-{
- Text [ en-US ] = "DocInformation" ;
-};
-/*--------------------------------------------------------------------
- Description: SubCmd-Strings
- --------------------------------------------------------------------*/
-String FLD_DATE_STD
-{
- Text [ en-US ] = "Date";
-};
-String FLD_DATE_FIX
-{
- Text [ en-US ] = "Date (fixed)" ;
-};
-String FLD_TIME_STD
-{
- Text [ en-US ] = "Time";
-};
-String FLD_TIME_FIX
-{
- Text [ en-US ] = "Time (fixed)" ;
-};
-
- // SubCmd Statistic
-
-String FLD_STAT_TABLE
-{
- Text [ en-US ] = "Tables" ;
-};
-String FLD_STAT_CHAR
-{
- Text [ en-US ] = "Characters" ;
-};
-String FLD_STAT_WORD
-{
- Text [ en-US ] = "Words" ;
-};
-String FLD_STAT_PARA
-{
- Text [ en-US ] = "Paragraphs" ;
-};
-String FLD_STAT_GRF
-{
- Text [ en-US ] = "Image" ;
-};
-String FLD_STAT_OBJ
-{
- Text [ en-US ] = "Objects" ;
-};
-String FLD_STAT_PAGE
-{
- Text [ en-US ] = "Pages" ;
-};
- // SubCmd DDETypes
-
-String FMT_DDE_HOT
-{
- Text [ en-US ] = "DDE automatic" ;
-};
-String FMT_DDE_NORMAL
-{
- Text [ en-US ] = "DDE manual" ;
-};
-String FLD_INPUT_TEXT
-{
- Text = "[Text]" ;
-};
-/*--------------------------------------------------------------------
- Description: SubType Extuser
- --------------------------------------------------------------------*/
-String FLD_EU_FIRMA
-{
- Text [ en-US ] = "Company" ;
-};
-String FLD_EU_VORNAME
-{
- Text [ en-US ] = "First Name" ;
-};
-String FLD_EU_NAME
-{
- Text [ en-US ] = "Last Name" ;
-};
-String FLD_EU_ABK
-{
- Text [ en-US ] = "Initials" ;
-};
-String FLD_EU_STRASSE
-{
- Text [ en-US ] = "Street" ;
-};
-String FLD_EU_LAND
-{
- Text [ en-US ] = "Country" ;
-};
-String FLD_EU_PLZ
-{
- Text [ en-US ] = "Zip code" ;
-};
-String FLD_EU_ORT
-{
- Text [ en-US ] = "City" ;
-};
-String FLD_EU_TITEL
-{
- Text [ en-US ] = "Title" ;
-};
-String FLD_EU_POS
-{
- Text [ en-US ] = "Position" ;
-};
-String FLD_EU_TELPRIV
-{
- Text [ en-US ] = "Tel. (Home)" ;
-};
-String FLD_EU_TELFIRMA
-{
- Text [ en-US ] = "Tel. (Work)" ;
-};
-String FLD_EU_FAX
-{
- Text [ en-US ] = "FAX" ;
-};
-String FLD_EU_EMAIL
-{
- Text [ en-US ] = "E-mail" ;
-};
-String FLD_EU_STATE
-{
- Text [ en-US ] = "State" ;
-};
-String FLD_PAGEREF_OFF
-{
- Text [ en-US ] = "off" ;
-};
-String FLD_PAGEREF_ON
-{
- Text [ en-US ] = "on" ;
-};
-/*--------------------------------------------------------------------
- Description: path name
- --------------------------------------------------------------------*/
- // Formate FileName
-String FMT_FF_NAME
-{
- Text [ en-US ] = "File name" ;
-};
-String FMT_FF_NAME_NOEXT
-{
- Text [ en-US ] = "File name without extension" ;
-};
-String FMT_FF_PATHNAME
-{
- Text [ en-US ] = "Path/File name" ;
-};
-String FMT_FF_PATH
-{
- Text [ en-US ] = "Path" ;
-};
-String FMT_FF_UI_NAME
-{
- Text [ en-US ] = "Style" ;
-};
-String FMT_FF_UI_RANGE
-{
- Text [ en-US ] = "Category" ;
-};
-/*--------------------------------------------------------------------
- Description: format chapter
- --------------------------------------------------------------------*/
-String FMT_CHAPTER_NAME
-{
- Text [ en-US ] = "Chapter name" ;
-};
-String FMT_CHAPTER_NO
-{
- Text [ en-US ] = "Chapter number" ;
-};
-String FMT_CHAPTER_NO_NOSEPARATOR
-{
- Text [ en-US ] = "Chapter number without separator" ;
-};
-String FMT_CHAPTER_NAMENO
-{
- Text [ en-US ] = "Chapter number and name" ;
-};
-/*--------------------------------------------------------------------
- Description: formats
- --------------------------------------------------------------------*/
-String FMT_NUM_ABC
-{
- Text = "A B C" ;
-};
-String FMT_NUM_SABC
-{
- Text = "a b c" ;
-};
-String FMT_NUM_ABC_N
-{
- Text = "A .. AA .. AAA" ;
-};
-String FMT_NUM_SABC_N
-{
- Text = "a .. aa .. aaa" ;
-};
-String FMT_NUM_ROMAN
-{
- Text [ en-US ] = "Roman (I II III)" ;
-};
-String FMT_NUM_SROMAN
-{
- Text [ en-US ] = "Roman (i ii iii)" ;
-};
-String FMT_NUM_ARABIC
-{
- Text [ en-US ] = "Arabic (1 2 3)" ;
-};
-String FMT_NUM_PAGEDESC
-{
- Text [ en-US ] = "As Page Style" ;
-};
-String FMT_NUM_PAGESPECIAL
-{
- Text [ en-US ] = "Text" ;
-};
-/*--------------------------------------------------------------------
- Description: Author
- --------------------------------------------------------------------*/
-String FMT_AUTHOR_NAME
-{
- Text [ en-US ] = "Name" ;
-};
-String FMT_AUTHOR_SCUT
-{
- Text [ en-US ] = "Initials" ;
-};
-/*--------------------------------------------------------------------
- Description: set variable
- --------------------------------------------------------------------*/
-String FMT_SETVAR_SYS
-{
- Text [ en-US ] = "System" ;
-};
-String FMT_SETVAR_TEXT
-{
- Text [ en-US ] = "Text" ;
-};
-String FMT_GETVAR_NAME
-{
- Text [ en-US ] = "Name" ;
-};
-String FMT_GETVAR_TEXT
-{
- Text [ en-US ] = "Text" ;
-};
-String FMT_USERVAR_CMD
-{
- Text [ en-US ] = "Formula" ;
-};
-String FMT_USERVAR_TEXT
-{
- Text [ en-US ] = "Text" ;
-};
-String FMT_DBFLD_DB
-{
- Text [ en-US ] = "Database" ;
-};
-String FMT_DBFLD_SYS
-{
- Text [ en-US ] = "System" ;
-};
-/*--------------------------------------------------------------------
- Description: storage fields
- --------------------------------------------------------------------*/
-String FMT_REG_AUTHOR
-{
- Text [ en-US ] = "Author" ;
-};
-String FMT_REG_TIME
-{
- Text [ en-US ] = "Time" ;
-};
-String FMT_REG_DATE
-{
- Text [ en-US ] = "Date" ;
-};
-/*--------------------------------------------------------------------
- Description: formats references
- --------------------------------------------------------------------*/
-String FMT_REF_TEXT
-{
- Text [ en-US ] = "Reference" ;
-};
-String FMT_REF_PAGE
-{
- Text [ en-US ] = "Page" ;
-};
-String FMT_REF_CHAPTER
-{
- Text [ en-US ] = "Chapter" ;
-};
-String FMT_REF_UPDOWN
-{
- Text [ en-US ] = "Above/Below" ;
-};
-String FMT_REF_PAGE_PGDSC
-{
- Text [ en-US ] = "As Page Style" ;
-};
-String FMT_REF_ONLYNUMBER
-{
- Text [ en-US ] = "Category and Number" ;
-};
-String FMT_REF_ONLYCAPTION
-{
- Text [ en-US ] = "Caption Text" ;
-};
-String FMT_REF_ONLYSEQNO
-{
- Text [ en-US ] = "Numbering";
-};
-String FMT_REF_NUMBER
-{
- Text [ en-US ] = "Number";
-};
-String FMT_REF_NUMBER_NO_CONTEXT
-{
- Text [ en-US ] = "Number (no context)";
-};
-String FMT_REF_NUMBER_FULL_CONTEXT
-{
- Text [ en-US ] = "Number (full context)";
-};
-/*--------------------------------------------------------------------
- Description: placeholder
- --------------------------------------------------------------------*/
-String FMT_MARK_TEXT
-{
- Text [ en-US ] = "Text" ;
-};
-String FMT_MARK_TABLE
-{
- Text [ en-US ] = "Table" ;
-};
-String FMT_MARK_FRAME
-{
- Text [ en-US ] = "Frame" ;
-};
-String FMT_MARK_GRAFIC
-{
- Text [ en-US ] = "Image" ;
-};
-String FMT_MARK_OLE
-{
- Text [ en-US ] = "Object" ;
-};
-/*--------------------------------------------------------------------
- Description: ExchangeStrings for Edit/NameFT
- --------------------------------------------------------------------*/
-String STR_COND
-{
- Text [ en-US ] = "~Condition" ;
-};
-String STR_TEXT
-{
- Text [ en-US ] = "Then, Else" ;
-};
-String STR_DDE_CMD
-{
- Text [ en-US ] = "DDE Statement" ;
-};
-String STR_INSTEXT
-{
- Text [ en-US ] = "Hidden t~ext" ;
-};
-String STR_MACNAME
-{
- Text [ en-US ] = "~Macro name" ;
-};
-String STR_PROMPT
-{
- Text [ en-US ] = "~Reference" ;
-};
-String STR_COMBCHRS_FT
-{
- Text [ en-US ] = "Ch~aracters";
-};
-String STR_OFFSET
-{
- Text [ en-US ] = "O~ffset" ;
-};
-String STR_VALUE
-{
- Text [ en-US ] = "Value" ;
-};
-String STR_FORMULA
-{
- Text [ en-US ] = "Formula" ;
-};
-String STR_CUSTOM
-{
- Text [ en-US ] = "Custom" ;
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx
index a421c24d6e93..f6fe754e0e65 100644
--- a/sw/source/ui/fldui/fldvar.cxx
+++ b/sw/source/ui/fldui/fldvar.cxx
@@ -34,6 +34,7 @@
#include <calc.hxx>
#include <svl/zformat.hxx>
#include <globals.hrc>
+#include <strings.hrc>
#include <fldui.hrc>
#define USER_DATA_VERSION_1 "1"
diff --git a/sw/source/ui/fldui/javaedit.cxx b/sw/source/ui/fldui/javaedit.cxx
index 6f0076ded866..c71cdbcb13a7 100644
--- a/sw/source/ui/fldui/javaedit.cxx
+++ b/sw/source/ui/fldui/javaedit.cxx
@@ -35,6 +35,7 @@
#include <fldui.hrc>
#include <globals.hrc>
+#include <strings.hrc>
using namespace ::com::sun::star;