class SdXMLShapeContext : public SvXMLShapeContext
{ protected: // the shape group this object should be created inside
css::uno::Reference< css::drawing::XShapes > mxShapes;
css::uno::Reference< css::text::XTextCursor > mxCursor;
css::uno::Reference< css::text::XTextCursor > mxOldCursor;
css::uno::Reference< css::xml::sax::XFastAttributeList> mxAttrList;
css::uno::Reference< css::container::XIdentifierContainer > mxGluePoints;
css::uno::Reference< css::document::XActionLockable > mxLockable;
bool mbVisible; bool mbPrintable; bool mbHaveXmlId; bool mbTextBox; ///< If the text of this shape is handled by a Writer TextFrame.
/** if bSupportsStyle is false, auto styles will be set but not a style */ void SetStyle( bool bSupportsStyle = true ); void SetLayer(); void SetThumbnail();
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & );
};
// draw:rect context
class SdXMLRectShapeContext : public SdXMLShapeContext
{
sal_Int32 mnRadius;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:line context
class SdXMLLineShapeContext : public SdXMLShapeContext
{
sal_Int32 mnX1;
sal_Int32 mnY1;
sal_Int32 mnX2;
sal_Int32 mnY2;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:ellipse and draw:circle context
class SdXMLEllipseShapeContext : public SdXMLShapeContext
{
sal_Int32 mnCX;
sal_Int32 mnCY;
sal_Int32 mnRX;
sal_Int32 mnRY;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:polyline and draw:polygon context
class SdXMLPolygonShapeContext : public SdXMLShapeContext
{
OUString maPoints;
OUString maViewBox; bool mbClosed;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:path context
class SdXMLPathShapeContext : public SdXMLShapeContext
{
OUString maD;
OUString maViewBox;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:text-box context
class SdXMLTextBoxShapeContext : public SdXMLShapeContext
{
sal_Int32 mnRadius;
OUString maChainNextName;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:control context
class SdXMLControlShapeContext : public SdXMLShapeContext
{ private:
OUString maFormId;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:connector context
class SdXMLConnectorShapeContext : public SdXMLShapeContext
{ private:
css::awt::Point maStart;
css::awt::Point maEnd;
// Guess from the svg:d attribute whether the shape was rendered using OOXML definition. The // default value is true to cover files exported to ODF by MS Office, which does not write a // svg:d attribute. LibreOffice has always written a svg:d attribute. bool mbLikelyOOXMLCurve;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:measure context
class SdXMLMeasureShapeContext : public SdXMLShapeContext
{ private:
css::awt::Point maStart;
css::awt::Point maEnd;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:page context
class SdXMLPageShapeContext : public SdXMLShapeContext
{ private:
sal_Int32 mnPageNumber; public:
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:caption context
class SdXMLCaptionShapeContext : public SdXMLShapeContext
{ private:
css::awt::Point maCaptionPoint;
sal_Int32 mnRadius;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// office:image context
class SdXMLGraphicObjectShapeContext : public SdXMLShapeContext
{ private:
OUString maURL;
OUString msMimeType;
css::uno::Reference < css::io::XOutputStream > mxBase64Stream;
sal_Int32 mnPage;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// chart:chart context
class SdXMLChartShapeContext : public SdXMLShapeContext
{
SvXMLImportContextRef mxChartContext;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:applet
class SdXMLAppletShapeContext : public SdXMLShapeContext
{ private:
OUString maAppletName;
OUString maAppletCode;
OUString maHref; bool mbIsScript;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:plugin
class SdXMLPluginShapeContext : public SdXMLShapeContext
{ private:
OUString maMimeType;
OUString maHref; bool mbMedia;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:-frame
class SdXMLFrameShapeContext : public SdXMLShapeContext, public MultiImageImportHelper
{ private: bool mbSupportsReplacement;
SvXMLImportContextRef mxImplContext;
SvXMLImportContextRef mxReplImplContext;
protected: /// helper to get the created xShape instance, needs to be overridden void removeGraphicFromImportContext(const SvXMLImportContext& rContext) override;
OUString getGraphicPackageURLFromImportContext(const SvXMLImportContext& rContext) const override;
OUString getMimeTypeFromImportContext(const SvXMLImportContext& rContext) const override;
css::uno::Reference<css::graphic::XGraphic> getGraphicFromImportContext(const SvXMLImportContext& rContext) const override;
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
};
// draw:table
class SdXMLTableShapeContext : public SdXMLShapeContext
{ public:
// this is called from the parent group for each unparsed attribute in the attribute list virtualbool processAttribute( const sax_fastparser::FastAttributeList::FastAttributeIter & ) override;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.