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 > const &rTab, bool bNoBreakTag, std::shared_ptr< SwHTMLTableLayoutCnts > const &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 ( const SwStartNode pSttNd,
std::shared_ptr< SwHTMLTableLayout > const &  rTab,
bool  bNoBreakTag,
std::shared_ptr< SwHTMLTableLayoutCnts > const &  rNxt 
)

Definition at line 79 of file htmltbl.cxx.

Member Function Documentation

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().

const SwStartNode * SwHTMLTableLayoutCnts::GetStartNode ( ) const

Definition at line 87 of file htmltbl.cxx.

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

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

SwHTMLTableLayout* SwHTMLTableLayoutCnts::GetTable ( ) const
inline

Definition at line 67 of file htmltbl.hxx.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

SwTableBox* SwHTMLTableLayoutCnts::GetTableBox ( ) const
inline

Definition at line 65 of file htmltbl.hxx.

References m_pBox.

Referenced by SwWriteTable::SwWriteTable().

bool SwHTMLTableLayoutCnts::HasNoBreakTag ( ) const
inline

Definition at line 80 of file htmltbl.hxx.

References m_bNoBreakTag.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

bool SwHTMLTableLayoutCnts::IsPass1Done ( sal_uInt8  nRef) const
inline

Definition at line 78 of file htmltbl.hxx.

References m_nPass1Done.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

bool SwHTMLTableLayoutCnts::IsWidthSet ( sal_uInt8  nRef) const
inline

Definition at line 75 of file htmltbl.hxx.

References m_nWidthSet.

void SwHTMLTableLayoutCnts::SetPass1Done ( sal_uInt8  nRef)
inline

Definition at line 77 of file htmltbl.hxx.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

void SwHTMLTableLayoutCnts::SetTableBox ( SwTableBox pBx)
inline

Definition at line 64 of file htmltbl.hxx.

void SwHTMLTableLayoutCnts::SetWidthSet ( sal_uInt8  nRef)
inline

Definition at line 74 of file htmltbl.hxx.

Member Data Documentation

bool SwHTMLTableLayoutCnts::m_bNoBreakTag
private

<NOBR>-Tag over complete content.

Definition at line 57 of file htmltbl.hxx.

Referenced by HasNoBreakTag().

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().

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().

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(), and GetTableBox().

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().

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

The next content.

Definition at line 40 of file htmltbl.hxx.

Referenced by GetNext().

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

A "table within a table".

Definition at line 44 of file htmltbl.hxx.


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