Main Page | Class List | File List | Class Members | File Members

CHtmlTable Interface Reference

CHtmlTable class operates the table data for XHTML. More...

#import <chtmltbl.h>

List of all members.

Public Member Functions

(id) init
 Initialize html table instance.

(void) dealloc
 Release the content of CSV data.

(XmlNode *) rootNode
 Get root node of XHTML table.

(void) setCaption:
 Set caption to the table.

(void) setBorder:
 Set/reset the border line for table.

(int) parseCsv:
 Generate XHTML table from CSV data.


Static Public Member Functions

(id) parseCsv:caption:withBorder:
 Generate XHTML table from CSV data.


Protected Attributes

XmlNode * table_root
XmlNode * caption_node


Detailed Description

CHtmlTable class operates the table data for XHTML.

Description
CHtmlTable class operates the table data for XHTML.


Member Function Documentation

- (void) CHtmlTable:
 

Release the content of CSV data.

Description
Release the content of CSV data.

- (id) CHtmlTable:
 

Initialize html table instance.

Returns:
Initialized object.
Description
Initialize html table instance.

- (int) CHtmlTable: (id) 
(CCsv *) 
(id)  csvtable
 

Generate XHTML table from CSV data.

Returns:
Result status. Zero means no error.
Parameters:
csvtable Source table.
Description
Generate XHTML table from CSV data.

+ (id) CHtmlTable: (id) 
(CCsv *) 
(id)  csvtable
caption: (id) 
(NSString *) 
(id)  caption
withBorder: (id) 
(BOOL) 
(id)  withborder
 

Generate XHTML table from CSV data.

Parameters:
csvtable Source table.
caption Caption of the table. You can pass this by giving nil.
withborder True when border line (frame) is required for the table.
Description
Generate XHTML table from CSV data.

- (XmlNode *) CHtmlTable:
 

Get root node of XHTML table.

Returns:
Root node of table.
Description

- (void) CHtmlTable: (id) 
(BOOL) 
(id)  flag
 

Set/reset the border line for table.

Parameters:
flag Set true if you need border.
Description
Set/reset the border line for the table. If you pass true, border is shown for HTML table.

- (void) CHtmlTable: (id) 
(NSString *) 
(id)  caption
 

Set caption to the table.

Parameters:
caption Caption string, If you pass nil, the current caption is removed.
Description
Set caption to the table. If you pass nil as caption, the current caption is removed.


Member Data Documentation

XmlNode* CHtmlTable::caption_node [protected]
 

Caption node

XmlNode* CHtmlTable::table_root [protected]
 

Root node of XHTML table.


The documentation for this interface was generated from the following file:
Generated on Wed Jul 14 18:34:59 2004 for Coconut by doxygen 1.3.6