src/inc/htmshell.h 1.21

1.21 2009/07/24 04:18:45 angie
Added htmStartDirDepth, so htmlWarnBox can generate a relative path to images with the correct number of ../'s depending on where the HTML comes from (used only in hgc's alignment index/ and body/ files now). Cleaned up code a bit.
Index: src/inc/htmshell.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/htmshell.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -b -B -U 4 -r1.20 -r1.21
--- src/inc/htmshell.h	26 Apr 2007 22:21:42 -0000	1.20
+++ src/inc/htmshell.h	24 Jul 2009 04:18:45 -0000	1.21
@@ -55,8 +55,12 @@
 
 void htmStartWithHead(FILE *f, char *head, char *title);
 /* Write the start of a stand alone .html file, plus head info */
 
+void htmStartDirDepth(FILE *f, char *title, int dirDepth);
+/* Write the start of a stand alone .html file.  dirDepth is the number of levels 
+ * beneath apache root that caller's HTML will appear to the web client.  
+ * E.g. if writing HTML from cgi-bin, dirDepth is 1; if trash/body/, 2. */
 
 void htmlEnd();
 /* Write the end of a cgi-generated html file */
 
@@ -79,11 +83,8 @@
 void htmlSetBgColor(int color);
 /* Set background color - needs to be called before htmlStart
  * or htmShell. */
 
-void htmlEchoInput();
-/* Echo the input string to the output. */
-
 void htmlBadVar(char *varName); 
 /* Complain about input variables. */
 
 void htmlImage(char *fileName, int width, int height);