// handler.startDTD("ganttproject.sourceforge.net",
// "-//GanttProject.org//DTD GanttProject-1.x//EN",
// "http://ganttproject.sourceforge.net/dtd/ganttproject.dtd");
// handler.endDTD();
//
AttributesImpl attrs = new AttributesImpl();
handler.startElement("", "ganttproject-options",
"ganttproject-options", attrs);
//
attrs.addAttribute("", "selection", "selection", "CDATA", language
.getText("shortLanguage"));
handler.startElement("", "language", "language", attrs);
handler.endElement("", "language", "language");
attrs.clear();
// write the task Color
/*
* Color color = getUIConfiguration().getTaskColor();
* attrs.addAttribute("", "red", "red", "CDATA", ""+color.getRed());
* attrs.addAttribute("", "green", "green", "CDATA",
* ""+color.getGreen()); attrs.addAttribute("", "blue", "blue",
* "CDATA", ""+color.getBlue()); handler.startElement("",
* "task-color", "task-color", attrs); handler.endElement("",
* "task-color", "task-color"); attrs.clear();
*/
Color resourceColor = myUIConfig.getResourceColor();
if (resourceColor != null)
attrs.addAttribute("", "resources", "resources", "CDATA", ""
+ ColorConvertion.getColor(resourceColor));
Color resourceOverloadColor = myUIConfig.getResourceOverloadColor();
if (resourceOverloadColor != null)
attrs.addAttribute("", "resourcesOverload",
"resourcesOverload", "CDATA", ""
+ ColorConvertion
.getColor(resourceOverloadColor));
Color resourceUnderloadColor = myUIConfig
.getResourceUnderloadColor();
if (resourceUnderloadColor != null)
attrs.addAttribute("", "resourcesUnderload",
"resourcesUnderload", "CDATA", ""
+ ColorConvertion
.getColor(resourceUnderloadColor));
Color weekEndColor = myUIConfig.getWeekEndColor();
if (weekEndColor != null)
attrs.addAttribute("", "weekEnd", "weekEnd", "CDATA", ""
+ ColorConvertion.getColor(weekEndColor));
Color daysOffColor = myUIConfig.getDayOffColor();
if (daysOffColor != null)
attrs.addAttribute("", "daysOff", "daysOff", "CDATA", ""
+ ColorConvertion.getColor(daysOffColor));
handler.startElement("", "colors", "colors", attrs);
handler.endElement("", "colors", "colors");
attrs.clear();
// Geometry of the window
addAttribute("x", "" + x, attrs);
addAttribute("y", "" + y, attrs);
addAttribute("width", "" + width, attrs);