Commit Graph

4555 Commits

Author SHA1 Message Date
ad1bdb294a fpspreadsheet: Remove ComboboxEx left-over in spready (http://forum.lazarus.freepascal.org/index.php/topic,26299.msg161924.html#msg161924).
Add a note to fpopendocument on difficulties when reading empty formatted cells. 
Add function "CopyCell" to TsWorksheet.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3705 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-06 15:19:20 +00:00
1b86c7e3dd fpspreadsheet: Prepare TsWorksheetGrid for multiselection of ranges (not activated by default, requires the patch of issue #0027000). Add information on selected cell and selected ranges to TsWorksheet (stored/restored on changes of active sheet). Some more information in TsSpreadsheetInspector.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3704 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-05 23:45:48 +00:00
2b4925f0a8 fpspreadsheet: Rename the new properties SelectedCellCol/Row of TsWorksheet to ActiveCellCol/Row - the "selected" will become a more general meaning soon. Rename the "SelectedWorksheet" of TsWorkbookSource to "Worksheet" (less typing). Sorry for the inconvenience...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3703 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-04 21:56:24 +00:00
ae9f19553a fpspreadsheet: Add readme.txt to the new demo folders, fpsctrls and fpsctrls_no_install
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3702 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-03 15:54:50 +00:00
791032b964 fpspreadsheet: Initial version of fpspreadsheet controls, a set of visual controls to facilitate creation of a spreadsheet application.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3701 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-03 15:34:57 +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
0396e0805d fpspreadsheet: Registration of currency symbols. Add currency dialog to spready. Automatic detection of currencies in in worksheet.WriteCellAsNumber. Avoid redundant code in csv reader's currency detection.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3698 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-29 16:39:49 +00:00
aa666e59e7 fpspreadsheet: Fix ods reader failing to detect "red" currency format (negative numbers in red; ods writer still in error for currency). Cosmetic changes: Formatting
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3697 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-28 23:24: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
c0f91c703d fpspreadsheet: Fix comilation error due to incorrect unit name of the new fpsCsvDocument
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3695 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-25 16:20:32 +00:00
65f6ad95c6 * fpspreadsheet: update with newly released csvdocument
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3694 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-25 12:45:47 +00:00
856c5b46a8 csvdocument: updated docs (file releases moved to Bitbucket)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3693 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-25 12:26:21 +00:00
dd29195d5a csvdocument: released version 0.5
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3692 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-25 10:56:06 +00:00
35555e2477 csvdocument: fixed release date in docs
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3691 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-25 10:50:15 +00:00
0fa3d0e10f csvdocument: updated docs for new version
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3690 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-25 10:47:56 +00:00
67779de0e0 csvdocument: commented procedures/functions/properties (based on patch from Reinier Olislagers)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3689 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-25 09:17:34 +00:00
f3c66179a3 fixed TrimEmptyCells removing empty cells in the middle of a row (patch from Reinier Olislagers)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3688 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-25 08:54:33 +00:00
c4d1e08656 fpspreadsheet: Introduce string encoding when reading/writing csv files. Automatic detection of currency working now (€ symbol is detected correctly now). Use UTF8 encoded format settings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3687 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-24 20:44:37 +00:00
391cd0a647 * fpspreadsheet: csv writer: get rid of multiple quoting (let csvdocument handle quoting)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3686 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-24 13:21:34 +00:00
c1102886cc * fpspreadsheet: cosmetic: comments; harmonize code layout with existing code
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3685 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-24 10:46:04 +00:00
5b9f31daca * fpspreadsheet: Cosmetic
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3684 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-24 10:07:15 +00:00
753fd6ab37 fpspreadsheet: Add (intermediate) copy of csvdocument to component and use its parser and builder from the csv reader/writer of fpspreadsheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3683 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-23 22:43:30 +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
32fbca7594 fpspreadsheet: Override TsWorksheetGrid's Sort method to the Sort method of the Worksheet. Hide OnCompareCells event.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3681 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-23 14:31:29 +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
68649b7275 fpspreadsheet: Initial version of worksheet sorting. Add sorting parameters dialog to spready. Basic demonstration of sorting in spready.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3675 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-21 15:12:51 +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
4473d3b4a5 fpspreadsheet: More improvements for reading numbers in csv files and automatic format detection.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3672 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-20 21:04:20 +00:00
43acbe2908 fpspreadsheet: Improved detection of date/time values by csv reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3671 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-20 16:14:59 +00:00
8a56484d10 fpspreadsheet: Fix decimal and thousand separator not being visible in the FormatSettingsForm of spready
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3670 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-20 15:29:40 +00:00
6aed97db26 Source code better formatted via JEDI
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3669 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-20 11:34:38 +00:00
5b34d4b18e Bugfix: Linux implementation fixed
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3668 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-20 11:32:46 +00:00
7b3795dc03 fpspreadsheet: Less hints. Adapt spready code to differences between trunk and Laz 1.2.6, remove duplicate colorbox unit in spready.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3667 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-20 09:22:06 +00:00
ea812a803e RxFPC - fix text TCurrencyEdit.ZeroEmpty = true
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3666 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-20 06:12:39 +00:00
2a61d87225 fpspreadsheet: Add detection of currency values to the csv reader. Spready: add configuration dialogs for csv parameters and formatsettings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3665 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-19 21:20:57 +00:00
061d4950cb * fpspreadsheet: clean up db export component. Avoids TPkgManager.LoadStaticCustomPackages Invalid Package Name: "Data Export" error message
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3664 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-16 14:22:45 +00:00
3159cf88d5 spkToolbar: spkGraphTools: Patch by haword (issue #0024081) for alternative gradient painting. Avoid unnecessary calculations. Cosmetic changes. Google-translate the polish comments.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3663 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-16 11:57:50 +00:00
b839d15d7b RxCurrencyEdit - display edit empty value for 0 if ZeroEmpty=true
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3662 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-16 11:46:48 +00:00
7d32a9d9c4 spktoolbar: Fix painting issues in Ubuntu (patch by haword for issue #0024081)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3661 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-15 22:46:07 +00:00
ab758dbfc5 spktoolbar: for test purposes bring back the timer removed in r3651 (now activated by define DELAYRUNTIMER) because I saw the black areas on a slow computer (having DELAYRUNTIMER activated, however, is not compatible with the previous commit of no background painting -> large black area!) THIS IS AN EXPERIMENTAL VERSION!
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3660 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-15 19:39:54 +00:00
03f17a3ebe spktoolbar: Fix issue #0025047 (spktoolbar flickering if not themed)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3659 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-15 19:18:30 +00:00
caa7f03e6f RxCollumn - add new options flag coFixDecimalSeparator - fix decimal separator (, or .) on type in RxDBGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3658 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-10-15 07:48:42 +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