30#include <rtl/ustring.hxx>
31#include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
48 const uno::Reference< xml::sax::XFastAttributeList >& xAttrList,
52 bool bHasViewBox =
false;
53 bool bHasPathData =
false;
54 OUString aDisplayName;
56 std::unique_ptr<SdXMLImExViewBox> xViewBox;
64 OUString aStrValue = aIter.toString();
72 aDisplayName = aStrValue;
79 strPathData = aStrValue;
87 if( bHasViewBox && bHasPathData )
93 if(aPolyPolygon.
count())
98 xViewBox->GetX(), xViewBox->GetY(),
99 xViewBox->GetX() + xViewBox->GetWidth(),
100 xViewBox->GetY() + xViewBox->GetHeight());
103 xViewBox->GetWidth(), xViewBox->GetHeight());
105 if(!aSourceRange.
equal(aTargetRange))
114 drawing::PolyPolygonBezierCoords aSourcePolyPolygon;
119 rValue <<= aSourcePolyPolygon;
123 if( !aDisplayName.isEmpty() )
127 rStrName = aDisplayName;
142 const OUString& rStrName,
145 if(rStrName.isEmpty())
148 drawing::PolyPolygonBezierCoords aBezier;
150 if(!(rValue >>= aBezier))
154 bool bEncoded(
false);
179 const OUString aPolygonString(
const SvXMLImport & m_rImport
const OUString & GetExportString()
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
OUString EncodeStyleName(const OUString &rName, bool *pEncoded=nullptr) const
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
void exportXML(const OUString &rStrName, const css::uno::Any &rValue)
XMLMarkerStyleExport(SvXMLExport &rExport)
void importXML(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Any &rValue, OUString &rStrName)
XMLMarkerStyleImport(SvXMLImport &rImport)
void transform(const basegfx::B2DHomMatrix &rMatrix)
B2DRange getB2DRange() const
bool equal(const Range2D &rRange) const
OUString exportToSvgD(const B2DPolyPolygon &rPolyPoly, bool bUseRelativeCoordinates, bool bDetectQuadraticBeziers, bool bHandleRelativeNextPointCompatible, bool bOOXMLMotionPath=false)
bool importFromSvgD(B2DPolyPolygon &o_rPolyPoly, std::u16string_view rSvgDAttribute, bool bHandleRelativeNextPointCompatible, PointIndexSet *pHelpPointIndexSet)
void B2DPolyPolygonToUnoPolyPolygonBezierCoords(const B2DPolyPolygon &rPolyPolygon, css::drawing::PolyPolygonBezierCoords &rPolyPolygonBezierCoordsRetval)
B2DHomMatrix createSourceRangeTargetRangeTransform(const B2DRange &rSourceRange, const B2DRange &rTargetRange)
B2DPolyPolygon UnoPolyPolygonBezierCoordsToB2DPolyPolygon(const css::drawing::PolyPolygonBezierCoords &rPolyPolygonBezierCoordsSource)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
#define XMLOFF_WARN_UNKNOWN(area, rIter)
constexpr sal_Int32 TOKEN_MASK
constexpr sal_uInt16 XML_NAMESPACE_DRAW
constexpr sal_uInt16 XML_NAMESPACE_SVG