TGHtmlLayoutContext Class Reference

#include <TGHtml.h>

Inheritance diagram for TGHtmlLayoutContext:

TObject TObject List of all members.

Public Member Functions

 TGHtmlLayoutContext ()
void LayoutBlock ()
void Reset ()
void PopIndent ()
void PushIndent ()
 TGHtmlLayoutContext ()
void LayoutBlock ()
void Reset ()
void PopIndent ()
void PushIndent ()

Public Attributes

TGHtmlfHtml
TGHtmlElementfPStart
TGHtmlElementfPEnd
int fHeadRoom
int fTop
int fBottom
int fLeft
int fRight
int fPageWidth
int fMaxX
int fMaxY
SHtmlMargin_tfLeftMargin
SHtmlMargin_tfRightMargin
TGHtmlfHtml
TGHtmlElementfPStart
TGHtmlElementfPEnd
SHtmlMargin_tfLeftMargin
SHtmlMargin_tfRightMargin

Protected Member Functions

void PushMargin (SHtmlMargin_t **ppMargin, int indent, int bottom, int tag)
void PopOneMargin (SHtmlMargin_t **ppMargin)
void PopMargin (SHtmlMargin_t **ppMargin, int tag)
void PopExpiredMargins (SHtmlMargin_t **ppMarginStack, int y)
void ClearMarginStack (SHtmlMargin_t **ppMargin)
TGHtmlElementGetLine (TGHtmlElement *pStart, TGHtmlElement *pEnd, int width, int minX, int *actualWidth)
void FixAnchors (TGHtmlElement *p, TGHtmlElement *pEnd, int y)
int FixLine (TGHtmlElement *pStart, TGHtmlElement *pEnd, int bottom, int width, int actualWidth, int leftMargin, int *maxX)
void Paragraph (TGHtmlElement *p)
void ComputeMargins (int *pX, int *pY, int *pW)
void ClearObstacle (int mode)
TGHtmlElementDoBreakMarkup (TGHtmlElement *p)
int InWrapAround ()
void WidenLine (int reqWidth, int *pX, int *pY, int *pW)
TGHtmlElementTableLayout (TGHtmlTable *p)
void PushMargin (SHtmlMargin_t **ppMargin, int indent, int bottom, int tag)
void PopOneMargin (SHtmlMargin_t **ppMargin)
void PopMargin (SHtmlMargin_t **ppMargin, int tag)
void PopExpiredMargins (SHtmlMargin_t **ppMarginStack, int y)
void ClearMarginStack (SHtmlMargin_t **ppMargin)
TGHtmlElementGetLine (TGHtmlElement *pStart, TGHtmlElement *pEnd, int width, int minX, int *actualWidth)
void FixAnchors (TGHtmlElement *p, TGHtmlElement *pEnd, int y)
int FixLine (TGHtmlElement *pStart, TGHtmlElement *pEnd, int bottom, int width, int actualWidth, int leftMargin, int *maxX)
void Paragraph (TGHtmlElement *p)
void ComputeMargins (int *pX, int *pY, int *pW)
void ClearObstacle (int mode)
TGHtmlElementDoBreakMarkup (TGHtmlElement *p)
int InWrapAround ()
void WidenLine (int reqWidth, int *pX, int *pY, int *pW)
TGHtmlElementTableLayout (TGHtmlTable *p)

Detailed Description

Definition at line 759 of file TGHtml.h.


Constructor & Destructor Documentation

TGHtmlLayoutContext::TGHtmlLayoutContext (  ) 

Definition at line 36 of file TGHtmlLayout.cxx.

References fHtml, fLeft, fLeftMargin, fMaxX, fMaxY, fPageWidth, fPEnd, fPStart, fRight, fRightMargin, and Reset().

TGHtmlLayoutContext::TGHtmlLayoutContext (  ) 


Member Function Documentation

void TGHtmlLayoutContext::LayoutBlock (  ) 

Definition at line 1074 of file TGHtmlLayout.cxx.

