LibreOffice Module lotuswordpro (master) 1
|
@descr Table cell object. More...
#include <xfcell.hxx>
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 XFTable * | GetSubTable () 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< 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 () |
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 | |
XFRow * | m_pOwnerRow |
rtl::Reference< XFTable > | m_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 |
@descr Table cell object.
Definition at line 74 of file xfcell.hxx.
XFCell::XFCell | ( | ) |
Definition at line 70 of file xfcell.cxx.
|
overridevirtual |
Definition at line 79 of file xfcell.cxx.
void XFContentContainer::Add | ( | const OUString & | text | ) |
@descr convenience function for add text content.
Definition at line 97 of file xfcontentcontainer.cxx.
|
virtual |
@descr Add content.
Reimplemented from XFContentContainer.
Definition at line 90 of file xfcontentcontainer.cxx.
|
overridevirtual |
@descr Add content for table cell.
Reimplemented from XFContentContainer.
Definition at line 83 of file xfcell.cxx.
References XFContentContainer::Add(), enumXFContentFrame, enumXFContentTable, enumXFContentText, enumXFValueTypeNone, XFContent::GetContentType(), m_eValueType, m_pSubTable, XFContentContainer::Reset(), and XFTable::SetOwnerCell().
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().
|
inline |
@descr return cell column span property.
Definition at line 190 of file xfcell.hxx.
References m_nColSpaned.
Referenced by LwpTableLayout::FindSplitColMark().
|
inline |
Definition at line 145 of file xfcell.hxx.
References m_pSubTable.
Referenced by XFTable::AddRow(), and XFTable::ContainsTable().
|
inline |
|
inline |
@descr If cell spans more the one column, then set column span.
Definition at line 160 of file xfcell.hxx.
References m_nColSpaned.
|
inline |
@descr Set cell formula.
Definition at line 170 of file xfcell.hxx.
References m_strFormula.
Referenced by LwpFormulaInfo::Convert().
|
inline |
|
inline |
@descr Set cell protected.
Definition at line 175 of file xfcell.hxx.
References m_bProtect.
Referenced by LwpCellLayout::ApplyProtect().
|
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().
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.
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().
|
overridevirtual |
@descr Output cell as xml element.
Reimplemented from XFContentContainer.
Definition at line 160 of file xfcell.cxx.
References IXFAttrList::AddAttribute(), IXFAttrList::Clear(), IXFStream::EndElement(), enumXFValueTypeNone, IXFStream::GetAttrList(), XFContent::GetStyleName(), GetValueType(), m_bProtect, m_eValueType, m_nColSpaned, m_nRepeated, m_pSubTable, m_strFormula, m_strValue, IXFStream::StartElement(), and XFContentContainer::ToXml().
Referenced by XFRow::ToXml().
|
private |
Definition at line 157 of file xfcell.hxx.
Referenced by SetProtect(), and ToXml().
|
private |
Definition at line 154 of file xfcell.hxx.
Referenced by Add(), SetValue(), and ToXml().
|
private |
Definition at line 151 of file xfcell.hxx.
Referenced by GetCellName(), and SetCol().
|
private |
Definition at line 152 of file xfcell.hxx.
Referenced by GetColSpaned(), SetColumnSpaned(), and ToXml().
|
private |
Definition at line 153 of file xfcell.hxx.
Referenced by SetRepeated(), and ToXml().
|
private |
Definition at line 148 of file xfcell.hxx.
Referenced by GetCellName(), and SetOwnerRow().
|
private |
Definition at line 150 of file xfcell.hxx.
Referenced by Add(), GetSubTable(), and ToXml().
|
private |
Definition at line 156 of file xfcell.hxx.
Referenced by SetFormula(), and ToXml().
|
private |
Definition at line 155 of file xfcell.hxx.
Referenced by SetValue(), and ToXml().