version 1.24, 2008/05/07 13:49:04
|
version 1.25, 2008/05/14 13:30:27
|
Line 490 void DumpTemplateElement(Element el, Doc
|
Line 490 void DumpTemplateElement(Element el, Doc
|
} |
} |
|
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
|
* Dump subtree |
|
----------------------------------------------------------------------*/ |
|
void DumpSubtree(Element el, Document doc, int off) |
|
{ |
|
Element child = TtaGetFirstChild(el); |
|
int i; |
|
|
|
for(i=0; i<off; i++) |
|
printf(" "); |
|
DumpTemplateElement(el, doc); |
|
printf("\n"); |
|
|
|
while(child) |
|
{ |
|
DumpSubtree(child, doc, off+1); |
|
TtaNextSibling(&child); |
|
} |
|
|
|
} |
|
|
|
/*---------------------------------------------------------------------- |
* Save an opened document to a specified path in order to open. |
* Save an opened document to a specified path in order to open. |
* param doc Original doc to save |
* param doc Original doc to save |
* param newdoc Document where reopen it |
* param newdoc Document where reopen it |