HTML::Renderer::BoxHierarchy Class Reference

#include <BoxHierarchy.hpp>

List of all members.


Detailed Description

This class is used as a virtual "stack" in order to store the position of the given box in DOM hierarchy The idea is : CSS engine will then be feed with these objects to give the right CSS style properties (using the parsed selector / rules to match the right styles).


Public Types

typedef DOM::DOMString String
 The string class we are using.

Public Member Functions

 BoxHierarchy (const HTML::GenericElement::ElementID tagID, const String &ID=String(), const String &Class=String())
 The only constructor.
BoxHierarchyenterChild (Mapper &mapper, const HTML::GenericElement::ElementID tagID, const String &ID=String(), const String &Class=String()) const
 Return the new box hierarchy object for the given child.
const DOM::ElementgetElement () const
 Get the DOM element that match us.
bool isTaggedAs (const HTML::GenericElement::ElementID tagID) const
 Make sure the element is of specified type.
BoxHierarchynextChild (Mapper &mapper, const HTML::GenericElement::ElementID tagID, const String &ID=String(), const String &Class=String()) const
 Return the new box hierarchy object for the next sibling.

Friends

struct ::Tests::RendererTest
 Allow the test class to access us.
class Mapper
 Allow the mapper to use us directly.


Member Typedef Documentation

typedef DOM::DOMString HTML::Renderer::BoxHierarchy::String

The string class we are using.


Constructor & Destructor Documentation

HTML::Renderer::BoxHierarchy::BoxHierarchy ( const HTML::GenericElement::ElementID  tagID,
const String ID = String(),
const String Class = String() 
) [inline]

The only constructor.


Member Function Documentation

BoxHierarchy * HTML::Renderer::BoxHierarchy::enterChild ( Mapper mapper,
const HTML::GenericElement::ElementID  tagID,
const String ID = String(),
const String Class = String() 
) const

Return the new box hierarchy object for the given child.

Parameters:
mapper The mapper instance
tagID The HTML tag type
ID The ID attribute if set
Class The class attribute if set
Returns:
The newly allocated hierarchy object if successful, 0 if not

const DOM::Element* HTML::Renderer::BoxHierarchy::getElement (  )  const [inline]

Get the DOM element that match us.

Returns:
A pointer on the DOM element

bool HTML::Renderer::BoxHierarchy::isTaggedAs ( const HTML::GenericElement::ElementID  tagID  )  const [inline]

Make sure the element is of specified type.

Parameters:
tagID The HTML tag type
Returns:
true if it's the case, false else

BoxHierarchy * HTML::Renderer::BoxHierarchy::nextChild ( Mapper mapper,
const HTML::GenericElement::ElementID  tagID,
const String ID = String(),
const String Class = String() 
) const

Return the new box hierarchy object for the next sibling.

Parameters:
mapper The mapper instance
tagID The HTML tag type
ID The ID attribute if set
Class The class attribute if set
Returns:
The newly allocated hierarchy object if successful, 0 if not


Friends And Related Function Documentation

friend struct ::Tests::RendererTest [friend]

Allow the test class to access us.

friend class Mapper [friend]

Allow the mapper to use us directly.


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

(C) An X-Ryl669 project 2007

This document describes Unlimited Zooming Interface source code. UZI stands for Unlimited Zooming Interface, and source code license is