LibreOffice Module sd (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ppt::AnimationExporter Class Reference

#include <pptexanimations.hxx>

Collaboration diagram for ppt::AnimationExporter:
[legend]

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 EscherSolverContainermrSolverContainer
 
ppt::ExSoundCollectionmrExSoundCollection
 
std::vector< AfterEffectNodePtrmaAfterEffectNodes
 
sal_Int32 mnCurrentGroup
 

Detailed Description

Definition at line 70 of file pptexanimations.hxx.

Constructor & Destructor Documentation

◆ AnimationExporter()

ppt::AnimationExporter::AnimationExporter ( const EscherSolverContainer rSolverContainer,
ppt::ExSoundCollection rExSoundCollection 
)

Definition at line 262 of file pptexanimations.cxx.

Member Function Documentation

◆ convertAnimateValue()

Any ppt::AnimationExporter::convertAnimateValue ( const css::uno::Any &  rSource,
std::u16string_view  rAttributeName 
)
static

◆ createAfterEffectNodeClone()

Reference< XAnimationNode > ppt::AnimationExporter::createAfterEffectNodeClone ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode)
staticprivate

Definition at line 725 of file pptexanimations.cxx.

References Any, and Exception.

Referenced by exportNode().

◆ doexport()

void ppt::AnimationExporter::doexport ( const css::uno::Reference< css::drawing::XDrawPage > &  xPage,
SvStream rStrm 
)

◆ exportAnimAction()

void ppt::AnimationExporter::exportAnimAction ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode 
)
staticprivate

Definition at line 1196 of file pptexanimations.cxx.

References DFF_msofbtAnimAction, rStrm, and SvStream::WriteInt32().

Referenced by exportNode().

◆ exportAnimate()

void ppt::AnimationExporter::exportAnimate ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode 
)
private

◆ exportAnimateColor()

void ppt::AnimationExporter::exportAnimateColor ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode,
int  nAfterEffectType 
)
private

◆ exportAnimateKeyPoints()

void ppt::AnimationExporter::exportAnimateKeyPoints ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimate > &  xAnimate 
)
staticprivate

◆ exportAnimateMotion()

void ppt::AnimationExporter::exportAnimateMotion ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode 
)
private

◆ exportAnimateSet()

void ppt::AnimationExporter::exportAnimateSet ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode,
int  nAfterEffectType 
)
private

◆ exportAnimateTarget()

void ppt::AnimationExporter::exportAnimateTarget ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode,
const sal_uInt32  nForceAttributeName = 0,
int  nAfterEffectType = AFTEREFFECT_NONE 
)
private

◆ exportAnimateTargetElement()

void ppt::AnimationExporter::exportAnimateTargetElement ( SvStream rStrm,
const css::uno::Any &  rAny,
const bool  bCreate2b01Atom 
)
private

◆ exportAnimateTransform()

void ppt::AnimationExporter::exportAnimateTransform ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode 
)
private

◆ exportAnimEvent()

void ppt::AnimationExporter::exportAnimEvent ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode,
const sal_Int32  nFlags = 0 
)
private

◆ exportAnimNode()

void ppt::AnimationExporter::exportAnimNode ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode,
const sal_Int16  nFillDefault 
)
staticprivate

◆ exportAnimProperty()

bool ppt::AnimationExporter::exportAnimProperty ( SvStream rStrm,
const sal_uInt16  nPropertyId,
const css::uno::Any &  rAny,
const TranslateMode  eTranslateMode 
)
staticprivate

◆ exportAnimPropertyByte()

void ppt::AnimationExporter::exportAnimPropertyByte ( SvStream rStrm,
const sal_uInt16  nPropertyId,
const sal_uInt8  nVal 
)
staticprivate

◆ exportAnimPropertyFloat()

void ppt::AnimationExporter::exportAnimPropertyFloat ( SvStream rStrm,
const sal_uInt16  nPropertyId,
const double &  rVal 
)
staticprivate

◆ exportAnimPropertySet()

sal_Int16 ppt::AnimationExporter::exportAnimPropertySet ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode 
)
staticprivate

◆ exportAnimPropertyString()

void ppt::AnimationExporter::exportAnimPropertyString ( SvStream rStrm,
const sal_uInt16  nPropertyId,
const OUString &  rVal,
const TranslateMode  eTranslateMode 
)
staticprivate

◆ exportAnimPropertyuInt32()

void ppt::AnimationExporter::exportAnimPropertyuInt32 ( SvStream rStrm,
const sal_uInt16  nPropertyId,
const sal_uInt32  nVal 
)
staticprivate

◆ exportAnimValue()

void ppt::AnimationExporter::exportAnimValue ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode,
const bool  bExportAlways 
)
staticprivate

◆ exportIterate()

void ppt::AnimationExporter::exportIterate ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode 
)
private

◆ exportNode()

void ppt::AnimationExporter::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 
)
private

◆ exportTransitionFilter()

void ppt::AnimationExporter::exportTransitionFilter ( SvStream rStrm,
const css::uno::Reference< css::animations::XAnimationNode > &  xNode 
)
private

◆ FindTransitionName()

