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

#include <htmltbl.hxx>

Public Member Functions

 SwHTMLTableLayoutCell (std::shared_ptr< SwHTMLTableLayoutCnts > const &rCnts, sal_uInt16 nRSpan, sal_uInt16 nCSpan, sal_uInt16 nWidthOpt, bool bPercentWidthOpt, bool bNWrapOpt)
 
void SetContents (std::shared_ptr< SwHTMLTableLayoutCnts > const &rCnts)
 Set or get content of a cell. More...
 
const std::shared_ptr< SwHTMLTableLayoutCnts > & GetContents () const
 
void SetProtected ()
 
void SetRowSpan (sal_uInt16 nRSpan)
 Set or get ROWSPAN/COLSPAN of cell. More...
 
sal_uInt16 GetRowSpan () const
 
sal_uInt16 GetColSpan () const
 
sal_uInt16 GetWidthOption () const
 
bool IsPercentWidthOption () const
 
bool HasNoWrapOption () const
 

Private Attributes

std::shared_ptr< SwHTMLTableLayoutCntsm_xContents
 Content of cell. More...
 
sal_uInt16 m_nRowSpan
 ROWSPAN of cell. More...
 
sal_uInt16 m_nColSpan
 COLSPAN of cell. More...
 
sal_uInt16 m_nWidthOption
 Given width of cell in Twip or %. More...
 
bool m_bPercentWidthOption: 1
 nWidth is %-value. More...
 
bool m_bNoWrapOption: 1
 NOWRAP-option. More...
 

Detailed Description

Definition at line 83 of file htmltbl.hxx.

Constructor & Destructor Documentation

SwHTMLTableLayoutCell::SwHTMLTableLayoutCell ( std::shared_ptr< SwHTMLTableLayoutCnts > const &  rCnts,
sal_uInt16  nRSpan,
sal_uInt16  nCSpan,
sal_uInt16  nWidthOpt,
bool  bPercentWidthOpt,
bool  bNWrapOpt 
)

Definition at line 93 of file htmltbl.cxx.

Member Function Documentation

sal_uInt16 SwHTMLTableLayoutCell::GetColSpan ( ) const
inline
const std::shared_ptr<SwHTMLTableLayoutCnts>& SwHTMLTableLayoutCell::GetContents ( ) const
inline
sal_uInt16 SwHTMLTableLayoutCell::GetRowSpan ( ) const
inline

Definition at line 109 of file htmltbl.hxx.

References m_nRowSpan.

Referenced by SwWriteTable::SwWriteTable().

sal_uInt16 SwHTMLTableLayoutCell::GetWidthOption ( ) const
inline

Definition at line 112 of file htmltbl.hxx.

References m_nWidthOption.

Referenced by SwHTMLTableLayout::AutoLayoutPass1(), and SwWriteTable::SwWriteTable().

bool SwHTMLTableLayoutCell::HasNoWrapOption ( ) const
inline

Definition at line 115 of file htmltbl.hxx.

References m_bNoWrapOption.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

bool SwHTMLTableLayoutCell::IsPercentWidthOption ( ) const
inline

Definition at line 113 of file htmltbl.hxx.

References m_bPercentWidthOption.

Referenced by SwHTMLTableLayout::AutoLayoutPass1(), and SwWriteTable::SwWriteTable().

void SwHTMLTableLayoutCell::SetContents ( std::shared_ptr< SwHTMLTableLayoutCnts > const &  rCnts)
inline

Set or get content of a cell.

Definition at line 102 of file htmltbl.hxx.

Referenced by HTMLTable::MakeTableLine().

void SwHTMLTableLayoutCell::SetProtected ( )
inline

Definition at line 341 of file htmltbl.hxx.

References m_nColSpan, m_nRowSpan, and m_xContents.

void SwHTMLTableLayoutCell::SetRowSpan ( sal_uInt16  nRSpan)
inline

Set or get ROWSPAN/COLSPAN of cell.

Definition at line 108 of file htmltbl.hxx.

Referenced by HTMLTable::MakeTableLine().

Member Data Documentation

bool SwHTMLTableLayoutCell::m_bNoWrapOption
private

NOWRAP-option.

Definition at line 92 of file htmltbl.hxx.

Referenced by HasNoWrapOption().

bool SwHTMLTableLayoutCell::m_bPercentWidthOption
private

nWidth is %-value.

Definition at line 91 of file htmltbl.hxx.

Referenced by IsPercentWidthOption().

sal_uInt16 SwHTMLTableLayoutCell::m_nColSpan
private

COLSPAN of cell.

Definition at line 88 of file htmltbl.hxx.

Referenced by GetColSpan(), and SetProtected().

sal_uInt16 SwHTMLTableLayoutCell::m_nRowSpan
private

ROWSPAN of cell.

Definition at line 87 of file htmltbl.hxx.

Referenced by GetRowSpan(), and SetProtected().

sal_uInt16 SwHTMLTableLayoutCell::m_nWidthOption
private

Given width of cell in Twip or %.

Definition at line 89 of file htmltbl.hxx.

Referenced by GetWidthOption().

std::shared_ptr<SwHTMLTableLayoutCnts> SwHTMLTableLayoutCell::m_xContents
private

Content of cell.

Definition at line 85 of file htmltbl.hxx.

Referenced by GetContents(), and SetProtected().


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