References CLEAR_First, ClearObstacle(), ComputeMargins(), DoBreakMarkup(), fBottom, FixAnchors(), FixLine(), fLeft, fMaxX, fMaxY, fPEnd, fPStart, GetLine(), InWrapAround(), p, PopIndent(), and y.

Referenced by TGHtml::LayoutDoc().

void TGHtmlLayoutContext::Reset (  ) 

Definition at line 54 of file TGHtmlLayout.cxx.

References ClearMarginStack(), fBottom, fHeadRoom, fLeftMargin, fRightMargin, and fTop.

Referenced by TGHtml::ResetLayoutContext(), and TGHtmlLayoutContext().

void TGHtmlLayoutContext::PopIndent (  ) 

Definition at line 1167 of file TGHtmlLayout.cxx.

References fHeadRoom, fRightMargin, Html_EndBLOCKQUOTE, and PopMargin().

Referenced by LayoutBlock().

void TGHtmlLayoutContext::PushIndent (  ) 

Definition at line 1155 of file TGHtmlLayout.cxx.

References fHeadRoom, fHtml, fLeftMargin, fRightMargin, TGHtml::GetMarginHeight(), TGHtml::GetMarginWidth(), Html_EndBLOCKQUOTE, and PushMargin().

Referenced by TGHtml::LayoutDoc().

void TGHtmlLayoutContext::PushMargin ( SHtmlMargin_t **  ppMargin,
int  indent,
int  bottom,
int  tag 
) [protected]

Definition at line 66 of file TGHtmlLayout.cxx.

References SHtmlMargin_t::fBottom, SHtmlMargin_t::fIndent, SHtmlMargin_t::fPNext, and SHtmlMargin_t::fTag.

Referenced by DoBreakMarkup(), and PushIndent().

void TGHtmlLayoutContext::PopOneMargin ( SHtmlMargin_t **  ppMargin  )  [protected]

Definition at line 97 of file TGHtmlLayout.cxx.

References SHtmlMargin_t::fPNext.

Referenced by ClearMarginStack(), ClearObstacle(), PopExpiredMargins(), and PopMargin().

void TGHtmlLayoutContext::PopMargin ( SHtmlMargin_t **  ppMargin,
int  tag 
) [protected]

Definition at line 109 of file TGHtmlLayout.cxx.

References fBottom, SHtmlMargin_t::fBottom, fHeadRoom, SHtmlMargin_t::fPNext, SHtmlMargin_t::fTag, and PopOneMargin().

Referenced by DoBreakMarkup(), and PopIndent().

void TGHtmlLayoutContext::PopExpiredMargins ( SHtmlMargin_t **  ppMarginStack,
int  y 
) [protected]

Definition at line 143 of file TGHtmlLayout.cxx.

References SHtmlMargin_t::fBottom, and PopOneMargin().

Referenced by ClearObstacle(), and ComputeMargins().

void TGHtmlLayoutContext::ClearMarginStack ( SHtmlMargin_t **  ppMargin  )  [protected]

Definition at line 161 of file TGHtmlLayout.cxx.

References PopOneMargin().

Referenced by Reset().

TGHtmlElement * TGHtmlLayoutContext::GetLine ( TGHtmlElement pStart,
TGHtmlElement pEnd,
int  width,
int  minX,
int *  actualWidth 
) [protected]

Definition at line 171 of file TGHtmlLayout.cxx.

References TGHtmlLi::fX, HTML_INDENT, Html_LI, Html_P, Html_Space, Html_Text, if(), p, STY_DT, STY_Invisible, STY_Preformatted, text(), and x.

Referenced by LayoutBlock().

void TGHtmlLayoutContext::FixAnchors ( TGHtmlElement p,
TGHtmlElement pEnd,
int  y 
) [protected]

Definition at line 425 of file TGHtmlLayout.cxx.

References Html_A, and p.

Referenced by LayoutBlock().

