Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

NotesGen Class Reference

A class for the generating HTML text of the presentation notes. More...

#include <notesgen.h>

List of all members.

Public Methods

 NotesGen ()
 Constructor.

 ~NotesGen ()
 Deconstructor.

QString generateText (PresentationBrowser *pb, int i)
 generate the HTML to be displayed.


Private Methods

QString recursiveGen (pXmlNode *node)
 generate the HTML to be displayed. Internal use only.

QString findStylePropertyInStyleRecursive (pXmlNode *node, const QString &val)
 Deprecated alias for findStyleProperty.

QString findStyleProperty (pXmlNode *node, const QString &val)
 Finds style property for node. Searches logically through defined nodes and back to master-page-style.

QString findStylePropertyWithParentDelimiter (pXmlNode *node, const QString &val, const QString &delimiter)
 Finds style property for node Searches back up pXmlNode tree till it encounters a node named delimiter. Used in text rendering.

QString getBullet (int depth, bool usecounter)
 Generates HTML for the bullets of ordered lists.


Private Attributes

bool flag
 Internal rendering flag.

pXmlNodecontent
 Pointer to content root.

pXmlNodestyle
 Pointer to style root.

int itemdepth
 Depth of current item in tree.

int olddepth
 Depth of old item in tree.

bool ol
 Ordered list = true.

pXmlNodecnode
 Pointer to node. Internal use only.

int depthcounter [MAX_DEPTH]
 Array of item depths.


Detailed Description

Author:
Ryan Rusaw

Definition at line 32 of file notesgen.h.


Constructor & Destructor Documentation

NotesGen::NotesGen  
 

NotesGen::~NotesGen  
 


Member Function Documentation

QString NotesGen::findStyleProperty pXmlNode   node,
const QString &    val
[private]
 

Parameters:
node  node to start search in
val  Property to search for
Returns:
value of property, or empty zero length string if not found.

QString NotesGen::findStylePropertyInStyleRecursive pXmlNode   node,
const QString &    val
[private]
 

See also:
findstylePropertyfindStyleProperty(pXmlNode *node,const QString &val);

QString NotesGen::findStylePropertyWithParentDelimiter pXmlNode   node,
const QString &    val,
const QString &    delimiter
[private]
 

Parameters:
node  node to start search in
val  Property to search for
delimiter  delimiter value
Returns:
value of property, or empty zero length string if not found.

QString NotesGen::generateText PresentationBrowser   pb,
int    i
 

Parameters:
pb  Pointer to the PresentationBrowser object that contains the content and style trees
i  Page to generate notes for
Returns:
A string that contains the HTML text.

QString NotesGen::getBullet int    depth,
bool    usecounter
[private]
 

QString NotesGen::recursiveGen pXmlNode   node [private]
 


Member Data Documentation

pXmlNode* NotesGen::cnode [private]
 

Definition at line 108 of file notesgen.h.

pXmlNode* NotesGen::content [private]
 

Definition at line 88 of file notesgen.h.

int NotesGen::depthcounter[MAX_DEPTH] [private]
 

Definition at line 112 of file notesgen.h.

bool NotesGen::flag [private]
 

Definition at line 84 of file notesgen.h.

int NotesGen::itemdepth [private]
 

Definition at line 96 of file notesgen.h.

bool NotesGen::ol [private]
 

Definition at line 104 of file notesgen.h.

int NotesGen::olddepth [private]
 

Definition at line 100 of file notesgen.h.

pXmlNode* NotesGen::style [private]
 

Definition at line 92 of file notesgen.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 2 21:28:29 2003 for PoqetPresenter by doxygen1.2.18