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
60535ebc
Kaydet (Commit)
60535ebc
authored
Eki 09, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOCX filter: test CT_LatentStyles and CT_LsdException
Change-Id: I343b1d83db8e7538fcb5276a8701b51fe64a2a67
üst
c7d267d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+29
-0
No files found.
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
60535ebc
...
...
@@ -1406,6 +1406,35 @@ void Test::testStyleInheritance()
// Check that we output real content of rPrDefault
assertXPath
(
pXmlStyles
,
"/w:styles/w:docDefaults/w:rPrDefault/w:rPr/w:rFonts"
,
"ascii"
,
"Times New Roman"
);
assertXPath
(
pXmlStyles
,
"/w:styles/w:docDefaults/w:rPrDefault/w:rPr/w:lang"
,
"bidi"
,
"ar-SA"
);
// Check latent styles
uno
::
Sequence
<
beans
::
PropertyValue
>
aGrabBag
=
getProperty
<
uno
::
Sequence
<
beans
::
PropertyValue
>
>
(
mxComponent
,
"InteropGrabBag"
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aLatentStyles
;
for
(
sal_Int32
i
=
0
;
i
<
aGrabBag
.
getLength
();
++
i
)
if
(
aGrabBag
[
i
].
Name
==
"latentStyles"
)
aGrabBag
[
i
].
Value
>>=
aLatentStyles
;
CPPUNIT_ASSERT
(
aLatentStyles
.
getLength
());
// document should have latent styles
// Check latent style default attributes
OUString
aCount
;
uno
::
Sequence
<
beans
::
PropertyValue
>
aLatentStyleExceptions
;
for
(
sal_Int32
i
=
0
;
i
<
aLatentStyles
.
getLength
();
++
i
)
{
if
(
aLatentStyles
[
i
].
Name
==
"count"
)
aCount
=
aLatentStyles
[
i
].
Value
.
get
<
OUString
>
();
else
if
(
aLatentStyles
[
i
].
Name
==
"lsdExceptions"
)
aLatentStyles
[
i
].
Value
>>=
aLatentStyleExceptions
;
}
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"371"
),
aCount
);
// This check the "count" attribute.
// Check exceptions to the latent style defaults.
uno
::
Sequence
<
beans
::
PropertyValue
>
aLatentStyleException
;
aLatentStyleExceptions
[
0
].
Value
>>=
aLatentStyleException
;
OUString
aName
;
for
(
sal_Int32
i
=
0
;
i
<
aLatentStyleException
.
getLength
();
++
i
)
if
(
aLatentStyleException
[
i
].
Name
==
"name"
)
aName
=
aLatentStyleException
[
i
].
Value
.
get
<
OUString
>
();
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Normal"
),
aName
);
// This checks the "name" attribute of the first exception.
}
void
Test
::
testSmartart
()
...
...
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