GanttProjectCustomStylesheets < Projects < TWiki
|
TWiki . Projects . GanttProjectCustomStylesheets
|
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
- Go into GanttProject installation folder ($GP_HOME hereafter) and find the folder
$GP_HOME/plugins/org.ganttproject.impex.htmlpdf/resource/html-export-themes
- Create an arbitrary named folder there (e.g.
my-custom-theme)
- 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)
- 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
----- Revision r2 - 14 Nov 2005 - 16:02:31 - Main.dbarashev
|