LibreOffice Module sd (master) 1
|
#include <pptexanimations.hxx>
Public Member Functions | |
AnimationExporter (const EscherSolverContainer &rSolverContainer, ppt::ExSoundCollection &rExSoundCollection) | |
void | doexport (const css::uno::Reference< css::drawing::XDrawPage > &xPage, SvStream &rStrm) |
Static Public Member Functions | |
static css::uno::Any | convertAnimateValue (const css::uno::Any &rSource, std::u16string_view rAttributeName) |
static bool | GetNodeType (const css::uno::Reference< css::animations::XAnimationNode > &xNode, sal_Int16 &nType) |
static sal_Int16 | GetFillMode (const css::uno::Reference< css::animations::XAnimationNode > &xNode, const sal_Int16 nFillDefault) |
static void | GetUserData (const css::uno::Sequence< css::beans::NamedValue > &rUserData, const css::uno::Any **pAny, std::size_t nLen) |
static sal_uInt32 | TranslatePresetSubType (const sal_uInt32 nPresetClass, const sal_uInt32 nPresetId, std::u16string_view rPresetSubType) |
static sal_uInt32 | GetPresetID (std::u16string_view aPreset, sal_uInt32 nAPIPresetClass, bool &bPresetId) |
static sal_uInt32 | GetValueTypeForAttributeName (std::u16string_view rAttributeName) |
static const char * | FindTransitionName (const sal_Int16 nType, const sal_Int16 nSubType, const bool bDirection) |
static css::uno::Reference< css::drawing::XShape > | getTargetElementShape (const css::uno::Any &rAny, sal_Int32 &rBegin, sal_Int32 &rEnd, bool &rParagraphTarget) |
Private Member Functions | |
void | exportAnimate (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode) |
void | exportAnimateTarget (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode, const sal_uInt32 nForceAttributeName=0, int nAfterEffectType=AFTEREFFECT_NONE) |
void | exportAnimateSet (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode, int nAfterEffectType) |
void | exportAnimEvent (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode, const sal_Int32 nFlags=0) |
void | exportNode (SvStream &rStrm, css::uno::Reference< css::animations::XAnimationNode > const &xNode, const sal_uInt16 nContainerRecType, const sal_uInt16 nInstance, const sal_Int32 nGroupLevel, const bool bTakeBackInteractiveSequenceTiming, const sal_Int16 nFillDefault) |
void | exportAnimateTargetElement (SvStream &rStrm, const css::uno::Any &rAny, const bool bCreate2b01Atom) |
void | exportTransitionFilter (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode) |
void | exportAnimateMotion (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode) |
void | exportAnimateTransform (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode) |
void | exportAnimateColor (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode, int nAfterEffectType) |
void | exportIterate (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode) |
void | processAfterEffectNodes (const css::uno::Reference< css::animations::XAnimationNode > &xNode) |
bool | isAfterEffectNode (const css::uno::Reference< css::animations::XAnimationNode > &xNode) const |
bool | hasAfterEffectNode (const css::uno::Reference< css::animations::XAnimationNode > &xNode, css::uno::Reference< css::animations::XAnimationNode > &xAfterEffectNode) const |
bool | isEmptyNode (const css::uno::Reference< css::animations::XAnimationNode > &xNode) const |
Static Private Member Functions | |
static void | writeZString (SvStream &rStrm, std::u16string_view aVal) |
static bool | getColorAny (const css::uno::Any &rAny, const sal_Int16 nColorSpace, sal_Int32 &rMode, sal_Int32 &rA, sal_Int32 &rB, sal_Int32 &rC) |
static bool | exportAnimProperty (SvStream &rStrm, const sal_uInt16 nPropertyId, const css::uno::Any &rAny, const TranslateMode eTranslateMode) |
static void | exportAnimPropertyString (SvStream &rStrm, const sal_uInt16 nPropertyId, const OUString &rVal, const TranslateMode eTranslateMode) |
static void | exportAnimPropertyFloat (SvStream &rStrm, const sal_uInt16 nPropertyId, const double &rVal) |
static void | exportAnimPropertyuInt32 (SvStream &rStrm, const sal_uInt16 nPropertyId, const sal_uInt32 nVal) |
static void | exportAnimPropertyByte (SvStream &rStrm, const sal_uInt16 nPropertyId, const sal_uInt8 nVal) |
static sal_Int16 | exportAnimPropertySet (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode) |
if available exportAnimPropertySet More... | |
static void | exportAnimNode (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode, const sal_Int16 nFillDefault) |
static void | exportAnimAction (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode) |
static void | exportAnimateKeyPoints (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimate > &xAnimate) |
static void | exportAnimValue (SvStream &rStrm, const css::uno::Reference< css::animations::XAnimationNode > &xNode, const bool bExportAlways) |
static css::uno::Reference< css::animations::XAnimationNode > | createAfterEffectNodeClone (const css::uno::Reference< css::animations::XAnimationNode > &xNode) |
Private Attributes | |
css::uno::Any | aTarget |
const EscherSolverContainer & | mrSolverContainer |
ppt::ExSoundCollection & | mrExSoundCollection |
std::vector< AfterEffectNodePtr > | maAfterEffectNodes |
sal_Int32 | mnCurrentGroup |
Definition at line 70 of file pptexanimations.hxx.
ppt::AnimationExporter::AnimationExporter | ( | const EscherSolverContainer & | rSolverContainer, |
ppt::ExSoundCollection & | rExSoundCollection | ||
) |
Definition at line 262 of file pptexanimations.cxx.
|
static |
Definition at line 1358 of file pptexanimations.cxx.
References Any, aStr, bVisible, ppt::ImplTranslateAttribute(), TRANSLATE_MEASURE, and u.
Referenced by exportAnimateKeyPoints(), and exportAnimateSet().
|
staticprivate |
Definition at line 725 of file pptexanimations.cxx.
References Any, and Exception.
Referenced by exportNode().
void ppt::AnimationExporter::doexport | ( | const css::uno::Reference< css::drawing::XDrawPage > & | xPage, |
SvStream & | rStrm | ||
) |
Definition at line 326 of file pptexanimations.cxx.
References DFF_msofbtAnimGroup, exportNode(), processAfterEffectNodes(), and rStrm.
Referenced by PPTWriter::ImplWriteSlide().
|
staticprivate |
Definition at line 1196 of file pptexanimations.cxx.
References DFF_msofbtAnimAction, rStrm, and SvStream::WriteInt32().
Referenced by exportNode().
|
private |
Definition at line 1569 of file pptexanimations.cxx.
References aFrom, Any, aTo, DFF_msofbtAnimate, DFF_msofbtAnimateData, exportAnimateKeyPoints(), exportAnimateTarget(), exportAnimProperty(), GetValueTypeForAttributeName(), rStrm, TRANSLATE_MEASURE, TRANSLATE_NUMBER_TO_STRING, and SvStream::WriteUInt32().
Referenced by exportNode().
|
private |
Definition at line 2042 of file pptexanimations.cxx.
References Any, DFF_msofbtAnimateColor, DFF_msofbtAnimateColorData, exportAnimateTarget(), getColorAny(), rStrm, SvStream::WriteInt32(), and SvStream::WriteUInt32().
Referenced by exportNode().
|
staticprivate |
Definition at line 1773 of file pptexanimations.cxx.
References Any, convertAnimateValue(), DFF_msofbtAnimKeyPoints, DFF_msofbtAnimKeyTime, exportAnimProperty(), i, ppt::ImplTranslateAttribute(), rStrm, TRANSLATE_MEASURE, TRANSLATE_NONE, and SvStream::WriteInt32().
Referenced by exportAnimate().
|
private |
Definition at line 1893 of file pptexanimations.cxx.
References aStr, DFF_msofbtAnimateMotion, DFF_msofbtAnimateMotionData, exportAnimateTarget(), exportAnimPropertyString(), rStrm, TRANSLATE_NONE, SvStream::WriteFloat(), and SvStream::WriteUInt32().
Referenced by exportNode().
|
private |
Definition at line 1499 of file pptexanimations.cxx.
References Any, convertAnimateValue(), DFF_msofbtAnimateSet, DFF_msofbtAnimateSetData, exportAnimateTarget(), exportAnimProperty(), rStrm, TRANSLATE_NONE, and SvStream::WriteUInt32().
Referenced by exportNode().
|
private |
Definition at line 1609 of file pptexanimations.cxx.
References ppt::AFTEREFFECT_COLOR, ppt::AFTEREFFECT_NONE, aTarget, DFF_msofbtAnimateAttributeNames, DFF_msofbtAnimateTarget, DFF_msofbtAnimateTargetSettings, DFF_msofbtAnimPropertySet, exportAnimateTargetElement(), exportAnimPropertyString(), exportAnimPropertyuInt32(), nIndex, rStrm, TRANSLATE_ATTRIBUTE, and SvStream::WriteUInt32().
Referenced by exportAnimate(), exportAnimateColor(), exportAnimateMotion(), exportAnimateSet(), exportAnimateTransform(), and exportTransitionFilter().
|
private |
Definition at line 1737 of file pptexanimations.cxx.
References begin, DFF_msofbtAnimateTargetElement, DFF_msofbtAnimReference, end, EscherSolverContainer::GetShapeId(), getTargetElementShape(), mrSolverContainer, rStrm, SvStream::WriteInt32(), and SvStream::WriteUInt32().
Referenced by exportAnimateTarget(), and exportAnimEvent().
|
private |
Definition at line 1924 of file pptexanimations.cxx.
References DFF_msofbtAnimateRotation, DFF_msofbtAnimateRotationData, DFF_msofbtAnimateScale, DFF_msofbtAnimateScaleData, exportAnimateTarget(), rStrm, SvStream::WriteFloat(), and SvStream::WriteUInt32().
Referenced by exportNode().
|
private |
Definition at line 1223 of file pptexanimations.cxx.
References aEvent, Any, DFF_msofbtAnimEvent, DFF_msofbtAnimTrigger, exportAnimateTargetElement(), i, mnCurrentGroup, rStrm, and SvStream::WriteInt32().
Referenced by exportNode().
|
staticprivate |
Definition at line 760 of file pptexanimations.cxx.
References DFF_msofbtAnimNode, GetNodeType(), ppt::AnimationNode::mnDuration, ppt::AnimationNode::mnFill, ppt::AnimationNode::mnGroupType, ppt::AnimationNode::mnNodeType, ppt::AnimationNode::mnRestart, ppt::mso_Anim_Behaviour_ANIMATION, ppt::mso_Anim_Behaviour_FILTER, ppt::mso_Anim_GroupType_MEDIA, ppt::mso_Anim_GroupType_NODE, ppt::mso_Anim_GroupType_PAR, ppt::mso_Anim_GroupType_SEQ, nType, rStrm, and ppt::WriteAnimationNode().
Referenced by exportNode().
|
staticprivate |
Definition at line 1092 of file pptexanimations.cxx.
References aStr, exportAnimPropertyFloat(), exportAnimPropertyString(), exportAnimPropertyuInt32(), nPropertyId, rStrm, and TRANSLATE_NUMBER_TO_STRING.
Referenced by exportAnimate(), exportAnimateKeyPoints(), and exportAnimateSet().
|
staticprivate |
Definition at line 1182 of file pptexanimations.cxx.
References DFF_ANIM_PROP_TYPE_BYTE, DFF_msofbtAnimAttributeValue, nPropertyId, rStrm, and SvStream::WriteUChar().
Referenced by exportAnimPropertySet().
|
staticprivate |
Definition at line 1167 of file pptexanimations.cxx.
References DFF_ANIM_PROP_TYPE_FLOAT, DFF_msofbtAnimAttributeValue, nPropertyId, rStrm, SvStream::WriteFloat(), and SvStream::WriteUChar().
Referenced by exportAnimProperty().
|
staticprivate |
if available exportAnimPropertySet
Definition at line 915 of file pptexanimations.cxx.
References Any, DFF_ANIM_AFTEREFFECT, DFF_ANIM_DIRECTION, DFF_ANIM_EVENT_FILTER, DFF_ANIM_ID, DFF_ANIM_MASTERREL, DFF_ANIM_NODE_TYPE, DFF_ANIM_NODE_TYPE_AFTER_PREVIOUS, DFF_ANIM_NODE_TYPE_INTERACTIVE_SEQ, DFF_ANIM_NODE_TYPE_MAIN_SEQUENCE, DFF_ANIM_NODE_TYPE_ON_CLICK, DFF_ANIM_NODE_TYPE_TIMING_ROOT, DFF_ANIM_NODE_TYPE_WITH_PREVIOUS, DFF_ANIM_OVERRIDE, DFF_ANIM_PATH_EDIT_MODE, DFF_ANIM_PRESET_CLASS, DFF_ANIM_PRESET_ID, DFF_ANIM_PRESET_SUB_TYPE, DFF_ANIM_PRESS_CLASS_EMPHASIS, DFF_ANIM_PRESS_CLASS_ENTRANCE, DFF_ANIM_PRESS_CLASS_EXIT, DFF_ANIM_PRESS_CLASS_MEDIACALL, DFF_ANIM_PRESS_CLASS_MOTIONPATH, DFF_ANIM_PRESS_CLASS_OLE_ACTION, DFF_ANIM_PRESS_CLASS_USER_DEFINED, DFF_ANIM_PROPERTY_ID_COUNT, DFF_ANIM_RUNTIMECONTEXT, DFF_ANIM_VOLUME, DFF_msofbtAnimPropertySet, exportAnimPropertyByte(), exportAnimPropertyuInt32(), GetPresetID(), GetUserData(), rStrm, and TranslatePresetSubType().
Referenced by exportNode().
|
staticprivate |
Definition at line 1157 of file pptexanimations.cxx.
References aStr, DFF_ANIM_PROP_TYPE_UNISTRING, DFF_msofbtAnimAttributeValue, ppt::ImplTranslateAttribute(), nPropertyId, rStrm, TRANSLATE_NONE, SvStream::WriteUChar(), and writeZString().
Referenced by exportAnimateMotion(), exportAnimateTarget(), exportAnimProperty(), and exportTransitionFilter().
|
staticprivate |
Definition at line 1175 of file pptexanimations.cxx.
References DFF_ANIM_PROP_TYPE_INT32, DFF_msofbtAnimAttributeValue, nPropertyId, rStrm, SvStream::WriteUChar(), and SvStream::WriteUInt32().
Referenced by exportAnimateTarget(), exportAnimProperty(), and exportAnimPropertySet().
|
staticprivate |
Definition at line 1814 of file pptexanimations.cxx.
References Any, DFF_msofbtAnimValue, nType, rStrm, SvStream::WriteFloat(), and SvStream::WriteUInt32().
Referenced by exportNode().
|
private |
Definition at line 2090 of file pptexanimations.cxx.
References aTarget, DFF_msofbtAnimIteration, rStrm, SvStream::WriteFloat(), and SvStream::WriteInt32().
Referenced by exportNode().
|
private |
Definition at line 458 of file pptexanimations.cxx.
References ppt::AFTEREFFECT_COLOR, ppt::AFTEREFFECT_NONE, ppt::AFTEREFFECT_SET, Any, aTarget, aURL, begin, createAfterEffectNodeClone(), DFF_msofbtAnimateTargetElement, DFF_msofbtAnimEvent, DFF_msofbtAnimGroup, DFF_msofbtAnimNode, DFF_msofbtAnimReference, DFF_msofbtAnimSubGoup, DFF_msofbtAnimTrigger, end, exportAnimAction(), exportAnimate(), exportAnimateColor(), exportAnimateMotion(), exportAnimateSet(), exportAnimateTransform(), exportAnimEvent(), exportAnimNode(), exportAnimPropertySet(), exportAnimValue(), exportIterate(), exportNode(), exportTransitionFilter(), GetFillMode(), ppt::ExSoundCollection::GetId(), hasAfterEffectNode(), isAfterEffectNode(), isEmptyNode(), mnCurrentGroup, ppt::AnimationNode::mnFill, ppt::AnimationNode::mnGroupType, ppt::AnimationNode::mnNodeType, ppt::AnimationNode::mnRestart, mrExSoundCollection, ppt::mso_Anim_GroupType_PAR, rStrm, ppt::WriteAnimationNode(), SvStream::WriteInt32(), and SvStream::WriteUInt32().
Referenced by doexport(), and exportNode().
|
private |
Definition at line 1868 of file pptexanimations.cxx.
References aStr, DFF_msofbtAnimateFilter, DFF_msofbtAnimateFilterData, exportAnimateTarget(), exportAnimPropertyString(), FindTransitionName(), rStrm, TRANSLATE_NONE, and SvStream::WriteUInt32().
Referenced by exportNode().
|
static |
Definition at line 221 of file pptexanimations.cxx.
References oox::ppt::transition::getList(), nType, and p.
Referenced by exportTransitionFilter().
|
staticprivate |
Definition at line 2015 of file pptexanimations.cxx.
Referenced by exportAnimateColor().
|
static |
|
static |
Definition at line 744 of file pptexanimations.cxx.
References nType.
Referenced by exportAnimNode().
|
static |
Definition at line 884 of file pptexanimations.cxx.
References o3tl::equalsAscii(), oox::ppt::preset_mapping::getList(), p, o3tl::starts_with(), o3tl::toUInt32(), and u.
Referenced by exportAnimPropertySet().
|
static |
Definition at line 1686 of file pptexanimations.cxx.
References nLength.
Referenced by exportAnimateTargetElement().
|
static |
Definition at line 852 of file pptexanimations.cxx.
References DFF_ANIM_AFTEREFFECT, DFF_ANIM_NODE_TYPE, DFF_ANIM_PRESET_CLASS, DFF_ANIM_PRESET_ID, and DFF_ANIM_PRESET_SUB_TYPE.
Referenced by exportAnimPropertySet().
|
static |
Definition at line 1518 of file pptexanimations.cxx.
References DBG_ASSERT, Entry, o3tl::equalsIgnoreAsciiCase(), nType, and pName.
Referenced by exportAnimate().
|
private |
Definition at line 408 of file pptexanimations.cxx.
References maAfterEffectNodes.
Referenced by exportNode().
|
private |
Definition at line 402 of file pptexanimations.cxx.
References maAfterEffectNodes.
Referenced by exportNode(), and isEmptyNode().
|
private |
Definition at line 423 of file pptexanimations.cxx.
References isAfterEffectNode(), and isEmptyNode().
Referenced by exportNode(), and isEmptyNode().
|
private |
Definition at line 340 of file pptexanimations.cxx.
References Exception, maAfterEffectNodes, p, and TOOLS_WARN_EXCEPTION.
Referenced by doexport().
|
static |
Definition at line 141 of file pptexanimations.cxx.
References o3tl::equalsAscii(), oox::ppt::convert_subtype::getList(), p, o3tl::toUInt32(), and u.
Referenced by exportAnimPropertySet().
|
staticprivate |
Definition at line 1189 of file pptexanimations.cxx.
References i, rStrm, and SvStream::WriteUInt16().
Referenced by exportAnimPropertyString().
|
private |
Definition at line 72 of file pptexanimations.hxx.
Referenced by exportAnimateTarget(), exportIterate(), and exportNode().
|
private |
Definition at line 75 of file pptexanimations.hxx.
Referenced by hasAfterEffectNode(), isAfterEffectNode(), and processAfterEffectNodes().
|
private |
Definition at line 76 of file pptexanimations.hxx.
Referenced by exportAnimEvent(), and exportNode().
|
private |
Definition at line 74 of file pptexanimations.hxx.
Referenced by exportNode().
|
private |
Definition at line 73 of file pptexanimations.hxx.
Referenced by exportAnimateTargetElement().