Commit Graph

65 Commits

Author SHA1 Message Date
wp_xxyyzz
ef0d96fa34 fpspreadsheet: xlsx writer supports chart plotarea background and border.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9276 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-08 00:21:03 +00:00
wp_xxyyzz
94bdea03f5 fpspreadsheet: Improved luminance modulation and offset calculation of chart colors.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9275 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-08 00:03:14 +00:00
wp_xxyyzz
7a563091f5 fpspreadsheet: Fix crash and wrong colors when reading stock HLC ods test file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9258 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-02-25 23:38:45 +00:00
wp_xxyyzz
7450192040 fpspreadsheet: First pieces of the xlsx reader of spreadsheet charts (axes, legend, bar chart).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9117 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-03 22:37:34 +00:00
wp_xxyyzz
d7354fa6d7 fpspreadsheet: ods reader and chart link support bitmap fill patterns.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9040 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-23 18:49:41 +00:00
wp_xxyyzz
3293877ea5 fpspreadsheet: ods reader supports chart series.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9021 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-10 23:31:27 +00:00
wp_xxyyzz
1df9a434de fpspreadsheet: No longer ignore worksheets in chart cell ranges.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9020 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-10 16:19:22 +00:00
wp_xxyyzz
0bb5c1dc33 fpspreadsheet: ods chart reader supports gradient styles.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9014 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-07 19:17:23 +00:00
wp_xxyyzz
84f0bc8483 fpspreadsheet: Support individual fill colors of bars, bubbles, symbols. Fix dash line pattern broken after previous commit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8997 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-10-29 15:52:46 +00:00
wp_xxyyzz
d9d332c81d fpspreadsheet: Add files dropped from previous commit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8970 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-10-22 08:33:55 +00:00
wp_xxyyzz
1b7244c10e fpspreadsheet: Fix writing formulas with "forbidden characters" in the sheet name ('<', '>', '=').
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8946 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-10-09 23:18:59 +00:00
wp_xxyyzz
2dfd80db3d fpspreadsheet: Add specialized reader for password-protected ods files. Temporatily add dependence on Abbrevia to crypto package (until FPC issue #40369 is fixed). Add sample project for reading encrypted ods file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8910 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-08-03 12:58:43 +00:00
wp_xxyyzz
3a2cfd397f fpspreadsheet: Check compilation back to Laz 1.4.4/fpc 2.6.4. Update conditional defines in fps.inc.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8734 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-02-23 11:42:24 +00:00
wp_xxyyzz
eb0d7767fb fpspreadsheet: Fix handling of hyperlinks with spaces in the bookmark (sheet name).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8604 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-11-10 19:23:23 +00:00
wp_xxyyzz
68ec591390 fpspreadsheet: Use '?' as common broken-utf8-replacement character.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8578 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-21 14:20:06 +00:00
wp_xxyyzz
506dbe52b7 fpspreadsheet: Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8577 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 21:15:56 +00:00
wp_xxyyzz
9d63e15606 fpspreadsheet: Fix writing malformed UTF8 text to Excel5 xls format (display as '?').
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8572 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 15:24:39 +00:00
wp_xxyyzz
4831f684fc fpspreadsheet: Avoid duplicate error message when writing defective UTF8 to ods. Related to issue #39045.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8570 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 14:09:56 +00:00
wp_xxyyzz
df2c182ee2 fpspreadsheet: Simplified solution for multi-line text issue #39045 fixing also malformed UTF8 strings for ods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8568 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 10:09:16 +00:00
wp_xxyyzz
0f64e793db fpspreadsheet: Fix incorrect column calculation when ODS formula refers to column index > 25 (> 'AA') (https://forum.lazarus.freepascal.org/index.php/topic,59001).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8245 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-08 10:57:15 +00:00
wp_xxyyzz
a0993874a1 fpspreadsheet: Add chm help for unit fpsCurrency. Refine some help texts in fpsUtils.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8152 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-11-22 22:35:12 +00:00
wp_xxyyzz
8f8e736b98 fpspreadsheet: Use pasdoc for api chm file generation rather than Doc-O-Matic. Adapt source file comments to pasdoc requirements.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7984 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-03-27 23:16:48 +00:00
wp_xxyyzz
86498e70d8 fpspreadsheet: Fix ISODateTime conversions when local time offset is given
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7967 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-01-24 12:59:52 +00:00
wp_xxyyzz
25d59b8e88 fpspreadsheet: Fix meta data reading error of some ods files. Avoid display of metadata zero dates in Excel.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7583 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-28 21:30:12 +00:00
wp_xxyyzz
ea91b7fca5 fpspreadsheet: Add metadata writer for Excel XML. Fix usage of UTC in the Excel metadata.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7580 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-28 17:57:32 +00:00
wp_xxyyzz
bbf4b2b092 fpspreadsheet: Add metadata support. Add metadata reader/writer for XLSX.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7577 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-28 12:34:50 +00:00
wp_xxyyzz
64b69c2893 fpspreadsheet: Fix compilation issue due to stupid 64-bit fpc not being able to pick correct overload of MinValue. Less hints on 64 bit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7556 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-22 17:55:17 +00:00
wp_xxyyzz
901b92fa72 fpspreadsheet: Some clean-up: Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7555 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-22 09:07:59 +00:00
wp_xxyyzz
faf6f72ab8 fpspreadsheet: Rearrange ODS reading code for conditional formats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7552 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-21 17:53:20 +00:00
wp_xxyyzz
2793744bf7 fpspreadsheet: Add reading and writing support for conditional formats in Excel XML files (not yet complete).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7549 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-17 19:50:40 +00:00
wp_xxyyzz
52e4cccf80 fpspreadsheet: XLSX reader supports expression conditional format. Add test case for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7546 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-16 20:46:21 +00:00
wp_xxyyzz
a3e2c6c8a3 fpspreadsheet: Facilitate using cell borders and cell border styles.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7544 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-15 21:03:54 +00:00
wp_xxyyzz
3189f58ee5 fpspreadsheet: Camelcase some unit names.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7525 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-04 10:32:38 +00:00
wp_xxyyzz
b80085c78d fpspreadsheet: Move conditional format list from worksheet to workbook (to facilitate handling for ODS).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7503 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-30 10:45:14 +00:00
wp_xxyyzz
8160638051 fpspreadsheet: Initial commit for conditional formatting. Based on ideas of forum user "abcthing" (https://forum.lazarus.freepascal.org/index.php/topic,50149.0.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7492 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-25 17:18:32 +00:00
wp_xxyyzz
5def48c316 fpspreadsheet: Fix display of images inserted in WorksheetGrid under gtk as black areas.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7331 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-11 12:34:46 +00:00
wp_xxyyzz
91e4b55009 fpspreadsheet: Fix 32-bit overflow in fpsutils.Round().
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7174 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-11-03 11:05:08 +00:00
wp_xxyyzz
d88d99a5a2 fpspreadsheet: Avoid Banker's rounding (https://forum.lazarus.freepascal.org/index.php/topic,46104.0.html). Add unit tests for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7061 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-20 16:52:10 +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
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
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
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
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
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
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
f8f096dcf8 fpspreadsheet: Quote sheet names if they contain illegal characters for the expression parser.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6607 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-08-17 12:00:02 +00:00
wp_xxyyzz
6e2cc3fe7e fpspreadsheet: Fix reading of ods files containing formulas with several arguments (separator semicolon). Update unit tests. (Still issues with files posted at https://forum.lazarus.freepascal.org/index.php/topic,42168.msg293792.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6574 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-08-09 14:28:17 +00:00
wp_xxyyzz
38001d24d7 fpspreadsheet: Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6456 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-04 11:03:03 +00:00
wp_xxyyzz
a6900014cf fpspreadsheet: Use a StringHashTable for the SST needed when writing BIFF8 (significant speed-up of files with many strings, but still considerably slower than BIFF5 and BIFF2).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6447 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-05-31 16:22:41 +00:00
wp_xxyyzz
40fabfc201 fpspreadsheet: Redo storage of formulas: formulas now are stored in a separate tree independent of the cells tree. The field FormulaValue of TCell record was removed. All unit tests passed. Demos updated (issues of speedtest due to SST in BIFF8 found - not related).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6446 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-05-30 22:15:07 +00:00