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

@descr Table cell object. More...

#include <xfcell.hxx>

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

Public Member Functions

 XFCell ()
 
virtual ~XFCell () override
 
void Add (XFContent *pContent) override
 @descr Add content for table cell. More...
 
void SetColumnSpaned (sal_Int32 num)
 @descr If cell spans more the one column, then set column span. More...
 
void SetRepeated (sal_Int32 num)
 @descr Set whether the following cells use the same style and content. More...
 
void SetValue (double value)
 @descr Set cell number value. More...
 
void SetValue (const OUString &value)
 @descr Set cell number value. More...
 
void SetFormula (const OUString &formula)
 @descr Set cell formula. More...
 
void SetProtect (bool protect)
 @descr Set cell protected. More...
 
void SetCol (sal_Int32 col)
 @descr Set cell column id. More...
 
void SetOwnerRow (XFRow *pRow)
 @descr Set cell owner row. More...
 
OUString GetCellName ()
 @descr Return cell name. More...
 
sal_Int32 GetColSpaned () const
 @descr return cell column span property. More...
 
virtual void ToXml (IXFStream *pStrm) override
 @descr Output cell as xml element. More...
 
const XFTableGetSubTable () const
 
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< 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 ()
 
- Public Member Functions inherited from SfxBroadcaster
 SfxBroadcaster ()
 
 SfxBroadcaster (const SfxBroadcaster &rBC)
 
virtual ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE
 
void Broadcast (const SfxHint &rHint)
 
bool HasListeners () const
 
size_t GetListenerCount () const
 
void ForAllListeners (std::function< bool(SfxListener *)> f) const
 

Private Attributes

XFRowm_pOwnerRow
 
rtl::Reference< XFTablem_pSubTable
 
sal_Int32 m_nCol
 
sal_Int32 m_nColSpaned
 
sal_Int32 m_nRepeated
 
enumXFValueType m_eValueType
 
OUString m_strValue
 
OUString m_strFormula
 
bool m_bProtect
 

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 Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 
- Protected Attributes inherited from XFContent
OUString m_strStyleName
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

@descr Table cell object.

Definition at line 74 of file xfcell.hxx.

Constructor & Destructor Documentation

◆ XFCell()

XFCell::XFCell ( )

Definition at line 70 of file xfcell.cxx.

◆ ~XFCell()

XFCell::~XFCell ( )
overridevirtual

Definition at line 79 of file xfcell.cxx.

Member Function Documentation

◆ Add() [1/3]

void XFContentContainer::Add ( const OUString &  text)

@descr convenience function for add text content.

Definition at line 97 of file xfcontentcontainer.cxx.

◆ Add() [2/3]

void XFContentContainer::Add ( XFContent pContent)
virtual

@descr Add content.

Reimplemented from XFContentContainer.

Definition at line 90 of file xfcontentcontainer.cxx.

◆ Add() [3/3]

void XFCell::Add ( XFContent pContent)
overridevirtual

◆ GetCellName()

OUString XFCell::GetCellName ( )

@descr Return cell name.

It's a tool function for formula.

Definition at line 136 of file xfcell.cxx.

References XFRow::GetOwnerTable(), XFRow::GetRow(), GetTableColName(), XFTable::GetTableName(), XFTable::IsSubTable(), m_nCol, m_pOwnerRow, and name.

Referenced by LwpFormulaTools::GetCellAddr(), and XFTable::GetTableName().

◆ GetColSpaned()

sal_Int32 XFCell::GetColSpaned ( ) const
inline

@descr return cell column span property.

Definition at line 190 of file xfcell.hxx.

References m_nColSpaned.

Referenced by LwpTableLayout::FindSplitColMark().

◆ GetSubTable()

const XFTable * XFCell::GetSubTable ( ) const
inline

Definition at line 145 of file xfcell.hxx.

References m_pSubTable.

Referenced by XFTable::AddRow(), and XFTable::ContainsTable().

◆ SetCol()

void XFCell::SetCol ( sal_Int32  col)
inline

@descr Set cell column id.

Definition at line 180 of file xfcell.hxx.

References col, and m_nCol.

◆ SetColumnSpaned()

void XFCell::SetColumnSpaned ( sal_Int32  num)
inline

@descr If cell spans more the one column, then set column span.

Definition at line 160 of file xfcell.hxx.

References m_nColSpaned.

◆ SetFormula()

void XFCell::SetFormula ( const OUString &  formula)
inline

@descr Set cell formula.

Definition at line 170 of file xfcell.hxx.

References m_strFormula.

Referenced by LwpFormulaInfo::Convert().

◆ SetOwnerRow()

void XFCell::SetOwnerRow ( XFRow pRow)
inline

@descr Set cell owner row.

Definition at line 185 of file xfcell.hxx.

References m_pOwnerRow.

◆ SetProtect()

void XFCell::SetProtect ( bool  protect)
inline

@descr Set cell protected.

Definition at line 175 of file xfcell.hxx.

References m_bProtect.

Referenced by LwpCellLayout::ApplyProtect().

◆ SetRepeated()

void XFCell::SetRepeated ( sal_Int32  num)
inline

@descr Set whether the following cells use the same style and content.

Definition at line 165 of file xfcell.hxx.

References m_nRepeated.

Referenced by XFRow::ToXml().

◆ SetValue() [1/2]

void XFCell::SetValue ( const OUString &  value)

@descr Set cell number value.

Definition at line 130 of file xfcell.cxx.

References enumXFValueTypeFloat, m_eValueType, m_strValue, and value.

◆ SetValue() [2/2]

void XFCell::SetValue ( double  value)

@descr Set cell number value.

Definition at line 125 of file xfcell.cxx.

References SetValue(), and value.

Referenced by LwpCellList::Convert(), and SetValue().

◆ ToXml()

void XFCell::ToXml ( IXFStream pStrm)
overridevirtual

Member Data Documentation

◆ m_bProtect

bool XFCell::m_bProtect
private

Definition at line 157 of file xfcell.hxx.

Referenced by SetProtect(), and ToXml().

◆ m_eValueType

enumXFValueType XFCell::m_eValueType
private

Definition at line 154 of file xfcell.hxx.

Referenced by Add(), SetValue(), and ToXml().

◆ m_nCol

sal_Int32 XFCell::m_nCol
private

Definition at line 151 of file xfcell.hxx.

Referenced by GetCellName(), and SetCol().

◆ m_nColSpaned

sal_Int32 XFCell::m_nColSpaned
private

Definition at line 152 of file xfcell.hxx.

Referenced by GetColSpaned(), SetColumnSpaned(), and ToXml().

◆ m_nRepeated

sal_Int32 XFCell::m_nRepeated
private

Definition at line 153 of file xfcell.hxx.

Referenced by SetRepeated(), and ToXml().

◆ m_pOwnerRow

XFRow* XFCell::m_pOwnerRow
private

Definition at line 148 of file xfcell.hxx.

Referenced by GetCellName(), and SetOwnerRow().

◆ m_pSubTable

rtl::Reference<XFTable> XFCell::m_pSubTable
private

Definition at line 150 of file xfcell.hxx.

Referenced by Add(), GetSubTable(), and ToXml().

◆ m_strFormula

OUString XFCell::m_strFormula
private

Definition at line 156 of file xfcell.hxx.

Referenced by SetFormula(), and ToXml().

◆ m_strValue

OUString XFCell::m_strValue
private

Definition at line 155 of file xfcell.hxx.

Referenced by SetValue(), and ToXml().


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