version 1.138, 2006/02/21 16:31:19
|
version 1.139, 2006/04/03 15:04:35
|
Line 51 ThotBool NumberLinks;
|
Line 51 ThotBool NumberLinks;
|
ThotBool WithToC; |
ThotBool WithToC; |
ThotBool IgnoreCSS; |
ThotBool IgnoreCSS; |
|
|
static struct _SubDoc *SubDocs; |
static struct _SubDoc *SubDocs = NULL; |
static char PSfile[MAX_PATH]; |
static char PSfile[MAX_PATH]; |
static char PPrinter[MAX_PATH]; |
static char PPrinter[MAX_PATH]; |
static char *DocPrintURL; |
static char *DocPrintURL; |
static Document DocPrint; |
static Document DocPrint; |
static int PaperPrint; |
static int PaperPrint; |
static int ManualFeed = PP_OFF; |
static int ManualFeed = PP_OFF; |
static int Orientation; |
static int Orientation; |
Line 1101 static void CloseMakeBook (Document docu
|
Line 1101 static void CloseMakeBook (Document docu
|
/* update internal links */ |
/* update internal links */ |
SetInternalLinks (document); |
SetInternalLinks (document); |
/* if the document changed force the browser mode */ |
/* if the document changed force the browser mode */ |
if (SubDocs == NULL) |
if (SubDocs) |
/* send a warning to the user to avoid to save this document */ |
/* send a warning to the user to avoid to save this document */ |
/* remove registered sub-documents */ |
/* remove registered sub-documents */ |
FreeSubDocTable (); |
FreeSubDocTable (); |
Line 1289 void MakeBook (Document doc, View view)
|
Line 1289 void MakeBook (Document doc, View view)
|
Element root, body; |
Element root, body; |
ElementType elType; |
ElementType elType; |
|
|
|
if (SubDocs) |
|
// another make_book is wi=orking |
|
return; |
/* stops all current transfers on this document */ |
/* stops all current transfers on this document */ |
StopTransfer (doc, 1); |
StopTransfer (doc, 1); |
/* simulate a transfert in the main document */ |
/* simulate a transfert in the main document */ |
Line 1298 void MakeBook (Document doc, View view)
|
Line 1301 void MakeBook (Document doc, View view)
|
elType = TtaGetElementType (root); |
elType = TtaGetElementType (root); |
elType.ElTypeNum = HTML_EL_BODY; |
elType.ElTypeNum = HTML_EL_BODY; |
body = TtaSearchTypedElement (elType, SearchForward, root); |
body = TtaSearchTypedElement (elType, SearchForward, root); |
|
|
if (body) |
if (body) |
GetIncludedDocuments (body, body, doc, NULL); |
GetIncludedDocuments (body, body, doc, NULL); |
} |
} |