19package org.openoffice.xmerge.converter.xml.sxc;
21import org.w3c.dom.Node;
22import org.w3c.dom.Element;
23import org.w3c.dom.NamedNodeMap;
145 root.appendChild(namedRangeElement);
153 root.appendChild(namedExpressionElement);
167 String nodeName = root.getNodeName();
168 NamedNodeMap cellAtt = root.getAttributes();
174 Node tableBaseCellAddress =
176 Node tableCellRangeAddress =
180 name = tableNameNode.getNodeValue();
181 definition = tableCellRangeAddress.getNodeValue();
190 Node tableBaseCellAddress =
192 Node tableExpression=
196 name = tableNameNode.getNodeValue();
This is a class to define a Name Definition structure.
void writeNode(org.w3c.dom.Document doc, Node root)
Writes out a content.xml entry for this NameDefinition object.
String getBaseCellAddress()
Returns the base Cell address.
NameDefinition(String name, String definition, String baseCellAddress, boolean rangeType, boolean expressionType)
Constructor for a NameDefinition.
NameDefinition()
Default Constructor for a NameDefinition.
void readNode(Node root)
Reads document settings from xml and inits Settings variables.
String getDefinition()
Returns the definition itself.
boolean isRangeType()
Tests if definition is of type range.
boolean isExpressionType()
Tests if definition is of type expression.
void setDefinition(String newDefinition)
Sets the definition.
String getName()
Returns Name of the definition.
NameDefinition(Node root)
Constructor that takes a Node to build a NameDefinition.
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_TABLE_BASE_CELL_ADDRESS
Attribute tag for table:base-cell-address of element table:named-range.
String ATTRIBUTE_TABLE_CELL_RANGE_ADDRESS
Attribute tag for table:cell-range-address of element table:named-range.
String TAG_TABLE_NAMED_RANGE
Element tag for table:named-range.
String TAG_TABLE_NAMED_EXPRESSION
Element tag for table:named-expression.
String ATTRIBUTE_TABLE_EXPRESSION
Attribute tag for table:expression of element table:named-range.
String ATTRIBUTE_TABLE_NAME
Attribute tag for table:name of element table:table.
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...