LibreOffice Module lotuswordpro (master) 1
|
Base class for all drawing object(ellipse,rect,circle,...). More...
#include <xfdrawobj.hxx>
Public Member Functions | |
XFDrawObject () | |
void | SetRotate (double degree) |
@descr Set drawing object rotate. More... | |
void | ContentToXml (IXFStream *pStrm) |
virtual void | ToXml (IXFStream *pStrm) override |
@descr serialize. More... | |
Public Member Functions inherited from XFFrame | |
XFFrame () | |
XFFrame (bool isTextBox) | |
virtual | ~XFFrame () override |
virtual void | Add (XFContent *pContent) override |
@descr override the add function to adjust z-index. More... | |
void | SetAnchorType (enumXFAnchor type) |
@descr: Set the anchor type for the frame object. More... | |
void | SetAnchorPage (sal_Int32 page) |
@descr: if it's page anchor,set the page number. More... | |
void | SetName (const OUString &name) |
@descr Set frame name. More... | |
void | SetZIndex (sal_uInt32 zIndex) |
@descr Set z-index of the frame. More... | |
void | SetX (double x) |
@descr Set frame position X. More... | |
void | SetY (double y) |
@descr Set frame position Y. More... | |
void | SetWidth (double width) |
@descr Set frame width. More... | |
void | SetHeight (double height) |
@descr Set frame height. More... | |
void | SetMinHeight (double minHeight) |
@descr Set frame min-height. More... | |
void | SetPosition (double x, double y, double width, double height) |
@descr Set frame position. More... | |
void | SetPosition (const XFRect &rect) |
@descr Set frame position. More... | |
void | SetNextLink (const OUString &next) |
@descr: Link the text content of the two frame. More... | |
enumXFFrameType | GetFrameType () const |
@descr Get the frame type. More... | |
virtual enumXFContent | GetContentType () override |
@descr Get content type, enumXFContentFrame. More... | |
virtual void | ToXml (IXFStream *pStrm) override |
@descr serialize. More... | |
virtual void | Add (XFContent *pContent) |
@descr Add content. More... | |
void | Add (const OUString &text) |
@descr convenience function for add text content. More... | |
Public Member Functions inherited from XFContentContainer | |
XFContentContainer () | |
virtual | ~XFContentContainer () override |
@descr Destructure, all contents will be deleted too. More... | |
virtual void | Add (XFContent *pContent) |
@descr Add content. More... | |
rtl::Reference< XFContent > | GetLastContent () |
void | RemoveLastContent () |
void | Add (const OUString &text) |
@descr convenience function for add text content. More... | |
int | GetCount () const |
@descr return the number of contents in the container. More... | |
rtl::Reference< XFContent > | GetContent (sal_uInt32 index) const |
@descr get content by index. More... | |
void | Reset () |
@descr clear all contents in the container. More... | |
rtl::Reference< XFContent > | FindFirstContent (enumXFContent type) |
@descr helper function, find first content by type. More... | |
virtual enumXFContent | GetContentType () override |
@descr return the content type. More... | |
virtual void | ToXml (IXFStream *pStrm) override |
@descr Output to OOo model or local file. More... | |
bool | HierarchyContains (const XFContent *pContent) const |
Public Member Functions inherited from XFContent | |
virtual enumXFContent | GetContentType () |
: return the content type. More... | |
virtual void | SetStyleName (const OUString &style) |
: All content except XFTextContent can have a style. More... | |
const OUString & | GetStyleName () const |
: return the style name. More... | |
void | DoToXml (IXFStream *stream) |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Protected Attributes | |
double | m_fRotate |
XFPoint | m_aRotatePoint |
unsigned int | m_nDrawFlag |
Protected Attributes inherited from XFFrame | |
enumXFAnchor | m_eAnchor |
sal_Int32 | m_nAnchorPage |
OUString | m_strName |
sal_uInt32 | m_nZIndex |
XFRect | m_aRect |
double | m_fMinHeight |
OUString | m_strNextLink |
enumXFFrameType | m_eType |
sal_uInt32 | m_nFrameFlag |
bool | m_isTextBox |
Protected Attributes inherited from XFContent | |
OUString | m_strStyleName |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Additional Inherited Members | |
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 Member Functions inherited from XFContent | |
XFContent () | |
virtual void | ToXml (IXFStream *stream)=0 |
virtual | ~XFContent () override |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Base class for all drawing object(ellipse,rect,circle,...).
I can set Positions,anchor,rotate,text style name here.
Drawing objects can be rotated, scaled and skewed, drawing objects must have positions set, you can use SetPosition(...).
Definition at line 80 of file xfdrawobj.hxx.
XFDrawObject::XFDrawObject | ( | ) |
Definition at line 63 of file xfdrawobj.cxx.
References enumXFFrameDrawing, XFFrame::m_eType, m_fRotate, and m_nDrawFlag.
void XFDrawObject::ContentToXml | ( | IXFStream * | pStrm | ) |
Definition at line 70 of file xfdrawobj.cxx.
References XFContentContainer::ToXml().
Referenced by XFDrawLine::ToXml(), XFDrawPath::ToXml(), XFDrawPolygon::ToXml(), XFDrawPolyline::ToXml(), and XFDrawRect::ToXml().
|
inline |
@descr Set drawing object rotate.
Definition at line 89 of file xfdrawobj.hxx.
References basegfx::deg2rad(), m_aRotatePoint, m_fRotate, m_nDrawFlag, and XFDRAWOBJECT_FLAG_ROTATE.
|
overridevirtual |
@descr serialize.
Reimplemented from XFFrame.
Reimplemented in XFDrawGroup, XFDrawLine, XFDrawPath, XFDrawPolygon, XFDrawPolyline, and XFDrawRect.
Definition at line 75 of file xfdrawobj.cxx.
References IXFAttrList::AddAttribute(), enumXFAnchorAsChar, enumXFAnchorChar, enumXFAnchorFrame, enumXFAnchorPage, enumXFAnchorPara, IXFStream::GetAttrList(), XFRect::GetHeight(), XFContent::GetStyleName(), XFRect::GetWidth(), XFPoint::GetX(), XFRect::GetX(), XFPoint::GetY(), XFRect::GetY(), XFFrame::m_aRect, m_aRotatePoint, XFFrame::m_eAnchor, m_fRotate, m_nDrawFlag, XFFrame::m_nZIndex, XFFrame::m_strName, XFDRAWOBJECT_FLAG_ROTATE, XFDRAWOBJECT_FLAG_SCALE, XFDRAWOBJECT_FLAG_SKEWX, XFDRAWOBJECT_FLAG_SKEWY, and XFDRAWOBJECT_FLAG_TRANSLATE.
Referenced by XFDrawGroup::ToXml(), XFDrawPath::ToXml(), XFDrawPolygon::ToXml(), XFDrawPolyline::ToXml(), and XFDrawRect::ToXml().
|
protected |
Definition at line 102 of file xfdrawobj.hxx.
Referenced by SetRotate(), XFDrawLine::ToXml(), and ToXml().
|
protected |
Definition at line 101 of file xfdrawobj.hxx.
Referenced by SetRotate(), XFDrawLine::ToXml(), ToXml(), and XFDrawObject().
|
protected |
Definition at line 103 of file xfdrawobj.hxx.
Referenced by SetRotate(), XFDrawLine::ToXml(), ToXml(), and XFDrawObject().