Commit Graph

98 Commits

Author SHA1 Message Date
Mark Baker 63c5cbc98e Merge branch 'develop' of https://github.com/PHPOffice/PHPExcel into develop 2012-10-31 22:01:09 +00:00
Mark Baker 531803a919 Change Writer exceptions to PHPExcel_Writer_Exception 2012-10-31 22:00:40 +00:00
Mark Baker f4e949e3a1 Merge pull request #63 from alexgann/patch-1
Fix to cellExists for non-existent namedRanges. Thanks for the catch
2012-10-30 14:17:01 -07:00
Mark Baker 8f3640e44c Change reader exceptions to PHPExcel_Reader_Exception 2012-10-29 23:48:29 +00:00
alexgann 4748b88d9c Fix to cellExists for non-existent namedRanges
Found an issue where cellExists was failing on a non-existent namedRange
as it was flowing down to the coordinateFromString (1217) call.  Proposed
change trusts the REGEXP check and if $namedRange == NULL after all
then simply return false (ie the cell does not exist).
2012-10-19 13:38:26 -03:00
Marcus Bointon 037c2748f3 Change use of is_a() to use instanceof
While is_a() is no longer deprecated, there are bound to be some people using PHP versions that still have it marked as deprecated.
This is the only occurrence of is_a in the whole of PHPExcel; everywhere else it's using instanceof, so I figured it would be sensible to make it consistent.
2012-10-18 17:11:45 +03:00
Mark Baker 13f227c4f2 Additional chart creation examples 2012-09-02 12:06:48 +01:00
Mark Baker 2f4620c3f9 Improve cloning of worksheet to handle autoFilter area cleanly 2012-08-29 00:24:13 +01:00
unknown c9daa12245 Initial work on AutoFilter selections reading from Excel2007 (with
diagnostics, remember to remove before any merging to develop)
2012-08-08 22:11:26 +01:00
Mark Baker b694241de6 Merge branch 'develop' of https://github.com/PHPOffice/PHPExcel into autofilter 2012-08-07 10:16:03 +01:00
Mark Baker b871674f18 Ensure that chart worksheet is correctly set when adding chart to a
worksheet
2012-07-26 20:04:52 +01:00
Mark Baker 8e41c70d41 General: Work item 18404 - setCellValueExplicitByColumnAndRow() do not return PHPExcel_Worksheet 2012-07-25 23:54:53 +01:00
Mark Baker 5e44fa2517 Issue #5 - Refactor autoFilter range into an autofilter class in
preparation for adding support for autofilter expressions
2012-07-18 21:12:02 +01:00
Mark Baker 5f301a72c1 Additional validation on Worksheet name when adding/creating a new worksheet
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@90941 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-05-25 06:45:01 +00:00
Mark Baker 540aebe68b Fix to use of $updateFormulaCellReferences flag in setTitle() method for worksheets
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@89095 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-04-11 19:46:29 +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 b3cb86ccff Doc Block changes
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@87532 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-03-09 23:55:17 +00:00
Mark Baker c275bf7a8d Change copyright 2011 -> 2012
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@87249 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-03-03 21:29:01 +00:00
Mark Baker 6f91dd9f59 Bugfix: Work item 17403 - duplicateStyle() method doesn't duplicate conditional formats
Added an equivalent duplicateConditionalStyle() method for duplicating conditional styles

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@86383 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-02-12 18:04:22 +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 b235c531a7 Experimental - Added getHighestDataColumn(), getHighestDataRow(), getHighestRowAndColumn() and calculateWorksheetDataDimension() methods for the worksheet that return the highest row and column that have cell records
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83932 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-16 16:01:21 +00:00
Mark Baker 5fb3ffceb0 Performance improvement for readers that reduces overheads when setting titles in multi-worksheet workbooks, by avoiding re-iterating through all worksheet/cells whenever a sheet title is set
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83603 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-04 11:24:59 +00:00
Mark Baker cdb94cfb1e Minor performance tweak
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@74697 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-05-30 22:25:04 +00:00
Mark Baker 5979a4ec13 Bugfix: Work item 15786 - RangeToArray strange array keys
and Minor performance tweak to the workbook setActiveSheetIndexByName() method


