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 bPrcWdthOpt, 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 IsPrcWidthOption () const
 
bool HasNoWrapOption () const
 

Private Attributes

std::shared_ptr< SwHTMLTableLayoutCntsxContents
 Content of cell. More...
 
sal_uInt16 nRowSpan
 ROWSPAN of cell. More...
 
sal_uInt16 nColSpan
 COLSPAN of cell. More...
 
sal_uInt16 const nWidthOption
 Given width of cell in Twip or %. More...
 
bool const bPrcWidthOption: 1
 nWidth is %-value. More...
 
bool const 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  bPrcWdthOpt,
bool  bNWrapOpt 
)

Definition at line 88 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 nRowSpan.

Referenced by SwWriteTable::SwWriteTable().

sal_uInt16 SwHTMLTableLayoutCell::GetWidthOption ( ) const
inline

Definition at line 112 of file htmltbl.hxx.

References nWidthOption.

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

bool SwHTMLTableLayoutCell::HasNoWrapOption ( ) const
inline

Definition at line 115 of file htmltbl.hxx.

References bNoWrapOption.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

bool SwHTMLTableLayoutCell::IsPrcWidthOption ( ) const
inline

Definition at line 113 of file htmltbl.hxx.

References bPrcWidthOption.

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 nColSpan, nRowSpan, and 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 const SwHTMLTableLayoutCell::bNoWrapOption
private

NOWRAP-option.

Definition at line 92 of file htmltbl.hxx.

Referenced by HasNoWrapOption().

bool const SwHTMLTableLayoutCell::bPrcWidthOption
private

nWidth is %-value.

Definition at line 91 of file htmltbl.hxx.

Referenced by IsPrcWidthOption().

sal_uInt16 SwHTMLTableLayoutCell::nColSpan
private

COLSPAN of cell.

Definition at line 88 of file htmltbl.hxx.

Referenced by GetColSpan(), and SetProtected().

sal_uInt16 SwHTMLTableLayoutCell::nRowSpan
private

ROWSPAN of cell.

Definition at line 87 of file htmltbl.hxx.

Referenced by GetRowSpan(), and SetProtected().

sal_uInt16 const SwHTMLTableLayoutCell::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::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: