d2351b5559
fpspreadsheet: Fix 3d cell references with a single other sheet (Sheet1!A1:C3), except for ODS. 3d references with several sheets prepared (not tested yet). Some more unit tests.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6408 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-05-13 10:15:13 +00:00
e98bda1717
fpspreadsheet: Add BIFF5 writer for 3d references. Add corresponding unit test. Some related bug fixes. Less hints.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6401 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-05-10 14:31:37 +00:00
bfb8cff66e
fpspreadsheet/formulas with 3d references: sfExcel8 can read them now. Several bug fixes (e.g. '=Sheet1!A1' was not working). Add testcases.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6399 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-05-09 17:07:59 +00:00
0e4645f9bf
fpspreadsheet: Check (and fix) compilation of all demo projects (changed handling of include files in fpc 3.0.4)
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6317 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-04-18 11:42:22 +00:00
24153116a4
fpspreadsheet: Fix reading/writing of milliseconds. Add corresponding test cases. (NOTE: ods cannot display tenths of a second).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6228 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-03-07 22:35:19 +00:00
f78d780b5f
fpspreadsheet: Allow number formats with no leading digits. Add corresponding unit test cases.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6218 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-28 12:14:19 +00:00
022b837553
fpspreadsheet: Fix error in Round function. Add a second unit test for Round.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6217 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-27 22:21:49 +00:00
a8743226b7
fpspreadsheet: Add unit tests for HTML-to-RichText conversion (and vice versa).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6073 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-11-14 22:57:11 +00:00
515e7437e5
fpspreadsheet: Fix number format test case. Now all tests are passed again.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6060 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-11-06 08:35:25 +00:00
9b8e818c3c
fpspreadsheet: Fix max string length test.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6056 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-11-03 21:04:07 +00:00
0310e5587e
fpspreadsheet: Write biff8 text cells to shared-string-table to overcome string truncation at 255 characters.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6054 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-11-03 13:39:12 +00:00
685581a8da
fpspreadsheet: Fix WorksheetGrid event OnSelectCell not firing any more. Less hints.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5905 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-27 16:43:27 +00:00
078274920d
fpspreadsheet: Fill unused BIFF5 and BIFF8 palette entries by default colors to avoid Excel XP show an incomplete color dialog.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5863 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-18 10:50:22 +00:00
5c409068c2
fpspreadsheet: Fix conversion of biff palette colors for fonts in reader.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5860 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-17 21:43:30 +00:00
e1f03daa5c
fpspreadsheet: Fix biff format writing non-editable palette indexes to file (Excel cannot edit the cells any more - see http://forum.lazarus.freepascal.org/index.php/topic,36903.0.html )
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5859 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-17 17:26:48 +00:00
a4457a850e
fpspreadsheet: Add writing support for xls password hashes. Add test case for it.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5799 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-07 22:02:09 +00:00
d81738d19c
fpspreadsheet: Complete ods writer for cell/sheet/document protection -- but ods has a so-far unsupported option to hide cell content, not just formulas ("hidden-and-protected")...
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5797 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-07 10:13:18 +00:00
4505fb76cd
fpspreadsheet: Add writing support for cell, sheet and workbook protection in xls files (biff2, biff5, biff8), opendocument and Excel XML files. Not complete, yet.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5795 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-06 23:30:59 +00:00
f4779f63f7
fpspreadsheet: Add missing unit protectiontests.pas.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5786 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-05 10:54:28 +00:00
b3110a90cc
fpspreadsheet: Add support of workbook, worksheet, and cell protection for xlsx (modified patch by shobits1, see http://forum.lazarus.freepascal.org/index.php/topic,36075.0.html ). Add protection unit tests.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5783 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-04 21:29:12 +00:00
46863f2097
fpspreadsheet: Fix numberformat fails in csv unit tests. A tests passed now.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5779 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-02 12:17:32 +00:00
b9cbc1b174
fpspreadsheet: Fix csv unit test fails of some date/time values.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5778 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-02 11:18:27 +00:00
80f4f07a18
fpspreadsheet: Add unit tests for hidden worksheets.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5776 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-01 20:16:47 +00:00
f85d2543ba
fpspreadsheet: Make sure that all demos are compiled with -Xg
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5764 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-20 17:21:56 +00:00
5d1c8de578
fpspreadsheet: Fix unit reference error in spreadtestgui.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5317 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-06 08:36:37 +00:00
3e6dd484f7
fpspreadsheet: Fix compilation issues when fpc version is changed: separate package units into different folders, incorporate code of fpsnumformatparser in unit fpsnumformat and code of fpsregfileformats in units fpsreaderwriter. Check and fix all demos.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5282 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-22 20:59:00 +00:00
cacfb22337
fpspreadsheet: Ignore filler columns added by Calc when reading an Excel file.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5269 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-19 09:31:06 +00:00
d570c75403
fpspreadsheet: Massive refactoring of ods cell and row writing. ods can write column and row formats now. Fix unit tests (100% ok).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5265 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-18 16:42:24 +00:00
c3ee25b99e
fpspreadsheet: Write row format to xlsx. Update colwidth test case.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5255 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-09 21:19:19 +00:00
863be778f9
fpspreadsheet: Add row height type to row record to distinguish custom from auto-calculated row heights. Add grid property AutoCalcRowHeights to use pre-calculated row height instead of always automatically recalculating row heights.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5233 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-01 12:20:18 +00:00
ec13cdb929
fpspreadsheet: Fix compilation of spreadsheet tests
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5206 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-24 18:31:03 +00:00
51630a3d94
fpspreadsheet: Fix valid sheetname test case.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4677 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-03 21:43:46 +00:00
cd66ccd8a9
fpspreadsheet: Fix rounding error when number format is applied (issue #0030223 )
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4675 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-02 17:18:20 +00:00
34025326da
fpspreadsheet: Workaround for ods rows and columns erroneously added by Libre/OpenOffice when importing an xlsx file (see forum http://forum.lazarus.freepascal.org/index.php/topic,32193.0.html )
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4610 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-08 18:54:58 +00:00
5b946b751f
fpspreadsheet: Add units (mm, cm, in, pts, lines/chars) for column width and row heights. Update all demos (some issues left).
...
NOTE: This revision breaks existing code if the worksheet's DefaultRowHeight/DefaultColWidth is changed - value must be in millimeters now. Methods for accessing individual row heiths and column widths are fine, but are marked as deprecated, they use the old units. Optionally a unit parameter can be specified.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4568 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-18 19:50:40 +00:00
8fcf90d13a
fpspreadsheet: Fix compilation of new Excel unit test for non-Windows systems.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4536 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-09 09:55:28 +00:00
0fc1e4c933
fpspreadsheet: Add tests for Excel being able to read files containing commens, images, header/footer images, and hyperlinks.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4533 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-08 13:38:04 +00:00
f1c07951dd
fpspreadsheet: Move PageLayout to separate unit (fpsPageLayout). Move PrintRanges and RepeatedRows/Cols to PageLayout. Some simplifiations because TsPageLayout is a class now. Prepare for images in header/footer.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4530 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-04 23:01:21 +00:00
d2b80cf143
fpspreadsheet: Read print ranges and repeated print rows and columns from BIFF5 and BIFF8 files (xls - BIFF2 does not support them).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4512 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-19 19:53:10 +00:00
e3d715a8a8
fpspreadsheet: Fix ods repeated rows/cols unit tests.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4506 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-16 10:28:14 +00:00
fdf0f89a66
fpspreadsheet: Reading of ods repeated print columns. Unit tests for repeated rows/cols (not ok, yet).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4505 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-15 23:43:17 +00:00
1504384e79
fpspreadsheet: Add reading of print ranges and repeated print cols/rows for xlsx. xlsx unit test for print ranges. Fix reading/writing of worksheets with spaces and special xml entities in the sheet name.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4503 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-15 21:12:17 +00:00
ad4813947b
fpspreadsheet: Add support for print ranges to ods reader. Add ods unit test for writing and reading print ranges.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4502 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-14 21:49:25 +00:00
9e0db3722b
fpspreadsheet: Fix incoomplete saving of merged cell borders if borders are assigned only to merge base cell.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4470 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-25 22:29:13 +00:00
f76da1c6b0
fpspreadsheet: Fix test suite not removing a particular temporay file after test,
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4445 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-19 23:14:43 +00:00
5b07289442
fpspreadsheet: Replace new fpsutils.GetSetValues by typinfo.SetToString.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4382 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-31 10:35:16 +00:00
631c0c84aa
fpspreadsheet: Fix incorrect usage of GetEnumName in test suite.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4381 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-30 17:16:41 +00:00
180a1d049d
fpspreadsheet: Add parsing of cell range strings given in "R1C1" syntax
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4376 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-09 19:33:02 +00:00
ced66bed8b
fpspreadsheet: Implement parsing of cell references in "R1C1" syntax.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4375 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-09 17:30:24 +00:00
48c33e0c1c
fpspreadsheet: Massive reconstruction of file format registration: it is now possible to add user-defined readers and writers without modifying the fpsspreadsheet sources (--> new unit fpsregfileformats). Add (incomplete) unit for the SYLK file format (---> new unit fpssylk) to show this in the demo project visual/fpsctrls/demo_ctrls. Update all visual demos.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4373 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-09 13:27:04 +00:00