summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zformat.cxx9
-rw-r--r--svl/source/numbers/zforscan.cxx6
-rw-r--r--svl/source/numbers/zforscan.hxx5
3 files changed, 16 insertions, 4 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 116b5e668df5..9d2700e6a185 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -5537,4 +5537,13 @@ const SvNumberFormatter& SvNumberformat::GetFormatter() const
return *rScan.GetNumberformatter();
}
+const NfKeywordTable & SvNumberformat::GetKeywords() const
+{
+ return rScan.GetKeywords();
+}
+const ::std::vector<OUString> & SvNumberformat::GetEnglishKeywords() const
+{
+ return ImpSvNumberformatScan::GetEnglishKeywords();
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx
index a3cdd1edc2ef..d4991fad3c57 100644
--- a/svl/source/numbers/zforscan.cxx
+++ b/svl/source/numbers/zforscan.cxx
@@ -38,9 +38,8 @@ using namespace svt;
const sal_Unicode cNoBreakSpace = 0xA0;
const sal_Unicode cNarrowNoBreakSpace = 0x202F;
-namespace
-{
-const ::std::vector<OUString> sEnglishKeyword =
+
+const ::std::vector<OUString> ImpSvNumberformatScan::sEnglishKeyword =
{ // Syntax keywords in English (USA)
//! All keywords MUST be UPPERCASE! In same order as NfKeywordTable
"", // NF_KEY_NONE 0
@@ -101,7 +100,6 @@ const ::std::vector<OUString> sEnglishKeyword =
"RR", // NF_KEY_RR
"t" // NF_KEY_THAI_T Thai T modifier, speciality of Thai Excel, only used with Thai locale and converted to [NatNum1]
}; // only exception as lowercase
-}
ImpSvNumberformatScan::ImpSvNumberformatScan( SvNumberFormatter* pFormatterP )
: maNullDate( 30, 12, 1899)
diff --git a/svl/source/numbers/zforscan.hxx b/svl/source/numbers/zforscan.hxx
index c5e9d8549349..ed3e15feb2db 100644
--- a/svl/source/numbers/zforscan.hxx
+++ b/svl/source/numbers/zforscan.hxx
@@ -65,6 +65,10 @@ public:
}
return sKeyword;
}
+ static const ::std::vector<OUString> & GetEnglishKeywords()
+ {
+ return sEnglishKeyword;
+ }
// Keywords used in output like true and false
const OUString& GetSpecialKeyword( NfKeywordIndex eIdx ) const
{
@@ -149,6 +153,7 @@ public:
private: // Private section
NfKeywordTable sKeyword; // Syntax keywords
+ static const ::std::vector<OUString> sEnglishKeyword; // English Syntax keywords
Color StandardColor[NF_MAX_DEFAULT_COLORS]; // Standard color array
Date maNullDate; // 30Dec1899
OUString sNameStandardFormat; // "Standard"