xsddoc/src/net/sf/xframe/xsddoc Task.java,1.20,1.21 Main.java,1.23,1.24 Processor.java,1.34,1.35
Kurt Riede <[email protected]> Sat, 26 Feb 2005 14:03:40 +0000
| Newsgroups | gmane.text.xml.xframe.xsddoc.devel |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xframe/xsddoc/src/net/sf/xframe/xsddoc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13544/src/net/sf/xframe/xsddoc
Modified Files:
Task.java Main.java Processor.java
Log Message:
new paramater: css (to provide an external CSS file)
Index: Task.java
===================================================================
RCS file: /cvsroot/xframe/xsddoc/src/net/sf/xframe/xsddoc/Task.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** Task.java 13 Dec 2004 13:23:27 -0000 1.20
--- Task.java 26 Feb 2005 14:03:38 -0000 1.21
***************
*** 49,52 ****
--- 49,53 ----
* <tr><td>out</td><td>destination directory for output files</td><td>Yes</td></tr>
* <tr><td>xml</td><td>If output should be XML instead of HTML. (yes | no). Default is no</td><td>No</td></tr>
+ * <tr><td>css</td><td>provide external CSS file</td><td>&</td></tr>
* <tr><td>title</td><td><b>deprecated</b>, see <code>doctitle</code> parameter</td><td>No</td></tr>
* <tr><td>doctitle</td><td>Include title for the package index(first) page (html-code)</td><td>No</td></tr>
***************
*** 410,413 ****
--- 411,423 ----
/**
+ * Setter method for css property.
+ *
+ * @param css location of XML schema
+ */
+ public void setCss(final String css) {
+ processor.setCss(css);
+ }
+
+ /**
* Setter method for verbose property.
*
Index: Processor.java
===================================================================
RCS file: /cvsroot/xframe/xsddoc/src/net/sf/xframe/xsddoc/Processor.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** Processor.java 13 Jan 2005 15:56:37 -0000 1.34
--- Processor.java 26 Feb 2005 14:03:38 -0000 1.35
***************
*** 188,191 ****
--- 188,194 ----
private String xsddocHome = ".";
+ /** Filename of optional external CSS file. */
+ private String css = null;
+
/** if verbose mode or not. */
private boolean verbose = true;
***************
*** 302,305 ****
--- 305,317 ----
/**
+ * Setter method for CSS property.
+ *
+ * @param theCss output external CSS file to use
+ */
+ public void setCss(final String theCss) {
+ this.css = theCss;
+ }
+
+ /**
* Setter method for verbose property.
*
***************
*** 580,583 ****
--- 592,598 ----
}
FileUtil.copyFile(getResource("/" + this.resourcePrefix + "/css/stylesheet.css"), out + FILE_SEP + "stylesheet.css");
+ if (css != null) {
+ FileUtil.copyFile(css, out + FILE_SEP + "stylesheet.css");
+ }
final String systemId = getSystemId(mainSchemaLocation);
final Document schema;
Index: Main.java
===================================================================
RCS file: /cvsroot/xframe/xsddoc/src/net/sf/xframe/xsddoc/Main.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** Main.java 9 Dec 2004 12:42:17 -0000 1.23
--- Main.java 26 Feb 2005 14:03:38 -0000 1.24
***************
*** 42,45 ****
--- 42,46 ----
* -a -hideAttributes hide attributes in overview pages
* -xml output as XML instead of HTML
+ * -css <css-file> provide external CSS file
* -version Only output version of xsddoc
* -d -debug Output debug messages
***************
*** 103,106 ****
--- 104,109 ----
} else if ("a".equals(option) || "hideAttributes".equals(option)) {
processor.setHideAttributes(true);
+ } else if ("c".equals(option) || "css".equals(option)) {
+ processor.setCss(args[++i]);
} else if ("x".equals(option) || "xml".equals(option)) {
processor.setXml(true);
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click