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
633ca742
Kaydet (Commit)
633ca742
authored
Tem 04, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use LanguageTag instead of mouth-painted implementation
Change-Id: Idd84ce9740de179c399702f896b7d39ab321f6f7
üst
7191ff96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
docprophandler.cxx
oox/source/docprop/docprophandler.cxx
+2
-16
docprophandler.hxx
oox/source/docprop/docprophandler.hxx
+0
-1
No files found.
oox/source/docprop/docprophandler.cxx
Dosyayı görüntüle @
633ca742
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <osl/time.h>
#include <osl/time.h>
#include <i18nlangtag/languagetag.hxx>
#include <vector>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string.hpp>
...
@@ -178,21 +179,6 @@ uno::Sequence< OUString > OOXMLDocPropHandler::GetKeywordsSet( const OUString& a
...
@@ -178,21 +179,6 @@ uno::Sequence< OUString > OOXMLDocPropHandler::GetKeywordsSet( const OUString& a
}
}
return
uno
::
Sequence
<
OUString
>
();
return
uno
::
Sequence
<
OUString
>
();
}
}
// ------------------------------------------------
lang
::
Locale
OOXMLDocPropHandler
::
GetLanguage
(
const
OUString
&
aChars
)
{
lang
::
Locale
aResult
;
if
(
aChars
.
getLength
()
>=
2
)
{
aResult
.
Language
=
aChars
.
copy
(
0
,
2
);
if
(
aChars
.
getLength
()
>=
5
&&
aChars
.
getStr
()[
2
]
==
(
sal_Unicode
)
'-'
)
aResult
.
Country
=
aChars
.
copy
(
3
,
2
);
// TODO/LATER: the variant could be also detected
}
return
aResult
;
}
// ------------------------------------------------
// ------------------------------------------------
void
OOXMLDocPropHandler
::
UpdateDocStatistic
(
const
OUString
&
aChars
)
void
OOXMLDocPropHandler
::
UpdateDocStatistic
(
const
OUString
&
aChars
)
...
@@ -423,7 +409,7 @@ void SAL_CALL OOXMLDocPropHandler::characters( const OUString& aChars )
...
@@ -423,7 +409,7 @@ void SAL_CALL OOXMLDocPropHandler::characters( const OUString& aChars )
case
DC_TOKEN
(
language
):
case
DC_TOKEN
(
language
):
if
(
aChars
.
getLength
()
>=
2
)
if
(
aChars
.
getLength
()
>=
2
)
m_xDocProp
->
setLanguage
(
GetLanguage
(
aChars
)
);
m_xDocProp
->
setLanguage
(
LanguageTag
(
aChars
).
getLocale
(
)
);
break
;
break
;
case
COREPR_TOKEN
(
lastModifiedBy
):
case
COREPR_TOKEN
(
lastModifiedBy
):
...
...
oox/source/docprop/docprophandler.hxx
Dosyayı görüntüle @
633ca742
...
@@ -62,7 +62,6 @@ public:
...
@@ -62,7 +62,6 @@ public:
::
com
::
sun
::
star
::
util
::
DateTime
GetDateTimeFromW3CDTF
(
const
OUString
&
aChars
);
::
com
::
sun
::
star
::
util
::
DateTime
GetDateTimeFromW3CDTF
(
const
OUString
&
aChars
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
GetKeywordsSet
(
const
OUString
&
aChars
);
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
GetKeywordsSet
(
const
OUString
&
aChars
);
::
com
::
sun
::
star
::
lang
::
Locale
GetLanguage
(
const
OUString
&
aChars
);
void
UpdateDocStatistic
(
const
OUString
&
aChars
);
void
UpdateDocStatistic
(
const
OUString
&
aChars
);
// com.sun.star.xml.sax.XFastDocumentHandler
// com.sun.star.xml.sax.XFastDocumentHandler
...
...
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