20 #ifndef INCLUDED_XMLOFF_SHAPEIMPORT_HXX
21 #define INCLUDED_XMLOFF_SHAPEIMPORT_HXX
25 #include <com/sun/star/drawing/HomogenMatrix.hpp>
26 #include <com/sun/star/drawing/ProjectionMode.hpp>
27 #include <com/sun/star/drawing/ShadeMode.hpp>
62 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList);
77 ::std::vector< rtl::Reference< SdXML3DLightContext > >
107 void setSceneAttributes(
const css::uno::Reference< css::beans::XPropertySet >& xPropSet );
114 css::uno::Reference< css::drawing::XShape >
mxShape;
122 const css::uno::Reference< css::drawing::XShape >&
getShape()
const {
return mxShape; }
134 std::unique_ptr<XMLShapeImportHelperImpl>
mpImpl;
154 const css::uno::Reference< css::frame::XModel>& rModel,
161 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
162 css::uno::Reference< css::drawing::XShapes >
const & rShapes,
163 bool bTemporaryShape =
false);
167 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
168 css::uno::Reference< css::drawing::XShapes >
const & rShapes,
169 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xFrameAttrList);
170 static css::uno::Reference< css::xml::sax::XFastContextHandler > CreateFrameChildContext(
172 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList );
176 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
177 css::uno::Reference< css::drawing::XShapes >
const & rShapes);
191 virtual void addShape(
192 css::uno::Reference< css::drawing::XShape >& rShape,
193 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
194 css::uno::Reference< css::drawing::XShapes >& rShapes);
199 virtual void finishShape(
200 css::uno::Reference< css::drawing::XShape >& rShape,
201 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
202 css::uno::Reference< css::drawing::XShapes >& rShapes);
209 void pushGroupForPostProcessing( css::uno::Reference< css::drawing::XShapes >& rShapes );
210 void popGroupAndPostProcess();
212 void shapeWithZIndexAdded( css::uno::Reference< css::drawing::XShape >
const & rShape,
216 void shapeRemoved(
const css::uno::Reference<css::drawing::XShape>& rShape);
218 void addShapeConnection( css::uno::Reference< css::drawing::XShape >
const & rConnectorShape,
220 const OUString& rDestShapeId,
221 sal_Int32 nDestGlueId );
225 void addGluePointMapping( css::uno::Reference< css::drawing::XShape >
const & xShape,
226 sal_Int32 nSourceId, sal_Int32 nDestinnationId );
229 void moveGluePointMapping(
const css::uno::Reference< css::drawing::XShape >& xShape,
const sal_Int32 n );
233 sal_Int32 getGluePointId(
const css::uno::Reference< css::drawing::XShape >& xShape, sal_Int32 nSourceId );
237 void startPage( css::uno::Reference< css::drawing::XShapes >
const & rShapes );
241 void endPage( css::uno::Reference< css::drawing::XShapes >
const & rShapes );
243 void restoreConnections();
247 const css::uno::Reference< css::frame::XModel>& rModel,
SvXMLImport& rImport );
250 void enableHandleProgressBar();
251 bool IsHandleProgressBarEnabled()
const;
254 bool IsPresentationShapesSupported()
const;
261 #endif // INCLUDED_XMLOFF_SHAPEIMPORT_HXX
rtl::Reference< SvXMLImportPropertyMapper > mpPresPagePropsMapper
sal_Int32 GetDiffuseColor() const
void setSceneAttributes(const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
this sets the scene attributes at this propertyset
XMLSdPropHdlFactory * GetSdPropHdlFactory() const
void processSceneAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &aIter)
this should be called for each scene attribute
rtl::Reference< SvXMLImportPropertyMapper > mpPropertySetMapper
void setHyperlink(const OUString &rHyperlink)
SvXMLImportPropertyMapper * GetPresPagePropsMapper() const
SdXML3DLightContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
rtl::Reference< XMLTableImport > mxShapeTableImport
SvXMLStylesContext * GetStylesContext() const
SvXMLShapeContext(SvXMLImport &rImp, bool bTemporaryShape)
const css::uno::Reference< css::drawing::XShape > & getShape() const
rtl::Reference< SvXMLStylesContext > mxAutoStylesContext
::basegfx::B3DVector maVUP
virtual ~SdXML3DLightContext() override
css::drawing::ShadeMode mxShadeMode
::basegfx::B3DVector maVPN
rtl::Reference< SvXMLStylesContext > mxStylesContext
class SAL_NO_VTABLE XPropertySet
SdXML3DSceneAttributesHelper(SvXMLImport &rImporter)
css::uno::Reference< css::drawing::XShape > mxShape
const ::basegfx::B3DVector & GetDirection() const
SvXMLStylesContext * GetAutoStylesContext() const
SvXMLImportContext * create3DLightContext(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
creates a 3d light context and adds it to the internal list for later processing
std::unique_ptr< XMLShapeImportHelperImpl > mpImpl
This class deliberately does not support XWeak, to improve performance when loading large documents...
std::shared_ptr< XMLShapeImportPageContextImpl > mpPageContext
::basegfx::B3DVector maDirection
rtl::Reference< XMLSdPropHdlFactory > mpSdPropHdlFactory
this struct is created for each startPage() call and stores information that is needed during import ...
css::drawing::ProjectionMode mxPrjMode
::basegfx::B3DVector maVRP
SvXMLImportPropertyMapper * GetPropertySetMapper() const
this class is to enable adding members to the XMLShapeImportHelper without getting incompatible ...
::std::vector< rtl::Reference< SdXML3DLightContext > > maList
css::drawing::HomogenMatrix mxHomMat