LibreOffice Module xmloff (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
XMLShapeExport Class Reference

#include <shapeexport.hxx>

Inheritance diagram for XMLShapeExport:
[legend]
Collaboration diagram for XMLShapeExport:
[legend]

Public Member Functions

 XMLShapeExport (SvXMLExport &rExp, SvXMLExportPropertyMapper *pExtMapper=nullptr)
 
virtual ~XMLShapeExport () override
 
void collectShapeAutoStyles (const css::uno::Reference< css::drawing::XShape > &xShape)
 
void exportShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr, SvXMLAttributeList *pAttrList=nullptr)
 
void collectShapesAutoStyles (const css::uno::Reference< css::drawing::XShapes > &xShapes)
 
void exportShapes (const css::uno::Reference< css::drawing::XShapes > &xShapes, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
void seekShapes (const css::uno::Reference< css::drawing::XShapes > &xShapes) throw ()
 initializes some internal structures for fast access to the given XShapes collection More...
 
void exportAutoStyles ()
 
void setAnimationsExporter (rtl::Reference< XMLAnimationsExporter > const &xAnimExport)
 sets a new reference to an XMLAnimationExporter. More...
 
const rtl::Reference< XMLAnimationsExporter > & getAnimationsExporter () const
 returns the last set XMLAnimationExport More...
 
void enableLayerExport ()
 
void enableHandleProgressBar ()
 defines if the export should increment the progress bar or not More...
 
bool IsHandleProgressBarEnabled () const
 
void setPresentationStylePrefix (const OUString &rPrefix)
 
void export3DSceneAttributes (const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 helper for chart that adds all attributes of a 3d scene element to the export More...
 
void export3DLamps (const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 helper for chart that exports all lamps from the propertyset More...
 
css::uno::Reference< css::drawing::XShape > checkForCustomShapeReplacement (const css::uno::Reference< css::drawing::XShape > &)
 sj: replacing CustomShapes with standard objects that are also supported in OpenOffice.org format More...
 
void ExportGraphicDefaults ()
 helper to export the style for graphic defaults More...
 
virtual void onExport (const css::uno::Reference< css::drawing::XShape > &xShape)
 is called before a shape element for the given XShape is exported More...
 
const rtl::Reference< XMLTableExport > & GetShapeTableExport ()
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Static Public Member Functions

static SvXMLExportPropertyMapperCreateShapePropMapper (SvXMLExport &rExport)
 returns the export property mapper for external chaining More...
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static voidoperator new (std::size_t nSize)
 
static voidoperator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 

Protected Member Functions

SvXMLExportGetExport ()
 
const SvXMLExportGetExport () const
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

SAL_DLLPRIVATE const rtl::Reference< SvXMLExportPropertyMapper > & GetPropertySetMapper () const
 
SAL_DLLPRIVATE void ImpCalcShapeType (const css::uno::Reference< css::drawing::XShape > &xShape, XmlShapeType &eShapeType)
 
SAL_DLLPRIVATE void ImpExportNewTrans (const css::uno::Reference< css::beans::XPropertySet > &xPropSet, XMLShapeExportFlags nFeatures, css::awt::Point *pRefPoint)
 
SAL_DLLPRIVATE void ImpExportNewTrans_GetB2DHomMatrix (::basegfx::B2DHomMatrix &rMatrix, const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 
SAL_DLLPRIVATE void ImpExportNewTrans_FeaturesAndWrite (::basegfx::B2DTuple const &rTRScale, double fTRShear, double fTRRotate,::basegfx::B2DTuple const &rTRTranslate, const XMLShapeExportFlags nFeatures)
 
SAL_DLLPRIVATE bool ImpExportPresentationAttributes (const css::uno::Reference< css::beans::XPropertySet > &xPropSet, const OUString &rClass)
 
SAL_DLLPRIVATE void ImpExportText (const css::uno::Reference< css::drawing::XShape > &xShape, TextPNS eExtensionNS=TextPNS::ODF)
 
SAL_DLLPRIVATE void ImpExportEvents (const css::uno::Reference< css::drawing::XShape > &xShape)
 
SAL_DLLPRIVATE void ImpExportDescription (const css::uno::Reference< css::drawing::XShape > &xShape)
 #i68101# export shape Title and Description More...
 
SAL_DLLPRIVATE void ImpExportGluePoints (const css::uno::Reference< css::drawing::XShape > &xShape)
 exports all user defined glue points More...
 
SAL_DLLPRIVATE void ImpExportSignatureLine (const css::uno::Reference< css::drawing::XShape > &xShape)
 
SAL_DLLPRIVATE void ImpExportQRCode (const css::uno::Reference< css::drawing::XShape > &xShape)
 
SAL_DLLPRIVATE void ImpExportGroupShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExport3DSceneShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportRectangleShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportLineShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportEllipseShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportPolygonShape (const css::uno::Reference< css::drawing::XShape > &xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportTextBoxShape (const css::uno::Reference< css::drawing::XShape > &xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportGraphicObjectShape (const css::uno::Reference< css::drawing::XShape > &xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportChartShape (const css::uno::Reference< css::drawing::XShape > &xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr, SvXMLAttributeList *pAttrList=nullptr)
 
SAL_DLLPRIVATE void ImpExportControlShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportConnectorShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportMeasureShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point const *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportOLE2Shape (const css::uno::Reference< css::drawing::XShape > &xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr, SvXMLAttributeList *pAttrList=nullptr)
 
SAL_DLLPRIVATE void ImpExportPageShape (const css::uno::Reference< css::drawing::XShape > &xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportCaptionShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExport3DShape (const css::uno::Reference< css::drawing::XShape > &xShape, XmlShapeType eShapeType)
 
SAL_DLLPRIVATE void ImpExportFrameShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportPluginShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportAppletShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportCustomShape (const css::uno::Reference< css::drawing::XShape > &xShape, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportMediaShape (const css::uno::Reference< css::drawing::XShape > &xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 
SAL_DLLPRIVATE void ImpExportTableShape (const css::uno::Reference< css::drawing::XShape > &xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures=SEF_DEFAULT, css::awt::Point *pRefPoint=nullptr)
 

Static Private Member Functions

static SAL_DLLPRIVATE void ImpExportNewTrans_DecomposeAndRefPoint (const ::basegfx::B2DHomMatrix &rMat,::basegfx::B2DTuple &rTRScale, double &fTRShear, double &fTRRotate,::basegfx::B2DTuple &rTRTranslate, css::awt::Point *pRefPoint)
 

Private Attributes

SvXMLExportmrExport
 
rtl::Reference< SvXMLExportPropertyMappermxPropertySetMapper
 
rtl::Reference< XMLAnimationsExportermxAnimationsExporter
 
ShapesInfos maShapesInfos
 
ShapesInfos::iterator maCurrentShapesIter
 
bool mbExportLayer
 
OUString msPresentationStylePrefix
 
bool mbHandleProgressBar
 
rtl::Reference< XMLTableExportmxShapeTableExport
 
OUStringBuffer msBuffer
 

Additional Inherited Members

- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 156 of file shapeexport.hxx.

Constructor & Destructor Documentation

XMLShapeExport::XMLShapeExport ( SvXMLExport rExp,
SvXMLExportPropertyMapper pExtMapper = nullptr 
)
XMLShapeExport::~XMLShapeExport ( )
overridevirtual

Definition at line 207 of file shapeexport.cxx.

Member Function Documentation

uno::Reference< drawing::XShape > XMLShapeExport::checkForCustomShapeReplacement ( const css::uno::Reference< css::drawing::XShape > &  )

sj: replacing CustomShapes with standard objects that are also supported in OpenOffice.org format

Definition at line 212 of file shapeexport.cxx.

References GetExport(), comphelper::getProcessComponentContext(), and OASIS.

Referenced by collectShapeAutoStyles().

void XMLShapeExport::collectShapeAutoStyles ( const css::uno::Reference< css::drawing::XShape > &  xShape)
void XMLShapeExport::collectShapesAutoStyles ( const css::uno::Reference< css::drawing::XShapes > &  xShapes)
SvXMLExportPropertyMapper * XMLShapeExport::CreateShapePropMapper ( SvXMLExport rExport)
static
void XMLShapeExport::enableHandleProgressBar ( )
inline

defines if the export should increment the progress bar or not

Definition at line 276 of file shapeexport.hxx.

void XMLShapeExport::enableLayerExport ( )
inline

Definition at line 273 of file shapeexport.hxx.

void XMLShapeExport::export3DLamps ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet)
void XMLShapeExport::export3DSceneAttributes ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet)
void XMLShapeExport::exportAutoStyles ( )
void XMLShapeExport::ExportGraphicDefaults ( )
void XMLShapeExport::exportShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr,
SvXMLAttributeList pAttrList = nullptr 
)

Definition at line 567 of file shapeexport.cxx.

References SvXMLExport::AddAttribute(), SvXMLExport::AddAttributeIdLegacy(), aName, bVisible, SvXMLExport::CheckAttrList(), SvXMLExport::ClearAttrList(), DBG_UNHANDLED_EXCEPTION, SvtModuleOptions::DRAW, SvXMLExport::EncodeStyleName(), GetExport(), comphelper::UnoInterfaceToUniqueIdentifierMapper::getIdentifier(), SvXMLExport::getInterfaceToIdentifierMapper(), SvXMLExport::GetModelType(), SvXMLExport::GetProgressBarHelper(), SvXMLExport::getSaneDefaultVersion(), SvXMLExport::GetShapeExport(), gsBookmark(), gsPrintable(), gsVisible(), gsZIndex(), ImpCalcShapeType(), ImpExport3DSceneShape(), ImpExport3DShape(), ImpExportAppletShape(), ImpExportCaptionShape(), ImpExportChartShape(), ImpExportConnectorShape(), ImpExportControlShape(), ImpExportCustomShape(), ImpExportEllipseShape(), ImpExportFrameShape(), ImpExportGraphicObjectShape(), ImpExportGroupShape(), ImpExportLineShape(), ImpExportMeasureShape(), ImpExportMediaShape(), ImpExportOLE2Shape(), ImpExportPageShape(), ImpExportPluginShape(), ImpExportPolygonShape(), ImpExportRectangleShape(), ImpExportTableShape(), ImpExportTextBoxShape(), ProgressBarHelper::Increment(), maCurrentShapesIter, maShapesInfos, mbExportLayer, ImplXMLShapeExportInfo::meShapeType, ImplXMLShapeExportInfo::mnFamily, mrExport, ImplXMLShapeExportInfo::msStyleName, ImplXMLShapeExportInfo::msTextStyleName, mxAnimationsExporter, OASIS, SvtSaveOptions::ODFSVER_EXTENDED, onExport(), SAL_INFO, SAL_WARN, SAL_WARN_IF, SD_GRAPHICS_ID, TOOLS_WARN_EXCEPTION, SvtModuleOptions::WRITER, SvtModuleOptions::WRITERGLOBAL, SvtModuleOptions::WRITERWEB, ImplXMLShapeExportInfo::xCustomShapeReplacement, xmloff::token::XML_A, xmloff::token::XML_DISPLAY, xmloff::token::XML_EMBED, xmloff::token::XML_HREF, xmloff::token::XML_LAYER, xmloff::token::XML_NAME, XML_NAMESPACE_DRAW, XML_NAMESPACE_DRAW_EXT, XML_NAMESPACE_PRESENTATION, XML_NAMESPACE_XLINK, xmloff::token::XML_NONE, xmloff::token::XML_PRINTER, xmloff::token::XML_SCREEN, xmloff::token::XML_SHOW, xmloff::token::XML_SIMPLE, xmloff::token::XML_STYLE_NAME, xmloff::token::XML_TEXT_STYLE_NAME, xmloff::token::XML_TOKEN_INVALID, xmloff::token::XML_TYPE, XmlShapeTypeDraw3DCubeObject, XmlShapeTypeDraw3DExtrudeObject, XmlShapeTypeDraw3DLatheObject, XmlShapeTypeDraw3DSceneObject, XmlShapeTypeDraw3DSphereObject, XmlShapeTypeDrawAppletShape, XmlShapeTypeDrawCaptionShape, XmlShapeTypeDrawChartShape, XmlShapeTypeDrawClosedBezierShape, XmlShapeTypeDrawConnectorShape, XmlShapeTypeDrawControlShape, XmlShapeTypeDrawCustomShape, XmlShapeTypeDrawEllipseShape, XmlShapeTypeDrawFrameShape, XmlShapeTypeDrawGraphicObjectShape, XmlShapeTypeDrawGroupShape, XmlShapeTypeDrawLineShape, XmlShapeTypeDrawMeasureShape, XmlShapeTypeDrawMediaShape, XmlShapeTypeDrawOLE2Shape, XmlShapeTypeDrawOpenBezierShape, XmlShapeTypeDrawPageShape, XmlShapeTypeDrawPluginShape, XmlShapeTypeDrawPolyLineShape, XmlShapeTypeDrawPolyPolygonShape, XmlShapeTypeDrawRectangleShape, XmlShapeTypeDrawSheetShape, XmlShapeTypeDrawTableShape, XmlShapeTypeDrawTextShape, XmlShapeTypeHandoutShape, XmlShapeTypeNotYetSet, XmlShapeTypePresChartShape, XmlShapeTypePresDateTimeShape, XmlShapeTypePresFooterShape, XmlShapeTypePresGraphicObjectShape, XmlShapeTypePresHeaderShape, XmlShapeTypePresMediaShape, XmlShapeTypePresNotesShape, XmlShapeTypePresOLE2Shape, XmlShapeTypePresOrgChartShape, XmlShapeTypePresOutlinerShape, XmlShapeTypePresPageShape, XmlShapeTypePresSheetShape, XmlShapeTypePresSlideNumberShape, XmlShapeTypePresSubtitleShape, XmlShapeTypePresTableShape, XmlShapeTypePresTitleTextShape, and XmlShapeTypeUnknown.

Referenced by exportShapes().

void XMLShapeExport::exportShapes ( const css::uno::Reference< css::drawing::XShapes > &  xShapes,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
const rtl::Reference< XMLAnimationsExporter >& XMLShapeExport::getAnimationsExporter ( ) const
inline

returns the last set XMLAnimationExport

Definition at line 268 of file shapeexport.hxx.

SvXMLExport& XMLShapeExport::GetExport ( )
inlineprotected
const SvXMLExport& XMLShapeExport::GetExport ( ) const
inlineprotected

Definition at line 175 of file shapeexport.hxx.

SAL_DLLPRIVATE const rtl::Reference< SvXMLExportPropertyMapper >& XMLShapeExport::GetPropertySetMapper ( ) const
inlineprivate

Definition at line 178 of file shapeexport.hxx.

Referenced by collectShapeAutoStyles(), and XMLShapeExport().

const rtl::Reference< XMLTableExport > & XMLShapeExport::GetShapeTableExport ( )
void XMLShapeExport::ImpCalcShapeType ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XmlShapeType eShapeType 
)
private

Definition at line 1040 of file shapeexport.cxx.

References SvXMLExport::GetChartExport(), SvGlobalName::GetHexName(), mrExport, SAL_WARN, SO3_RPTCH_CLASSID, SO3_SC_CLASSID, XmlShapeTypeDraw3DCubeObject, XmlShapeTypeDraw3DExtrudeObject, XmlShapeTypeDraw3DLatheObject, XmlShapeTypeDraw3DSceneObject, XmlShapeTypeDraw3DSphereObject, XmlShapeTypeDrawAppletShape, XmlShapeTypeDrawCaptionShape, XmlShapeTypeDrawChartShape, XmlShapeTypeDrawClosedBezierShape, XmlShapeTypeDrawConnectorShape, XmlShapeTypeDrawControlShape, XmlShapeTypeDrawCustomShape, XmlShapeTypeDrawEllipseShape, XmlShapeTypeDrawFrameShape, XmlShapeTypeDrawGraphicObjectShape, XmlShapeTypeDrawGroupShape, XmlShapeTypeDrawLineShape, XmlShapeTypeDrawMeasureShape, XmlShapeTypeDrawMediaShape, XmlShapeTypeDrawOLE2Shape, XmlShapeTypeDrawOpenBezierShape, XmlShapeTypeDrawPageShape, XmlShapeTypeDrawPluginShape, XmlShapeTypeDrawPolyLineShape, XmlShapeTypeDrawPolyPolygonShape, XmlShapeTypeDrawRectangleShape, XmlShapeTypeDrawSheetShape, XmlShapeTypeDrawTableShape, XmlShapeTypeDrawTextShape, XmlShapeTypeHandoutShape, XmlShapeTypePresChartShape, XmlShapeTypePresDateTimeShape, XmlShapeTypePresFooterShape, XmlShapeTypePresGraphicObjectShape, XmlShapeTypePresHeaderShape, XmlShapeTypePresMediaShape, XmlShapeTypePresNotesShape, XmlShapeTypePresOLE2Shape, XmlShapeTypePresOrgChartShape, XmlShapeTypePresOutlinerShape, XmlShapeTypePresPageShape, XmlShapeTypePresSheetShape, XmlShapeTypePresSlideNumberShape, XmlShapeTypePresSubtitleShape, XmlShapeTypePresTableShape, XmlShapeTypePresTitleTextShape, and XmlShapeTypeUnknown.

Referenced by collectShapeAutoStyles(), and exportShape().

void XMLShapeExport::ImpExport3DSceneShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExport3DShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XmlShapeType  eShapeType 
)
private
void XMLShapeExport::ImpExportAppletShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportCaptionShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportChartShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XmlShapeType  eShapeType,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr,
SvXMLAttributeList pAttrList = nullptr 
)
private

Definition at line 2473 of file shapeexport.cxx.

References ImpExportOLE2Shape().

Referenced by exportShape().

void XMLShapeExport::ImpExportConnectorShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportControlShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportCustomShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportDescription ( const css::uno::Reference< css::drawing::XShape > &  xShape)
private
void XMLShapeExport::ImpExportEllipseShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportEvents ( const css::uno::Reference< css::drawing::XShape > &  xShape)
private

Definition at line 1591 of file shapeexport.cxx.

References SvXMLExport::AddAttribute(), aXML_AnimationDirection_EnumMap, aXML_AnimationEffect_EnumMap, aXML_AnimationSpeed_EnumMap, SvXMLUnitConverter::convertEnum(), sax::Converter::convertPercent(), ED_none, EK_none, GetExport(), SvXMLExport::GetNamespaceMap(), SvXMLNamespaceMap::GetQNameByKey(), xmloff::token::GetXMLToken(), gsBookmark(), gsClickAction(), gsEffect(), gsEventType(), gsLibrary(), gsMacroName(), gsOnClick(), gsPlayFull(), gsPresentation(), gsScript(), gsSoundURL(), gsSpeed(), gsStarBasic(), gsVerb(), mrExport, msBuffer, SAL_WARN_IF, SdXMLImplSetEffect(), xmloff::token::XML_ACTION, xmloff::token::XML_ACTUATE, xmloff::token::XML_APPLICATION, xmloff::token::XML_DIRECTION, xmloff::token::XML_DOCUMENT, xmloff::token::XML_EFFECT, xmloff::token::XML_EMBED, xmloff::token::XML_EVENT_LISTENER, xmloff::token::XML_EVENT_LISTENERS, xmloff::token::XML_EVENT_NAME, xmloff::token::XML_EXECUTE, xmloff::token::XML_EXECUTE_MACRO, xmloff::token::XML_FADE_OUT, xmloff::token::XML_FIRST_PAGE, xmloff::token::XML_HIDE, xmloff::token::XML_HREF, xmloff::token::XML_LANGUAGE, xmloff::token::XML_LAST_PAGE, xmloff::token::XML_MACRO_NAME, XML_NAMESPACE_DOM, XML_NAMESPACE_OFFICE, XML_NAMESPACE_OOO, XML_NAMESPACE_PRESENTATION, XML_NAMESPACE_SCRIPT, XML_NAMESPACE_XLINK, xmloff::token::XML_NEW, xmloff::token::XML_NEXT_PAGE, xmloff::token::XML_ONREQUEST, xmloff::token::XML_PLAY_FULL, xmloff::token::XML_PREVIOUS_PAGE, xmloff::token::XML_SCRIPT, xmloff::token::XML_SHOW, xmloff::token::XML_SIMPLE, xmloff::token::XML_SOUND, xmloff::token::XML_SPEED, xmloff::token::XML_START_SCALE, xmloff::token::XML_STOP, xmloff::token::XML_TRUE, xmloff::token::XML_TYPE, xmloff::token::XML_UNKNOWN, and xmloff::token::XML_VERB.

Referenced by ImpExport3DSceneShape(), ImpExportCaptionShape(), ImpExportConnectorShape(), ImpExportCustomShape(), ImpExportEllipseShape(), ImpExportGraphicObjectShape(), ImpExportGroupShape(), ImpExportLineShape(), ImpExportMeasureShape(), ImpExportOLE2Shape(), ImpExportPolygonShape(), ImpExportRectangleShape(), ImpExportTableShape(), and ImpExportTextBoxShape().

void XMLShapeExport::ImpExportFrameShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportGluePoints ( const css::uno::Reference< css::drawing::XShape > &  xShape)
private
void XMLShapeExport::ImpExportGraphicObjectShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XmlShapeType  eShapeType,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportGroupShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportLineShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportMeasureShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point const *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportMediaShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XmlShapeType  eShapeType,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportNewTrans ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet,
XMLShapeExportFlags  nFeatures,
css::awt::Point *  pRefPoint 
)
private
void XMLShapeExport::ImpExportNewTrans_DecomposeAndRefPoint ( const ::basegfx::B2DHomMatrix rMat,
::basegfx::B2DTuple rTRScale,
double &  fTRShear,
double &  fTRRotate,
::basegfx::B2DTuple rTRTranslate,
css::awt::Point *  pRefPoint 
)
staticprivate
void XMLShapeExport::ImpExportNewTrans_FeaturesAndWrite ( ::basegfx::B2DTuple const &  rTRScale,
double  fTRShear,
double  fTRRotate,
::basegfx::B2DTuple const &  rTRTranslate,
const XMLShapeExportFlags  nFeatures 
)
private
void XMLShapeExport::ImpExportNewTrans_GetB2DHomMatrix ( ::basegfx::B2DHomMatrix rMatrix,
const css::uno::Reference< css::beans::XPropertySet > &  xPropSet 
)
private
void XMLShapeExport::ImpExportOLE2Shape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XmlShapeType  eShapeType,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr,
SvXMLAttributeList pAttrList = nullptr 
)
private
void XMLShapeExport::ImpExportPageShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XmlShapeType  eShapeType,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportPluginShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportPolygonShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XmlShapeType  eShapeType,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
bool XMLShapeExport::ImpExportPresentationAttributes ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet,
const OUString &  rClass 
)
private
void XMLShapeExport::ImpExportQRCode ( const css::uno::Reference< css::drawing::XShape > &  xShape)
private
void XMLShapeExport::ImpExportRectangleShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportSignatureLine ( const css::uno::Reference< css::drawing::XShape > &  xShape)
private
void XMLShapeExport::ImpExportTableShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XmlShapeType  eShapeType,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
void XMLShapeExport::ImpExportText ( const css::uno::Reference< css::drawing::XShape > &  xShape,
TextPNS  eExtensionNS = TextPNS::ODF 
)
private
void XMLShapeExport::ImpExportTextBoxShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
XmlShapeType  eShapeType,
XMLShapeExportFlags  nFeatures = SEF_DEFAULT,
css::awt::Point *  pRefPoint = nullptr 
)
private
bool XMLShapeExport::IsHandleProgressBarEnabled ( ) const
inline

Definition at line 277 of file shapeexport.hxx.

void XMLShapeExport::onExport ( const css::uno::Reference< css::drawing::XShape > &  xShape)
virtual

is called before a shape element for the given XShape is exported

Definition at line 1339 of file shapeexport.cxx.

Referenced by exportShape().

void XMLShapeExport::seekShapes ( const css::uno::Reference< css::drawing::XShapes > &  xShapes)
throw (
)

initializes some internal structures for fast access to the given XShapes collection

This method has to be called before you use exportShape or collectShapeAutoStyles. It is automatically called if you use collectShapesAutoStyles and exportShapes.

See also
collectShapeAutoStyles
exportShape
collectShapesAutoStyles
exportShapes

Definition at line 984 of file shapeexport.cxx.

References SAL_WARN_IF.

Referenced by collectShapesAutoStyles(), and exportShapes().

void XMLShapeExport::setAnimationsExporter ( rtl::Reference< XMLAnimationsExporter > const &  xAnimExport)
inline

sets a new reference to an XMLAnimationExporter.

If this is a non NULL reference, the animation information from all shapes given to exportShape() from now on are collected.

Definition at line 265 of file shapeexport.hxx.

void XMLShapeExport::setPresentationStylePrefix ( const OUString &  rPrefix)
inline

Definition at line 279 of file shapeexport.hxx.

Member Data Documentation

ShapesInfos::iterator XMLShapeExport::maCurrentShapesIter
private
ShapesInfos XMLShapeExport::maShapesInfos
private

Definition at line 163 of file shapeexport.hxx.

Referenced by collectShapeAutoStyles(), and exportShape().

bool XMLShapeExport::mbExportLayer
private

Definition at line 165 of file shapeexport.hxx.

Referenced by exportShape().

bool XMLShapeExport::mbHandleProgressBar
private

Definition at line 169 of file shapeexport.hxx.

SvXMLExport& XMLShapeExport::mrExport
private
OUStringBuffer XMLShapeExport::msBuffer
private

Definition at line 180 of file shapeexport.hxx.

Referenced by ImpExportCaptionShape(), ImpExportEvents(), and ImpExportGluePoints().

OUString XMLShapeExport::msPresentationStylePrefix
private

Definition at line 166 of file shapeexport.hxx.

Referenced by collectShapeAutoStyles().

rtl::Reference< XMLAnimationsExporter > XMLShapeExport::mxAnimationsExporter
private

Definition at line 162 of file shapeexport.hxx.

Referenced by collectShapeAutoStyles(), and exportShape().

rtl::Reference< SvXMLExportPropertyMapper > XMLShapeExport::mxPropertySetMapper
private

Definition at line 161 of file shapeexport.hxx.

Referenced by XMLShapeExport().

rtl::Reference< XMLTableExport > XMLShapeExport::mxShapeTableExport
private

Definition at line 171 of file shapeexport.hxx.

Referenced by exportAutoStyles(), and GetShapeTableExport().


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