Commit Graph

54 Commits

Author SHA1 Message Date
Mark Baker 8c688358ba Elimination of a potential XSS vulnerability in JAMA documentation
JAMA docs are no longer up-to-date anyway
2012-08-21 23:15:17 +01:00
Mark Baker cdf9dfdcbe Unit tests, plus a couple of minor validation bugfixes 2012-08-03 21:21:32 +01:00
Mark Baker 0b60b61104 Bugfix: takaakik) Work Item 15455 - getNestingLevel() Error on Excel5 Read
Bugfix: ix to Excel5 Reader when cell annotations are defined before their referenced text objects
2012-08-01 17:25:10 +01:00
Mark Baker 013c18b859 General - merged (with some localisation mods) from a pull request by alexgann - Add Currency detection to the Advanced Value Binder 2012-07-25 13:15:27 +01:00
Mark Baker dbe12c73a2 Formatting constant GENERAL should be FORMAT_GENERAL 2012-07-24 07:39:36 +01:00
Mark Baker 317f00b259 Bugfix to ensure that General format is not treated as a date format
despite containg e for epoch
OOCalc Reader modified to process number-rows-repeated
Modify OOCalc Reader to only read cells that containing data, or merged cells
(depending on setReadDataOnly setting)
2012-07-23 21:52:14 +01:00
Mark Baker 946ea73ddb Bugfixes to Chart Reader and Writer 2012-07-20 22:35:53 +01:00
Mark Baker 78b7019247 Set temporary directory for PCLZip wrapper 2012-07-14 10:32:36 +01:00
Progi1984 e1104f1862 ADDED : Implement support for AutoFilter in PHPExcel_Writer_Excel5 2012-07-13 18:20:06 +02:00
Mark Baker 57464cbf1a Bugfix: Support for "e" (epoch) date format mask
Rendered as a 4-digit CE year in non-Excel outputs
2012-06-26 20:55:27 +01:00
Mark Baker dccaf0b676 Remove embedded tcPDF from repository - this is now an optional choice of PDF renderer, and must be installed separately if required
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@91295 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-06-03 21:23:56 +00:00
Mark Baker ffdb1966b1 Doc Block changes
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@88003 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-03-19 00:25:29 +00:00
Mark Baker 4bb4f5ebc8 Doc Block changes
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@87642 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-03-11 19:24:20 +00:00
Mark Baker 891981928d Doc Block changes
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@87638 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-03-11 17:58:38 +00:00
Mark Baker 2526492ca5 Change copyright 2011 -> 2012
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@87248 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-03-03 21:16:09 +00:00
Progi1984 41199626d8 FIXED : Work item 8916 - Support for Rich-Text in PHPExcel_Writer_Excel5
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@87070 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-02-27 22:05:21 +00:00
Mark Baker 695edbf677 Minor tweaks to Excel functions to handle envelope cases
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85852 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-29 14:25:25 +00:00
Mark Baker 9c2ceed08d Minor performance tweaks
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85743 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-25 23:07:22 +00:00
Mark Baker 2cce9b754d Minor performance tweaks and adjustments to Excel functions to handle a few envelope test cases
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85742 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-25 22:07:35 +00:00
Mark Baker 24a9eb285c Use of empty() rather than count() to test if arrays are empty or not - simple performance tweak... empty() is over twice as fast as count()
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85344 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-16 12:34:22 +00:00
Mark Baker 7fce476f0c General: (atz) Work item 17024 - Unknown codepage: 10007
Additional Mac codepages

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83889 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-14 22:48:09 +00:00
Mark Baker bde593557d Minor performance optimisation: use $x+=3 instead of $x=$x+3
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83576 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-03 10:02:24 +00:00
Mark Baker a083de817e Use PHPExcel_Shared_File::sys_get_temp_dir() for temporary files directory where not explicitly specified
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83402 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-11-28 14:41:17 +00:00
Mark Baker bb34668146 Modify underlying PHP_OLE to support multiple streams
This is preparatory to providing support for workbook properties (and extended properties) in the Excel5 Writer, because properties are stored in the SummaryInformation and DocumentSummaryInformation streams, and not in the workbook stream.
Previously, PHP_OLE could only save a single stream, so this had to be the workbook stream; so document property information was discarded by the Excel5 Writer.

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@77804 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-08-05 14:04:07 +00:00
Mark Baker dd7674a36a Fixed charset code for CHARSET_ANSI_THAI
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@74692 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-05-30 22:16:45 +00:00
Mark Baker 631834b4d6 Minor performance improvement to date conversion routines
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@71598 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-04-09 18:16:08 +00:00
Mark Baker 9704feec19 Bugfix: Work item 15518 - PCLZip library issue
References to ZipArchive Constants when ZipArchive class isn't available

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@70307 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-03-14 13:52:49 +00:00
Mark Baker a8517724dc Bugfix: Work item 15379 - Named ranges with dot don't get parsed properly
Bugfix:	Work item 15096 - insertNewRowBefore fails to consistently update references
Bugfix:	"i" is not a valid character for Excel date format masks (in isDateTimeFormatCode() method)


