Commit Graph

248 Commits

Author SHA1 Message Date
wp_xxyyzz
3b0e46b92c fpspreadsheet: Fix Excel2003/XML format tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7050 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-18 15:58:16 +00:00
wp_xxyyzz
f534927e0e fpspreadsheet: Add test cases for Excel 2003/XML format. Not complete yet, some test failures.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7048 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-17 22:33:22 +00:00
wp_xxyyzz
900f88ccf2 fpspreadsheet: Avoid unnecessary "ss:index" attribute when writing Excel 2003/XML files. Minor refactoring of writer code.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7045 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-17 19:16:34 +00:00
wp_xxyyzz
4b1c9b09d1 fpspreadsheet: Excel 2003/XML reader supports rich-text formatting.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7044 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-17 17:22:43 +00:00
wp_xxyyzz
347c7328d1 fpspreadsheet: Fix localized AM/PM string appearing in time format strings (https://forum.lazarus.freepascal.org/index.php/topic,46069.msg327309.html#msg327309).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7043 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-16 22:11:00 +00:00
wp_xxyyzz
b472802603 fpspreadsheet: Support of some more features by Excel2003/XML reader. Display PrintRanges, repeated rows and columns by SpreadsheetInspector.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7042 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-16 15:41:29 +00:00
wp_xxyyzz
0051d96af6 fpspreadsheet: Read PageLayout/PrintSettings in Excel2003/XML files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7040 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-15 22:56:15 +00:00
wp_xxyyzz
b7e1b3fee8 fpspreadsheet: Add file missing from previous commit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7039 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-15 22:54:02 +00:00
wp_xxyyzz
18afbfdd84 fpspreadsheet: Excel2003/XML reader supports formulas now.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7038 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-15 21:00:47 +00:00
wp_xxyyzz
8f706c4a8c fpspreadsheet: Fix writing of RC formulas for Excel2003/XML format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7037 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-15 11:03:34 +00:00
wp_xxyyzz
8ff3813be2 fpspreadsheet: Add format string to number format error messages.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7036 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 21:14:14 +00:00
wp_xxyyzz
a601573459 fpspreadsheet: Support comments and hyperlinks in Excel2003/XML reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7035 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 21:03:54 +00:00
wp_xxyyzz
5aff5d6d37 fpspreadsheet: Fix writing of RichText in Excel2003/XML format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7034 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 20:37:29 +00:00
wp_xxyyzz
73f87c6979 fpspreadsheet: Support merged cells in Excel 2003/xml reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7033 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 18:01:39 +00:00
wp_xxyyzz
2683b34e2f fpspreadsheet: Support column and row formats as well as column widths and row heights in Excel2003-xml reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7032 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 17:55:00 +00:00
wp_xxyyzz
3713bed892 fpspreadsheet: Style support in Excel2003-xml reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7031 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 14:59:32 +00:00
wp_xxyyzz
c05c5ff9eb fpspreadsheet: Add support for DefaultRowHeight and DefaultColumnWidth to Excel2003xml reader
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7030 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-13 22:13:45 +00:00
wp_xxyyzz
28fc3e19c4 fpspreadsheet: Support "ss:Data" nodes in Excell2003-xml reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7029 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-13 21:49:31 +00:00
wp_xxyyzz
b09e7d069b fpspreadsheet: Add basic Excel2003 xml reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7028 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-13 20:53:15 +00:00
wp_xxyyzz
b38dcbe737 fpspreadsheet: Fix index bug in TsWorksheet.SetIndex (reported by forum user "iteh")
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7012 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-06-17 15:09:48 +00:00
wp_xxyyzz
7585c5a3c9 fpspreadsheet: Rework of worksheet sorting, patch by Zoran (https://forum.lazarus.freepascal.org/index.php/topic,45474.msg321648.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7011 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-06-17 12:08:12 +00:00
wp_xxyyzz
d0b98b3435 fpspreadsheet: Fix crash when only unit xlsxooxml is in uses clause for reading an xlsx file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7009 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-06-15 14:18:09 +00:00
wp_xxyyzz
21b927cc27 fpspreadsheet: Add property Worksheet.Index.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7005 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-06-09 23:15:10 +00:00
wp_xxyyzz
ae1719d0a3 fpspreadsheet: Another fix to default compare procedure for sorting worksheets.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6932 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-21 14:26:52 +00:00
wp_xxyyzz
e0213b0848 fpspreadsheet: Make default cell compare procedure public.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6929 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-20 11:49:44 +00:00
wp_xxyyzz
dfa57b80e9 fpspreadsheet: Fix infinite loop in Worksheeet sorting when the sorted range contains an empty cell. Make Worksheetgrid.Sort public.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6928 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-20 10:13:39 +00:00
wp_xxyyzz
d650914a3f fpspreadsheet: Fix crash in the biff8 reader's FreeSharedStringTable when no SST is used.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6912 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-13 15:43:06 +00:00
wp_xxyyzz
acda1ecd09 fpspreadsheet: Fix memory leak due to rich-text streams in shared string table when reading biff8. Issue #35528, modified patch by Jurijs Romanovs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6891 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-06 15:50:39 +00:00
wp_xxyyzz
1dc7fd8705 fpspreadsheet: Less stringent requirements for presence of localSheetID attributes for names ranges in xlsx files. Issue #34381.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6858 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-22 18:03:35 +00:00
wp_xxyyzz
9369e4d3ef fpspreadsheet: Fix cells being pasted in grid from clipboard when worksheet is protected.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6847 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-13 20:21:33 +00:00
wp_xxyyzz
a52a6a75a8 fpspreadsheet: Fix worksheet crashing when Font #4 is created.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6829 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-03-06 23:23:57 +00:00
wp_xxyyzz
e20a18fd7f fpspreadsheet: Implement spreadsheet functions ROW() and COLUMN()
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6822 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-02-27 22:27:47 +00:00
wp_xxyyzz
a6e527d8c1 fpspreadsheet: Add to error log when a file with unknown formula is read.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6821 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-02-27 20:47:33 +00:00
wp_xxyyzz
17d4e8186a fpspreadsheet: Avoid format detection pick csv reader when fpsAllFormats is used and the provided xlsx file contains an error.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6820 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-02-27 12:13:19 +00:00
wp_xxyyzz
8e86543dde fpspreadsheet: Fix formula parser ignoring errors in binary nodes (see https://forum.lazarus.freepascal.org/index.php/topic,44426.0.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6819 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-02-26 09:03:12 +00:00
wp_xxyyzz
748fea48a1 fpspreadsheet: Add method TsWorksheet.GetFormula to return the formula associated with a cell.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6818 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-02-24 11:25:28 +00:00
wp_xxyyzz
6858d3da86 fpspreadsheet: Introduce OnCalcWorkbook event to replace the (inefficient) fpspreadsheet workbook calculation strategy by one provided by the user.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6817 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-02-24 10:36:56 +00:00
wp_xxyyzz
3f113c63bb fpspreadsheet: Some clean-up
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6769 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-12-25 08:58:16 +00:00
wp_xxyyzz
8b3b74de88 fpspreadsheet: Add formula MATCH. Improved error detection on math formulas.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6768 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-12-24 23:02:52 +00:00
wp_xxyyzz
495fcb92eb fpspreadsheet: Redo automatic file format detection: Add method CheckFileFormat to each reader for overriding (check file header or whatever).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6764 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-12-18 13:08:58 +00:00
wp_xxyyzz
27d77fe114 fpspreadsheet: Make file readers/writers raise EFpSpreadsheetReader/EFpSpreadsheetWriter exceptions instead of EFpSpreadsheet
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6763 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-12-18 09:44:46 +00:00
wp_xxyyzz
e65331e881 fpspreadsheet: Improved format detection for user-defined file formats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6762 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-12-18 09:43:08 +00:00
wp_xxyyzz
02281cd15f fpspreadsheet: Improved auto-format detection (check extension first, check file header when extension test fails). Fix ods reader crashing when extension has been renamed.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6760 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-12-18 00:07:16 +00:00
wp_xxyyzz
d597266e0d fpspreadsheet: Add basic infrastructure for chart support.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6742 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-12-01 23:02:22 +00:00
wp_xxyyzz
d8735a174e fpspreadsheet: Add support for xlsx files written by OpenXML (using namespace x) - see forum https://forum.lazarus.freepascal.org/index.php?topic=43159.msg301884).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6726 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-11-12 23:34:56 +00:00
wp_xxyyzz
eba44b8b45 fpspreadsheet: ODS now can read images with hyperlinks. Fix image reading for new ODS format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6674 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-10-06 11:23:12 +00:00
wp_xxyyzz
07991acca5 fpspreadsheet: Read image hyperlinks for ODS (old format). Display image hyperlinks in TsSpreadsheetInspector.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6673 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-10-06 09:19:05 +00:00
wp_xxyyzz
693ab2f3eb fpspreadsheet: the xlsx writer now can write an image hyperlink.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6672 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-10-05 16:31:14 +00:00
wp_xxyyzz
48d37a6351 fpspreadsheet: Add hyperlink to image. Supported by ODS writer, so far.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6671 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-10-04 14:37:28 +00:00
wp_xxyyzz
74f61771c9 fpspreadsheet: Fix reading of repeated columns from ODS files (introduced by r6636).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6645 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-09-11 21:24:51 +00:00