const char * ppt::AnimationExporter::FindTransitionName ( const sal_Int16  nType,
const sal_Int16  nSubType,
const bool  bDirection 
)
static

Definition at line 221 of file pptexanimations.cxx.

References oox::ppt::transition::getList(), nType, and p.

Referenced by exportTransitionFilter().

◆ getColorAny()

bool ppt::AnimationExporter::getColorAny ( const css::uno::Any &  rAny,
const sal_Int16  nColorSpace,
sal_Int32 &  rMode,
sal_Int32 &  rA,
sal_Int32 &  rB,
sal_Int32 &  rC 
)
staticprivate

Definition at line 2015 of file pptexanimations.cxx.

Referenced by exportAnimateColor().

◆ GetFillMode()

sal_Int16 ppt::AnimationExporter::GetFillMode ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode,
const sal_Int16  nFillDefault 
)
static

Definition at line 269 of file pptexanimations.cxx.

References Any.

Referenced by exportNode().

◆ GetNodeType()

bool ppt::AnimationExporter::GetNodeType ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode,
sal_Int16 &  nType 
)
static

Definition at line 744 of file pptexanimations.cxx.

References nType.

Referenced by exportAnimNode().

◆ GetPresetID()

sal_uInt32 ppt::AnimationExporter::GetPresetID ( std::u16string_view  aPreset,
sal_uInt32  nAPIPresetClass,
bool &  bPresetId 
)
static

◆ getTargetElementShape()

Reference< XShape > ppt::AnimationExporter::getTargetElementShape ( const css::uno::Any &  rAny,
sal_Int32 &  rBegin,
sal_Int32 &  rEnd,
bool &  rParagraphTarget 
)
static

Definition at line 1686 of file pptexanimations.cxx.

References nLength.

Referenced by exportAnimateTargetElement().

◆ GetUserData()

void ppt::AnimationExporter::GetUserData ( const css::uno::Sequence< css::beans::NamedValue > &  rUserData,
const css::uno::Any **  pAny,
std::size_t  nLen 
)
static

◆ GetValueTypeForAttributeName()

sal_uInt32 ppt::AnimationExporter::GetValueTypeForAttributeName ( std::u16string_view  rAttributeName)
static

Definition at line 1518 of file pptexanimations.cxx.

References DBG_ASSERT, Entry, o3tl::equalsIgnoreAsciiCase(), nType, and pName.

Referenced by exportAnimate().

◆ hasAfterEffectNode()

bool ppt::AnimationExporter::hasAfterEffectNode ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode,
css::uno::Reference< css::animations::XAnimationNode > &  xAfterEffectNode 
) const
private

Definition at line 408 of file pptexanimations.cxx.

References maAfterEffectNodes.

Referenced by exportNode().

◆ isAfterEffectNode()

bool ppt::AnimationExporter::isAfterEffectNode ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode) const
private

Definition at line 402 of file pptexanimations.cxx.

References maAfterEffectNodes.

Referenced by exportNode(), and isEmptyNode().

◆ isEmptyNode()

bool ppt::AnimationExporter::isEmptyNode ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode) const
private

Definition at line 423 of file pptexanimations.cxx.

References isAfterEffectNode(), and isEmptyNode().

Referenced by exportNode(), and isEmptyNode().

◆ processAfterEffectNodes()

void ppt::AnimationExporter::processAfterEffectNodes ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode)
private

Definition at line 340 of file pptexanimations.cxx.

References Exception, maAfterEffectNodes, p, and TOOLS_WARN_EXCEPTION.

Referenced by doexport().

◆ TranslatePresetSubType()

sal_uInt32 ppt::AnimationExporter::TranslatePresetSubType ( const sal_uInt32  nPresetClass,
const sal_uInt32  nPresetId,
std::u16string_view  rPresetSubType 
)
static

◆ writeZString()

void ppt::AnimationExporter::writeZString ( SvStream rStrm,
std::u16string_view  aVal 
)
staticprivate

Definition at line 1189 of file pptexanimations.cxx.

References i, rStrm, and SvStream::WriteUInt16().

Referenced by exportAnimPropertyString().

Member Data Documentation

◆ aTarget

css::uno::Any ppt::AnimationExporter::aTarget
private

Definition at line 72 of file pptexanimations.hxx.

Referenced by exportAnimateTarget(), exportIterate(), and exportNode().

◆ maAfterEffectNodes

std::vector< AfterEffectNodePtr > ppt::AnimationExporter::maAfterEffectNodes
private

◆ mnCurrentGroup

sal_Int32 ppt::AnimationExporter::mnCurrentGroup
private

Definition at line 76 of file pptexanimations.hxx.

Referenced by exportAnimEvent(), and exportNode().

◆ mrExSoundCollection

ppt::ExSoundCollection& ppt::AnimationExporter::mrExSoundCollection
private

Definition at line 74 of file pptexanimations.hxx.

Referenced by exportNode().

◆ mrSolverContainer

const EscherSolverContainer& ppt::AnimationExporter::mrSolverContainer
private

Definition at line 73 of file pptexanimations.hxx.

Referenced by exportAnimateTargetElement().


The documentation for this class was generated from the following files: