version 1.23, 2008/04/04 14:09:22
|
version 1.24, 2008/05/07 13:49:04
|
Line 19
|
Line 19
|
GetSchemaFromDocType: Returns the name of the schema corresponding to |
GetSchemaFromDocType: Returns the name of the schema corresponding to |
a doc type. |
a doc type. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
char *GetSchemaFromDocType (DocumentType docType) |
const char *GetSchemaFromDocType (DocumentType docType) |
{ |
{ |
#ifdef TEMPLATES |
#ifdef TEMPLATES |
switch (docType) |
switch (docType) |
Line 44 char *GetSchemaFromDocType (DocumentType
|
Line 44 char *GetSchemaFromDocType (DocumentType
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
Set the value of a string attribute |
Set the value of a string attribute |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
void SetAttributeStringValue (Element el, int att, char* value) |
void SetAttributeStringValue (Element el, int att, const char* value) |
{ |
{ |
#ifdef TEMPLATES |
#ifdef TEMPLATES |
Document doc = TtaGetDocument(el); |
Document doc = TtaGetDocument(el); |
Line 504 ThotBool SaveDocumentToNewDoc(Document d
|
Line 504 ThotBool SaveDocumentToNewDoc(Document d
|
|
|
localFile = GetLocalPath (newdoc, newpath); |
localFile = GetLocalPath (newdoc, newpath); |
// update all links |
// update all links |
SetRelativeURLs (doc, newpath, "", FALSE, FALSE, FALSE); |
SetRelativeURLs (doc, newpath, NULL, FALSE, FALSE, FALSE); |
// prepare the new document view |
// prepare the new document view |
TtaExtractName (newpath, DirectoryName, DocumentName); |
TtaExtractName (newpath, DirectoryName, DocumentName); |
|
|