git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@72435 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-04-28 20:42:50 +00:00
Mark Baker 45fb4d84c1 Bugfix: Work item 15421 - PHPExcel_ReferenceHelper::insertNewBefore() is missing an 'Update worksheet: comments' section
Solution, courtesy of MKunert

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@69421 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-02-25 22:57:22 +00:00
Mark Baker 919df79991 Bugfix: The freezePaneByColumnAndRow() method row argument should default to 1 rather than 0. Default row argument for all __ByColumnAndRow() methods should be 1
General: Enhanced SheetViews element structures in the Excel2007 Writer for frozen panes.

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@68124 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-02-07 11:19:07 +00:00
Mark Baker 5e27d037bc Bugfix: Work item 14980 - Images not getting copyied with the ->clone function
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@67525 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-01-28 23:09:02 +00:00
Mark Baker 545c2a0f19 Bugfix: Work item 15172 - rangeToarray function modified for non-existent cells
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@67475 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-01-27 16:09:37 +00:00
Mark Baker 5a2830c499 Bugfix: Work item 15129 - Worksheet fromArray() only working with 2-D arrays
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@67182 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-01-21 10:47:20 +00:00
Mark Baker 9f252c9e80 Bugfix: Work item 15089 - PHPExcel_Worksheet->toArray() index problem
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@66807 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-01-12 16:48:54 +00:00
Mark Baker 1643bb9613 Feature: Added new rangeToArray() and namedRangeToArray() methods to the PHPExcel_Worksheet object.
Functionally, these are identical to the toArray() method, except that they take an additional first parameter of a Range (e.g. 'B2:C3') or a Named Range name.
Modified the toArray() method so that it actually uses rangeToArray().

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@66799 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-01-12 15:20:29 +00:00
Mark Baker 59b831c4f1 Speed boost and memory reduction in the Worksheet toArray() method.
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@66403 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-01-04 13:52:05 +00:00
Maarten Balliauw fd95065240 Work item 11583 - Need method for removing autoFilter
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@66340 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-01-03 10:26:43 +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 1fad8bd2dd General performance improvements, and specific improvements in the CSV Reader
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@65064 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-12-09 12:07:50 +00:00
Mark Baker 6c9a41879b Feature: Added strictNullComparison argument to the worksheet fromArray() method
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64270 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-11-24 15:28:15 +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 951c332cda Minor performance tweaks to the HTML Writer
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@63950 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-11-19 14:09:53 +00:00
Mark Baker 3aa1142b5f Performance tweaks (particularly affecting the Excel5 Writer)
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@63320 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-11-05 22:13:41 +00:00
Mark Baker 8c3ce4f938 Minor performance tweak
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@62922 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-10-28 16:50:52 +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 af3300e387 Bugfix: Workitem 14425 - Wrong exception message while deleting column
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@62433 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-10-19 12:24:39 +00:00
Mark Baker 10634822fe Minor fix to toArray() method for row indexing when the $returnCellRef argument is false
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@62185 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-10-12 21:34:04 +00:00
Mark Baker 9946aa1595 Bugfix: Workitem 14374 - BUG : Excel5 and setReadFilter ?
Modifications to Worksheet's to_array() method to handle worksheets partially loaded with a readFilter by switching to iterators

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@61913 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-10-06 12:57:54 +00:00
Mark Baker 32b8b1c7ab Feature: Work item 14301 - PHPExcel_Worksheet->toArray() is returning truncated values
I've made some modifications so that it is possible to pass a number of additional arguments to the method to determine exactly how the data is returned:

@param mixed $nullValue Value returned in the array entry if a cell doesn't exist
@param boolean $calculateFormulas Should formulas be calculated?
@param boolean $formatData Should formatting be applied to cell values?
@param boolean $returnColumnRef False - Return columns indexed by number (0..x); True - Return columns indexed by column ID (A..x)


git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@61373 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-09-23 16:52:57 +00:00
Mark Baker 6925afdb91 Bugfix: Workitem 14256 - Worksheet title exception when duplicate worksheet is being renamed but exceeds the 31 character limit
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@61118 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-09-18 12:45:22 +00:00
Maarten Balliauw 509f27e5c6 Migration from off-site Subversion repository (part 1).
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@59884 2327b42d-5241-43d6-9e2a-de5ac946f064
2010-08-26 19:14:53 +00:00