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
f2b6ba8a
Kaydet (Commit)
f2b6ba8a
authored
Kas 05, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pptx: add a testcase for wipe transitions import/export
Change-Id: Ic82b95fc676957f26ce5e09b2343ba71b775c1b0
üst
2cdd751e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
export-tests.cxx
sd/qa/unit/export-tests.cxx
+19
-4
No files found.
sd/qa/unit/export-tests.cxx
Dosyayı görüntüle @
f2b6ba8a
...
...
@@ -1348,7 +1348,8 @@ void SdExportTest::testTdf80224()
}
bool
checkTransitionOnPage
(
uno
::
Reference
<
drawing
::
XDrawPagesSupplier
>
xDoc
,
sal_Int32
nSlideNumber
,
sal_Int16
nExpectedTransitionType
,
sal_Int16
nExpectedTransitionSubType
)
sal_Int16
nExpectedTransitionType
,
sal_Int16
nExpectedTransitionSubType
,
bool
bExpectedDirection
=
false
)
{
sal_Int32
nSlideIndex
=
nSlideNumber
-
1
;
...
...
@@ -1362,17 +1363,25 @@ bool checkTransitionOnPage(uno::Reference<drawing::XDrawPagesSupplier> xDoc, sal
sal_Int16
nTransitionType
=
0
;
if
((
aAny
>>=
nTransitionType
)
==
false
)
return
false
;
if
(
nExpectedTransitionType
!=
nTransitionType
)
return
false
;
aAny
=
xPropSet
->
getPropertyValue
(
OUString
(
"TransitionSubtype"
));
sal_Int16
nTransitionSubtype
=
0
;
if
((
aAny
>>=
nTransitionSubtype
)
==
false
)
return
false
;
if
(
nExpectedTransitionType
!=
nTransitionType
)
return
false
;
if
(
nExpectedTransitionSubType
!=
nTransitionSubtype
)
return
false
;
if
(
xPropSet
->
getPropertySetInfo
()
->
hasPropertyByName
(
OUString
(
"TransitionDirection"
)))
{
aAny
=
xPropSet
->
getPropertyValue
(
OUString
(
"TransitionDirection"
));
bool
bDirection
=
false
;
if
((
aAny
>>=
bDirection
)
==
false
)
return
false
;
if
(
bExpectedDirection
!=
bDirection
)
return
false
;
}
return
true
;
}
...
...
@@ -1382,6 +1391,12 @@ void SdExportTest::testExportTransitionsPPTX()
xDocShRef
=
saveAndReload
(
xDocShRef
,
PPTX
);
uno
::
Reference
<
drawing
::
XDrawPagesSupplier
>
xDoc
(
xDocShRef
->
GetDoc
()
->
getUnoModel
(),
uno
::
UNO_QUERY_THROW
);
// WIPE TRANSITIONS
checkTransitionOnPage
(
xDoc
,
01
,
css
::
animations
::
TransitionType
::
BARWIPE
,
css
::
animations
::
TransitionSubType
::
TOPTOBOTTOM
,
true
);
checkTransitionOnPage
(
xDoc
,
02
,
css
::
animations
::
TransitionType
::
BARWIPE
,
css
::
animations
::
TransitionSubType
::
LEFTTORIGHT
,
false
);
checkTransitionOnPage
(
xDoc
,
03
,
css
::
animations
::
TransitionType
::
BARWIPE
,
css
::
animations
::
TransitionSubType
::
LEFTTORIGHT
,
true
);
checkTransitionOnPage
(
xDoc
,
04
,
css
::
animations
::
TransitionType
::
BARWIPE
,
css
::
animations
::
TransitionSubType
::
TOPTOBOTTOM
,
false
);
checkTransitionOnPage
(
xDoc
,
71
,
css
::
animations
::
TransitionType
::
ZOOM
,
css
::
animations
::
TransitionSubType
::
ROTATEIN
);
checkTransitionOnPage
(
xDoc
,
41
,
css
::
animations
::
TransitionType
::
PUSHWIPE
,
css
::
animations
::
TransitionSubType
::
COMBHORIZONTAL
);
checkTransitionOnPage
(
xDoc
,
42
,
css
::
animations
::
TransitionType
::
PUSHWIPE
,
css
::
animations
::
TransitionSubType
::
COMBVERTICAL
);
...
...
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