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< SwHTMLTableLayoutCntsxNext
 The next content. More...
 
SwTableBoxpBox
 Only one of the following two pointers may be set! More...
 
std::shared_ptr< SwHTMLTableLayoutxTable
 A "table within a table". More...
 
const SwStartNodepStartNode
 During first run there are still no boxes. More...
 
sal_uInt8 nPass1Done
 The following counters indicate how often a pass has been done for this content. More...
 
sal_uInt8 nWidthSet
 How many times has the width been set? More...
 
bool const 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 75 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 xNext.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

const SwStartNode * SwHTMLTableLayoutCnts::GetStartNode ( ) const

Definition at line 83 of file htmltbl.cxx.

References SwTableBox::GetSttNd(), pBox, and 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 pBox.

Referenced by SwWriteTable::SwWriteTable().

bool SwHTMLTableLayoutCnts::HasNoBreakTag ( ) const
inline

Definition at line 80 of file htmltbl.hxx.

References bNoBreakTag.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

bool SwHTMLTableLayoutCnts::IsPass1Done ( sal_uInt8  nRef) const
inline

Definition at line 78 of file htmltbl.hxx.

References nPass1Done.

Referenced by SwHTMLTableLayout::AutoLayoutPass1().

bool SwHTMLTableLayoutCnts::IsWidthSet ( sal_uInt8  nRef) const
inline

Definition at line 75 of file htmltbl.hxx.

References 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 const SwHTMLTableLayoutCnts::bNoBreakTag
private

<NOBR>-Tag over complete content.

Definition at line 57 of file htmltbl.hxx.

Referenced by HasNoBreakTag().

sal_uInt8 SwHTMLTableLayoutCnts::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::nWidthSet
private

How many times has the width been set?

Definition at line 55 of file htmltbl.hxx.

Referenced by IsWidthSet().

SwTableBox* SwHTMLTableLayoutCnts::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::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::xNext
private

The next content.

Definition at line 40 of file htmltbl.hxx.

Referenced by GetNext().

std::shared_ptr<SwHTMLTableLayout> SwHTMLTableLayoutCnts::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: