The Source for Java Technology Collaboration


How to plug your XSL theme for HTML or PDF export into GP 2.0

The following steps are applicable to HTML themes. However, plugging PDF themes is very similar

  1. Go into GanttProject installation folder ($GP_HOME hereafter) and find the folder $GP_HOME/plugins/org.ganttproject.impex.htmlpdf/resource/html-export-themes
  2. Create an arbitrary named folder there (e.g. my-custom-theme)
  3. Copy your XSL scripts into this folder. If your theme uses images, you may create a folder my-custom-theme/images and copy your images there (works only for HTML export)
  4. Edit $GP_HOME/plugins/org.ganttproject.impex.htmlpdf/plugin.xml file. Find tags
   <extension point="org.ganttproject.impex.htmlpdf.HTMLStylesheet">
       <theme name="Default theme" url="html-export-themes/default"/>
       <theme name="Striped Blue" url="html-export-themes/striped_blue"/>
   </extension>
and add your own theme there:
   <extension point="org.ganttproject.impex.htmlpdf.HTMLStylesheet">
       <theme name="MY CUSTOM THEME" url="html-export-themes/my-custom-theme"/>
       <theme name="Default theme" url="html-export-themes/default"/>
       <theme name="Striped Blue" url="html-export-themes/striped_blue"/>
   </extension>

-- DmitryBarashev - 14 Nov 2005

Topic GanttProjectCustomStylesheets . { Edit | Ref-By | Printable | Diffs r2 < r1 | More }
 XML java.net RSS

Revision r2 - 14 Nov 2005 - 16:02:31 - DmitryBarashev
Parents: WebHome > GanttProject > GanttProjectReleaseNotes20