#include <menusystem.h>
Public Types | |
| typedef std::list< Tag > | tag_list |
| typedef tag_list::iterator | tag_list_it |
| enum | What { ITEM, MENU, MENUCLOSE, UNDEFINED } |
Public Methods | |
| MenuSystem (tag_list tlist, Options options) | |
| ~MenuSystem () | |
| bool | operator! () const |
| std::string | get_html_menu () |
| returns the html menu. More... | |
| std::string | get_sitemap () |
| return s the sitemap. More... | |
| std::string | get_link (std::string path, Options o) |
| returns a lonly link. More... | |
Private Types | |
| typedef std::list< Node *> | node_list |
| typedef std::list< Node *>::iterator | node_list_it |
Private Methods | |
| bool | create_tree () |
| creates the menu tree. More... | |
| std::string | get_childs (Node *parent) |
| returns a html tree started with the given node. More... | |
| bool | is_in_position (std::string path) |
| returns true if the node is within the path. More... | |
| bool | is_position (std::string path) |
| returns true if the path == position. More... | |
| int | count_directories (std::string text) |
| count the directories within the path. More... | |
| std::string | create_item (Node *node, std::string highlight_type, std::string highlight_active_type, int indent_num, std::string indent_type) |
| creates an link from an node. More... | |
| std::string | get_local_childs (std::string path) |
| returns ahtml tree started with the given path. More... | |
| std::string | get_root_dir (Node *node) |
| returns a path to the root dir. eg: "../../../". More... | |
| std::string | get_pre (Node *node) |
| returns the pre option of a node. More... | |
| std::string | get_pre_forwards (Node *node) |
| returns the pre_forwards option of a root node. More... | |
| std::string | get_pre_backwards (Node *node) |
| returns the pre_backwards option of a root node. More... | |
| std::string | get_post (Node *node) |
| returns the post option of a node. More... | |
| std::string | get_post_forwards (Node *node) |
| returns the post_forwards option of a root node. More... | |
| std::string | get_post_backwards (Node *node) |
| returns the post_backwards option of a root node. More... | |
| std::string | get_href (Node *node) |
| returns the href option of a node (root path stabeliced). More... | |
| bool | is_extern_link (std::string href) |
| checks if the link is an external link. More... | |
| bool | is_local_link (std::string href) |
| checks if the link is an link at the current side. More... | |
| std::string | get_highlight_type (Node *node) |
| std::string | get_highlight_active_type (Node *node) |
| std::string | get_highlight_menu_type (Node *node) |
| std::string | get_highlight_active_menu_type (Node *node) |
| int | get_indent_num (Node *node) |
| std::string | get_indent_type (Node *node) |
| std::string | get_blockquote_principe (Node *node) |
| std::string | get_title_type (Node *node) |
| std::string | get_title_menu_type (Node *node) |
| std::string | get_title_highlight_type (Node *node) |
| std::string | get_title_highlight_menu_type (Node *node) |
| std::string | get_target (Node *node) |
Private Attributes | |
| std::string | current_path |
| std::string | current_subdir |
| bool | is_valid |
| bool | is_sitemap |
| tag_list | tlist |
| Node * | root |
| the current root node. More... | |
| Node * | root_bak |
| the real root node. More... | |
| node_list | nodes |
| list of all nodes. More... | |
| Options | options |
this class handles one menu system
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
count the directories within the path.
|
|
||||||||||||||||||||||||
|
creates an link from an node.
|
|
|
creates the menu tree.
|
|
|
|
|
|
returns a html tree started with the given node.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
returns the href option of a node (root path stabeliced).
|
|
|
returns the html menu.
|
|
|
|
|
|
|
|
||||||||||||
|
returns a lonly link.
|
|
|
returns ahtml tree started with the given path.
|
|
|
returns the post option of a node.
|
|
|
returns the post_backwards option of a root node.
|
|
|
returns the post_forwards option of a root node.
|
|
|
returns the pre option of a node.
|
|
|
returns the pre_backwards option of a root node.
|
|
|
returns the pre_forwards option of a root node.
|
|
|
returns a path to the root dir. eg: "../../../".
|
|
|
return s the sitemap.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checks if the link is an external link. returns true if the link starts with http: file: gopher: news: https: it simply checks if the string contains an ':' At the moment this function is very simple, maybe we have to improve it later. |
|
|
returns true if the node is within the path.
|
|
|
checks if the link is an link at the current side.
|
|
|
returns true if the path == position.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list of all nodes.
|
|
|
|
|
|
the current root node.
|
|
|
the real root node.
|
|
|
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001