LibreOffice Module xmloff (master) 1
|
Public Member Functions | |
AnimationsExporterImpl (SvXMLExport &rExport, const Reference< XPropertySet > &xPageProps) | |
void | prepareNode (const Reference< XAnimationNode > &xNode) |
void | exportNode (const Reference< XAnimationNode > &xNode) |
void | exportContainer (const Reference< XTimeContainer > &xNode, sal_Int16 nContainerNodeType) |
void | exportAnimate (const Reference< XAnimate > &xNode) |
void | exportAudio (const Reference< XAudio > &xAudio) |
void | exportCommand (const Reference< XCommand > &xCommand) |
void | convertValue (XMLTokenEnum eAttributeName, OUStringBuffer &sTmp, const Any &rValue) const |
void | convertTiming (OUStringBuffer &sTmp, const Any &rTiming) const |
void | convertTarget (OUStringBuffer &sTmp, const Any &rTarget) const |
void | prepareValue (const Any &rValue) |
void | exportTransitionNode () |
void | prepareTransitionNode () |
Static Public Member Functions | |
static Reference< XInterface > | getParagraphTarget (const ParagraphTarget &pTarget) |
static void | convertPath (OUStringBuffer &sTmp, const Any &rPath) |
Public Attributes | |
bool | mbHasTransition |
Private Attributes | |
rtl::Reference< SvXMLExport > | mxExport |
Reference< XPropertySet > | mxPageProps |
rtl::Reference< XMLSdPropHdlFactory > | mxSdPropHdlFactory |
Definition at line 428 of file animationexport.cxx.
xmloff::AnimationsExporterImpl::AnimationsExporterImpl | ( | SvXMLExport & | rExport, |
const Reference< XPropertySet > & | xPageProps | ||
) |
Definition at line 460 of file animationexport.cxx.
|
static |
Definition at line 1453 of file animationexport.cxx.
References aStr.
Referenced by exportAnimate().
void xmloff::AnimationsExporterImpl::convertTarget | ( | OUStringBuffer & | sTmp, |
const Any & | rTarget | ||
) | const |
Definition at line 1618 of file animationexport.cxx.
References getParagraphTarget(), mxExport, pt, rTarget, and SAL_WARN_IF.
Referenced by convertTiming(), exportAnimate(), exportCommand(), and exportContainer().
void xmloff::AnimationsExporterImpl::convertTiming | ( | OUStringBuffer & | sTmp, |
const Any & | rTiming | ||
) | const |
Definition at line 1552 of file animationexport.cxx.
References xmloff::aAnimations_EnumMap_EventTrigger, Any, SvXMLUnitConverter::convertEnum(), convertTarget(), convertTiming(), xmloff::token::GetXMLToken(), nLength, o3tl::tryAccess(), o3tl::tryAccess< double >(), x, xmloff::token::XML_INDEFINITE, and xmloff::token::XML_MEDIA.
Referenced by convertTiming(), exportNode(), and exportTransitionNode().
void xmloff::AnimationsExporterImpl::convertValue | ( | XMLTokenEnum | eAttributeName, |
OUStringBuffer & | sTmp, | ||
const Any & | rValue | ||
) | const |
Definition at line 1461 of file animationexport.cxx.
References Any, convertValue(), XMLPropertyHandler::exportXML(), mxExport, mxSdPropHdlFactory, nLength, nType, o3tl::tryAccess(), o3tl::tryAccess< double >(), x, xmloff::token::XML_ANIMATEMOTION, xmloff::token::XML_ANIMATEPHYSICS, xmloff::token::XML_ANIMATETRANSFORM, xmloff::token::XML_COLOR, xmloff::token::XML_DIM, xmloff::token::XML_FILL, xmloff::token::XML_FILL_COLOR, xmloff::token::XML_FONT_SIZE, xmloff::token::XML_FONT_STYLE, xmloff::token::XML_FONT_WEIGHT, xmloff::token::XML_HEIGHT, xmloff::token::XML_OPACITY, xmloff::token::XML_ROTATE, XML_SD_TYPE_FILLSTYLE, XML_SD_TYPE_PRESPAGE_VISIBILITY, XML_SD_TYPE_STROKE, xmloff::token::XML_SKEWX, xmloff::token::XML_STROKE, xmloff::token::XML_STROKE_COLOR, xmloff::token::XML_TEXT_ROTATION_ANGLE, xmloff::token::XML_TEXT_UNDERLINE, xmloff::token::XML_TRANSITIONFILTER, XML_TYPE_COLOR, XML_TYPE_DOUBLE, XML_TYPE_DOUBLE_PERCENT, XML_TYPE_NUMBER16, XML_TYPE_STRING, XML_TYPE_TEXT_POSTURE, XML_TYPE_TEXT_UNDERLINE_STYLE, XML_TYPE_TEXT_WEIGHT, xmloff::token::XML_VISIBILITY, xmloff::token::XML_WIDTH, xmloff::token::XML_X, and xmloff::token::XML_Y.
Referenced by convertValue(), and exportAnimate().
void xmloff::AnimationsExporterImpl::exportAnimate | ( | const Reference< XAnimate > & | xNode | ) |
Definition at line 1059 of file animationexport.cxx.
References xmloff::aAnimations_EnumMap_AdditiveMode, xmloff::aAnimations_EnumMap_CalcMode, xmloff::aAnimations_EnumMap_SubItem, xmloff::aAnimations_EnumMap_TransformType, xmloff::aAnimations_EnumMap_TransitionSubType, xmloff::aAnimations_EnumMap_TransitionType, Any, sax::Converter::convertColor(), sax::Converter::convertDouble(), SvXMLUnitConverter::convertEnum(), convertPath(), convertTarget(), convertValue(), Exception, xmloff::getAnimationAttributeNamesConversionList(), xmloff::token::GetXMLToken(), mxExport, p, TOOLS_WARN_EXCEPTION, xmloff::token::XML_ACCUMULATE, xmloff::token::XML_ADDITIVE, xmloff::token::XML_ANIMATE, xmloff::token::XML_ANIMATECOLOR, xmloff::token::XML_ANIMATEMOTION, xmloff::token::XML_ANIMATEPHYSICS, xmloff::token::XML_ANIMATETRANSFORM, xmloff::token::XML_ATTRIBUTENAME, xmloff::token::XML_BY, xmloff::token::XML_CALCMODE, xmloff::token::XML_CLOCKWISE, xmloff::token::XML_COLOR_INTERPOLATION, xmloff::token::XML_COLOR_INTERPOLATION_DIRECTION, xmloff::token::XML_COUNTER_CLOCKWISE, xmloff::token::XML_DIRECTION, xmloff::token::XML_FADECOLOR, xmloff::token::XML_FORMULA, xmloff::token::XML_FROM, xmloff::token::XML_HSL, xmloff::token::XML_KEYSPLINES, xmloff::token::XML_KEYTIMES, xmloff::token::XML_MODE, XML_NAMESPACE_ANIMATION, XML_NAMESPACE_LO_EXT, XML_NAMESPACE_SMIL, XML_NAMESPACE_SVG, xmloff::token::XML_OUT, xmloff::token::XML_PATH, xmloff::token::XML_PHYSICS_ANIMATION_BOUNCINESS, xmloff::token::XML_PHYSICS_ANIMATION_DENSITY, xmloff::token::XML_PHYSICS_ANIMATION_START_VELOCITY_X, xmloff::token::XML_PHYSICS_ANIMATION_START_VELOCITY_Y, xmloff::token::XML_REVERSE, xmloff::token::XML_RGB, xmloff::token::XML_SET, xmloff::token::XML_SUB_ITEM, xmloff::token::XML_SUBTYPE, xmloff::token::XML_SUM, xmloff::token::XML_TARGETELEMENT, xmloff::token::XML_TO, xmloff::token::XML_TOKEN_INVALID, xmloff::token::XML_TRANSFORM, xmloff::token::XML_TRANSITIONFILTER, xmloff::token::XML_TYPE, and xmloff::token::XML_VALUES.
Referenced by exportNode().
void xmloff::AnimationsExporterImpl::exportAudio | ( | const Reference< XAudio > & | xAudio | ) |
Definition at line 1363 of file animationexport.cxx.
References sax::Converter::convertDouble(), Exception, mxExport, TOOLS_WARN_EXCEPTION, xmloff::token::XML_AUDIO, xmloff::token::XML_AUDIO_LEVEL, xmloff::token::XML_HREF, XML_NAMESPACE_ANIMATION, and XML_NAMESPACE_XLINK.
Referenced by exportNode().
void xmloff::AnimationsExporterImpl::exportCommand | ( | const Reference< XCommand > & | xCommand | ) |
Definition at line 1398 of file animationexport.cxx.
References xmloff::aAnimations_EnumMap_Command, Any, SvXMLUnitConverter::convertEnum(), convertTarget(), Exception, mxExport, TOOLS_WARN_EXCEPTION, xmloff::token::XML_COMMAND, XML_NAMESPACE_ANIMATION, XML_NAMESPACE_SMIL, and xmloff::token::XML_TARGETELEMENT.
Referenced by exportNode().
void xmloff::AnimationsExporterImpl::exportContainer | ( | const Reference< XTimeContainer > & | xNode, |
sal_Int16 | nContainerNodeType | ||
) |
Definition at line 988 of file animationexport.cxx.
References xmloff::aAnimations_EnumMap_IterateType, xmloff::aAnimations_EnumMap_SubItem, Any, sax::Converter::convertDuration(), SvXMLUnitConverter::convertEnum(), convertTarget(), exportNode(), exportTransitionNode(), mxExport, TOOLS_WARN_EXCEPTION, xmloff::token::XML_ITERATE, xmloff::token::XML_ITERATE_INTERVAL, xmloff::token::XML_ITERATE_TYPE, XML_NAMESPACE_ANIMATION, XML_NAMESPACE_SMIL, xmloff::token::XML_PAR, xmloff::token::XML_SEQ, xmloff::token::XML_SUB_ITEM, and xmloff::token::XML_TARGETELEMENT.
Referenced by exportNode().
void xmloff::AnimationsExporterImpl::exportNode | ( | const Reference< XAnimationNode > & | xNode | ) |
Definition at line 746 of file animationexport.cxx.
References xmloff::aAnimations_EnumMap_EffectNodeType, xmloff::aAnimations_EnumMap_EffectPresetClass, xmloff::aAnimations_EnumMap_Endsync, xmloff::aAnimations_EnumMap_Fill, xmloff::aAnimations_EnumMap_FillDefault, xmloff::aAnimations_EnumMap_Restart, xmloff::aAnimations_EnumMap_RestartDefault, Any, sax::Converter::convertBool(), sax::Converter::convertDouble(), SvXMLUnitConverter::convertEnum(), convertTiming(), exportAnimate(), exportAudio(), exportCommand(), exportContainer(), xmloff::token::IsXMLToken(), mxExport, TOOLS_WARN_EXCEPTION, xmloff::token::XML_ACCELERATE, xmloff::token::XML_AUTOREVERSE, xmloff::token::XML_BEGIN, xmloff::token::XML_DECELERATE, xmloff::token::XML_DUR, xmloff::token::XML_END, xmloff::token::XML_ENDSYNC, xmloff::token::XML_FILL, xmloff::token::XML_FILLDEFAULT, xmloff::token::XML_GROUP_ID, xmloff::token::XML_INDEFINITE, xmloff::token::XML_MASTER_ELEMENT, xmloff::token::XML_MEDIA, XML_NAMESPACE_ANIMATION, XML_NAMESPACE_PRESENTATION, XML_NAMESPACE_SMIL, xmloff::token::XML_NODE_TYPE, xmloff::token::XML_PRESET_CLASS, xmloff::token::XML_PRESET_ID, xmloff::token::XML_PRESET_SUB_TYPE, xmloff::token::XML_REPEATCOUNT, xmloff::token::XML_REPEATDUR, xmloff::token::XML_RESTART, and xmloff::token::XML_RESTARTDEFAULT.
Referenced by exportContainer().
void xmloff::AnimationsExporterImpl::exportTransitionNode | ( | ) |
Definition at line 549 of file animationexport.cxx.
References xmloff::aAnimations_EnumMap_TransitionSubType, xmloff::aAnimations_EnumMap_TransitionType, aEvent, Any, sax::Converter::convertColor(), sax::Converter::convertDouble(), SvXMLUnitConverter::convertEnum(), convertTiming(), xmloff::lcl_StoreMediaAndGetURL(), mbHasTransition, mxExport, mxPageProps, xmloff::token::XML_AUDIO, xmloff::token::XML_BEGIN, xmloff::token::XML_COMMAND, xmloff::token::XML_DIRECTION, xmloff::token::XML_DUR, xmloff::token::XML_FADECOLOR, xmloff::token::XML_HREF, xmloff::token::XML_INDEFINITE, XML_NAMESPACE_ANIMATION, XML_NAMESPACE_SMIL, XML_NAMESPACE_XLINK, xmloff::token::XML_PAR, xmloff::token::XML_REPEATCOUNT, xmloff::token::XML_REVERSE, xmloff::token::XML_STOP_AUDIO, xmloff::token::XML_SUBTYPE, xmloff::token::XML_TRANSITIONFILTER, and xmloff::token::XML_TYPE.
Referenced by exportContainer().
|
static |
Definition at line 1428 of file animationexport.cxx.
References TOOLS_WARN_EXCEPTION.
Referenced by convertTarget(), and prepareValue().
void xmloff::AnimationsExporterImpl::prepareNode | ( | const Reference< XAnimationNode > & | xNode | ) |
Definition at line 671 of file animationexport.cxx.
References Exception, xmloff::token::IsXMLToken(), mxExport, prepareNode(), prepareValue(), TOOLS_WARN_EXCEPTION, and xmloff::token::XML_MASTER_ELEMENT.
Referenced by prepareNode().
void xmloff::AnimationsExporterImpl::prepareTransitionNode | ( | ) |
Definition at line 636 of file animationexport.cxx.
References Any, Exception, mbHasTransition, mxExport, mxPageProps, and TOOLS_WARN_EXCEPTION.
void xmloff::AnimationsExporterImpl::prepareValue | ( | const Any & | rValue | ) |
Definition at line 1642 of file animationexport.cxx.
References Any, getParagraphTarget(), mxExport, nLength, prepareValue(), pt, and o3tl::tryAccess().
Referenced by prepareNode(), and prepareValue().
bool xmloff::AnimationsExporterImpl::mbHasTransition |
Definition at line 453 of file animationexport.cxx.
Referenced by exportTransitionNode(), and prepareTransitionNode().
|
private |
Definition at line 455 of file animationexport.cxx.
Referenced by convertTarget(), convertValue(), exportAnimate(), exportAudio(), exportCommand(), exportContainer(), exportNode(), exportTransitionNode(), prepareNode(), prepareTransitionNode(), and prepareValue().
|
private |
Definition at line 456 of file animationexport.cxx.
Referenced by exportTransitionNode(), and prepareTransitionNode().
|
private |
Definition at line 457 of file animationexport.cxx.
Referenced by convertValue().