HTML::Elements Namespace Reference


Detailed Description

This namespace is used to declare HTML elements.


Classes

class  Element
 The base element class The positions are set like specified in this schematic :. More...

Namespaces

namespace  Allocators
 The element allocator This can be used to preallocate a pool of HTML element in order to speed up parsing by removing memory allocation time.

Functions

bool allowedInID (const HTML::GenericElement::ElementID container, const HTML::GenericElement::ElementID child)
 Is the given child allowed in the parent ?
bool allowedInStrictID (const HTML::GenericElement::ElementID container, const HTML::GenericElement::ElementID child)
HTML::GenericElement::ElementID fromTag (const tchar *const input, const uint32 &length)
 Get the ID for a given element from the given tag name.
HTML::GenericElement::Level levelFromID (const HTML::GenericElement::ElementID type)
 Get the declared level for a given element from the given element ID.
HTML::GenericElement::Level levelFromStrictID (const HTML::GenericElement::ElementID type)


Function Documentation

bool HTML::Elements::allowedInID ( const HTML::GenericElement::ElementID  container,
const HTML::GenericElement::ElementID  child 
)

Is the given child allowed in the parent ?

Validation is based on http://www.w3.org/TR/html4/sgml/dtd.html

Parameters:
container The container tag ID
child The child tag ID
Returns:
true if the child is allowed in the container

bool HTML::Elements::allowedInStrictID ( const HTML::GenericElement::ElementID  container,
const HTML::GenericElement::ElementID  child 
)

HTML::GenericElement::ElementID HTML::Elements::fromTag ( const tchar *const  input,
const uint32 &  length 
)

Get the ID for a given element from the given tag name.

HTML::GenericElement::Level HTML::Elements::levelFromID ( const HTML::GenericElement::ElementID  type  ) 

Get the declared level for a given element from the given element ID.

HTML::GenericElement::Level HTML::Elements::levelFromStrictID ( const HTML::GenericElement::ElementID  type  ) 


(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