java.net: Wiki

The Source for Java Technology Collaboration


 <<O>>  Difference Topic GanttProjectCustomStylesheets (2 - 14 Nov 2005 - Main.dbarashev)
Line: 1 to 1
 
META TOPICPARENT name="GanttProjectReleaseNotes20"

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

Added:
>
>
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

 <<O>>  Difference Topic GanttProjectCustomStylesheets (1 - 14 Nov 2005 - Main.dbarashev)
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="GanttProjectReleaseNotes20"

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

-- DmitryBarashev - 14 Nov 2005


Topic GanttProjectCustomStylesheets . { View | Diffs r2 < r1 | More }
 XML java.net RSS