LibreOffice Module lotuswordpro (master) 1
|
A container for content. More...
#include <xfcontentcontainer.hxx>
Public Member Functions | |
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 () |
Private Attributes | |
std::vector< rtl::Reference< XFContent > > | m_aContents |
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 |
A container for content.
The contents will be deleted when delete container.
Definition at line 76 of file xfcontentcontainer.hxx.
XFContentContainer::XFContentContainer | ( | ) |
Definition at line 63 of file xfcontentcontainer.cxx.
|
overridevirtual |
@descr Destructure, all contents will be deleted too.
Definition at line 67 of file xfcontentcontainer.cxx.
void XFContentContainer::Add | ( | const OUString & | text | ) |
@descr convenience function for add text content.
Definition at line 76 of file xfcontentcontainer.cxx.
|
virtual |
@descr Add content.
Reimplemented in XFCell, XFFrame, XFCell, and XFFrame.
Definition at line 71 of file xfcontentcontainer.cxx.
References m_aContents.
Referenced by Add(), XFCell::Add(), XFFrame::Add(), LwpPara::AddBreakAfter(), LwpPara::AddBreakBefore(), LwpBulletStyleMgr::AddBulletList(), LwpFrib::ConvertChars(), LwpFribField::ConvertCrossRefEnd(), LwpFribField::ConvertCrossRefStart(), LwpFribField::ConvertDateTimeEnd(), LwpFribField::ConvertDateTimeStart(), LwpFribField::ConvertDocFieldEnd(), LwpFribField::ConvertDocFieldStart(), LwpFrib::ConvertHyperLink(), LwpDrawTextBox::CreateDrawObj(), LwpDrawTextArt::CreateDrawObj(), LwpCHBlkMarker::ProcessKeylist(), LwpCHBlkMarker::ProcessOtherCHB(), LwpCHBlkMarker::ProcessPlaceHolder(), LwpChangeMgr::SetHeadFootChange(), LwpFribFootnote::XFConvert(), LwpFribFrame::XFConvert(), LwpFribTable::XFConvert(), LwpFribNote::XFConvert(), LwpGraphicObject::XFConvert(), LwpTableLayout::XFConvert(), LwpTocSuperLayout::XFConvert(), LwpFribBookMark::XFConvert(), LwpFribField::XFConvert(), LwpFribRubyMarker::XFConvert(), LwpFribDocVar::XFConvert(), LwpFribPageNumber::XFConvert(), LwpGraphicObject::XFConvertEquation(), LwpFrameLayout::XFConvertFrame(), LwpGroupLayout::XFConvertFrame(), LwpSuperTableLayout::XFConvertFrame(), and LwpTocSuperLayout::XFConvertFrame().
rtl::Reference< XFContent > XFContentContainer::FindFirstContent | ( | enumXFContent | type | ) |
@descr helper function, find first content by type.
Definition at line 111 of file xfcontentcontainer.cxx.
References eType, FindFirstContent(), GetContent(), GetCount(), i, and type.
Referenced by FindFirstContent(), LwpTableLayout::PostProcessParagraph(), LwpFribFrame::XFConvert(), LwpFribTable::XFConvert(), LwpStory::XFConvertFrameInCell(), and LwpStory::XFConvertFrameInHeaderFooter().
|
inline |
@descr get content by index.
Definition at line 134 of file xfcontentcontainer.hxx.
References index, and m_aContents.
Referenced by XFFrame::AdjustZIndex(), and FindFirstContent().
|
overridevirtual |
@descr return the content type.
Reimplemented from XFContent.
Reimplemented in XFFrame, and XFParagraph.
Definition at line 139 of file xfcontentcontainer.cxx.
References enumXFContentContainer.
int XFContentContainer::GetCount | ( | ) | const |
@descr return the number of contents in the container.
Definition at line 101 of file xfcontentcontainer.cxx.
References m_aContents.
Referenced by XFFrame::AdjustZIndex(), FindFirstContent(), XFParagraph::HasContents(), HierarchyContains(), and XFChangeList::ToXml().
rtl::Reference< XFContent > XFContentContainer::GetLastContent | ( | ) |
Definition at line 154 of file xfcontentcontainer.cxx.
References index, and m_aContents.
Referenced by LwpMasterPage::ParseSection(), and LwpFribTable::XFConvert().
bool XFContentContainer::HierarchyContains | ( | const XFContent * | pContent | ) | const |
Definition at line 83 of file xfcontentcontainer.cxx.
References GetCount(), i, and nCount.
Referenced by XFTable::AddRow(), and XFTable::ContainsTable().
void XFContentContainer::RemoveLastContent | ( | ) |
Definition at line 166 of file xfcontentcontainer.cxx.
References index, and m_aContents.
Referenced by LwpMasterPage::ParseSection(), and LwpFribTable::XFConvert().
void XFContentContainer::Reset | ( | void | ) |
@descr clear all contents in the container.
Definition at line 106 of file xfcontentcontainer.cxx.
References m_aContents.
Referenced by XFCell::Add().
|
overridevirtual |
@descr Output to OOo model or local file.
Implements XFContent.
Reimplemented in XFAnnotation, XFCell, XFChangeList, XFChangeRegion, XFChangeInsert, XFChangeDelete, XFDrawGroup, XFDrawLine, XFDrawObject, XFDrawPath, XFDrawPolygon, XFDrawPolyline, XFDrawRect, XFEndNote, XFFloatFrame, XFFooter, XFFootNote, XFFrame, XFHeader, XFImage, XFIndex, XFList, XFListItem, XFParagraph, and XFSection.
Definition at line 144 of file xfcontentcontainer.cxx.
References XFContent::DoToXml(), and m_aContents.
Referenced by XFDrawObject::ContentToXml(), XFAnnotation::ToXml(), XFCell::ToXml(), XFChangeList::ToXml(), XFEndNote::ToXml(), XFFooter::ToXml(), XFFootNote::ToXml(), XFFrame::ToXml(), XFHeader::ToXml(), XFIndex::ToXml(), XFList::ToXml(), XFListItem::ToXml(), XFParagraph::ToXml(), and XFSection::ToXml().
|
private |
Definition at line 131 of file xfcontentcontainer.hxx.
Referenced by Add(), GetContent(), GetCount(), GetLastContent(), RemoveLastContent(), Reset(), and ToXml().