19package org.openoffice.xmerge.converter.xml.sxc;
21import java.util.ArrayList;
26import org.w3c.dom.Element;
27import org.w3c.dom.NamedNodeMap;
28import org.w3c.dom.Node;
29import org.w3c.dom.NodeList;
43 =
new ArrayList<SheetSettings>();
118 root.appendChild(configItem);
133 s.writeNode(
settings, configItemMapNamed);
137 addConfigItem(root,
"HasColumnRowHeaders",
"boolean", booleanValue);
138 root.appendChild(configItemMapNamed);
148 if(
name.equals(
"ActiveTable")) {
150 }
else if(
name.equals(
"HasColumnRowHeaders")) {
162 if (root.hasChildNodes()) {
164 NodeList nodeList = root.getChildNodes();
165 int len = nodeList.getLength();
166 for (
int i = 0;
i < len;
i++) {
167 Node child = nodeList.item(
i);
169 if (child.getNodeType() == Node.ELEMENT_NODE) {
170 String nodeName = child.getNodeName();
174 NamedNodeMap cellAtt = child.getAttributes();
176 Node configNameNode =
180 NodeList nodeList2 = child.getChildNodes();
181 int len2 = nodeList2.getLength();
183 for (
int j = 0; j < len2; j++) {
184 Node child2 = nodeList2.item(j);
185 if (child2.getNodeType() == Node.TEXT_NODE) {
186 s = child2.getNodeValue();
This is a class representing the different attributes for a worksheet contained in settings....
void readNode(Node root)
Reads document settings from xml and inits SheetSettings variables.
BookSettings(Node root)
Constructor for a BookSettings.
void addConfigItem(Node root, String attribute, String type, String value)
Adds an XML entry for a particular setting.
void setColumnRowHeaders(boolean hasColumnRowHeaders)
Set the flag indicating whether we have row/column headers.
ArrayList< SheetSettings > worksheetSettings
void writeNode(org.w3c.dom.Document settings, Node root)
Writes out a settings.xml entry for this BookSettings object.
org.w3c.dom.Document settings
A w3c Document.
boolean hasColumnRowHeaders
BookSettings(ArrayList< SheetSettings > worksheetSettings)
Constructor for a BookSettings.
void setActiveSheet(String activeSheet)
Sets the active sheet name.
String getActiveSheet()
Gets the active sheet name.
ArrayList< SheetSettings > getSheetSettings()
Gets the Vector of SheetSettings.
void addAttribute(String name, String value)
Sets a variable based on a String value read from XML.
This is a class representing the different attributes for a worksheet contained in settings....
This class is used for logging debug messages.
static final int TRACE
Trace messages.
static void log(int flag, String msg)
Log message based on the flag type.
Class containing static utility methods for handling XML trees.
static String getNodeInfo(Node node)
Returns the name and type of an XML DOM Node.
This interface contains constants for StarOffice XML tags, attributes (StarCalc cell types,...
String ATTRIBUTE_CONFIG_NAME
Attribute tag for config:name of element config:config-item.
String TAG_CONFIG_ITEM
Element tag for config:config-item.
String TAG_CONFIG_ITEM_MAP_ENTRY
Element tag for config:config-item-map-entry.
String ATTRIBUTE_CONFIG_TYPE
Attribute tag for config:type of element config:config-item.
String TAG_CONFIG_ITEM_MAP_NAMED
Element tag for config:config-item-map-named.
Document and PluginFactory implementations for XML based formats.
Provides general purpose utilities.
Provides interfaces for converting between two Document formats, and supports a "merge" interface for...