21a5ec3449
fpspreadsheet: Complete unit tests for copying of data, formats and formulas
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3821 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-03 20:21:39 +00:00
794f556efe
fpspreadsheet: Add test case for copy format. Fix default vertical text alignment issue of biff5 and biff8.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3817 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-01 16:50:00 +00:00
6194b41ef0
fpspreadsheet: Add support for copying cell values and formulas. First unit test of copying values.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3814 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-30 23:45:08 +00:00
6d22d41742
* fpspreadsheet: test dbexport for > character; see http://forum.lazarus.freepascal.org/index.php/topic,26471.0.html
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3729 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-15 16:05:45 +00:00
6d388ffc1a
fpspreadsheet: Improved detection of built-in date/time formats in csv. Test case for date/time in CSV, passed.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3700 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-30 13:04:37 +00:00
a1fe949908
fpspreadsheet: Fix unit test for currencies, pass now for all file format (some kind of tweaking for Excel2 and fpc formatting inconsistencies though).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3699 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-29 22:36:03 +00:00
ba40d180c4
fpspreadsheet: Fix some UTF8-related bugs in connection with currency formats
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3696 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-25 23:05:26 +00:00
118af5e671
fpspreadsheet: Add sorting test case to spreadtestcli project.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3682 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-23 19:29:15 +00:00
f9dc0c3370
fpspreadsheet: More sorting criteria: case-senstivity, numbers first or text first in case of mixed ranges. Update spready.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3680 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-23 13:38:41 +00:00
fb8faab20b
fpspreadsheet: Fix compilation error introduced yesterday. Fix multi-key sorting which now passes all tests.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3679 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-23 09:07:20 +00:00
4a1a99044b
fpspreadsheet: Fix circular unit reference bug (thanks, Michael). Add demo_sorting.pas unit missing from last commit. Some improvements with multi-key sorting, but still in error sometimes (--> sorting code is still experimental).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3678 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-22 23:25:26 +00:00
2f6bc3c183
fpspreadsheet: Mode test cases on sorting (two-column sort test not yet working correctly)
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3677 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-22 15:57:07 +00:00
233c735db6
fpspreadsheet: Improved sorting parameters (individual sort direction for sort keys). Fix some bugs. Begin to write a sorting test case. Add a demo on sorting.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3676 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-21 22:57:02 +00:00
8891b0a90b
fpspreadsheet: Add test case for switched decimal and thousand separators in csv file. Fix bugs related to that.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3674 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-20 23:17:07 +00:00
e8351807cc
fpspreadsheet: Fix integer percentage numbers not being correctly detected by the csv reader. Add csv unit test for writing and reading of numbers.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3673 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-20 21:52:53 +00:00
73365ae2ef
fpspreadsheet: Forgot to add celltypetests unit to repository...
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3657 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-14 21:45:36 +00:00
9f014b6875
fpspreadsheet: Add reading/writing of boolean cell values for BIFF formats.
...
Add test case for boolean cell values for all formats (incl. CSV).
Extend spready demo to be able to write sfExcel2 and sfExcel5 formats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3656 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-14 21:44:00 +00:00
75fea05685
fpspreadsheet: Fix issue 0025133 "Cannot read xls file apparently BIFF5". Fix error message when writing a too-long cell text to BIFF5.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3653 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-14 08:29:28 +00:00
70c18e73c3
+ fpspreadsheet: add spreadsheet dataset export visual package laz_fpspreadsheetexport_visual.lpk
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3646 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-13 14:00:46 +00:00
4dfa60673d
fpspreadsheet: Remove some unnecessary calls to lo() (no idea why I introduced them...). Fix range check errors in the test suite.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3633 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-06 12:55:28 +00:00
93da62030e
fpspreadsheet: Less hints & warnings
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3630 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-03 22:02:09 +00:00
359f18e6a9
+ fpspreadsheet: dbexport unit and tests. Initial version.
...
Possible future improvements:
* graphical component in export tab
* using virtual mode in case large datasets are exported
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3617 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-01 12:04:08 +00:00
70eb27893d
* fpspreadsheet: cosmetic
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3616 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-01 12:02:49 +00:00
90e0cac035
* fpspreadsheet: resource file
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3614 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-30 12:00:04 +00:00
5b4317a706
fpspreadsheet: Fix writing non-printable characters writing to xml-like formats (xlsx, ods, wikitable). Add test case to error tests. Improve syntaxhighlighter for wikitablemaker demo (still not perfect).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3611 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-29 22:27:03 +00:00
cb05f8873a
fpspreadsheet: Fix speed loss introduced by merging of cells (-> speed-up of some unit tests)
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3600 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-23 22:24:35 +00:00
15f7f52acd
fpspreadsheet: Extend insert/delete column/row test cases to sfOpenDocument. Pass.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3598 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-23 19:09:41 +00:00
c8d1d8eb74
fpspreadsheet: Make sure that all test units are added to the cli test suite.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3597 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-23 15:49:33 +00:00
cc7ea25f46
fpspreadsheet: Complete write/read unit tests for insert/delete of columns and rows in biff8 and ooxml files having merged cells.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3596 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-23 15:42:38 +00:00
5fd5231014
fpspreadsheet: Fix insert/delete column/row issues for shared formulas. Complete shared formula test cases on insert/delete columns and rows. Duplicate these test cases for OOXML. All passed.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3595 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-23 14:15:28 +00:00
b2888a8042
fpspreadsheet: Lots of cosmetics. Updated version of the chm help file.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3583 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-21 00:10:31 +00:00
b43fb99608
fpspreadsheet: Fix reading/writing of cell error values in biff. Insert/delete unit tests with formulas are correct now. Fix crash in BIFFExplorer related to reading of formulas.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3582 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-19 19:44:35 +00:00
4ed3b47628
fpspreadsheet: Add test cases for insert/delete rows into worksheets containing formulas. Issues remaining when cells referred to by the formula are deleted. Add detection of error values to the formula scanner.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3581 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-19 14:22:18 +00:00
738daeb4f6
fpspreadsheet: Beginning with test cases for insert/delete of columns and rows.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3580 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-18 21:51:56 +00:00
bf38e66d78
fpspreadsheet: Add missing units to spreadtestcli test suite. Now 642 tests both in cli and gui versions.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3579 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-18 18:45:16 +00:00
b22ab8deba
fpspreadsheet: Move rpn stuff from fpspreadsheet.pas to a new unit fpsRPN.pas. Move translatable strings from fpspreadsheet.pas to a new unit fpsStrings.pas. Make sure that all demos still run in the new environment.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3572 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-17 08:38:31 +00:00
4809b84f2f
fpspreadsheet: Test cases for merged cells in xls, xlsx, ods files. Passed.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3557 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-12 19:26:31 +00:00
b70cc35da3
fpspreadsheet: Ignore case of sheetname in validation. Better calling convention for un-merging cell ranges.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3554 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-12 14:14:05 +00:00
324588fb04
fpspreadsheet: Validity check for sheet names (test case included)
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3552 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-12 09:38:12 +00:00
342ba95e8e
fpspreadsheet: Read/write merged cells to/from ODS files.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3542 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-10 17:15:37 +00:00
6b5cc615d3
fpspreadsheet: Add test cases for shared formulas
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3529 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-08 11:09:23 +00:00
e9bf681d97
fpspreadsheet: Avoid using column and row records when all column widths and row heights are equal. This fixes Mantis #0026686 .
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3528 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-07 22:25:11 +00:00
ab50c08bd2
fpspreadsheet: Fix shared formula issues with absolute cell references
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3527 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-05 15:41:44 +00:00
e40683ea83
fpspreadsheet: Fix ods formula issues, seems to be ok now.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3513 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-02 12:58:06 +00:00
5d496d9cf4
fpspreadsheet: Fix formula issues with ods (written error values still different between fps and ods).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3512 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-02 09:25:54 +00:00
c03833de40
fpspreadsheet: Add some more formulas
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3511 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-01 22:37:14 +00:00
56b814ec17
fpspreadsheet: Implement writing and reading of ods formulas. Some issues with date/time formulas.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3510 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-09-01 13:21:39 +00:00
c87afdcdec
fpspreadsheet: Redo handling for formulas:
...
- Allow processing of string formulas (conversion to/from rpn formulas, calculation).
- Drop cell ContentType cctRPNFormula.
- Drop field RPNFormulaValue of TCell record.
- Remove all fekXXXX declarations for sheet functions. Function is specified by name now.
- Complete registration mechanism for user-defined formulas.
Adapt all demos
Test cases working
This commit does not yet support: shared formulas, formulas in ods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3506 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-08-30 18:03:22 +00:00
a043b77519
fpspreadsheet: Remove workbook property ReadFormulas, use option boReadFormulas instead. Update all demos affected. Modify most demos to no longer require the fps package.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3505 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-08-29 15:32:43 +00:00
3fa5fd28ca
fpspreadsheet: Complete calculation of shared rpn formulas.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3497 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-08-19 11:46:32 +00:00