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
91ba527a
Kaydet (Commit)
91ba527a
authored
Eyl 11, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid name clash with generated C++ class corresponding to UNOIDL service
Change-Id: I96582bf05787a30479d324ff8deb7cea758bb2c2
üst
ab819ab4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
calendar_gregorian.hxx
i18npool/inc/calendar_gregorian.hxx
+1
-1
nativenumbersupplier.hxx
i18npool/inc/nativenumbersupplier.hxx
+3
-3
defaultnumberingprovider.cxx
...rce/defaultnumberingprovider/defaultnumberingprovider.cxx
+1
-1
nativenumbersupplier.cxx
i18npool/source/nativenumber/nativenumbersupplier.cxx
+10
-10
transliteration_Numeric.cxx
i18npool/source/transliteration/transliteration_Numeric.cxx
+2
-2
No files found.
i18npool/inc/calendar_gregorian.hxx
Dosyayı görüntüle @
91ba527a
...
...
@@ -93,7 +93,7 @@ public:
protected
:
const
Era
*
eraArray
;
icu
::
Calendar
*
body
;
NativeNumberSupplier
aNatNum
;
NativeNumberSupplier
Service
aNatNum
;
const
sal_Char
*
cCalendar
;
com
::
sun
::
star
::
lang
::
Locale
aLocale
;
sal_uInt32
fieldSet
;
...
...
i18npool/inc/nativenumbersupplier.hxx
Dosyayı görüntüle @
91ba527a
...
...
@@ -28,16 +28,16 @@
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
i18n
{
// ----------------------------------------------------
// class NativeNumberSupplier
// class NativeNumberSupplier
Service
// ----------------------------------------------------
class
NativeNumberSupplier
:
public
cppu
::
WeakImplHelper2
class
NativeNumberSupplier
Service
:
public
cppu
::
WeakImplHelper2
<
com
::
sun
::
star
::
i18n
::
XNativeNumberSupplier
,
com
::
sun
::
star
::
lang
::
XServiceInfo
>
{
public
:
NativeNumberSupplier
(
bool
_useOffset
=
false
)
:
useOffset
(
_useOffset
)
{}
NativeNumberSupplier
Service
(
bool
_useOffset
=
false
)
:
useOffset
(
_useOffset
)
{}
// Methods
virtual
OUString
SAL_CALL
getNativeNumberString
(
const
OUString
&
aNumberString
,
...
...
i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
Dosyayı görüntüle @
91ba527a
...
...
@@ -857,7 +857,7 @@ DefaultNumberingProvider::makeNumberingString( const Sequence<beans::PropertyVal
}
if
(
natNum
)
{
NativeNumberSupplier
sNatNum
;
NativeNumberSupplier
Service
sNatNum
;
result
+=
sNatNum
.
getNativeNumberString
(
OUString
::
number
(
number
),
locale
,
natNum
);
}
else
if
(
tableSize
)
{
if
(
number
>
tableSize
&&
!
recycleSymbol
)
...
...
i18npool/source/nativenumber/nativenumbersupplier.cxx
Dosyayı görüntüle @
91ba527a
...
...
@@ -517,7 +517,7 @@ static sal_Int16 SAL_CALL getLanguageNumber( const Locale& rLocale)
return
-
1
;
}
OUString
SAL_CALL
NativeNumberSupplier
::
getNativeNumberString
(
const
OUString
&
aNumberString
,
const
Locale
&
rLocale
,
OUString
SAL_CALL
NativeNumberSupplier
Service
::
getNativeNumberString
(
const
OUString
&
aNumberString
,
const
Locale
&
rLocale
,
sal_Int16
nNativeNumberMode
,
Sequence
<
sal_Int32
>&
offset
)
throw
(
RuntimeException
)
{
const
Number
*
number
=
0
;
...
...
@@ -595,14 +595,14 @@ OUString SAL_CALL NativeNumberSupplier::getNativeNumberString(const OUString& aN
return
aNumberString
;
}
OUString
SAL_CALL
NativeNumberSupplier
::
getNativeNumberString
(
const
OUString
&
aNumberString
,
const
Locale
&
rLocale
,
OUString
SAL_CALL
NativeNumberSupplier
Service
::
getNativeNumberString
(
const
OUString
&
aNumberString
,
const
Locale
&
rLocale
,
sal_Int16
nNativeNumberMode
)
throw
(
RuntimeException
,
std
::
exception
)
{
Sequence
<
sal_Int32
>
offset
;
return
getNativeNumberString
(
aNumberString
,
rLocale
,
nNativeNumberMode
,
offset
);
}
sal_Unicode
SAL_CALL
NativeNumberSupplier
::
getNativeNumberChar
(
const
sal_Unicode
inChar
,
const
Locale
&
rLocale
,
sal_Int16
nNativeNumberMode
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
)
sal_Unicode
SAL_CALL
NativeNumberSupplier
Service
::
getNativeNumberChar
(
const
sal_Unicode
inChar
,
const
Locale
&
rLocale
,
sal_Int16
nNativeNumberMode
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
if
(
nNativeNumberMode
==
NativeNumberMode
::
NATNUM0
)
{
// Ascii
for
(
sal_Int16
i
=
0
;
i
<
NumberChar_Count
;
i
++
)
...
...
@@ -636,7 +636,7 @@ sal_Unicode SAL_CALL NativeNumberSupplier::getNativeNumberChar( const sal_Unicod
return
inChar
;
}
sal_Bool
SAL_CALL
NativeNumberSupplier
::
isValidNatNum
(
const
Locale
&
rLocale
,
sal_Int16
nNativeNumberMode
)
throw
(
RuntimeException
,
std
::
exception
)
sal_Bool
SAL_CALL
NativeNumberSupplier
Service
::
isValidNatNum
(
const
Locale
&
rLocale
,
sal_Int16
nNativeNumberMode
)
throw
(
RuntimeException
,
std
::
exception
)
{
sal_Int16
langnum
=
getLanguageNumber
(
rLocale
);
...
...
@@ -663,7 +663,7 @@ sal_Bool SAL_CALL NativeNumberSupplier::isValidNatNum( const Locale& rLocale, sa
return
sal_False
;
}
NativeNumberXmlAttributes
SAL_CALL
NativeNumberSupplier
::
convertToXmlAttributes
(
const
Locale
&
rLocale
,
sal_Int16
nNativeNumberMode
)
throw
(
RuntimeException
,
std
::
exception
)
NativeNumberXmlAttributes
SAL_CALL
NativeNumberSupplier
Service
::
convertToXmlAttributes
(
const
Locale
&
rLocale
,
sal_Int16
nNativeNumberMode
)
throw
(
RuntimeException
,
std
::
exception
)
{
static
const
sal_Int16
attShort
=
0
;
static
const
sal_Int16
attMedium
=
1
;
...
...
@@ -739,7 +739,7 @@ static bool natNumIn(sal_Int16 num, const sal_Int16 natnum[], sal_Int16 len)
return
false
;
}
sal_Int16
SAL_CALL
NativeNumberSupplier
::
convertFromXmlAttributes
(
const
NativeNumberXmlAttributes
&
aAttr
)
throw
(
RuntimeException
,
std
::
exception
)
sal_Int16
SAL_CALL
NativeNumberSupplier
Service
::
convertFromXmlAttributes
(
const
NativeNumberXmlAttributes
&
aAttr
)
throw
(
RuntimeException
,
std
::
exception
)
{
sal_Unicode
numberChar
[
NumberChar_Count
];
for
(
sal_Int16
i
=
0
;
i
<
NumberChar_Count
;
i
++
)
...
...
@@ -887,19 +887,19 @@ OUString SAL_CALL getHebrewNativeNumberString(const OUString& aNumberString, boo
static
const
sal_Char
*
implementationName
=
"com.sun.star.i18n.NativeNumberSupplier"
;
OUString
SAL_CALL
NativeNumberSupplier
::
getImplementationName
()
throw
(
RuntimeException
,
std
::
exception
)
OUString
SAL_CALL
NativeNumberSupplier
Service
::
getImplementationName
()
throw
(
RuntimeException
,
std
::
exception
)
{
return
OUString
::
createFromAscii
(
implementationName
);
}
sal_Bool
SAL_CALL
NativeNumberSupplier
::
supportsService
(
const
OUString
&
rServiceName
)
throw
(
RuntimeException
,
std
::
exception
)
NativeNumberSupplier
Service
::
supportsService
(
const
OUString
&
rServiceName
)
throw
(
RuntimeException
,
std
::
exception
)
{
return
cppu
::
supportsService
(
this
,
rServiceName
);
}
Sequence
<
OUString
>
SAL_CALL
NativeNumberSupplier
::
getSupportedServiceNames
()
throw
(
RuntimeException
,
std
::
exception
)
NativeNumberSupplier
Service
::
getSupportedServiceNames
()
throw
(
RuntimeException
,
std
::
exception
)
{
Sequence
<
OUString
>
aRet
(
1
);
aRet
[
0
]
=
OUString
::
createFromAscii
(
implementationName
);
...
...
@@ -913,7 +913,7 @@ com_sun_star_i18n_NativeNumberSupplier_get_implementation(
css
::
uno
::
XComponentContext
*
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
return
cppu
::
acquire
(
new
css
::
i18n
::
NativeNumberSupplier
());
return
cppu
::
acquire
(
new
css
::
i18n
::
NativeNumberSupplier
Service
());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
i18npool/source/transliteration/transliteration_Numeric.cxx
Dosyayı görüntüle @
91ba527a
...
...
@@ -119,7 +119,7 @@ transliteration_Numeric::transliterate( const OUString& inStr, sal_Int32 startPo
if
(
tableSize
)
return
transliterateBullet
(
inStr
,
startPos
,
nCount
,
offset
);
else
return
NativeNumberSupplier
(
useOffset
).
getNativeNumberString
(
inStr
.
copy
(
startPos
,
nCount
),
aLocale
,
nNativeNumberMode
,
offset
);
return
NativeNumberSupplier
Service
(
useOffset
).
getNativeNumberString
(
inStr
.
copy
(
startPos
,
nCount
),
aLocale
,
nNativeNumberMode
,
offset
);
}
sal_Unicode
SAL_CALL
...
...
@@ -134,7 +134,7 @@ transliteration_Numeric::transliterateChar2Char( sal_Unicode inChar ) throw(Runt
return
inChar
;
}
else
return
NativeNumberSupplier
().
getNativeNumberChar
(
inChar
,
aLocale
,
nNativeNumberMode
);
return
NativeNumberSupplier
Service
().
getNativeNumberChar
(
inChar
,
aLocale
,
nNativeNumberMode
);
}
}
}
}
}
...
...
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