Commit Graph

179 Commits

Author SHA1 Message Date
wp_xxyyzz
9d3d766fbd fpspreadsheet: Redo sizing of images and charts.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9766 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-30 23:09:18 +00:00
wp_xxyyzz
a882ac0508 fpspreadsheet: More help texts for the chart module.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9765 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-30 00:14:37 +00:00
wp_xxyyzz
9ec7cea591 fpspreadsheet: Support reading of embedded images in xlsx with one-cell-anchors and with image rotation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9752 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-22 14:16:18 +00:00
wp_xxyyzz
40c0442499 fpspreadsheet: Add zoomfactor demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9751 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-22 09:00:28 +00:00
wp_xxyyzz
a3bd99825a fpspreadsheet: Make RawFillPatterns global.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9747 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-18 09:00:21 +00:00
wp_xxyyzz
6dab14d899 fpspreadsheet: Fix incorrect position of inserted images (forum https://forum.lazarus.freepascal.org/index.php/topic,71072.msg554910.html#msg554910)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9745 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-15 21:12:42 +00:00
wp_xxyyzz
a817a0d65c fpspreadsheet: FillPattern list is no longer global, but a member of the workbook. Class renamed to TsRawFillPatternList.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9731 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-05 17:23:46 +00:00
wp_xxyyzz
cfe6c14a8f fpspreadsheet: Clip cell ranges at the sheet dimension limits. Add some test cases for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9651 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-26 23:27:47 +00:00
wp_xxyyzz
350efafd15 FPSpreadsheet: Handle missing argument in ROW and COLUMN formulas. Add unit tests for ROW, COLUMN, LOG, LOG10, and fix others regarding error cases.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9639 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-17 08:50:06 +00:00
wp_xxyyzz
c5b8b6077c FPSpreadsheet: Fix error propagation in ISERROR formula. Fix Excel pecularities in DATE and TIME formulas. Add formula calculation unit tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9597 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-23 00:04:07 +00:00
wp_xxyyzz
c9d4d9f48b FPSpreadsheet: Fix incorrect detection of numeric strings beginning with 'E' as valid numbers (https://forum.lazarus.freepascal.org/index.php/topic,68953.msg534081)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9487 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-18 14:06:08 +00:00
wp_xxyyzz
bb303d45aa fpspreadsheet: Add WorkbookTabControl to chartlink demo to select the (first) chart of the current sheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9474 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-30 21:35:39 +00:00
wp_xxyyzz
179382c959 FPSpreadsheet: Fix positioning of charts in xlsx and ods files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9459 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-21 17:40:13 +00:00
wp_xxyyzz
516e543ce3 FPSpreadsheet: Fix missing default return values when calculating drawing size
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9456 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-20 18:17:06 +00:00
wp_xxyyzz
51c89b10ca FPSpreadsheet: Change signature of AddChart() methods. Adapt all sample projects.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9442 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-15 21:28:40 +00:00
wp_xxyyzz
0c4bdb63ad FPSpreadsheet: Move chart code from fpspreadsheet unit to include file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9441 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-15 20:50:40 +00:00
wp_xxyyzz
12ee2c0b1b fpspreadsheet: Adjust defined name ranges when rows/cols are inserted/deleted. Handle #REF! error in defined names.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9409 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-31 18:30:29 +00:00
wp_xxyyzz
b9a68c5f8e fpspreadsheet: support local defined names in xlsx (Note: scope not checked by fps, so far)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9407 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-28 17:14:24 +00:00
wp_xxyyzz
19e94158df fpspreadsheet: Support defined names in xlsx files. No formula support so far.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9397 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-24 13:20:11 +00:00
wp_xxyyzz
07acd0c37b fpspreadsheet: Revert r9387
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9389 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-17 14:34:11 +00:00
wp_xxyyzz
d7fad0c7b8 fpspreadsheet: Experimental change related to recursive formulas.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9387 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-17 10:46:51 +00:00
wp_xxyyzz
79c502f0e9 FpSpreadsheet: Fix INDIRECT formula regarding references to other sheets.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9356 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-30 12:04:34 +00:00
wp_xxyyzz
1c088daf23 fpspreadsheet: Destroy charts along with their worksheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9164 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-23 21:30:58 +00:00
wp_xxyyzz
4f0e2e8b83 fpspreadsheet: Add conditional define FPS_CHARTS (active by default) to compile the lib with and without chart support.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9108 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-12-28 22:41:39 +00:00
wp_xxyyzz
c439c073aa fpspreadsheet: Fix TsWorkbookChartSource to respect multiple y values.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9045 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-26 18:09:17 +00:00
wp_xxyyzz
476d66e34b fpspreadsheet: Initial commit of ods chart reader (not complete).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9013 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-07 17:25:03 +00:00
wp_xxyyzz
47c600325b fpspreadsheet: Fix incorrect handling of <br> tag in html cell text. Cells with line-breaks are now automatically word-wrapped.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9005 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-11-01 22:00:11 +00:00
wp_xxyyzz
e2b5978a42 fpspreadsheet: Support pie and ring series. Add piechart demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9003 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-10-30 17:41:53 +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
3e83e09f00 fpspreadsheet: Update documentation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8935 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-10-07 21:51:23 +00:00
wp_xxyyzz
16ae04a385 fpspreadsheet: Fix evaluation of worksheet rels. Fix copying comments (sourceforge issue #61)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8928 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-10-02 21:53:23 +00:00
wp_xxyyzz
488c414fa5 fpspreadsheet: Store whether a cell is not allowed for printing (UsedFormattingFields flag uffDoNotPrint). Implemented for ODS only.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8921 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-08-28 21:51:20 +00:00
wp_xxyyzz
a5cdbad1bb fpspreadsheet: Fix insert row/col behaviour when insert happens at the anchor of a merged block. Issue #39051.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8819 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-05-04 11:33:18 +00:00
wp_xxyyzz
2daa348262 fpspreadsheet: Adjust conditional format range when rows/cols are inserted or deleted. See https://forum.lazarus.freepascal.org/index.php/topic,61810.0.html
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8672 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-01-10 21:54:55 +00:00
wp_xxyyzz
870e46847a fpspreadsheet: MoveCell completely overwrites destination cell. MoveCell with sourcecell=nil erases destination cell. Related unit test cases.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8270 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-28 10:08:39 +00:00
wp_xxyyzz
16d631d0cf fpspreadsheet: Fix missing error when cells are moved so that a circular reference formula is created (https://forum.lazarus.freepascal.org/index.php/topic,59137.msg441301.html#msg441301).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8269 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-27 21:28:44 +00:00
wp_xxyyzz
a64ed1654e fpspreadsheet: Fix issue when moving cells with formulas mentioned in previous commit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8263 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-22 21:57:56 +00:00
wp_xxyyzz
25878c44d6 fpspreadsheet: Disable workbook notifications while moving cells.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8261 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-22 21:42:02 +00:00
wp_xxyyzz
02bd21629c fpspreadsheet: Add method TsWorksheet.MoveCell (forum https://forum.lazarus.freepascal.org/index.php/topic,59137).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8260 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-22 20:12:08 +00:00
wp_xxyyzz
b4ac1e075d fpspreadsheet: Fix issue that Insert/DeleteRow/Col operation changes formulas in unaffected sheets (see https://forum.lazarus.freepascal.org/index.php/topic,59102.0.html). Add test cases for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8259 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-21 16:45:44 +00:00
wp_xxyyzz
dba75889aa fpspreadsheet: Clean up searching routines.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8080 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-08-26 13:19:10 +00:00
wp_xxyyzz
ac50969b7f fpspreadsheet: Catch formula errors in ODS reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8067 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-08-08 16:18:51 +00:00
wp_xxyyzz
a7913ef0a4 fpspreadsheet: Do not unmerge cells in Worksheet.EraseCell when parameter KeepFormat is true.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8047 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-06-03 09:59:51 +00:00
wp_xxyyzz
00c3bdb639 fpspreadsheet: Fix ignored-formula feature.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7997 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-04-15 13:40:42 +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
6a50fa2a4a fpspreadsheet: Remove cell content type cctFormula, it is a left-over from old formula engine. It causes incorrect reading of precalculated content in the first shared formula cell of BIFF. Tests still ok. (https://forum.lazarus.freepascal.org/index.php/topic,52811.0.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7962 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-01-09 18:54:11 +00:00
wp_xxyyzz
95cc2da283 fpspreadsheet: Fix incorrect handling of cell reference by new forumula INDIRECT(). Add test cases for formula ADDRESS().
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7862 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-11-11 23:43:44 +00:00
wp_xxyyzz
196b787aed fpspreadsheet: Fix Workbook.Clear not clearing metadata.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7599 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-08-11 16:18:47 +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
e191dd00e5 fpspreadsheet: Support conditional icon set format in worksheet, and in XLSX and ODS file access. Add unit tests for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7558 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-23 22:25:24 +00:00