git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@69064 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-02-21 12:21:20 +00:00
Mark Baker 7bb65068cd Oops... missing semi-colon (now fixed)
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@68483 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-02-11 23:12:39 +00:00
Mark Baker 5a7e7bb93f Bugfix: Work item 15308 - Writing to Variable No Longer Works. $_tmp_dir Missing in PHPExcel\PHPExcel\Shared\OLE\PPS\Root.php
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@68481 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-02-11 22:44:05 +00:00
Mark Baker 8218d04b0f Bugfix: Reduced false positives from isDateTimeFormatCode() method by suppressing testing within quoted strings (thanks to John Machin, author of xlrd, and the maintainer of xlwt for reading/writing Excel files in Python)
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@68308 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-02-10 12:26:50 +00:00
Mark Baker 8c0663486b Feature: Improved toFormattedString() handling for Currency and Accounting format masks to render currency symbols
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@67614 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-01-31 17:18:10 +00:00
Mark Baker 956cc7a2cf Bugfix: Work item 11576 - AdvancedValueBinder.php: String sometimes becomes a date when it shouldn't. Improved with a preg_match trap to reject unlikely formats for dates before passing value to PHPExcel_Shared_Date::stringToExcel() for final validation
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@67536 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-01-29 17:05:02 +00:00
Maarten Balliauw ccbb28167b Updated headers to reflect the new year. Happy new year 2011!
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@66338 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-01-03 09:20:10 +00:00
Mark Baker 6ed30f559a git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@66316 2327b42d-5241-43d6-9e2a-de5ac946f064 2011-01-02 12:14:18 +00:00
Mark Baker aa213fe236 Provide option to use PCLZip as an alternative to ZipArchive.
This allows the writing of Excel2007 files, even without ZipArchive enabled (it does require zlib), or when php_zip is one of the buggy PHP 5.2.6 or 5.2.8 versions.

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@65260 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-12-13 23:56:51 +00:00
Mark Baker 1def6cae75 Reworked OLE Reader logic to provide a single stream reader for all streams (Workbook, Properties and Document Properties) rather than duplicating code with separate stream readers for each
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@65086 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-12-10 00:28:18 +00:00
Mark Baker c5ea92442d Performance improvements for the Excel5 Reader and Writer
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64968 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-12-07 17:34:47 +00:00
Mark Baker f1e413bcc1 Performance improvements to the CSV Reader and Writer
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64769 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-12-03 17:48:10 +00:00
Mark Baker 5917b8c9b0 Fix call to DATEVALUE() and TIMEVALUE() methods for new function classes
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64766 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-12-03 14:28:57 +00:00
Mark Baker 787dae6334 Performance tweaks to the Calculation Engine to reduce memory usage. Splitting the functions.php into several smaller classes based on function category, so that only those category files actually used by functions in formulae will be included by the autoloader
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64719 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-12-02 17:56:33 +00:00
Mark Baker b25ced63cc Bugfix: Work item 13559 - PHPExcel_Writer_PDF does not handle cell borders correctly
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64268 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-11-24 14:12:12 +00:00
Mark Baker 9641c16df0 Memory and Performance Improvements
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64204 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-11-23 17:24:29 +00:00
Mark Baker 606f43a086 Performance tweaks, particularly using standard binary operations rather than matrix operations when working with single cell operands
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64078 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-11-20 23:36:20 +00:00
Mark Baker c0ae3911b6 Minor performance tweaks: changing PHPExcel_Shared_XMLWriter to extend the XMLWriter class rather than providing a wrapper for an instance of XMLWriter, with slight modifications to the writeRaw() method
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@63534 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-11-09 12:31:59 +00:00
Mark Baker 42b1e0ad76 Minor performance tweaks
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@62808 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-10-26 12:29:44 +00:00
Mark Baker ad9e4e2f0f Fix for a single character string in a call to PHPExcel_Shared_Date::stringToExcel() being treated as a valid date
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@62207 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-10-13 13:16:02 +00:00
Mark Baker f0131c0282 Bugfix: Modified PHPExcel_Shared_Date::isDateTimeFormatCode() to return false if format code begins with "_" or with "0 " to prevent false positives
These leading characters are most commonly associated with number, currency or accounting (or occasionally fraction) formats

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@61632 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-09-28 15:53:49 +00:00
Mark Baker a3a0aa73e7 Bugfix: Workitems 14260 & 14233 - Setting cell values to one char strings & Trouble reading one character string
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@61062 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-09-16 17:04:11 +00:00
Mark Baker 3f807a1c01 Bugfix: Workitem 14223 - Advanced Value Binder Not Working?
Fixed AdvancedValueBinder date handling (with support for a wider range of date formats), and added support for strings containing numeric values in scientific format (e.g. "-1.234e+5")

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@60740 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-09-10 14:57:07 +00:00