LibreOffice Module lotuswordpro (master) 1
Public Member Functions | List of all members
XFParagraph Class Reference

Paragraph object for SODC. More...

#include <xfparagraph.hxx>

Inheritance diagram for XFParagraph:
[legend]
Collaboration diagram for XFParagraph:
[legend]

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< XFContentGetLastContent ()
 
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< XFContentGetContent (sal_uInt32 index) const
 @descr get content by index. More...
 
void Reset ()
 @descr clear all contents in the container. More...
 
rtl::Reference< XFContentFindFirstContent (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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ XFParagraph()

XFParagraph::XFParagraph ( )

Definition at line 64 of file xfparagraph.cxx.

◆ ~XFParagraph()

XFParagraph::~XFParagraph ( )
overridevirtual

Definition at line 66 of file xfparagraph.cxx.

Member Function Documentation

◆ GetContentType()

enumXFContent XFParagraph::GetContentType ( )
overridevirtual

@descr return the content type.

Reimplemented from XFContentContainer.

Definition at line 68 of file xfparagraph.cxx.

References enumXFContentPara.

◆ HasContents()

bool XFParagraph::HasContents ( ) const

◆ ToXml()

void XFParagraph::ToXml ( IXFStream pStrm)
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().


The documentation for this class was generated from the following files: