class ListNode: public EnvironmentNode

This base-class provides an additional interface for list-environments

Inheritance:

ListNode - EnvironmentNode - Node


Public Methods

[more] ListNode(unsigned int level = 0, int with_left_margin = 1)
The constructor initializes the list-node
[more] ~ListNode()
Destructor
[more]void writeHTML(int number_of_elements = -1) const
This method writes the node to the global output filestream Output_

Protected Fields

[more] is_sub_list_
If is_sub_list_[i] is 1, the i'th child-node is a sub-list node
[more]int level_
Indicates the level of the list
[more]int with_left_margin_
1, if the HTML-output should have a margin on the left side, else 0
[more]int max_length_
The maximum of the number of characters of the items

Protected Methods

[more]void writeHTMLHeader() const
This helper-method writes the HTML-header for the list to the global output filestream Output_
[more]void writeHTMLFooter() const
This helper-method writes the HTML-footer for the list to the global output filestream Output_
[more]void writeHTMLAllItems(int style) const
This helper-method writes all child-nodes to the global output filestream Output_
[more]void writeHTMLItems(int number_of_items) const
This helper-method writes the given number of items to the global output filestream Output_
[more]int getLength() const
This method returns the number of characters of the longest item


Inherited from EnvironmentNode:

Public Methods

oint isHTMLStepped() const
oint getNumberOfHTMLSteps() const

Protected Fields

oint number_of_html_steps_


Inherited from Node:

Public Methods

ovoid writeLaTeX() const
ovoid writeXML() const

Protected Fields

o child_nodes_


Documentation

This base-class provides an additional interface for list-environments.
o ListNode(unsigned int level = 0, int with_left_margin = 1)
The constructor initializes the list-node.

Parameters:
level - The level of the list-node.
with_left_margin - Indicates, if the HTML-output should have a margin on the left side.

o ~ListNode()
Destructor.

ovoid writeHTML(int number_of_elements = -1) const
This method writes the node to the global output filestream Output_. The format of the output must be HTML.

Parameters:
number_of_elements - The number of items to write. If -1, all items will be written NORMAL. If -2, all items will be written WEAK.

ovoid writeHTMLHeader() const
This helper-method writes the HTML-header for the list to the global output filestream Output_. It must be overloaded by all derivated classes.

ovoid writeHTMLFooter() const
This helper-method writes the HTML-footer for the list to the global output filestream Output_. It must be overloaded by all derivated classes.

ovoid writeHTMLAllItems(int style) const
This helper-method writes all child-nodes to the global output filestream Output_.

Parameters:
style - The style, how the items should be written.

ovoid writeHTMLItems(int number_of_items) const
This helper-method writes the given number of items to the global output filestream Output_.

Parameters:
number_of_items - The number of items to write.

oint getLength() const
This method returns the number of characters of the longest item.

Returns:
The length of the longest item.

o is_sub_list_
If is_sub_list_[i] is 1, the i'th child-node is a sub-list node.

oint level_
Indicates the level of the list.

oint with_left_margin_
1, if the HTML-output should have a margin on the left side, else 0.

oint max_length_
The maximum of the number of characters of the items.


Direct child classes:
ItemizeNode
EnumerateNode

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.