diff options
Diffstat (limited to 'src/documentation')
-rw-r--r-- | src/documentation/content/xdocs/book.xml | 1 | ||||
-rw-r--r-- | src/documentation/content/xdocs/changes.xml | 15 | ||||
-rw-r--r-- | src/documentation/content/xdocs/hslf/how-to-shapes.xml | 52 | ||||
-rw-r--r-- | src/documentation/content/xdocs/hssf/eval.xml | 4 | ||||
-rw-r--r-- | src/documentation/content/xdocs/hssf/quick-guide.xml | 21 | ||||
-rw-r--r-- | src/documentation/content/xdocs/index.xml | 14 | ||||
-rw-r--r-- | src/documentation/content/xdocs/status.xml | 12 |
7 files changed, 114 insertions, 5 deletions
diff --git a/src/documentation/content/xdocs/book.xml b/src/documentation/content/xdocs/book.xml index 36c50e6fe9..e8e6eb6741 100644 --- a/src/documentation/content/xdocs/book.xml +++ b/src/documentation/content/xdocs/book.xml @@ -57,6 +57,7 @@ <menu-item label="History and Future" href="historyandfuture.html"/> <menu-item label="Who We Are" href="who.html"/> <menu-item label="Resolutions" href="resolutions/index.html"/> + <menu-item label="Sponsors" href="http://www.apache.org/foundation/thanks.html" /> </menu> <menu label="Docs"> diff --git a/src/documentation/content/xdocs/changes.xml b/src/documentation/content/xdocs/changes.xml index f429eb361c..23ed0537c5 100644 --- a/src/documentation/content/xdocs/changes.xml +++ b/src/documentation/content/xdocs/changes.xml @@ -35,8 +35,19 @@ </devs> <!-- Don't forget to update status.xml too! --> - <release version="3.0.2-FINAL" date="2007-??-??"> - <action dev="POI-DEVELOPERS" type="fix">43877 and 39512 - Fix for handling mixed OBJ and CONTINUE records.</action> + <release version="3.0.2-FINAL" date="2008-??-??"> + <action dev="POI-DEVELOPERS" type="add">Support for tables in HSLF</action> + <action dev="POI-DEVELOPERS" type="fix">43781 - Fix for extracting text from TextBoxes HSLF in</action> + <action dev="POI-DEVELOPERS" type="fix">Improve JavaDocs relating to hssf font and fill colourings</action> + <action dev="POI-DEVELOPERS" type="add">44095, 44097, 44099 - [PATCH] Support for Mid, Replace and Substitute excel functions</action> + <action dev="POI-DEVELOPERS" type="add">44055 - [PATCH] Support for getting the from field from HSMF messages</action> + <action dev="POI-DEVELOPERS" type="add">43551 - [PATCH] Support for 1904 date windowing in HSSF (previously only supported 1900 date windowing)</action> + <action dev="POI-DEVELOPERS" type="add">41064 - [PATCH] Support for String continue records</action> + <action dev="POI-DEVELOPERS" type="add">27511 - [PATCH] Support for data validation, via DVRecord and DVALRecord</action> + </release> + + <release version="3.0.2-BETA1" date="2007-12-04"> + <action dev="POI-DEVELOPERS" type="fix">43877 and 39512 - Fix for handling mixed OBJ and CONTINUE records.</action> <action dev="POI-DEVELOPERS" type="fix">43807 - Throw an IllegalArgumentException if asked to create a merged region with invalid columns or rows, rather than writing out a corrupt file</action> <action dev="POI-DEVELOPERS" type="fix">43837 - [PATCH] Support for unicode NameRecords</action> <action dev="POI-DEVELOPERS" type="add">43721 - [PATCH] Support for Chart Title Format records</action> diff --git a/src/documentation/content/xdocs/hslf/how-to-shapes.xml b/src/documentation/content/xdocs/hslf/how-to-shapes.xml index df40776a53..36e4a11387 100644 --- a/src/documentation/content/xdocs/hslf/how-to-shapes.xml +++ b/src/documentation/content/xdocs/hslf/how-to-shapes.xml @@ -39,6 +39,7 @@ <li><link href="#Fill">How to work with slide/shape background</link></li> <li><link href="#Bullets">How to create bulleted lists</link></li> <li><link href="#Hyperlinks">Hyperlinks</link></li> + <li><link href="#Tables">Tables</link></li> </ul> </section> <section><title>Features</title> @@ -387,6 +388,57 @@ } </source> </section> + <anchor id="Tables"/> + <section><title>How to create tables</title> + <source> + //table data + String[][] data = { + {"INPUT FILE", "NUMBER OF RECORDS"}, + {"Item File", "11,559"}, + {"Vendor File", "300"}, + {"Purchase History File", "10,000"}, + {"Total # of requisitions", "10,200,038"} + }; + + SlideShow ppt = new SlideShow(); + + Slide slide = ppt.createSlide(); + //create a table of 5 rows and 2 columns + Table table = new Table(5, 2); + for (int i = 0; i < data.length; i++) { + for (int j = 0; j < data[i].length; j++) { + TableCell cell = table.getCell(i, j); + cell.setText(data[i][j]); + + RichTextRun rt = cell.getTextRun().getRichTextRuns()[0]; + rt.setFontName("Arial"); + rt.setFontSize(10); + + cell.setVerticalAlignment(TextBox.AnchorMiddle); + cell.setHorizontalAlignment(TextBox.AlignCenter); + } + } + + //set table borders + Line border = table.createBorder(); + border.setLineColor(Color.black); + border.setLineWidth(1.0); + table.setAllBorders(border); + + //set width of the 1st column + table.setColumnWidth(0, 300); + //set width of the 2nd column + table.setColumnWidth(1, 150); + + slide.addShape(table); + table.moveTo(100, 100); + + FileOutputStream out = new FileOutputStream("hslf-table.ppt"); + ppt.write(out); + out.close(); + + </source> + </section> </section> </section> diff --git a/src/documentation/content/xdocs/hssf/eval.xml b/src/documentation/content/xdocs/hssf/eval.xml index 548df78e76..d697eb082b 100644 --- a/src/documentation/content/xdocs/hssf/eval.xml +++ b/src/documentation/content/xdocs/hssf/eval.xml @@ -63,6 +63,8 @@ HSSFFormulaEvaluator evaluator = new HSSFFormulaEvaluator(sheet, wb); CellReference cellReference = new CellReference("B3"); HSSFRow row = sheet.getRow(cellReference.getRow()); HSSFCell cell = row.getCell(cellReference.getCol()); + +evaluator.setCurrentRow(row); HSSFFormulaEvaluator.CellValue cellValue = evaluator.evaluate(cell); switch (cellValue.getCellType()) { @@ -106,7 +108,7 @@ HSSFFormulaEvaluator evaluator = new HSSFFormulaEvaluator(sheet, wb); CellReference cellReference = new CellReference("B3"); HSSFRow row = sheet.getRow(cellReference.getRow()); HSSFCell cell = row.getCell(cellReference.getCol()); - +evaluator.setCurrentRow(row); if (cell!=null) { switch (<strong>evaluator.evaluateInCell</strong>(cell).getCellType()) { diff --git a/src/documentation/content/xdocs/hssf/quick-guide.xml b/src/documentation/content/xdocs/hssf/quick-guide.xml index 6dc4dc909b..ddbd447fd1 100644 --- a/src/documentation/content/xdocs/hssf/quick-guide.xml +++ b/src/documentation/content/xdocs/hssf/quick-guide.xml @@ -41,6 +41,7 @@ <li><link href="#CreateCells">How to create cells</link></li> <li><link href="#CreateDateCells">How to create date cells</link></li> <li><link href="#CellTypes">Working with different types of cells</link></li> + <li><link href="#Iterator">Iterate over rows and cells</link></li> <li><link href="#TextExtraction">Text Extraction</link></li> <li><link href="#Alignment">Aligning cells</link></li> <li><link href="#Borders">Working with borders</link></li> @@ -234,6 +235,26 @@ fileOut.close(); </source> </section> + <anchor id="Iterator"/> + <section><title>Iterate over rows and cells (including Java 5 foreach loops)</title> + <p>Sometimes, you'd like to just iterate over all the rows in + a sheet, or all the cells in a row. If you are using Java + 5 or later, then this is especially handy, as it'll allow the + new foreach loop support to work.</p> + <p>Luckily, this is very easy. HSSFRow defines a + <em>CellIterator</em> inner class to handle iterating over + the cells (get one with a call to <em>row.cellIterator()</em>), + and HSSFSheet provides a <em>rowIterator()</em> method to + give an iterator over all the rows.</p> + <source> + HSSFSheet sheet = wb.getSheetAt(0); + for (HSSFRow row : sheet.rowIterator()) { + for (HSSFCell cell : row.cellIterator()) { + // Do something here + } + } + </source> + </section> <anchor id="TextExtraction"/> <section><title>Text Extraction</title> <p>For most text extraction requirements, the standard diff --git a/src/documentation/content/xdocs/index.xml b/src/documentation/content/xdocs/index.xml index 8070093965..45b27b0b09 100644 --- a/src/documentation/content/xdocs/index.xml +++ b/src/documentation/content/xdocs/index.xml @@ -31,7 +31,19 @@ </header> <body> - <section><title>POI 3.0.1 Release</title> + <section><title>POI 3.0.2 BETA1 Release</title> + <p>The latest release of Apache POI is 3.0.2 BETA1 which was promoted to "Beta" on 04 December 2007. It contains a mixture of + new features and bug fixes, compared to 3.0.1. A full list of changes + is available in + <link href="./changes.html">the changelog</link>, and + <link href="http://www.apache.org/dyn/closer.cgi/poi/release/">download</link> + the source and binaries from your + <link href="http://www.apache.org/dyn/closer.cgi/poi/release/">local mirror</link>. + The release is also available from the central Maven repository under Group ID "org.apache.poi". + </p> + </section> + + <section><title>POI 3.0.1 Release</title> <p>The latest release of Apache POI (formerly Apache Jakarta POI), version 3.0.1, has now been released. It contains a mixture of new features and bug fixes, compared to 3.0. A full list of changes diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index e4ed1065f0..72761cf9c0 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -32,7 +32,17 @@ <!-- Don't forget to update changes.xml too! --> <changes> - <release version="3.0.2-FINAL" date="2007-??-??"> + <release version="3.0.2-FINAL" date="2008-??-??"> + <action dev="POI-DEVELOPERS" type="add">Support for tables in HSLF</action> + <action dev="POI-DEVELOPERS" type="fix">43781 - Fix for extracting text from TextBoxes HSLF in</action> + <action dev="POI-DEVELOPERS" type="fix">Improve JavaDocs relating to hssf font and fill colourings</action> + <action dev="POI-DEVELOPERS" type="add">44095, 44097, 44099 - [PATCH] Support for Mid, Replace and Substitute excel functions</action> + <action dev="POI-DEVELOPERS" type="add">44055 - [PATCH] Support for getting the from field from HSMF messages</action> + <action dev="POI-DEVELOPERS" type="add">43551 - [PATCH] Support for 1904 date windowing in HSSF (previously only supported 1900 date windowing)</action> + <action dev="POI-DEVELOPERS" type="add">41064 - [PATCH] Support for String continue records</action> + <action dev="POI-DEVELOPERS" type="add">27511 - [PATCH] Support for data validation, via DVRecord and DVALRecord</action> + </release> + <release version="3.0.2-BETA1" date="2007-12-04"> <action dev="POI-DEVELOPERS" type="fix">43877 - Fix for handling mixed OBJ and CONTINUE records</action> <action dev="POI-DEVELOPERS" type="fix">39512 - Fix for handling mixed OBJ and CONTINUE records</action> <action dev="POI-DEVELOPERS" type="fix">43837 - [PATCH] Support for unicode NameRecords</action> |