Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d80490e9
Kaydet (Commit)
d80490e9
authored
May 06, 2014
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move ResArray into SvtLanguageTableImpl
Change-Id: I0921fcef306f1ca60196fc9dfa2652e91db63004
üst
40dbddf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
24 deletions
+23
-24
langtab.hxx
include/svtools/langtab.hxx
+2
-17
langtab.cxx
svtools/source/misc/langtab.cxx
+21
-7
No files found.
include/svtools/langtab.hxx
Dosyayı görüntüle @
d80490e9
...
...
@@ -19,20 +19,13 @@
#ifndef INCLUDED_SVTOOLS_LANGTAB_HXX
#define INCLUDED_SVTOOLS_LANGTAB_HXX
#include <tools/resary.hxx>
#include <i18nlangtag/lang.h>
#include <rtl/ustring.hxx>
#include <svtools/svtdllapi.h>
// class SvtLanguageTable
class
SVT_DLLPUBLIC
SvtLanguageTable
:
public
ResStringArray
class
SVT_DLLPUBLIC
SvtLanguageTable
{
public
:
SvtLanguageTable
();
~
SvtLanguageTable
();
static
OUString
GetLanguageString
(
const
LanguageType
eType
);
static
LanguageType
GetLanguageType
(
const
OUString
&
rStr
);
...
...
@@ -47,14 +40,6 @@ public:
parameter.
*/
static
OUString
GetLanguageString
(
const
LanguageType
eType
,
bool
bUserInterfaceSelection
);
private
:
const
OUString
GetString
(
const
LanguageType
eType
,
bool
bUserInterfaceSelection
=
false
)
const
;
LanguageType
GetType
(
const
OUString
&
rStr
)
const
;
sal_uInt32
GetEntryCount
()
const
;
LanguageType
GetTypeAtIndex
(
sal_uInt32
nIndex
)
const
;
};
// Add LRE or RLE embedding characters to the string based on the
...
...
svtools/source/misc/langtab.cxx
Dosyayı görüntüle @
d80490e9
...
...
@@ -31,12 +31,26 @@
#include <svtools/svtresid.hxx>
#include <svtools/langtab.hxx>
#include <unotools/syslocale.hxx>
#include <tools/resary.hxx>
using
namespace
::
com
::
sun
::
star
;
class
SvtLanguageTableImpl
:
public
ResStringArray
{
public
:
SvtLanguageTableImpl
();
virtual
~
SvtLanguageTableImpl
();
const
OUString
GetString
(
const
LanguageType
eType
,
bool
bUserInterfaceSelection
=
false
)
const
;
LanguageType
GetType
(
const
OUString
&
rStr
)
const
;
sal_uInt32
GetEntryCount
()
const
;
LanguageType
GetTypeAtIndex
(
sal_uInt32
nIndex
)
const
;
};
namespace
{
struct
theLanguageTable
:
public
rtl
::
Static
<
SvtLanguageTable
,
theLanguageTable
>
{};
struct
theLanguageTable
:
public
rtl
::
Static
<
SvtLanguageTable
Impl
,
theLanguageTable
>
{};
}
SVT_DLLPUBLIC
const
OUString
ApplyLreOrRleEmbedding
(
const
OUString
&
rText
)
...
...
@@ -122,20 +136,20 @@ namespace {
// "The value of STR_ARR_SVT_LANGUAGE_TABLE has changed. wizards/com/sun/star/wizards/letter/LocaleCodes.java has this value hard coded, please adapt it to your change."
}
SvtLanguageTable
::
SvtLanguageTable
()
:
SvtLanguageTable
Impl
::
SvtLanguageTableImpl
()
:
ResStringArray
(
SvtResId
(
STR_ARR_SVT_LANGUAGE_TABLE
)
)
{
}
SvtLanguageTable
::~
SvtLanguageTable
()
SvtLanguageTable
Impl
::~
SvtLanguageTableImpl
()
{
}
const
OUString
SvtLanguageTable
::
GetString
(
const
LanguageType
eType
,
bool
bUserInterfaceSelection
)
const
const
OUString
SvtLanguageTable
Impl
::
GetString
(
const
LanguageType
eType
,
bool
bUserInterfaceSelection
)
const
{
LanguageType
eLang
=
MsLangId
::
getReplacementForObsoleteLanguage
(
eType
,
bUserInterfaceSelection
);
sal_uInt32
nPos
=
FindIndex
(
eLang
);
...
...
@@ -164,7 +178,7 @@ OUString SvtLanguageTable::GetLanguageString( const LanguageType eType, bool bUs
LanguageType
SvtLanguageTable
::
GetType
(
const
OUString
&
rStr
)
const
LanguageType
SvtLanguageTable
Impl
::
GetType
(
const
OUString
&
rStr
)
const
{
LanguageType
eType
=
LANGUAGE_DONTKNOW
;
sal_uInt32
nCount
=
Count
();
...
...
@@ -187,7 +201,7 @@ LanguageType SvtLanguageTable::GetLanguageType( const OUString& rStr )
sal_uInt32
SvtLanguageTable
::
GetEntryCount
()
const
sal_uInt32
SvtLanguageTable
Impl
::
GetEntryCount
()
const
{
return
Count
();
}
...
...
@@ -199,7 +213,7 @@ sal_uInt32 SvtLanguageTable::GetLanguageEntryCount()
LanguageType
SvtLanguageTable
::
GetTypeAtIndex
(
sal_uInt32
nIndex
)
const
LanguageType
SvtLanguageTable
Impl
::
GetTypeAtIndex
(
sal_uInt32
nIndex
)
const
{
LanguageType
nType
=
LANGUAGE_DONTKNOW
;
if
(
nIndex
<
Count
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment