diff --git a/Writer.php b/Spreadsheet/Excel/Writer.php similarity index 100% rename from Writer.php rename to Spreadsheet/Excel/Writer.php diff --git a/Writer/BIFFwriter.php b/Spreadsheet/Excel/Writer/BIFFwriter.php similarity index 100% rename from Writer/BIFFwriter.php rename to Spreadsheet/Excel/Writer/BIFFwriter.php diff --git a/Writer/Format.php b/Spreadsheet/Excel/Writer/Format.php similarity index 100% rename from Writer/Format.php rename to Spreadsheet/Excel/Writer/Format.php diff --git a/Writer/OLEwriter.php b/Spreadsheet/Excel/Writer/OLEwriter.php similarity index 100% rename from Writer/OLEwriter.php rename to Spreadsheet/Excel/Writer/OLEwriter.php diff --git a/Writer/Parser.php b/Spreadsheet/Excel/Writer/Parser.php similarity index 100% rename from Writer/Parser.php rename to Spreadsheet/Excel/Writer/Parser.php diff --git a/Writer/Validator.php b/Spreadsheet/Excel/Writer/Validator.php similarity index 100% rename from Writer/Validator.php rename to Spreadsheet/Excel/Writer/Validator.php diff --git a/Writer/Workbook.php b/Spreadsheet/Excel/Writer/Workbook.php similarity index 99% rename from Writer/Workbook.php rename to Spreadsheet/Excel/Writer/Workbook.php index ac9d3d9..9a6b0cd 100644 --- a/Writer/Workbook.php +++ b/Spreadsheet/Excel/Writer/Workbook.php @@ -495,6 +495,10 @@ class Spreadsheet_Excel_Writer_Workbook extends Spreadsheet_Excel_Writer_BIFFwri */ function _storeWorkbook() { + if (count($this->_worksheets) == 0) { + return true; + } + // Ensure that at least one worksheet has been selected. if ($this->_activesheet == 0) { $this->_worksheets[0]->selected = 1; diff --git a/Writer/Worksheet.php b/Spreadsheet/Excel/Writer/Worksheet.php similarity index 100% rename from Writer/Worksheet.php rename to Spreadsheet/Excel/Writer/Worksheet.php diff --git a/package.xml b/package.xml index c2ff1b1..f75bdd8 100644 --- a/package.xml +++ b/package.xml @@ -1,173 +1,255 @@ - - - - Spreadsheet_Excel_Writer - Package for generating Excel spreadsheets - Spreadsheet_Excel_Writer was born as a porting of the Spreadsheet::WriteExcel Perl module to PHP. - It allows writing of Excel spreadsheets without the need for COM objects. - It supports formulas, images (BMP) and all kinds of formatting for text and cells. - It currently supports the BIFF5 format (Excel 5.0), so functionality appeared in the latest Excel versions is not yet available. - - LGPL - - - xnoguer - Xavier Noguer - xnoguer@php.net - lead - - - tuupola - Mika Tuupola - tuupola@appelsiini.net - developer - - + + + Spreadsheet_Excel_Writer + pear.php.net + Package for generating Excel spreadsheets + + Spreadsheet_Excel_Writer was born as a porting of the Spreadsheet::WriteExcel Perl module to PHP. + It allows writing of Excel spreadsheets without the need for COM objects. + It supports formulas, images (BMP) and all kinds of formatting for text and cells. + It currently supports the BIFF5 format (Excel 5.0), so functionality appeared in the latest Excel versions is not yet available. + + + Xavier Noguer + xnoguer + xnoguer@php.net + yes + + + Mika Tuupola + tuupola + tuupola@appelsiini.net + yes + + 2007-03-27 + + + 0.9.1 + 0.9.1 + + + beta + beta + + LGPL + +- Fixed Bug #10399: Fatal error when closing workbook with no worksheets. + + + + + + + + + + + + + + + + + + + + + + + + 4.1.0 + + + 1.4.0b1 + + + OLE + pear.php.net + 0.5 + + + + + + - x.x.x - 200x-xx-xx - - - - OLE - - - beta - - - Writer.php - - BIFFwriter.php - Workbook.php - Format.php - Worksheet.php - Parser.php - Validator.php - - - + + 0.2 + 0.2 + + + beta + beta + + 2003-03-17 + LGPL + -added several formatting methods: setTextRotation(), setStrikeOut(), +setOutLine(), setShadow(), setScript(). +-fixed bug in Workbook::sheets() (Bjoern Schotte). +-fixed range for references in formulas (Edward). +-added support for external references in formulas. +-added support for comparisons in formulas. +-added support for strings in formulas. + + - - - 0.2 - beta - 2003-03-17 - - -added several formatting methods: setTextRotation(), setStrikeOut(), - setOutLine(), setShadow(), setScript(). - -fixed bug in Workbook::sheets() (Bjoern Schotte). - -fixed range for references in formulas (Edward). - -added support for external references in formulas. - -added support for comparisons in formulas. - -added support for strings in formulas. - - - - 0.3 - 2003-05-02 - - New features: - -added support for row ranges (JT Hughes) - -added method method Format::setUnLocked() (Ajit Dixit) - -added Worksheet::writeRow() and Worksheet::writeCol() - Bug fixes: - -fixed problem with unparenthesized expresions in formulas (Brent Laminack) - -fixed problems with non ISO-8859-1 characters (KUBO Atsuhiro) - -fixed swapping of columns in formulas (JT Hughes) - -fixed assorted bugs in tokenizing formulas (JT Hughes) - -fixed Worksheet::activate() (JT Hughes) - - - - 0.4 - 2003-08-21 - - New features: - -using OLE package (>= 0.3) to generate files bigger than 7MB - -changed setFgColor() and setBgColor()'s behavior to something more intuitive. - Bug fixes: - -fixed bug #25133, lowercase cell references (jkwiat03 at hotmail dot com) - -fixed Bug #23730, worksheet names containing spaces in formulas (Robin Ericsson) - -fixed Bug #24147, formulas ended in '0' (paul at classical dot com) - -fixed swapping of arguments in variable arguments functions (JT Hughes) - - - - 0.5 - 2003-10-01 - - New features: - -added rowcolToCell() utility method for easy writing of formula's cell references (JT Hughes). - -added Worksheet::setOutline() method (Herman Kuiper) - -added Format::setFontFamily() method (Donnie Miller) - Bug fixes: - -fixed bug #21, cyrillic characters in sheet references (arhip at goldentele dot com) - - - - 0.6 - 2003-11-15 - - New features: - - allow semicolon as argument separator (Axel Pratzner) - - added experimental Excel97 generation. You can test it with setVersion(): -$woorrkbook = new Spreadsheet_Excel_Writer('prueba_A.xls'); -$woorrkbook->setVersion(8); - Beware! this method will be deprecated in a future release (when - Excel97 becomes the default). It is only available for testing - purposes. Use it at your own risk. - - strings longer than 255 bytes are now available using the experimental - Excel97 generation. But not all Excel97 features are available yet! - Bug fixes: - - Fixed bug #225, error in writeUrl() (jamesn at tocquigny dot com) - - Fixed bug #59, retval undefined for writeRow() (Bertrand) - - - - 0.7 - 2004-02-27 - - New features: - - allow setting temp dir other than default using setTempDir() (using OLE 5.0 for this). - - added setMerge() for merging (only for experimental Excel97 generation) - - added setCountry() method. - - added setLocked() method. - Bug fixes: - - Fixed bug #415, typo in BIFF8 code (papercrane at reversefold dot com) - - - - 0.8 - 2004-06-22 - - New features: - - added hideScreenGridlines() (Paul Osman) - Bug fixes: - - Fixed SST table (long strings) (Bernd Jaenichen) - - Fixed bug #1218, SST table (boucher dot stephane at free dot fr) - - Fixed bug #781, insertBitmap ignores row height - - Fixed bug #578, setVPageBreaks doesn't handle multiple value arrays (natel at tocquigny dot com) - - - - 0.9.0 - 2005-11-21 - - New features: - - adding new methods Format::setVAlign() and Format::setHAlign() - - adding support for uncapitalized functions in formulas (ej: "=sum(B27:B31)") - - adding support for different charsets with method Worksheet::setInputEncoding() - - adding support for sheetnames longer than 31 chars when using setVersion(8). - Bug fixes: - - Fixed Bug #1796, wrong regular expression in _writeUrlInternal - - Fixed Bug #2363, wrong export filename with spaces - - Fixed Bug #2425, Error using writeFormula with Now() and TODAY() - - Fixed Bug #2876, German Umlauts destroy sheet references - - Fixed Bug #1706, Formulas refer to other Worksheets with "spezial" names don't work - - Fixed Bug #2748, setMargins(), setHeader() and setFooter() work in excel but not in openoffice. - - Fixed Bug #5698, preg_replace in _writeUrlInternal - - Fixed Bug #2823, Inpropper results from writeUrl() method - - - + + + 0.3 + 0.3 + + + stable + stable + + 2003-05-02 + LGPL + New features: + -added support for row ranges (JT Hughes) + -added method method Format::setUnLocked() (Ajit Dixit) + -added Worksheet::writeRow() and Worksheet::writeCol() +Bug fixes: + -fixed problem with unparenthesized expresions in formulas (Brent Laminack) + -fixed problems with non ISO-8859-1 characters (KUBO Atsuhiro) + -fixed swapping of columns in formulas (JT Hughes) + -fixed assorted bugs in tokenizing formulas (JT Hughes) + -fixed Worksheet::activate() (JT Hughes) + + + + + + 0.4 + 0.4 + + + stable + stable + + 2003-08-21 + LGPL + New features: + -using OLE package (>= 0.3) to generate files bigger than 7MB + -changed setFgColor() and setBgColor()'s behavior to something more intuitive. +Bug fixes: + -fixed bug #25133, lowercase cell references (jkwiat03 at hotmail dot com) + -fixed Bug #23730, worksheet names containing spaces in formulas (Robin Ericsson) + -fixed Bug #24147, formulas ended in '0' (paul at classical dot com) + -fixed swapping of arguments in variable arguments functions (JT Hughes) + + + + + 0.5 + 0.5 + + + stable + stable + + 2003-10-01 + LGPL + New features: + -added rowcolToCell() utility method for easy writing of formula's cell references (JT Hughes). + -added Worksheet::setOutline() method (Herman Kuiper) + -added Format::setFontFamily() method (Donnie Miller) +Bug fixes: + -fixed bug #21, cyrillic characters in sheet references (arhip at goldentele dot com) + + + + + 0.6 + 0.6 + + + stable + stable + + 2003-11-15 + LGPL + New features: + - allow semicolon as argument separator (Axel Pratzner) + - added experimental Excel97 generation. You can test it with setVersion(): + Beware! this method will be deprecated in a future release (when + Excel97 becomes the default). It is only available for testing + purposes. Use it at your own risk. + - strings longer than 255 bytes are now available using the experimental + Excel97 generation. But not all Excel97 features are available yet! +Bug fixes: + - Fixed bug #225, error in writeUrl() (jamesn at tocquigny dot com) + - Fixed bug #59, retval undefined for writeRow() (Bertrand) + + + + + 0.7 + 0.7 + + + stable + stable + + 2004-02-27 + LGPL + New features: + - allow setting temp dir other than default using setTempDir() (using OLE 5.0 for this). + - added setMerge() for merging (only for experimental Excel97 generation) + - added setCountry() method. + - added setLocked() method. +Bug fixes: + - Fixed bug #415, typo in BIFF8 code (papercrane at reversefold dot com) + + + + + 0.8 + 0.8 + + + stable + stable + + 2004-06-22 + LGPL + New features: + - added hideScreenGridlines() (Paul Osman) +Bug fixes: + - Fixed SST table (long strings) (Bernd Jaenichen) + - Fixed bug #1218, SST table (boucher dot stephane at free dot fr) + - Fixed bug #781, insertBitmap ignores row height + - Fixed bug #578, setVPageBreaks doesn't handle multiple value arrays (natel at tocquigny dot com) + + + + + 0.9.0 + 0.9.0 + + + stable + stable + + 2005-11-21 + LGPL + New features: +- adding new methods Format::setVAlign() and Format::setHAlign() +- adding support for uncapitalized functions in formulas (ej: "=sum(B27:B31)") +- adding support for different charsets with method Worksheet::setInputEncoding() +- adding support for sheetnames longer than 31 chars when using setVersion(8). +Bug fixes: +- Fixed Bug #1796, wrong regular expression in _writeUrlInternal +- Fixed Bug #2363, wrong export filename with spaces +- Fixed Bug #2425, Error using writeFormula with Now() and TODAY() +- Fixed Bug #2876, German Umlauts destroy sheet references +- Fixed Bug #1706, Formulas refer to other Worksheets with "spezial" names don't work +- Fixed Bug #2748, setMargins(), setHeader() and setFooter() work in excel but not in openoffice. +- Fixed Bug #5698, preg_replace in _writeUrlInternal +- Fixed Bug #2823, Inpropper results from writeUrl() method + + +