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
521586b3
Kaydet (Commit)
521586b3
authored
Şub 28, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#59638 DOCX import of w:lvlOverride
Change-Id: I23fca674e2436b09eeea3337b4d3eeb7a33ccf09
üst
f2e706d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
fdo59638.docx
sw/qa/extras/ooxmlimport/data/fdo59638.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+25
-0
NumberingManager.cxx
writerfilter/source/dmapper/NumberingManager.cxx
+8
-1
No files found.
sw/qa/extras/ooxmlimport/data/fdo59638.docx
0 → 100755
Dosyayı görüntüle @
521586b3
File added
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
521586b3
...
...
@@ -118,6 +118,7 @@ public:
void
testN779642
();
void
testTbLrHeight
();
void
testFdo53985
();
void
testFdo59638
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
...
...
@@ -187,6 +188,7 @@ void Test::run()
{
"n779642.docx"
,
&
Test
::
testN779642
},
{
"tblr-height.docx"
,
&
Test
::
testTbLrHeight
},
{
"fdo53985.docx"
,
&
Test
::
testFdo53985
},
{
"fdo59638.docx"
,
&
Test
::
testFdo59638
},
};
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
...
@@ -1207,6 +1209,29 @@ void Test::testFdo53985()
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
5
),
xTables
->
getCount
());
// Only 4 tables were imported.
}
void
Test
::
testFdo59638
()
{
// The problem was that w:lvlOverride inside w:num was ignores by dmapper.
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
getStyles
(
"NumberingStyles"
)
->
getByName
(
"WWNum1"
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xLevels
(
xPropertySet
->
getPropertyValue
(
"NumberingRules"
),
uno
::
UNO_QUERY
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aProps
;
xLevels
->
getByIndex
(
0
)
>>=
aProps
;
// 1st level
for
(
int
i
=
0
;
i
<
aProps
.
getLength
();
++
i
)
{
const
beans
::
PropertyValue
&
rProp
=
aProps
[
i
];
if
(
rProp
.
Name
==
"BulletChar"
)
{
// Was '*', should be 'o'.
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"
\xEF\x82\xB7
"
,
3
,
RTL_TEXTENCODING_UTF8
),
rProp
.
Value
.
get
<
OUString
>
());
return
;
}
}
CPPUNIT_FAIL
(
"no BulletChar property"
);
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
writerfilter/source/dmapper/NumberingManager.cxx
Dosyayı görüntüle @
521586b3
...
...
@@ -495,7 +495,7 @@ uno::Sequence< uno::Sequence< beans::PropertyValue > > ListDef::GetPropertyValue
for
(
sal_Int32
i
=
0
;
i
<
nThisCount
;
i
++
)
{
uno
::
Sequence
<
beans
::
PropertyValue
>
level
=
aThis
[
i
];
if
(
level
.
getLength
(
)
==
0
)
if
(
level
.
hasElements
()
)
{
// If the element contains something, merge it
lcl_mergeProperties
(
level
,
aAbstract
[
i
]
);
...
...
@@ -955,6 +955,13 @@ void ListsManager::lcl_sprm( Sprm& rSprm )
pLevel
->
SetParaStyle
(
pStyle
);
}
break
;
case
NS_ooxml
:
:
LN_CT_Num_lvlOverride
:
{
writerfilter
::
Reference
<
Properties
>::
Pointer_t
pProperties
=
rSprm
.
getProps
();
if
(
pProperties
.
get
())
pProperties
->
resolve
(
*
this
);
}
break
;
case
NS_ooxml
:
:
LN_EG_RPrBase_rFonts
:
//contains font properties
case
NS_ooxml
:
:
LN_EG_RPrBase_color
:
case
NS_ooxml
:
:
LN_EG_RPrBase_u
:
...
...
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