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
ee655627
Kaydet (Commit)
ee655627
authored
Kas 18, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmloff: add meta:generator constants LO_43x and LO_44x
Change-Id: I1d962ad637f19b02855616edebcedbad719689c5
üst
e3ad0622
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
xmlimp.hxx
include/xmloff/xmlimp.hxx
+4
-2
xmlimp.cxx
xmloff/source/core/xmlimp.cxx
+14
-7
No files found.
include/xmloff/xmlimp.hxx
Dosyayı görüntüle @
ee655627
...
...
@@ -476,9 +476,11 @@ public:
static
const
sal_uInt16
LO_3x
=
30
|
LO_flag
;
static
const
sal_uInt16
LO_41x
=
41
|
LO_flag
;
static
const
sal_uInt16
LO_42x
=
42
|
LO_flag
;
/// @ATTENTION: when adding a new value more specific than "4x", grep for
static
const
sal_uInt16
LO_43x
=
43
|
LO_flag
;
static
const
sal_uInt16
LO_44x
=
44
|
LO_flag
;
/// @ATTENTION: when adding a new value more specific than "5x", grep for
/// all current uses and adapt them!!!
static
const
sal_uInt16
LO_
4x
=
43
|
LO_flag
;
static
const
sal_uInt16
LO_
5x
=
50
|
LO_flag
;
static
const
sal_uInt16
ProductVersionUnknown
=
SAL_MAX_UINT16
;
/** depending on whether the generator version indicates LO, compare
...
...
xmloff/source/core/xmlimp.cxx
Dosyayı görüntüle @
ee655627
...
...
@@ -190,24 +190,31 @@ getBuildIdsProperty(uno::Reference<beans::XPropertySet> const& xImportInfo)
{
mnGeneratorVersion
=
SvXMLImport
::
LO_3x
;
}
else
else
if
(
'4'
==
loVersion
[
0
])
{
SAL_INFO_IF
(
'4'
!=
loVersion
[
0
],
"xmloff.core"
,
"unknown LO version: "
<<
loVersion
);
if
(
'4'
==
loVersion
[
0
]
&&
loVersion
.
getLength
()
>
1
if
(
loVersion
.
getLength
()
>
1
&&
(
loVersion
[
1
]
==
'0'
||
loVersion
[
1
]
==
'1'
))
{
mnGeneratorVersion
=
SvXMLImport
::
LO_41x
;
// 4.0/4.1
}
else
if
(
'4'
==
loVersion
[
0
]
&&
loVersion
.
getLength
()
>
1
&&
loVersion
[
1
]
==
'2'
)
else
if
(
loVersion
.
getLength
()
>
1
&&
'2'
==
loVersion
[
1
])
{
mnGeneratorVersion
=
SvXMLImport
::
LO_42x
;
// 4.2
}
else
else
if
(
loVersion
.
getLength
()
>
1
&&
'3'
==
loVersion
[
1
])
{
mnGeneratorVersion
=
SvXMLImport
::
LO_43x
;
// 4.3
}
else
if
(
loVersion
.
getLength
()
>
1
&&
'4'
==
loVersion
[
1
])
{
mnGeneratorVersion
=
SvXMLImport
::
LO_4
x
;
mnGeneratorVersion
=
SvXMLImport
::
LO_4
4x
;
// 4.4
}
}
else
{
SAL_INFO_IF
(
'5'
!=
loVersion
[
0
],
"xmloff.core"
,
"unknown LO version: "
<<
loVersion
);
mnGeneratorVersion
=
SvXMLImport
::
LO_5x
;
}
return
;
// ignore buildIds
}
}
...
...
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