19package org.openoffice.xmerge.merger.merge;
21import org.w3c.dom.Node;
22import org.w3c.dom.Element;
23import org.w3c.dom.NodeList;
24import org.w3c.dom.NamedNodeMap;
52 NamedNodeMap attrNodes = node.getAttributes();
54 if (attrNodes !=
null) {
59 Element cell = (Element)node;
65 Node firstParaNode = paraNodes.item(0);
68 if (firstParaNode !=
null) {
69 Node parent = firstParaNode.getParentNode();
70 parent.removeChild(firstParaNode);
76 int len = attrNodes.getLength();
78 for (
int i = 0;
i < len; ) {
79 Node attr = attrNodes.item(
i);
88 attr.getNodeName()) &&
89 !attr.getNodeName().equals(
92 attrNodes.removeNamedItem(attr.getNodeName());
Utility methods to handle sheet XML tree.
static void emptyCell(ConverterCapabilities cc, Node node)
Empty the content of a cell value.
A ConverterCapabilities object is used by DocumentMerger implementations.
boolean canConvertAttribute(String tag, String attribute)
Test to see if the device document format supports the tag attribute in question.
This interface contains constants for StarOffice XML tags, attributes (StarCalc cell types,...
String TAG_TABLE_CELL
Element tag for table:table-cell.
String ATTRIBUTE_TABLE_NUM_COLUMNS_REPEATED
Attribute tag for table:number-columns-repeated of element table:table-cell.
String TAG_PARAGRAPH
Element tag for text:p.
Document and PluginFactory implementations for XML based formats.
Provides interfaces for converting between two Document formats, and supports a "merge" interface for...