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
af4602e5
Kaydet (Commit)
af4602e5
authored
Agu 09, 2017
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#111518 pptx: Add support for export of p:animMotion.
Change-Id: Idd5692c803b1e8d434abc0154419a341934d0753
üst
72430607
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
11 deletions
+46
-11
pptx-epptooxml.cxx
sd/source/filter/eppt/pptx-epptooxml.cxx
+46
-11
No files found.
sd/source/filter/eppt/pptx-epptooxml.cxx
Dosyayı görüntüle @
af4602e5
...
...
@@ -49,6 +49,7 @@
#include <com/sun/star/animations/TransitionType.hpp>
#include <com/sun/star/animations/TransitionSubType.hpp>
#include <com/sun/star/animations/ValuePair.hpp>
#include <com/sun/star/animations/XAnimateMotion.hpp>
#include <com/sun/star/animations/XAnimationNode.hpp>
#include <com/sun/star/animations/XAnimationNodeSupplier.hpp>
#include <com/sun/star/animations/XTransitionFilter.hpp>
...
...
@@ -900,23 +901,34 @@ void PowerPointExport::WriteAnimationAttributeName(const FSHelperPtr& pFS, const
SAL_INFO
(
"sd.eppt"
,
"write attribute name: "
<<
USS
(
rAttributeName
));
const
char
*
sAttributeName
=
nullptr
;
if
(
rAttributeName
==
"Visibility"
)
{
sAttributeName
=
"style.visibility"
;
pFS
->
startElementNS
(
XML_p
,
XML_attrName
,
FSEND
);
pFS
->
writeEscaped
(
"style.visibility"
);
pFS
->
endElementNS
(
XML_p
,
XML_attrName
);
}
else
if
(
rAttributeName
==
"X"
)
{
sAttributeName
=
"ppt_x"
;
pFS
->
startElementNS
(
XML_p
,
XML_attrName
,
FSEND
);
pFS
->
writeEscaped
(
"ppt_x"
);
pFS
->
endElementNS
(
XML_p
,
XML_attrName
);
}
else
if
(
rAttributeName
==
"Y"
)
{
sAttributeName
=
"ppt_y"
;
pFS
->
startElementNS
(
XML_p
,
XML_attrName
,
FSEND
);
pFS
->
writeEscaped
(
"ppt_y"
);
pFS
->
endElementNS
(
XML_p
,
XML_attrName
);
}
else
if
(
rAttributeName
==
"X;Y"
)
{
pFS
->
startElementNS
(
XML_p
,
XML_attrName
,
FSEND
);
pFS
->
writeEscaped
(
"ppt_x"
);
pFS
->
endElementNS
(
XML_p
,
XML_attrName
);
pFS
->
startElementNS
(
XML_p
,
XML_attrName
,
FSEND
);
pFS
->
writeEscaped
(
sAttributeName
);
pFS
->
endElementNS
(
XML_p
,
XML_attrName
);
pFS
->
startElementNS
(
XML_p
,
XML_attrName
,
FSEND
);
pFS
->
writeEscaped
(
"ppt_y"
);
pFS
->
endElementNS
(
XML_p
,
XML_attrName
);
}
pFS
->
endElementNS
(
XML_p
,
XML_attrNameLst
);
}
...
...
@@ -983,10 +995,29 @@ void PowerPointExport::WriteAnimationNodeAnimate(const FSHelperPtr& pFS, const R
}
}
pFS
->
startElementNS
(
XML_p
,
nXmlNodeType
,
XML_calcmode
,
pCalcMode
,
XML_valueType
,
pValueType
,
FSEND
);
OUString
aPath
;
if
(
nXmlNodeType
==
XML_animMotion
)
{
Reference
<
XAnimateMotion
>
rMotion
(
rXNode
,
UNO_QUERY
);
if
(
rMotion
.
is
())
rMotion
->
getPath
()
>>=
aPath
;
}
if
(
aPath
.
isEmpty
())
{
pFS
->
startElementNS
(
XML_p
,
nXmlNodeType
,
XML_calcmode
,
pCalcMode
,
XML_valueType
,
pValueType
,
FSEND
);
}
else
{
pFS
->
startElementNS
(
XML_p
,
nXmlNodeType
,
XML_calcmode
,
pCalcMode
,
XML_valueType
,
pValueType
,
XML_path
,
OUStringToOString
(
aPath
,
RTL_TEXTENCODING_UTF8
),
FSEND
);
}
WriteAnimationNodeAnimateInside
(
pFS
,
rXNode
,
bMainSeqChild
,
bSimple
);
pFS
->
endElementNS
(
XML_p
,
nXmlNodeType
);
}
...
...
@@ -1409,6 +1440,10 @@ void PowerPointExport::WriteAnimationNode(const FSHelperPtr& pFS, const Referenc
xmlNodeType
=
XML_anim
;
pMethod
=
&
PowerPointExport
::
WriteAnimationNodeAnimate
;
break
;
case
AnimationNodeType
:
:
ANIMATEMOTION
:
xmlNodeType
=
XML_animMotion
;
pMethod
=
&
PowerPointExport
::
WriteAnimationNodeAnimate
;
break
;
case
AnimationNodeType
:
:
SET
:
xmlNodeType
=
XML_set
;
pMethod
=
&
PowerPointExport
::
WriteAnimationNodeAnimate
;
...
...
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