int TGHtmlLayoutContext::FixLine ( TGHtmlElement pStart,
TGHtmlElement pEnd,
int  bottom,
int  width,
int  actualWidth,
int  leftMargin,
int *  maxX 
) [protected]

Definition at line 436 of file TGHtmlLayout.cxx.

References ALIGN_Center, ALIGN_Right, TGHtmlSpaceElement::fAscent, TGHtmlLi::fX, Html_IMG, Html_LI, Html_Space, Html_Text, if(), image, IMAGE_ALIGN_AbsBottom, IMAGE_ALIGN_AbsMiddle, IMAGE_ALIGN_Bottom, IMAGE_ALIGN_Middle, max, p, STY_Invisible, text(), and y.

Referenced by LayoutBlock().

void TGHtmlLayoutContext::Paragraph ( TGHtmlElement p  )  [protected]

Definition at line 656 of file TGHtmlLayout.cxx.

References FontMetrics_t::fAscent, FontMetrics_t::fDescent, fHeadRoom, fHtml, fTop, TGHtml::GetFont(), TGFont::GetFontMetrics(), Html_Text, p, and text().

Referenced by DoBreakMarkup().

void TGHtmlLayoutContext::ComputeMargins ( int *  pX,
int *  pY,
int *  pW 
) [protected]

Definition at line 683 of file TGHtmlLayout.cxx.

References fBottom, fHeadRoom, SHtmlMargin_t::fIndent, fLeft, fLeftMargin, fPageWidth, fRight, fRightMargin, PopExpiredMargins(), x, and y.

Referenced by DoBreakMarkup(), LayoutBlock(), TableLayout(), and WidenLine().

void TGHtmlLayoutContext::ClearObstacle ( int  mode  )  [protected]

Definition at line 723 of file TGHtmlLayout.cxx.

References CLEAR_Both, CLEAR_First, CLEAR_Left, CLEAR_Right, fBottom, SHtmlMargin_t::fBottom, fHeadRoom, fLeftMargin, fRightMargin, PopExpiredMargins(), and PopOneMargin().

Referenced by DoBreakMarkup(), LayoutBlock(), and WidenLine().

TGHtmlElement * TGHtmlLayoutContext::DoBreakMarkup ( TGHtmlElement p  )  [protected]

Definition at line 822 of file TGHtmlLayout.cxx.

References ALIGN_Center, ALIGN_None, ALIGN_Right, CLEAR_Both, CLEAR_Left, CLEAR_Right, ClearObstacle(), ComputeMargins(), fBottom, TGHtmlElement::fFlags, TGHtmlHr::fH, fHeadRoom, fHtml, TGHtmlHr::fIs3D, fLeftMargin, fMaxX, fMaxY, TGHtmlElement::fPNext, fRightMargin, TGHtmlElement::fType, TGHtmlHr::fW, TGHtmlHr::fX, TGHtmlHr::fY, TGHtml::GetRulePadding(), TGHtml::GetRuleRelief(), Html_A, Html_ADDRESS, Html_APPLET, Html_BLOCKQUOTE, Html_BR, Html_CENTER, Html_DIR, Html_DIV, Html_DL, Html_EMBED, Html_EndADDRESS, Html_EndBLOCKQUOTE, Html_EndCENTER, Html_EndDIR, Html_EndDIV, Html_EndDL, Html_EndFORM, Html_EndH1, Html_EndH2, Html_EndH3, Html_EndH4, Html_EndH5, Html_EndH6, Html_EndMENU, Html_EndOL, Html_EndP, Html_EndPRE, Html_EndUL, Html_H1, Html_H2, Html_H3, Html_H4, Html_H5, Html_H6, Html_HR, Html_IMG, HTML_INDENT, Html_INPUT, Html_LI, Html_MENU, HTML_NewLine, Html_OL, Html_P, Html_PRE, HTML_RELIEF_RAISED, HTML_RELIEF_SUNKEN, Html_SELECT, Html_Space, Html_TABLE, Html_Text, Html_TEXTAREA, Html_UL, image, IMAGE_ALIGN_Left, IMAGE_ALIGN_Right, p, Paragraph(), PopMargin(), PushMargin(), strcasecmp, TableLayout(), x, and y.

