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

#include <htmltbl.hxx>

Collaboration diagram for SwHTMLTableLayoutCnts:
[legend]

Public Member Functions

 SwHTMLTableLayoutCnts (const SwStartNode *pSttNd, std::shared_ptr< SwHTMLTableLayout > aTab, bool bNoBreakTag, std::shared_ptr< SwHTMLTableLayoutCnts > rNxt)
 
void SetTableBox (SwTableBox *pBx)
 
SwTableBoxGetTableBox () const
 
SwHTMLTableLayoutGetTable () const
 
const SwStartNodeGetStartNode () const
 
const std::shared_ptr< SwHTMLTableLayoutCnts > & GetNext () const
 Calculation of next node. More...
 
void SetWidthSet (sal_uInt8 nRef)
 
bool IsWidthSet (sal_uInt8 nRef) const
 
void SetPass1Done (sal_uInt8 nRef)
 
bool IsPass1Done (sal_uInt8 nRef) const
 
bool HasNoBreakTag () const
 

Private Attributes

std::shared_ptr< SwHTMLTableLayoutCntsm_xNext
 The next content. More...
 
SwTableBoxm_pBox
 Only one of the following two pointers may be set! More...
 
std::shared_ptr< SwHTMLTableLayoutm_xTable
 A "table within a table". More...
 
const SwStartNodem_pStartNode
 During first run there are still no boxes. More...
 
sal_uInt8 m_nPass1Done
 The following counters indicate how often a pass has been done for this content. More...
 
sal_uInt8 m_nWidthSet
 How many times has the width been set? More...
 
bool m_bNoBreakTag
 <NOBR>-Tag over complete content. More...
 

Detailed Description

Definition at line 38 of file htmltbl.hxx.

Constructor & Destructor Documentation

◆ SwHTMLTableLayoutCnts()

SwHTMLTableLayoutCnts::SwHTMLTableLayoutCnts ( const SwStartNode pSttNd,
std::shared_ptr< SwHTMLTableLayout aTab,
bool  bNoBreakTag,
std::shared_ptr< SwHTMLTableLayoutCnts rNxt 
)

Definition at line 81 of file htmltbl.cxx.

Member Function Documentation

◆ GetNext()

const std::shared_ptr< SwHTMLTableLayoutCnts > & SwHTMLTableLayoutCnts::GetNext ( ) const
inline

Calculation of next node.

Definition at line 72 of file htmltbl.hxx.

References m_xNext.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

◆ GetStartNode()

const SwStartNode * SwHTMLTableLayoutCnts::GetStartNode ( ) const

Definition at line 89 of file htmltbl.cxx.

References SwTableBox::GetSttNd(), m_pBox, and m_pStartNode.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

◆ GetTable()

SwHTMLTableLayout * SwHTMLTableLayoutCnts::GetTable ( ) const
inline

Definition at line 67 of file htmltbl.hxx.

References m_xTable.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

◆ GetTableBox()

SwTableBox * SwHTMLTableLayoutCnts::GetTableBox ( ) const
inline

Definition at line 65 of file htmltbl.hxx.

References m_pBox.

Referenced by SwWriteTable::SwWriteTable().

◆ HasNoBreakTag()

bool SwHTMLTableLayoutCnts::HasNoBreakTag ( ) const
inline

Definition at line 80 of file htmltbl.hxx.

References m_bNoBreakTag.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

◆ IsPass1Done()

bool SwHTMLTableLayoutCnts::IsPass1Done ( sal_uInt8  nRef) const
inline

Definition at line 78 of file htmltbl.hxx.

References m_nPass1Done, and nRef.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

◆ IsWidthSet()

bool SwHTMLTableLayoutCnts::IsWidthSet ( sal_uInt8  nRef) const
inline

Definition at line 75 of file htmltbl.hxx.

References m_nWidthSet, and nRef.

◆ SetPass1Done()

void SwHTMLTableLayoutCnts::SetPass1Done ( sal_uInt8  nRef)
inline

Definition at line 77 of file htmltbl.hxx.

References m_nPass1Done, and nRef.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

◆ SetTableBox()

void SwHTMLTableLayoutCnts::SetTableBox ( SwTableBox pBx)
inline

Definition at line 64 of file htmltbl.hxx.

References m_pBox.

◆ SetWidthSet()

void SwHTMLTableLayoutCnts::SetWidthSet ( sal_uInt8  nRef)
inline

Definition at line 74 of file htmltbl.hxx.

References m_nWidthSet, and nRef.

Member Data Documentation

◆ m_bNoBreakTag

bool SwHTMLTableLayoutCnts::m_bNoBreakTag
private

<NOBR>-Tag over complete content.

Definition at line 57 of file htmltbl.hxx.

Referenced by HasNoBreakTag().

◆ m_nPass1Done

sal_uInt8 SwHTMLTableLayoutCnts::m_nPass1Done
private

The following counters indicate how often a pass has been done for this content.

Therefore they are compared against a reference value. If 255 is reached the continue with 0. This avoids reinitialization on every resize. How many times has Pass 1 been called?

Definition at line 54 of file htmltbl.hxx.

Referenced by IsPass1Done(), and SetPass1Done().

◆ m_nWidthSet

sal_uInt8 SwHTMLTableLayoutCnts::m_nWidthSet
private

How many times has the width been set?

Definition at line 55 of file htmltbl.hxx.

Referenced by IsWidthSet(), and SetWidthSet().

◆ m_pBox

SwTableBox* SwHTMLTableLayoutCnts::m_pBox
private

Only one of the following two pointers may be set!

A Box.

Definition at line 43 of file htmltbl.hxx.

Referenced by GetStartNode(), GetTableBox(), and SetTableBox().

◆ m_pStartNode

const SwStartNode* SwHTMLTableLayoutCnts::m_pStartNode
private

During first run there are still no boxes.

In this case pStartNode is used instead of pBox.

Definition at line 48 of file htmltbl.hxx.

Referenced by GetStartNode().

◆ m_xNext

std::shared_ptr<SwHTMLTableLayoutCnts> SwHTMLTableLayoutCnts::m_xNext
private

The next content.

Definition at line 40 of file htmltbl.hxx.

Referenced by GetNext().

◆ m_xTable

std::shared_ptr<SwHTMLTableLayout> SwHTMLTableLayoutCnts::m_xTable
private

A "table within a table".

Definition at line 44 of file htmltbl.hxx.

Referenced by GetTable().


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