62#include <rtl/ustrbuf.hxx>
75 OUString strViewBox =
"0 0 " +
76 OUString::number(rect.
GetWidth()*1000) +
" " +
81 OUStringBuffer strPoints;
86 strPoints.append( OUString::number(
x) +
"," + OUString::number(
y) +
" ");
88 strPoints.stripEnd(
' ');
89 pAttrList->
AddAttribute(
"draw:points", strPoints.makeStringAndClear());
115 if( x1>
point.GetX() )
117 if( x2<
point.GetX() )
120 if( y1>
point.GetY() )
122 if( y2<
point.GetY() )
125 return XFRect(x1,y1,x2-x1,y2-y1);
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)
virtual void ToXml(IXFStream *pStrm) override
@descr serialize.
std::vector< XFPoint > m_aPoints
void SetPosition(double x, double y, double width, double height)
@descr Set frame position.