Commit Graph

1645 Commits

Author SHA1 Message Date
Nick Burch
8490e7b6cf Write tests for xssf StylesTable, now able to round-trip just fine
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@640005 13f79535-47bb-0310-9956-ffa450edef68
2008-03-22 15:09:37 +00:00
Nick Burch
cf8fde4dee Quite a bit more xssf support for cell styles. Also, get all the ooxml tests to pass cleanly, partly by disabling broken ones
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@640003 13f79535-47bb-0310-9956-ffa450edef68
2008-03-22 14:38:43 +00:00
Nick Burch
9f5217d825 Get it to the point that existing .xslx files can be loaded+saved, and opened by excel without warning, and new files can be loaded but with a warning
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@639779 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 19:54:35 +00:00
Nick Burch
22c794c1ba Excel objects to <cols/> in a sheet, so avoid outputting that
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@639766 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 19:14:43 +00:00
Nick Burch
a769181ff3 New openxml4j. Also, re-order some of the xssfworkbook writing out steps, so we can update references. Finally, some more tests
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@639723 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 17:31:14 +00:00
Nick Burch
000cafe678 Start to tie up the XSSF cell styles stuff with the StylesTable code
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@637692 13f79535-47bb-0310-9956-ffa450edef68
2008-03-17 00:10:17 +00:00
Nick Burch
86bac45ee8 Tidy up the xssf models stuff, by pushing more of the logic onto XSSFWorkbook
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@637688 13f79535-47bb-0310-9956-ffa450edef68
2008-03-16 23:30:51 +00:00
Nick Burch
fe2cd2d286 Start to tidy up the model loading, to reduce duplicated code, and make it cleaner
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@637680 13f79535-47bb-0310-9956-ffa450edef68
2008-03-16 22:44:10 +00:00
Nick Burch
7cec45a438 Start supporting styles on the XSSFWorkbook, and tests for it
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@637669 13f79535-47bb-0310-9956-ffa450edef68
2008-03-16 22:07:38 +00:00
Nick Burch
944da771ba Move the SharedStringsTable to a more generic package, and make a start on the styles table
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@637624 13f79535-47bb-0310-9956-ffa450edef68
2008-03-16 18:57:15 +00:00
Nick Burch
1f3c93908c Further workarounds for java being rubbish, by having a dedicated class to create concrete instances of interfaces for you
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@637610 13f79535-47bb-0310-9956-ffa450edef68
2008-03-16 16:51:58 +00:00
Nick Burch
379e682366 Update some more documentation, and put in a workaround for needing to create a RichTextString, without wanting to know the concrete type, but Java interfaces are crap
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@637607 13f79535-47bb-0310-9956-ffa450edef68
2008-03-16 16:24:23 +00:00
Nick Burch
84a1e2052d Patch from Paolo from bug #44581 - fix ColumnHelper bug, and start on xssf stylings
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@636729 13f79535-47bb-0310-9956-ffa450edef68
2008-03-13 11:50:50 +00:00
Nick Burch
c8afd832c7 Start on a factory for producing the right Workbook
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635902 13f79535-47bb-0310-9956-ffa450edef68
2008-03-11 12:47:16 +00:00
Nick Burch
f3c5b82d9d Fix a few ooxml unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635255 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 15:05:22 +00:00
Nick Burch
b084eb866d Update the word code to the new style ooxml stuff
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635253 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 14:39:36 +00:00
Nick Burch
be6166389f Get the powerpoint ooxml stuff converted over, and fix up a few tests
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635243 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 14:21:34 +00:00
Nick Burch
4f0afb0335 Start to rename hslf and hwpf in ooxml to xslf and xwpf
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635031 13f79535-47bb-0310-9956-ffa450edef68
2008-03-08 18:09:07 +00:00
Nick Burch
36df1396ed More on converting the excel extractor to the new code
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635030 13f79535-47bb-0310-9956-ffa450edef68
2008-03-08 18:06:41 +00:00
Nick Burch
b950c116dc Start updating the excel extractor to the new style code
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635026 13f79535-47bb-0310-9956-ffa450edef68
2008-03-08 17:39:56 +00:00
Nick Burch
9a8ee629c4 More shuffling of things out of src/scratchpad/ooxml-*
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635021 13f79535-47bb-0310-9956-ffa450edef68
2008-03-08 17:21:29 +00:00
Nick Burch
ec8af1de62 Start shuffling things out of the old src/scratchpad/ooxml-* directories
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635019 13f79535-47bb-0310-9956-ffa450edef68
2008-03-08 17:13:30 +00:00
Nick Burch
5f7b99ac45 Tweak method signature to match changes done in trunk
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@634991 13f79535-47bb-0310-9956-ffa450edef68
2008-03-08 15:38:29 +00:00
Ugo Cei
c2e6c06bb4 Applied patches for bug #44566, thanks to Paolo Mottadelli <paolo.moz@gmail.com>, <p.mottadelli@sourcesense.com>
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@634930 13f79535-47bb-0310-9956-ffa450edef68
2008-03-08 11:19:23 +00:00
Ugo Cei
f848978e7c Applied patch from bug #44535 contributed by Paolo Mottadelli <paolo.moz@gmail.com>, <p.mottadelli@sourcesense.com>.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@634772 13f79535-47bb-0310-9956-ffa450edef68
2008-03-07 18:23:52 +00:00
Ugo Cei
88aa367ec3 Applied patches for #44480, thanks to Paolo Mottadelli <p.mottadelli@sourcesense.com>, <paolo.moz@gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@632325 13f79535-47bb-0310-9956-ffa450edef68
2008-02-29 14:18:06 +00:00
Ugo Cei
8191f45e44 Return a list of all pictures for a workbook. This shows a discrepancy between the way pictures are stored in OLE2 files and the way they are stored in OOXML files. In the former case, pictures are associated with the workbook, in the latter they are referred to in "drawings" which are, in turn, referred to in sheets.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@629170 13f79535-47bb-0310-9956-ffa450edef68
2008-02-19 17:34:39 +00:00
Ugo Cei
c278230bb6 Moved test data file to own package.
Start writing some tests for parsing cell styles.

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@629092 13f79535-47bb-0310-9956-ffa450edef68
2008-02-19 12:56:51 +00:00
Ugo Cei
7d48f4d18e Load shared strings table when loading workbook.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@627407 13f79535-47bb-0310-9956-ffa450edef68
2008-02-13 13:43:42 +00:00
Ugo Cei
47ffd707d6 Correct implementation of cell coordinates conversion.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@619463 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 15:44:32 +00:00
Ugo Cei
5f5e3ce7d1 Fleshing out reading XSSF.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@619419 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 14:08:32 +00:00
Ugo Cei
154979d07d XSSF implementation of header and footer. Contributed by Paolo Mottadelli <p.mottadelli@sourcesense.com> as bugzilla issue #44330.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@619316 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 09:24:49 +00:00
Nick Burch
321375583d Have iterating over rows and cells work with JDK 1.5 foreach loops through java.lang.Iterable
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@618676 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 15:41:37 +00:00
Ugo Cei
df2b666ebd Introduce POIXMLDocument as common base class for all OOXML document types.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@618319 13f79535-47bb-0310-9956-ffa450edef68
2008-02-04 16:34:44 +00:00
Ugo Cei
9ce000ac3a Commit patch from Paolo <p.mottadelli@sourcesense.com> attached to bug #44319.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@616303 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 13:32:48 +00:00
Ugo Cei
2d33f4190a Initial support for loading workbooks off files.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@615275 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 17:16:14 +00:00
Nick Burch
c2d4b8b736 [ooxml branch] XSSFSheet get/setColumnWidth methods and tests, patch from Paolo
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@615258 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 16:25:14 +00:00
Ugo Cei
985bbe1696 Use new version of OpenXML4J that allows saving straight to an OutputStream without going through a file.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@615206 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 12:34:33 +00:00
Ugo Cei
2150018bac Implementation of XSSFWorkbook#getSheet(String name).
Implementation of XSSFWorkbook#removeSheet.

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@614877 13f79535-47bb-0310-9956-ffa450edef68
2008-01-24 14:09:34 +00:00
Ugo Cei
936e16ac26 Fix implementation of XSSFWorkbook#cloneSheet and provide unit test.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@614571 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 15:52:59 +00:00
Ugo Cei
9db93d7661 Implementation of XSSFRow#{get,set}Height and other methods.
Patch contributed by Paolo Mottadelli <paolo.moz@gmail.com>.

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@614205 13f79535-47bb-0310-9956-ffa450edef68
2008-01-22 14:26:10 +00:00
Ugo Cei
bd8185c485 Tests for XSSFWorkbook.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@614199 13f79535-47bb-0310-9956-ffa450edef68
2008-01-22 13:28:48 +00:00
Nick Burch
bf493e3b88 [ooxml-branch] Split the common ss interfaces into two sets - one that works with jdk 1.5 and has the full functionality, and another that works with jdk 1.4 and only has dummy functionality. Update build.xml to spit out two versions of the main classes, one for jdk 1.5 with the full interfaces, and one for jdk 1.4 with the dummy ones (but which is otherwise like the current behaviour). Also add readme explaining all this
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@613951 13f79535-47bb-0310-9956-ffa450edef68
2008-01-21 18:00:30 +00:00
Ugo Cei
537dcb7c77 Replace implementation with interface in return value declaration.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@612503 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 16:39:21 +00:00
Ugo Cei
0859571ede Some OOXML implementation and interface code, just some basic Row and Cell-level functionality.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@612495 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 16:08:22 +00:00