LibreOffice Module lotuswordpro (master) 1
|
Paragraph object for SODC. More...
#include <xfparagraph.hxx>
Public Member Functions | |
XFParagraph () | |
virtual | ~XFParagraph () override |
bool | HasContents () const |
virtual enumXFContent | GetContentType () override |
@descr return the content type. More... | |
virtual void | ToXml (IXFStream *pStrm) override |
The paragraph object serial function,the output will be like: <text:p> <text:span text:style-name="T1">text content</text:span> text. 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 () |
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 |
Protected Attributes inherited from XFContent | |
OUString | m_strStyleName |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Paragraph object for SODC.
You can call Add() to add text span or drawing objects to XFParagraph.
Definition at line 72 of file xfparagraph.hxx.
XFParagraph::XFParagraph | ( | ) |
Definition at line 64 of file xfparagraph.cxx.
|
overridevirtual |
Definition at line 66 of file xfparagraph.cxx.
|
overridevirtual |
@descr return the content type.
Reimplemented from XFContentContainer.
Definition at line 68 of file xfparagraph.cxx.
References enumXFContentPara.
bool XFParagraph::HasContents | ( | ) | const |
Definition at line 94 of file xfparagraph.cxx.
References XFContentContainer::GetCount().
Referenced by LwpMasterPage::ParseSection(), and LwpFribTable::XFConvert().
|
overridevirtual |
The paragraph object serial function,the output will be like: <text:p> <text:span text:style-name="T1">text content</text:span> text.
<text:span text:style-name="T1">text content</text:span> </text:p>
Reimplemented from XFContentContainer.
Definition at line 78 of file xfparagraph.cxx.
References IXFAttrList::AddAttribute(), IXFAttrList::Clear(), IXFStream::EndElement(), IXFStream::GetAttrList(), XFContent::GetStyleName(), IXFStream::StartElement(), and XFContentContainer::ToXml().