LibreOffice Module xmloff (master) 1
|
#include <shapeimport.hxx>
Public Member Functions | |
XMLShapeImportHelper (SvXMLImport &rImporter, const css::uno::Reference< css::frame::XModel > &rModel, SvXMLImportPropertyMapper *pExtMapper=nullptr) | |
virtual | ~XMLShapeImportHelper () override |
SvXMLStylesContext * | GetStylesContext () const |
void | SetStylesContext (SvXMLStylesContext *pNew) |
SvXMLStylesContext * | GetAutoStylesContext () const |
void | SetAutoStylesContext (SvXMLStylesContext *pNew) |
SvXMLImportPropertyMapper * | GetPropertySetMapper () const |
SvXMLImportPropertyMapper * | GetPresPagePropsMapper () const |
virtual void | addShape (css::uno::Reference< css::drawing::XShape > &rShape, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > &rShapes) |
this function is called whenever the implementation classes like to add this new shape to the given XShapes. More... | |
virtual void | finishShape (css::uno::Reference< css::drawing::XShape > &rShape, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > &rShapes) |
this function is called whenever the implementation classes have finished importing a shape to the given XShapes. More... | |
void | addShapeEvents (SdXMLEventContextData &rData) |
void | pushGroupForPostProcessing (css::uno::Reference< css::drawing::XShapes > &rShapes) |
void | popGroupAndPostProcess () |
void | shapeWithZIndexAdded (css::uno::Reference< css::drawing::XShape > const &rShape, sal_Int32 nZIndex) |
void | shapeRemoved (const css::uno::Reference< css::drawing::XShape > &rShape) |
Updates the z-order of other shapes to be consistent again, needed due to the removal of rShape. More... | |
void | addShapeConnection (css::uno::Reference< css::drawing::XShape > const &rConnectorShape, bool bStart, const OUString &rDestShapeId, sal_Int32 nDestGlueId) |
void | addGluePointMapping (css::uno::Reference< css::drawing::XShape > const &xShape, sal_Int32 nSourceId, sal_Int32 nDestinnationId) |
adds a mapping for a gluepoint identifier from an xml file to the identifier created after inserting the new gluepoint into the core. More... | |
void | moveGluePointMapping (const css::uno::Reference< css::drawing::XShape > &xShape, const sal_Int32 n) |
moves all current DestinationId's for rXShape by n More... | |
sal_Int32 | getGluePointId (const css::uno::Reference< css::drawing::XShape > &xShape, sal_Int32 nSourceId) |
retrieves a mapping for a gluepoint identifier from the current xml file to the identifier created after inserting the new gluepoint into the core. More... | |
void | startPage (css::uno::Reference< css::drawing::XShapes > const &rShapes) |
this method must be calling before the first shape is imported for the given page. More... | |
void | endPage (css::uno::Reference< css::drawing::XShapes > const &rShapes) |
this method must be calling after the last shape is imported for the given page Calls to this method can be nested More... | |
void | restoreConnections () |
void | enableHandleProgressBar () |
defines if the import should increment the progress bar or not More... | |
bool | IsHandleProgressBarEnabled () const |
bool | IsPresentationShapesSupported () const |
queries the capability of the current model to create presentation shapes More... | |
XMLSdPropHdlFactory * | GetSdPropHdlFactory () const |
const rtl::Reference< XMLTableImport > & | GetShapeTableImport () |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Static Public Member Functions | |
static SvXMLShapeContext * | CreateGroupChildContext (SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape=false) |
static SvXMLShapeContext * | CreateFrameChildContext (SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xFrameAttrList) |
static css::uno::Reference< css::xml::sax::XFastContextHandler > | CreateFrameChildContext (SvXMLImportContext *pThisContext, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) |
static SvXMLShapeContext * | Create3DSceneChildContext (SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes) |
static SvXMLImportPropertyMapper * | CreateShapePropMapper (const css::uno::Reference< css::frame::XModel > &rModel, SvXMLImport &rImport) |
creates a property mapper for external chaining More... | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator 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 Attributes | |
SvXMLImport & | mrImporter |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Additional Inherited Members | |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Definition at line 132 of file shapeimport.hxx.
XMLShapeImportHelper::XMLShapeImportHelper | ( | SvXMLImport & | rImporter, |
const css::uno::Reference< css::frame::XModel > & | rModel, | ||
SvXMLImportPropertyMapper * | pExtMapper = nullptr |
||
) |
Definition at line 109 of file shapeimport.cxx.
References aXMLSDPresPageProps, XMLTextImportHelper::CreateParaDefaultExtPropMapper(), XMLTextImportHelper::CreateParaExtPropMapper(), mpImpl, mpPresPagePropsMapper, mpPropertySetMapper, and mpSdPropHdlFactory.
|
overridevirtual |
Definition at line 145 of file shapeimport.cxx.
References mpImpl, mpPresPagePropsMapper, mpPropertySetMapper, mpSdPropHdlFactory, mxAutoStylesContext, mxStylesContext, and SAL_WARN_IF.
void XMLShapeImportHelper::addGluePointMapping | ( | css::uno::Reference< css::drawing::XShape > const & | xShape, |
sal_Int32 | nSourceId, | ||
sal_Int32 | nDestinnationId | ||
) |
adds a mapping for a gluepoint identifier from an xml file to the identifier created after inserting the new gluepoint into the core.
The saved mappings can be retrieved by getGluePointId()
Definition at line 854 of file shapeimport.cxx.
References mpPageContext.
|
virtual |
this function is called whenever the implementation classes like to add this new shape to the given XShapes.
Reimplemented in XMLTextShapeImportHelper.
Definition at line 455 of file shapeimport.cxx.
References u.
Referenced by XMLTextShapeImportHelper::addShape().
void XMLShapeImportHelper::addShapeConnection | ( | css::uno::Reference< css::drawing::XShape > const & | rConnectorShape, |
bool | bStart, | ||
const OUString & | rDestShapeId, | ||
sal_Int32 | nDestGlueId | ||
) |
Definition at line 779 of file shapeimport.cxx.
References mpImpl.
void XMLShapeImportHelper::addShapeEvents | ( | SdXMLEventContextData & | rData | ) |
Definition at line 694 of file shapeimport.cxx.
References SdXMLEventContextData::ApplyProperties(), mpImpl, and SdXMLEventContextData::mxShape.
|
static |
Definition at line 167 of file shapeimport.cxx.
References sax_fastparser::castToFastAttributeList(), SdXMLShapeContext::processAttribute(), xmloff::token::XML_CUBE, XML_ELEMENT, xmloff::token::XML_EXTRUDE, xmloff::token::XML_ROTATE, xmloff::token::XML_SCENE, xmloff::token::XML_SPHERE, XMLOFF_WARN_UNKNOWN, and XMLOFF_WARN_UNKNOWN_ELEMENT.
Referenced by SdXML3DSceneShapeContext::createFastChildContext().
|
static |
|
static |
|
static |
Definition at line 238 of file shapeimport.cxx.
References sax_fastparser::castToFastAttributeList(), CHART, DRAW, OFFICE, SdXMLShapeContext::processAttribute(), xmloff::token::XML_A, xmloff::token::XML_ANNOTATION, xmloff::token::XML_CAPTION, xmloff::token::XML_CHART, xmloff::token::XML_CIRCLE, xmloff::token::XML_CONNECTOR, xmloff::token::XML_CONTROL, xmloff::token::XML_CUSTOM_SHAPE, XML_ELEMENT, xmloff::token::XML_ELLIPSE, xmloff::token::XML_FRAME, xmloff::token::XML_G, xmloff::token::XML_LINE, xmloff::token::XML_MEASURE, xmloff::token::XML_PAGE_THUMBNAIL, xmloff::token::XML_PATH, xmloff::token::XML_POLYGON, xmloff::token::XML_POLYLINE, xmloff::token::XML_RECT, xmloff::token::XML_SCENE, XMLOFF_WARN_UNKNOWN, and XMLOFF_WARN_UNKNOWN_ELEMENT.
Referenced by SchXMLChartContext::createFastChildContext(), SdXMLGroupShapeContext::createFastChildContext(), SdXMLShapeLinkContext::createFastChildContext(), SdXMLGenericPageContext::createFastChildContext(), XMLTextFrameHyperlinkContext::createFastChildContext(), XMLImpSpanContext_Impl::CreateSpanContext(), and XMLTextImportHelper::CreateTextChildContext().
|
static |
creates a property mapper for external chaining
Definition at line 841 of file shapeimport.cxx.
References SvXMLImportPropertyMapper::ChainImportMapper(), XMLTextImportHelper::CreateParaExtPropMapper(), and xFactory.
Referenced by XMLChartImportPropertyMapper::XMLChartImportPropertyMapper().
void XMLShapeImportHelper::enableHandleProgressBar | ( | ) |
defines if the import should increment the progress bar or not
Definition at line 918 of file shapeimport.cxx.
References mpImpl.
void XMLShapeImportHelper::endPage | ( | css::uno::Reference< css::drawing::XShapes > const & | rShapes | ) |
this method must be calling after the last shape is imported for the given page Calls to this method can be nested
this method must be calling after the last shape is imported for the given page
Definition at line 906 of file shapeimport.cxx.
References mpPageContext, restoreConnections(), and SAL_WARN_IF.
|
virtual |
this function is called whenever the implementation classes have finished importing a shape to the given XShapes.
The shape is already inserted into its XShapes and all properties and styles are set.
Definition at line 477 of file shapeimport.cxx.
References mrImporter.
|
inline |
Definition at line 182 of file shapeimport.hxx.
sal_Int32 XMLShapeImportHelper::getGluePointId | ( | const css::uno::Reference< css::drawing::XShape > & | xShape, |
sal_Int32 | nSourceId | ||
) |
retrieves a mapping for a gluepoint identifier from the current xml file to the identifier created after inserting the new gluepoint into the core.
The mapping must be initialized first with addGluePointMapping()
Definition at line 880 of file shapeimport.cxx.
References mpPageContext.
Referenced by restoreConnections().
|
inline |
Definition at line 187 of file shapeimport.hxx.
|
inline |
Definition at line 186 of file shapeimport.hxx.
|
inline |
Definition at line 256 of file shapeimport.hxx.
const rtl::Reference< XMLTableImport > & XMLShapeImportHelper::GetShapeTableImport | ( | ) |
Definition at line 934 of file shapeimport.cxx.
References mrImporter, mxShapeTableImport, and xFactory.
|
inline |
Definition at line 180 of file shapeimport.hxx.
bool XMLShapeImportHelper::IsHandleProgressBarEnabled | ( | ) | const |
Definition at line 923 of file shapeimport.cxx.
References mpImpl.
bool XMLShapeImportHelper::IsPresentationShapesSupported | ( | ) | const |
queries the capability of the current model to create presentation shapes
Definition at line 929 of file shapeimport.cxx.
References mpImpl.
void XMLShapeImportHelper::moveGluePointMapping | ( | const css::uno::Reference< css::drawing::XShape > & | xShape, |
const sal_Int32 | n | ||
) |
moves all current DestinationId's for rXShape by n
moves all current DestinationId's by n
Definition at line 862 of file shapeimport.cxx.
References mpPageContext, and n.
void XMLShapeImportHelper::popGroupAndPostProcess | ( | ) |
Definition at line 707 of file shapeimport.cxx.
References DBG_UNHANDLED_EXCEPTION, mpImpl, and SAL_WARN_IF.
Referenced by XMLTextShapeImportHelper::~XMLTextShapeImportHelper().
void XMLShapeImportHelper::pushGroupForPostProcessing | ( | css::uno::Reference< css::drawing::XShapes > & | rShapes | ) |
Definition at line 689 of file shapeimport.cxx.
References mpImpl.
Referenced by XMLTextShapeImportHelper::XMLTextShapeImportHelper().
void XMLShapeImportHelper::restoreConnections | ( | ) |
Definition at line 793 of file shapeimport.cxx.
References getGluePointId(), gsEndGluePointIndex(), gsEndShape(), gsStartGluePointIndex(), gsStartShape(), i, mpImpl, mrImporter, and nCount.
Referenced by endPage().
void XMLShapeImportHelper::SetAutoStylesContext | ( | SvXMLStylesContext * | pNew | ) |
Definition at line 233 of file shapeimport.cxx.
References mxAutoStylesContext.
void XMLShapeImportHelper::SetStylesContext | ( | SvXMLStylesContext * | pNew | ) |
Definition at line 228 of file shapeimport.cxx.
References mxStylesContext.
void XMLShapeImportHelper::shapeRemoved | ( | const css::uno::Reference< css::drawing::XShape > & | rShape | ) |
Updates the z-order of other shapes to be consistent again, needed due to the removal of rShape.
Definition at line 748 of file shapeimport.cxx.
References mpImpl.
void XMLShapeImportHelper::shapeWithZIndexAdded | ( | css::uno::Reference< css::drawing::XShape > const & | rShape, |
sal_Int32 | nZIndex | ||
) |
Definition at line 726 of file shapeimport.cxx.
References mpImpl.
void XMLShapeImportHelper::startPage | ( | css::uno::Reference< css::drawing::XShapes > const & | rShapes | ) |
this method must be calling before the first shape is imported for the given page.
this method must be calling before the first shape is imported for the given page
Calls to this method can be nested
Definition at line 897 of file shapeimport.cxx.
References mpPageContext.
|
private |
Definition at line 134 of file shapeimport.hxx.
Referenced by addShapeConnection(), addShapeEvents(), enableHandleProgressBar(), IsHandleProgressBarEnabled(), IsPresentationShapesSupported(), popGroupAndPostProcess(), pushGroupForPostProcessing(), restoreConnections(), shapeRemoved(), shapeWithZIndexAdded(), XMLShapeImportHelper(), and ~XMLShapeImportHelper().
|
private |
Definition at line 136 of file shapeimport.hxx.
Referenced by addGluePointMapping(), endPage(), getGluePointId(), moveGluePointMapping(), and startPage().
|
private |
Definition at line 141 of file shapeimport.hxx.
Referenced by XMLShapeImportHelper(), and ~XMLShapeImportHelper().
|
private |
Definition at line 140 of file shapeimport.hxx.
Referenced by XMLShapeImportHelper(), and ~XMLShapeImportHelper().
|
private |
Definition at line 139 of file shapeimport.hxx.
Referenced by XMLShapeImportHelper(), and ~XMLShapeImportHelper().
|
protected |
Definition at line 150 of file shapeimport.hxx.
Referenced by finishShape(), GetShapeTableImport(), and restoreConnections().
|
private |
Definition at line 145 of file shapeimport.hxx.
Referenced by SetAutoStylesContext(), and ~XMLShapeImportHelper().
|
private |
Definition at line 147 of file shapeimport.hxx.
Referenced by GetShapeTableImport().
|
private |
Definition at line 144 of file shapeimport.hxx.
Referenced by SetStylesContext(), and ~XMLShapeImportHelper().