Commit Graph

3122 Commits

Author SHA1 Message Date
wp_xxyyzz
adf4df6ea1 fpspreadsheet: Fix failure of reading BIFF5 files in BIFFExplorer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2972 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-25 22:17:40 +00:00
wp_xxyyzz
7c2851cd98 fpspreadsheet: Add most of the BIFF8 features to BIFF5. Add test cases for BIFF5 --> pass. Move more shared code from xlsbiff5 and xlsbiff8 to xlscommon. Update wiki.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2971 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-25 22:15:26 +00:00
inoussa
402f527cbb Remove not used variables, fix uninitialized variables.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2970 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-25 19:05:55 +00:00
inoussa
96b63bb1ad FPC 2.7.1 compatibility.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2969 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-25 19:03:45 +00:00
wp_xxyyzz
8a10de6ab5 fpspreadsheet: Add text alignment test case for BIFF2. Passed.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2968 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-25 13:06:49 +00:00
wp_xxyyzz
fa426151a1 fpspreadsheet: Add cell border test case for BIFF2 --> pass. Update wiki
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2967 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-25 12:18:04 +00:00
wp_xxyyzz
4a16f9bb90 fpspreadsheet: Add unit test for "bold" attribute in BIFF2 and BIFF8. Fix "bold" being incorrectly restored by reading of both formats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2966 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-25 09:32:34 +00:00
wp_xxyyzz
1541796ecd fpspreadsheet: Fix font unit test for bif2 (Excel2 allows only 4 fonts per file) --> pass
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2965 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-25 09:02:10 +00:00
wp_xxyyzz
988b80b4a4 fpspreadsheet: Add column width support (reading & writing) to biff2. Add column width test cases for BIFF2 and BIFF8 -> pass.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2964 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-24 23:05:00 +00:00
wp_xxyyzz
887b34383a fpspreadsheet: Add font unit test for BIFF2. Currently fails. Need to investigate...
Fix occasional floating point conversion error in fpsopendocument because of non-initialized format settings.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2963 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-24 22:31:01 +00:00
wp_xxyyzz
c174566e55 fpspreadsheet: Some refinements with color handling:
- Add some more colors to the default palette, remove the duplicate base colors
- Introduce type TsColorvalue for the rgb color values
- At init, automatically convert big-endian color values to little-endian
- Add TsWorkbook.SetColorValue to replace a palette color
- Add testing of random palette to colortests
- Add color test for BIFF2 (font only, because background color cannot be changed by design)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2962 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-24 21:27:57 +00:00
bigchimp
4d5521d38c Tests: cosmetic: remove duplicate column number to letter translation code.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2961 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-24 09:25:31 +00:00
wp_xxyyzz
f69a47c902 fpspreadsheet: Add/complete color support for biff2 and biff8, reading and writing. Display colors in fpspreadsheetgrid.
Remove parameter AData in several methods of the readers/writers and replace it by FWorkbook passed at creation.
Add unit tests for font and color support. No issues.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2960 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-23 22:29:32 +00:00
wp_xxyyzz
c61e4418b7 fpspreadsheet: Add reading and writing of font support to biff8, biff2, and fpspreadsheetgrid. Font colors in biff2 not yet working. No test cases yet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2959 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-22 23:10:32 +00:00
wp_xxyyzz
f7f1b0f12a fpspreadsheet: Add support for empty cells to all BIFF formats (needed for formatting of empty cells).
Fix painting error of cell borders in fpspreadsheetgrid.
Add/complete reading/writing support for horizontal alignment, cell background and cell borders to BIFF2.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2958 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-21 21:43:43 +00:00
wp_xxyyzz
4f85834153 fpspreadsheet: Restructure reader/writer declarations to have in "public" only methods needed by the application
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2957 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-21 11:30:22 +00:00
wp_xxyyzz
b8c1cf2961 fpspreadsheet: Add support for reading background colors in biff8 and fpspreadsheetgrid.
Add automatic test case for colors (fails since some colors are not yet written correctly, fails also for blank cells which are not yet read).

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2956 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-20 21:51:12 +00:00
wp_xxyyzz
be497cb19e fpspreadsheet: Add support for horizontal and vertical text alignment in cells for biff8 and fpspreadsheetgrid.
Fix failure to reckognize file format in case of uppercase filename.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2955 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-20 20:31:36 +00:00
wp_xxyyzz
313daa2eaf fpspreadsheet: Complete prepared read/write support for cell wordwrap in biff8 and fpspreadsheetgrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2954 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-20 16:07:53 +00:00
wp_xxyyzz
f1fcd9f1f8 fpspreadsheet: Add reading support of row heights for biff2 and biff5
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2953 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-20 15:10:41 +00:00
wp_xxyyzz
8c90f30c66 fpspreadsheet: Add reading of row heights for biff8.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2952 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-20 14:57:23 +00:00
wp_xxyyzz
d617abccca fpspreadsheet: Major re-write of fpspreadsheetgrid:
- persistent storage of workbook
- inherits from TCustomDrawGrid instead of from TCustomStringGrid
- use FixedRow/Col for row/column headers 
- displays cell borders as read from the file
- uses column widths as read from the file (approximate only)
- numbers are right-aligned by default.
- demo extended to display worksheets in tabs
- some visual improvements of demo
- saving not yet working in demo
More to follow...

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2951 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-19 19:29:13 +00:00
wp_xxyyzz
0f73aed718 fpspreadsheet: Implement reading of cell borders. Delete test.xls in examples/excel8demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2950 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-19 16:58:44 +00:00
wp_xxyyzz
41f72fef58 fpspreadsheet: Fix some range-overflows in BIFFExplorer
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2949 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-18 17:05:04 +00:00
inoussa
d5c37afd8d Package update for logger.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2948 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-18 14:47:54 +00:00
inoussa
2ba7ee7cd2 Add support for External Schema referencing.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2947 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-18 13:36:57 +00:00
inoussa
d12bca1cb6 FormatSettings : Delphi compatibility.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2946 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-18 13:33:50 +00:00
wp_xxyyzz
36cc7d1f4e fpspreadsheet: Add support for reading/writing of column widths in biff8 (specified as multiples of the width of the character "0"). Add test case. No regressions
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2945 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-18 13:17:22 +00:00
alexs75
99872da4e3 RxDBGrid - sort marker for custom sorting - patch from zoltanleo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2944 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-18 11:43:18 +00:00
alexs75
9ada7c687b RxDateEdit - fix work with new ButtonEdit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2943 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-18 11:20:04 +00:00
wp_xxyyzz
8b688de40b fpspreadsheet: Fix crash when destroying columns and rows.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2942 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-17 20:59:00 +00:00
wp_xxyyzz
89942f1bd3 fpspreadsheet: Fix memory leak (ignored format string and dyn formula array when freeing cells)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2941 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-17 20:13:38 +00:00
wp_xxyyzz
1f84822607 fpspreadsheet / BiffExplorer: Add info on records COLINFO, COLWIDTH, NOTE, OBJ; some cosmetics in MainForm.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2940 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-17 17:36:43 +00:00
bigchimp
afcb50a0be Cosmetic: document fekOpSUM cannot be used for ranges
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2939 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-17 12:25:40 +00:00
wp_xxyyzz
32f6b81a6d fpspreadsheet: Add BiffExplorer, a testing and debugging tool for xls files, to folder "reference"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2938 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-13 10:58:41 +00:00
alexs75
4f0c0e5bc4 RxDBGrid - minor fix for work without sort engine. tnx zoltanleo from freepascal.ru
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2937 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-09 18:19:30 +00:00
alexs75
45cdc9ae23 RxFPC - fix compile with new TEditButton from Lazarus 1.3. For old version uncomment in rx.inc DEFINE OLD_EDITBUTTON
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2936 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-09 17:33:24 +00:00
bigchimp
f32fa5b568 * Tests: clarify background color test only applies to BIFF8 XLS
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2935 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-09 10:49:05 +00:00
bigchimp
38f1612dbf * Fix inadvertent change BIFF8=>BIFF5 tests
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2934 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-08 10:27:50 +00:00
bigchimp
617ba13515 * Tests: fix not writing testmanual.xls
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2933 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-08 10:26:21 +00:00
bigchimp
435cc15729 * Replace XLSDEBUG define for writeln debug output to FPSPREADDEBUG as it is used beyond just xls support.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2932 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-08 09:53:02 +00:00
bigchimp
27498ff548 + Add support for more/easier RPN formulas in XLS
- Allow relative cell references in RPN formulas
- Simplify generation of RPN formulas by using nested function calls
- Add writing of cell ranges for formulas in BIFF2/BIFF5
- Simplification of code e.g. by replacing the huge case instruction in TsSpreadBiffWriter.FormulaElementKindToExcelTokenID by a look-up table.
Fixes mantis issue #25718; patch by wp; thanks a lot!



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2931 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-08 09:48:30 +00:00
bigchimp
b7eb5352c0 * Tests updated to work with current code (i.e. no new RPN support yet).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2930 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-08 09:33:13 +00:00
bigchimp
d8c10d8668 * Tests part of patch referenced issue 25718 (actual patch on forum) for RPN formulas. Thanks wp.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2929 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-07 16:42:19 +00:00
alexs75
6f2c0baee5 RxDBGrid - fix partial search in find form
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2928 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-07 08:04:42 +00:00
alexs75
c9266bbd58 RxDBGrid - fix compile with fpc 2.6.2
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2927 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-04-02 11:44:09 +00:00
alexs75
fff0dd470f RxDBGrid - fix compile with fpc 2.6.2
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2926 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-31 11:08:07 +00:00
alexs75
cebbb30307 RxDBGrid: workaround for fix navigation problem on calc footer rows
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2925 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-27 12:36:50 +00:00
bigchimp
f95e48563a * OpenDocument .ods: tweaked support for reading time only fields introduced in r2908: fixes for 1899/1900/1904 date mode. Still needs more tweaks for 1904 date mode (and presumably 1900 as well)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2924 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-26 10:26:43 +00:00
mgaertner
eacb01bf22 mplayer: updated readme
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2923 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-26 08:49:13 +00:00