Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsMultiPageDocumentView Class Reference

#include <pawstextbox.h>

List of all members.

Public Member Functions

void Draw ()
 Draw the content include text and pictures.
 pawsMultiPageDocumentView ()
 pawsMultiPageDocumentView (const pawsMultiPageDocumentView &origin)
void Resize ()
 Resize a widget based on it's parent's size.
void SetText (const char *text)
 Set the content that would be displayed in the view.
virtual ~pawsMultiPageDocumentView ()

Protected Member Functions

void OrganizeContent (const char *text)
 Organize the content to display in the view.
unsigned int ProcessPictureInfo (iDocumentNode *node)
 Process the <content type="pic"></content> node in the xml.

Protected Attributes

csArray< PictureInfopicsInfo
 Hold all the info parse from xml document.

Detailed Description

Definition at line 1071 of file pawstextbox.h.


Constructor & Destructor Documentation

pawsMultiPageDocumentView::pawsMultiPageDocumentView ( )
pawsMultiPageDocumentView::pawsMultiPageDocumentView ( const pawsMultiPageDocumentView origin)
virtual pawsMultiPageDocumentView::~pawsMultiPageDocumentView ( ) [virtual]

Member Function Documentation

void pawsMultiPageDocumentView::Draw ( ) [virtual]

Draw the content include text and pictures.

Reimplemented from pawsMultiPageTextBox.

void pawsMultiPageDocumentView::OrganizeContent ( const char *  text) [protected]

Organize the content to display in the view.

Organize the content to display in the view. Text should be in the form of xml style

Parameters:
textThe xml content defined what to be display in the view
unsigned int pawsMultiPageDocumentView::ProcessPictureInfo ( iDocumentNode *  node) [protected]

Process the <content type="pic"></content> node in the xml.

Process the <content type="pic"></content> node in the xml

Parameters:
nodeA <content type="pic"></content> node
Returns:
How many pictures are defined to be displayed in a row in this node
void pawsMultiPageDocumentView::Resize ( ) [virtual]

Resize a widget based on it's parent's size.

Reimplemented from pawsMultiPageTextBox.

void pawsMultiPageDocumentView::SetText ( const char *  text)

Set the content that would be displayed in the view.

Set the content that would be displayed in the view. The text should be in form of xml style as following:

 <Contents>
	 <Content type="pic" align="0" padding="5 5 5 5" width="32" height="32" src="ButtonSpeak;/paws/real_skin/mouse.png;ButtonOpen;"></Content>
	 <Content type="text">text content</Content>
	 <Content type="pic" align="2" padding="5 5 5 5" width="32" height="32" src="ButtonConstruct;/paws/real_skin/mouse.png;ButtonBanking;"></Content>
 </Contents>
Parameters:
textThe xml content defined what to be display in the view

Reimplemented from pawsMultiPageTextBox.


Member Data Documentation

Hold all the info parse from xml document.

Definition at line 1117 of file pawstextbox.h.


The documentation for this class was generated from the following file: