summaryrefslogtreecommitdiff
path: root/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java
diff options
context:
space:
mode:
Diffstat (limited to 'xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java')
-rw-r--r--xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java
index 82ab17fafaca..a8c971695fb2 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java
@@ -53,15 +53,6 @@ import org.w3c.dom.NodeList;
public abstract class SxcDocumentSerializer implements OfficeConstants,
DocumentSerializer {
- /** The cell foreground <code>Color</code>. */
- private Color foreground = Color.black;
-
- /** The cell background <code>Color</code>. */
- private Color background = Color.white;
-
- /** The cell format. */
- private long format = 0;
-
/** <code>Format</code> object describing the cell. */
private Format fmt = null;
@@ -85,9 +76,6 @@ public abstract class SxcDocumentSerializer implements OfficeConstants,
*/
private ArrayList<ColumnRowInfo> ColumnRowList;
- /** Width, in characters, of the current cell display data. */
- private int displayWidth = 0;
-
/**
* A <code>SpreadsheetEncoder</code> object for encoding to
* appropriate format.
@@ -270,8 +258,6 @@ public abstract class SxcDocumentSerializer implements OfficeConstants,
Debug.log(Debug.TRACE, "<NAMED:EXPRESSIONS>");
- NamedNodeMap att = node.getAttributes();
-
if (node.hasChildNodes()) {
NodeList nodeList = node.getChildNodes();
@@ -638,9 +624,6 @@ public abstract class SxcDocumentSerializer implements OfficeConstants,
if (tableValueTypeNode != null) {
- // Make sure we initialize to 0 the width of the current cell
- displayWidth = 0;
-
String cellType =
tableValueTypeNode.getNodeValue();
@@ -759,9 +742,6 @@ public abstract class SxcDocumentSerializer implements OfficeConstants,
}
}
- // Clear out format for current cell after it is written
- format = 0;
-
// Increase the column counter by the number of times the
// last cell was repeated.
colID += colsRepeated;
@@ -952,20 +932,5 @@ public abstract class SxcDocumentSerializer implements OfficeConstants,
return decimals;
}
- /*
- * Utility method to retrieve a Node attribute.
- */
- private String getAttribute (Node node, String attribute) {
- NamedNodeMap attrNodes = node.getAttributes();
-
- if (attrNodes != null) {
- Node attr = attrNodes.getNamedItem(attribute);
- if (attr != null) {
- return attr.getNodeValue();
- }
- }
- return null;
- }
-
}