62#include <rtl/ustrbuf.hxx>
75 str.append( OUString::number(
point.GetX()*1000) +
" " + OUString::number(
point.GetY()*1000) +
" ");
78 return str.makeStringAndClear();
132 OUString strViewBox =
"0 0 " +
133 OUString::number(rect.
GetWidth()*1000) +
" " +
138 OUStringBuffer strPath;
141 strPath.append(path.ToString());
143 if (!strPath.isEmpty())
144 strPath.setLength(strPath.getLength()-1);
145 pAttrList->
AddAttribute(
"svg:d", strPath.makeStringAndClear());
Attribute list interface for sax writer.
virtual void Clear()=0
@descr: Clear all the attributes in the attribute list.
virtual void AddAttribute(const OUString &name, const OUString &value)=0
@descr: Add an attribute to the attribute list.
Stream wrapper for sax writer.
virtual IXFAttrList * GetAttrList()=0
@descr return the Attribute list interface.
virtual void StartElement(const OUString &oustr)=0
@descr Wrap XDocumentHandler::startElement()
virtual void EndElement(const OUString &oustr)=0
@descr Wrap XDocumentHandler::endElement()
virtual void ToXml(IXFStream *pStrm) override
@descr serialize.
void ContentToXml(IXFStream *pStrm)
void ClosePath()
@descr Close path command.
void LineTo(XFPoint pt)
@descr Line command.
virtual void ToXml(IXFStream *pStrm) override
@descr serialize.
void CurveTo(XFPoint dest, XFPoint ctrl1, XFPoint ctrl2)
@descr Curve command.
void MoveTo(XFPoint pt)
@descr Move command.
std::vector< XFSvgPathEntry > m_aPaths
void SetPosition(double x, double y, double width, double height)
@descr Set frame position.
SVG path segment wrapper.
std::vector< XFPoint > m_aPoints
void AddPoint(const XFPoint &pt)
@descr Set svg path point.
void SetCommand(const OUString &cmd)
@descr Set svg path command,L for line,M for move,...