Referenced by LayoutBlock().

int TGHtmlLayoutContext::InWrapAround (  )  [protected]

Definition at line 1042 of file TGHtmlLayout.cxx.

References SHtmlMargin_t::fBottom, fLeftMargin, and fRightMargin.

Referenced by LayoutBlock(), and WidenLine().

void TGHtmlLayoutContext::WidenLine ( int  reqWidth,
int *  pX,
int *  pY,
int *  pW 
) [protected]

Definition at line 1053 of file TGHtmlLayout.cxx.

References CLEAR_First, ClearObstacle(), ComputeMargins(), and InWrapAround().

Referenced by TableLayout().

TGHtmlElement * TGHtmlLayoutContext::TableLayout ( TGHtmlTable p  )  [protected]

Definition at line 1115 of file TGHtmlTable.cxx.

References align(), ALIGN_Center, ALIGN_Right, TGHtml::CellSpacing(), ComputeMargins(), DFLT_CELLPADDING, DFLT_HSPACE, DFLT_VSPACE, SHtmlStyle_t::fAlign, TGHtmlTable::fBorderWidth, fHtml, TGHtmlTable::fMaxW, TGHtmlTable::fMinW, TGHtmlTable::fNCol, for(), TGHtmlElement::fStyle, TGHtmlElement::fType, TGHtml::GetTokenName(), Html_TABLE, HtmlTrace_Table2, HtmlTrace_Table4, HtmlTraceMask, TGHtmlMarkupElement::MarkupArg(), N, n, p, strcasecmp, TGHtml::TableDimensions(), TRACE, TRACE_PUSH, w, WidenLine(), width, x, y, and ymax.

Referenced by DoBreakMarkup().

void TGHtmlLayoutContext::LayoutBlock (  ) 

void TGHtmlLayoutContext::Reset (  ) 

void TGHtmlLayoutContext::PopIndent (  ) 

void TGHtmlLayoutContext::PushIndent (  ) 

void TGHtmlLayoutContext::PushMargin ( SHtmlMargin_t **  ppMargin,
int  indent,
int  bottom,
int  tag 
) [protected]

void TGHtmlLayoutContext::PopOneMargin ( SHtmlMargin_t **  ppMargin  )  [protected]

void TGHtmlLayoutContext::PopMargin ( SHtmlMargin_t **  ppMargin,
int  tag 
) [protected]

void TGHtmlLayoutContext::PopExpiredMargins ( SHtmlMargin_t **  ppMarginStack,
int  y 
) [protected]

void TGHtmlLayoutContext::ClearMarginStack ( SHtmlMargin_t **  ppMargin  )  [protected]

TGHtmlElement* TGHtmlLayoutContext::GetLine ( TGHtmlElement pStart,
TGHtmlElement pEnd,
int  width,
int  minX,
int *  actualWidth 
) [protected]

void TGHtmlLayoutContext::FixAnchors ( TGHtmlElement p,
TGHtmlElement pEnd,
int  y 
) [protected]

int TGHtmlLayoutContext::FixLine ( TGHtmlElement pStart,
TGHtmlElement pEnd,
int  bottom,
int  width,
int  actualWidth,
int  leftMargin,
int *  maxX 
) [protected]

void TGHtmlLayoutContext::Paragraph ( TGHtmlElement p  )  [protected]

void TGHtmlLayoutContext::ComputeMargins ( int *  pX,
int *  pY,
int *  pW 
) [protected]

void TGHtmlLayoutContext::ClearObstacle ( int  mode  )  [protected]

TGHtmlElement* TGHtmlLayoutContext::DoBreakMarkup ( TGHtmlElement p  )  [protected]

int TGHtmlLayoutContext::InWrapAround (  )  [protected]

void TGHtmlLayoutContext::WidenLine ( int  reqWidth,
int *  pX,
int *  pY,
int *  pW 
) [protected]

