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 > xCnts, 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::SwHTMLTableLayoutCell ( std::shared_ptr< SwHTMLTableLayoutCnts xCnts,
sal_uInt16  nRSpan,
sal_uInt16  nCSpan,
sal_uInt16  nWidthOpt,
bool  bPercentWidthOpt,
bool  bNWrapOpt 
)

Definition at line 94 of file htmltbl.cxx.

Member Function Documentation

◆ GetColSpan()

sal_uInt16 SwHTMLTableLayoutCell::GetColSpan ( ) const
inline

◆ GetContents()

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

◆ GetRowSpan()

sal_uInt16 SwHTMLTableLayoutCell::GetRowSpan ( ) const
inline

Definition at line 109 of file htmltbl.hxx.

References m_nRowSpan.

Referenced by SwWriteTable::SwWriteTable().

◆ GetWidthOption()

sal_uInt16 SwHTMLTableLayoutCell::GetWidthOption ( ) const
inline

Definition at line 112 of file htmltbl.hxx.

References m_nWidthOption.

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

◆ HasNoWrapOption()

bool SwHTMLTableLayoutCell::HasNoWrapOption ( ) const
inline

Definition at line 115 of file htmltbl.hxx.

References m_bNoWrapOption.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

◆ IsPercentWidthOption()

bool SwHTMLTableLayoutCell::IsPercentWidthOption ( ) const
inline

Definition at line 113 of file htmltbl.hxx.

References m_bPercentWidthOption.

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

◆ SetContents()

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.

References m_xContents.

Referenced by HTMLTable::MakeTableLine().

◆ SetProtected()

void SwHTMLTableLayoutCell::SetProtected ( )
inline

Definition at line 341 of file htmltbl.hxx.

References m_nColSpan, m_nRowSpan, and m_xContents.

◆ SetRowSpan()

void SwHTMLTableLayoutCell::SetRowSpan ( sal_uInt16  nRSpan)
inline

Set or get ROWSPAN/COLSPAN of cell.

Definition at line 108 of file htmltbl.hxx.

References m_nRowSpan.

Referenced by HTMLTable::MakeTableLine().

Member Data Documentation

◆ m_bNoWrapOption

bool SwHTMLTableLayoutCell::m_bNoWrapOption
private

NOWRAP-option.

Definition at line 92 of file htmltbl.hxx.

Referenced by HasNoWrapOption().

◆ m_bPercentWidthOption

bool SwHTMLTableLayoutCell::m_bPercentWidthOption
private

nWidth is %-value.

Definition at line 91 of file htmltbl.hxx.

Referenced by IsPercentWidthOption().

◆ m_nColSpan

sal_uInt16 SwHTMLTableLayoutCell::m_nColSpan
private

COLSPAN of cell.

Definition at line 88 of file htmltbl.hxx.

Referenced by GetColSpan(), and SetProtected().

◆ m_nRowSpan

sal_uInt16 SwHTMLTableLayoutCell::m_nRowSpan
private

ROWSPAN of cell.

Definition at line 87 of file htmltbl.hxx.

Referenced by GetRowSpan(), SetProtected(), and SetRowSpan().

◆ m_nWidthOption

sal_uInt16 SwHTMLTableLayoutCell::m_nWidthOption
private

Given width of cell in Twip or %.

Definition at line 89 of file htmltbl.hxx.

Referenced by GetWidthOption().

◆ m_xContents

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

Content of cell.

Definition at line 85 of file htmltbl.hxx.

Referenced by GetContents(), SetContents(), and SetProtected().


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