Commit Graph

918 Commits

Author SHA1 Message Date
wp_xxyyzz
92d53af0e6 fpspreadsheet: Removing some inconsistencies in the fill pattern system
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9736 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-09 09:28:53 +00:00
wp_xxyyzz
3a1e0cd00a FPSpreadsheet: Fix detection of some malformed jpg images. Forum https://forum.lazarus.freepascal.org/index.php/topic,71072.msg554199.html.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9735 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-08 11:50:47 +00:00
wp_xxyyzz
38949ce5f7 fpspreadsheet: Some convenience function for line patterns
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9734 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-07 17:31:02 +00:00
wp_xxyyzz
5bb6c138fe fpspreadsheet: Support writing of image fills.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9733 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-07 17:16:43 +00:00
wp_xxyyzz
4227a4864e fpsreadsheet: Fix range overflow related to embedded objects.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9732 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-05 20:05:04 +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
60c84126d7 fpspreadsheet: Fix drawing of pattern fills in xlsx.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9730 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-04 16:30:33 +00:00
wp_xxyyzz
4a1db9c373 FpSpreadsheet: FIx using fill pattern in multiple charts. Some cleanup.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9729 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-04 15:04:16 +00:00
wp_xxyyzz
c81b86dbdf fpspreadsheet: Redo chart pattern fills for better agreement between xlsx and ods files. INCOMPATIBLE CHANGES! Update sample projects.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9728 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-05-03 22:08:13 +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
960402692f FPSpreadsheet: Fix misc bugs in INDEX and INDIRECT formulas.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9646 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-25 10:49:55 +00:00
wp_xxyyzz
7c75ca5398 FPSpreadsheet: Fix INDIRECT for cell range references. Add unit tests for the INDIRECT formula.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9644 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-24 11:48:51 +00:00
wp_xxyyzz
a02dcc5c93 FPSpreadsheet: Fix worksheetgrid AutoAdvance default value (https://forum.lazarus.freepascal.org/index.php/topic,70342.msg548118)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9643 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-23 16:31:18 +00:00
wp_xxyyzz
b3fca34799 FPSpreadsheet: Fix formula MATCH support of wildcards in strings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9642 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-19 18:47:36 +00:00
wp_xxyyzz
69fb5b2ea2 FPSpreadsheet: Fix compilation (issue #39106). Add unit test for ADDRESS formula.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9641 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-18 09:17:14 +00:00
wp_xxyyzz
81f20ccfdb FPSpreadsheet: Add unit tests for ACOS, ODD, POWER, RADIANS
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9640 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-17 10:58:14 +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
ddef318478 FPSpreadsheet: Fix COUNTIF, SUMIF and AVERAGEIF formulas when they contain error values in the arguments.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9624 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-11 18:18:47 +00:00
wp_xxyyzz
8959750876 FPSpreadsheet: Fix MATCH finding wrong duplicate value. See https://forum.lazarus.freepascal.org/index.php/topic,70130.0.html. Update unit test.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9621 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-08 11:02:16 +00:00
wp_xxyyzz
016a7136bb FPSpreadsheet: Fix error in IF formula when second argument contains an error and is selected. See https://forum.lazarus.freepascal.org/index.php/topic,70117.msg546252. Update unit test.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9620 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-02-06 21:26:55 +00:00
wp_xxyyzz
5c33ac9769 FPSpreadsheet: Add more unit tests for formula AVERAGEIF .
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9606 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-27 23:05:14 +00:00
wp_xxyyzz
e66040bd5c FPSpreadsheet: Add more unit test cases for COUNTIF and SUMIF.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9605 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-26 23:31:57 +00:00
wp_xxyyzz
d80948d93a FpSpreadsheet: More formula calculation unit tests. Fix some formulas for special arguments.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9603 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-25 18:32:21 +00:00
wp_xxyyzz
0efab0339c FPSpreadsheet: Add more unit tests for formula calculation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9602 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-24 00:12:37 +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
e5e12455ea FPSpreadsheet: Redo error propagation in formula engine (https://forum.lazarus.freepascal.org/index.php/topic,69893.msg544003.html#msg544003, https://forum.lazarus.freepascal.org/index.php/topic,69900.0.html). Incomplete, formula IsError is broken.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9596 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-22 12:02:41 +00:00
wp_xxyyzz
e7384d44ad FPSpreadsheet: Fix formulas with sheetnames containing a dash character (https://forum.lazarus.freepascal.org/index.php/topic,69891.0.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9595 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-20 18:04:36 +00:00
wp_xxyyzz
cae258705a FPSpreadsheet: Avoid splitting of cell comments in worksheetgrid when the comment contains a '|' character.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9591 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2025-01-16 13:32:46 +00:00
wp_xxyyzz
43f8e27ce2 fpspreadsheet: Fix centering of worksheet in xlsx print-out. Fix print page orientation in ods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9507 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-11-30 16:41:58 +00:00
wp_xxyyzz
17132ec44a fpspreadsheet: More conservative version of previous commit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9505 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-11-22 18:33:55 +00:00
wp_xxyyzz
16e9ab27f1 fpspreadsheet: Fix design-time crash of workbooksource when notifying chartlink without assigned chart.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9504 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-11-22 18:25:24 +00:00
wp_xxyyzz
188553b343 fpspreadsheet: Add property UsesBuiltinWorkbook to TsWorkbookSource for not overwriting some grid-specific settings when a new workbook is created. https://forum.lazarus.freepascal.org/index.php/topic,69126.msg536779
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9496 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-11-04 11:02:09 +00:00
wp_xxyyzz
b9e2301025 FPSpreadsheet: Fix crash caused by error cells with sheetname (e.g., "sheetname!#REF!")
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9488 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-18 18:17: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
0fab687b13 FPSpreadsheet: Fix log axis sometimes dropping labels.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9485 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-17 21:22:13 +00:00
wp_xxyyzz
6f5ac5dcf0 FPSpreadsheet: Fix occasionally missing axis labels in ods reading.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9483 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-11 13:11:25 +00:00
wp_xxyyzz
c163481ff7 FPSpreadsheet: Fix incorrect underlining of text by xlsx reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9482 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-11 12:50:30 +00:00
wp_xxyyzz
f41595301d FPSpreadsheet: Fix reader to detect underlined font in xlsx charts.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9479 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-02 14:57:36 +00:00
wp_xxyyzz
241004072c FPSpreadsheet: Fix font of xlsx axis labels.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9478 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-02 14:25:51 +00:00
wp_xxyyzz
a7d585814f FPSpreadsheet: Fix display of category axis labsls.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9477 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-02 14:03:02 +00:00
wp_xxyyzz
d3516c739b FPSpreadsheet: Fix duplicate legend items (after tabcontrol support)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9476 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-01 18:09:58 +00:00
wp_xxyyzz
6599aeba51 FPSpreadsheet: Fix reading text:span elements in chart titles.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9475 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-30 22:02:54 +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
b4d8b94830 FPSpreadsheet: Fix no splines in rotated ods series.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9470 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-29 10:20:32 +00:00
wp_xxyyzz
9c4fbfc963 fpspreadsheet: Support themed background colors in charts
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9469 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-27 20:39:03 +00:00
wp_xxyyzz
e7161ea286 FPspreadsheet: Fix compilation with Laz 2.0.x/FPC 3.0.x
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9468 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-27 18:06:02 +00:00
wp_xxyyzz
332e6d234b FPSpreadsheet: Horizontal chart legend when at bottom.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9467 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-27 17:20:11 +00:00
wp_xxyyzz
b91bc85680 fpspreadsheet: Handle differences in gradient appearence between xlsx and ods. More consistent order of arguments in the AddXXXGradient methods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9466 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-26 16:07:12 +00:00
wp_xxyyzz
6da05d1f85 fpsspreadsheet: Remove TsChartGradient.Border (contained in Steps[0]).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9465 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-26 11:44:34 +00:00
wp_xxyyzz
d19010191f fpspreadsheet: Simplify chart gradient creation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9464 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-24 18:07:41 +00:00