TGHtmlElement* TGHtmlLayoutContext::TableLayout ( TGHtmlTable p  )  [protected]


Member Data Documentation

TGHtml* TGHtmlLayoutContext::fHtml

Definition at line 793 of file TGHtml.h.

Referenced by DoBreakMarkup(), TGHtml::LayoutDoc(), Paragraph(), PushIndent(), TableLayout(), and TGHtmlLayoutContext().

TGHtmlElement* TGHtmlLayoutContext::fPStart

Definition at line 794 of file TGHtml.h.

Referenced by LayoutBlock(), TGHtml::LayoutDoc(), and TGHtmlLayoutContext().

TGHtmlElement* TGHtmlLayoutContext::fPEnd

Definition at line 795 of file TGHtml.h.

Referenced by LayoutBlock(), and TGHtmlLayoutContext().

int TGHtmlLayoutContext::fHeadRoom

Definition at line 796 of file TGHtml.h.

Referenced by ClearObstacle(), ComputeMargins(), DoBreakMarkup(), TGHtml::LayoutDoc(), Paragraph(), PopIndent(), PopMargin(), PushIndent(), and Reset().

int TGHtmlLayoutContext::fTop

Definition at line 797 of file TGHtml.h.

Referenced by Paragraph(), and Reset().

int TGHtmlLayoutContext::fBottom

Definition at line 798 of file TGHtml.h.

Referenced by ClearObstacle(), ComputeMargins(), DoBreakMarkup(), LayoutBlock(), TGHtml::LayoutDoc(), PopMargin(), and Reset().

int TGHtmlLayoutContext::fLeft

Definition at line 799 of file TGHtml.h.

Referenced by ComputeMargins(), LayoutBlock(), TGHtml::LayoutDoc(), and TGHtmlLayoutContext().

int TGHtmlLayoutContext::fRight

Definition at line 799 of file TGHtml.h.

Referenced by ComputeMargins(), TGHtml::LayoutDoc(), and TGHtmlLayoutContext().

int TGHtmlLayoutContext::fPageWidth

Definition at line 800 of file TGHtml.h.

Referenced by ComputeMargins(), TGHtml::LayoutDoc(), and TGHtmlLayoutContext().

int TGHtmlLayoutContext::fMaxX

Definition at line 802 of file TGHtml.h.

Referenced by DoBreakMarkup(), LayoutBlock(), TGHtml::LayoutDoc(), and TGHtmlLayoutContext().

int TGHtmlLayoutContext::fMaxY

Definition at line 802 of file TGHtml.h.

Referenced by DoBreakMarkup(), LayoutBlock(), TGHtml::LayoutDoc(), and TGHtmlLayoutContext().

SHtmlMargin_t* TGHtmlLayoutContext::fLeftMargin

Definition at line 803 of file TGHtml.h.

Referenced by ClearObstacle(), ComputeMargins(), DoBreakMarkup(), InWrapAround(), PushIndent(), Reset(), and TGHtmlLayoutContext().

SHtmlMargin_t* TGHtmlLayoutContext::fRightMargin

Definition at line 804 of file TGHtml.h.

Referenced by ClearObstacle(), ComputeMargins(), DoBreakMarkup(), InWrapAround(), PopIndent(), PushIndent(), Reset(), and TGHtmlLayoutContext().

TGHtml* TGHtmlLayoutContext::fHtml

Definition at line 793 of file TGHtml.h.

TGHtmlElement* TGHtmlLayoutContext::fPStart

Definition at line 794 of file TGHtml.h.

TGHtmlElement* TGHtmlLayoutContext::fPEnd

Definition at line 795 of file TGHtml.h.

SHtmlMargin_t* TGHtmlLayoutContext::fLeftMargin

Definition at line 803 of file TGHtml.h.

SHtmlMargin_t* TGHtmlLayoutContext::fRightMargin

Definition at line 804 of file TGHtml.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:32 2011 for ROOT_528-00b_version by  doxygen 1.5.1