LibreOffice Module xmerge (master) 1
SpreadsheetDecoder.java
Go to the documentation of this file.
1/*
2 * This file is part of the LibreOffice project.
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 *
8 * This file incorporates work covered by the following license notice:
9 *
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
17 */
18
19package org.openoffice.xmerge.converter.xml.sxc;
20
21import java.io.IOException;
22import java.util.Iterator;
23
25
30public abstract class SpreadsheetDecoder {
31
37 public abstract int getNumberOfSheets();
38
45
51 public abstract BookSettings getSettings();
52
59
65 public abstract int getNumberOfRows();
66
72 public abstract int getNumberOfColumns();
73
79 public abstract String getSheetName();
80
86 public abstract int getColNumber();
87
93 public abstract int getRowNumber();
94
102 public abstract void setWorksheet(int sheetIndex) throws IOException;
103
111 public abstract boolean goToNextCell() throws IOException;
112
118 public abstract String getCellContents();
119
128 public abstract String getCellValue();
129
135 public abstract String getCellDataType();
136
142 public abstract Format getCellFormat();
143
151 public abstract void addDeviceContent(ConvertData cd) throws IOException;
152}
ConvertData is used as a container for passing Document objects in and out of the Convert class.
This is a class representing the different attributes for a worksheet contained in settings....
This class specifies the format for a given spreadsheet cell.
Definition: Format.java:26
This class is a abstract class for encoding a "Device" Document format into an alternative spreadshee...
abstract String getCellContents()
Return the contents of the active cell.
abstract Iterator< ColumnRowInfo > getColumnRowInfos()
Returns an Enumeration to a Vector of ColumnRowInfo.
abstract int getNumberOfColumns()
Returns the number of populated columns in the current WorkSheet.
abstract String getSheetName()
Returns the name of the current WorkSheet.
abstract BookSettings getSettings()
Returns the BookSettings.
abstract int getRowNumber()
Returns the number of the active row.
abstract Format getCellFormat()
Return a Format object describing the active cells formatting.
abstract void addDeviceContent(ConvertData cd)
Add the contents of a ConvertData to the workbook.
abstract String getCellDataType()
Return the data type of the active cell.
abstract String getCellValue()
Return the value of the active cell.
abstract boolean goToNextCell()
Move on the next populated cell in the current WorkSheet.
abstract int getColNumber()
Returns the number of the active column.
abstract void setWorksheet(int sheetIndex)
Sets the active WorkSheet.
abstract int getNumberOfSheets()
Returns the total number of sheets in the WorkBook.
abstract int getNumberOfRows()
Returns the number of populated rows in the current WorkSheet.
abstract Iterator< NameDefinition > getNameDefinitions()
Returns an Enumeration to a Vector of NameDefinition.
This is an interface used by the DiffAlgorithm and MergeAlgorithm to access a Document.
Definition: Iterator.java:27
Provides interfaces for converting between two Document formats, and supports a "merge" interface for...
Definition: Convert.java:19