Planeshift
|
#include <pawstextbox.h>
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< PictureInfo > | picsInfo |
Hold all the info parse from xml document. |
Definition at line 1071 of file pawstextbox.h.
pawsMultiPageDocumentView::pawsMultiPageDocumentView | ( | ) |
pawsMultiPageDocumentView::pawsMultiPageDocumentView | ( | const pawsMultiPageDocumentView & | origin | ) |
virtual pawsMultiPageDocumentView::~pawsMultiPageDocumentView | ( | ) | [virtual] |
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
text | The xml content defined what to be display in the view |
Process the <content type="pic"></content> node in the xml.
Process the <content type="pic"></content> node in the xml
node | A <content type="pic"></content> 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>
text | The xml content defined what to be display in the view |
Reimplemented from pawsMultiPageTextBox.
csArray<PictureInfo> pawsMultiPageDocumentView::picsInfo [protected] |
Hold all the info parse from xml document.
Definition at line 1117 of file pawstextbox.h.