Commit Graph

832 Commits

Author SHA1 Message Date
wp_xxyyzz
6a319f55b8 fpspreadsheet: support local defined names in ods (Note: scope not checked by fps, so far)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9408 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-28 18:09:09 +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
b3deb7c0f6 fpspreadsheet: Fix incorrect usage of single-cell defined names.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9406 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-27 17:14:12 +00:00
wp_xxyyzz
7980b028b0 fpspreadsheet: Validate defined names.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9405 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-26 17:17:56 +00:00
wp_xxyyzz
5d03b1ca0e fpspreadsheet: Simplify usage of single-cell defined names. Fix 3D range formulas with defined names.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9404 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-25 21:34:44 +00:00
wp_xxyyzz
52a79e952f fpspreadsheet: Fix defined names for ranges with several cells.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9403 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-25 17:26:35 +00:00
wp_xxyyzz
0d6a27eff3 fpspreadsheet: Fix calculation of formulas with defined names in ODS.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9401 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-25 09:44:52 +00:00
wp_xxyyzz
f6b3b7e9dd fpspreadsheet/defined names: Some refactoring in formulas.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9400 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-25 09:44:07 +00:00
wp_xxyyzz
a7620227c6 fpspreadsheet: Formula support for defined names.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9399 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-24 22:29:17 +00:00
wp_xxyyzz
7735590b99 fpspreadsheet: Support defined names in ods files. No formula support so far.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9398 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-24 18:08:13 +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
0374c7314f fpspreadsheet: Remove twice quoting of worksheet names containing forbidden characters. https://forum.lazarus.freepascal.org/index.php/topic,67918.msg523859
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9394 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-17 15:57:54 +00:00
wp_xxyyzz
f972e77759 fpspreadsheet: Fix missing return value of function fpsfunc.CompareStringWithWildCards
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9391 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-17 15:35:53 +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
fe27d6ec34 fpspreadsheet: Fix formula MATCH for match_type 1.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9388 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-17 14:33:12 +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
b026ed55c2 fpspreadsheet: Fix MATCH searching in incorrect direction when match_type is 0 or 1. See https://forum.lazarus.freepascal.org/index.php/topic,67849.msg523596.html#msg523596
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9384 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-15 13:05:11 +00:00
wp_xxyyzz
01fbf93a73 fpspreadsheet: Fix yet another bug in previous commit. Issue #39073
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9383 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-12 15:35:32 +00:00
wp_xxyyzz
3dfb71a70e fpspreadsheet: Repeat unit of previous commit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9382 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-12 10:45:39 +00:00
wp_xxyyzz
d8ca9b905f fpspreadsheet: Fix MATCH formula when 1st argument is a cell (see https://forum.lazarus.freepascal.org/index.php/topic,67849.0.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9381 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-12 10:39:37 +00:00
wp_xxyyzz
7f8e724978 fpspreadsheet: Fix display of formula with cell range when both ends are equal.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9379 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-05 11:03:46 +00:00
wp_xxyyzz
4fa643f210 fpspreadsheet: Fix copying of formulas with absolute cell references. (https://forum.lazarus.freepascal.org/index.php/topic,67763.0.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9378 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-07-04 17:13:09 +00:00
wp_xxyyzz
61033d13c1 fpspreadsheet: Fix memory leak (https://forum.lazarus.freepascal.org/index.php/topic,67706.msg521818.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9371 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-06-28 14:04:51 +00:00
wp_xxyyzz
17d8466ce1 fpspreadsheet: Implement working solution of IFS formula with LibreOffice Calc. (cannot test Excel since I only have v2016)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9370 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-06-22 18:48:39 +00:00
wp_xxyyzz
64197c10db fpspreadsheet: Trying to implement IFS function
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9369 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-06-22 18:33:03 +00:00
wp_xxyyzz
1f686ef1c9 fpspreadsheet: Compare strings in COUNTIF(S), SUMIF(S), AVERAGEIF(S) with wildcards.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9366 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-06-04 09:28:10 +00:00
wp_xxyyzz
09f442d20a fpspreadsheet: Cleanup
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9365 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-06-03 22:19:00 +00:00
wp_xxyyzz
0af3201613 fpspreadsheet: Fix COUNTIFS, SUMIFS, AVERAGEIFS formulas.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9364 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-06-03 22:06:25 +00:00
wp_xxyyzz
8ff431d05e fpspreadsheet: Refactor internal DoIF procedure for calculation of COUNTIF, SUMIF, AVERAGEIF. Prepared from COUNTIFS, SUMIFS, AVERAGEIFS, but not yet working correctly. Add unit test cases for COUNTIF and SUMIF.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9363 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-06-03 21:31:47 +00:00
wp_xxyyzz
af4a35901d fpspreadsheet: Extend INDEX formula to return columns and rows. Add unit test for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9361 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-31 13:08:37 +00:00
wp_xxyyzz
a14eab917f fpspreadsheet: Simpler code for the INDIRECT formula (patch by veb86). Add unit test case with string operation in INDIRECT argument.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9360 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-30 18:48:27 +00:00
wp_xxyyzz
24b576ad1b fpspreadsheet: Add unit test cases for ROUNDDOWN, ROUNDUP, INDEX and INDIRECT
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9359 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-30 15:49:32 +00:00
wp_xxyyzz
999687e0a1 FPSpreadsheet: Update description of INDEX function.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9358 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-30 13:42:25 +00:00
wp_xxyyzz
2e64878199 fpspreadsheet: Fix INDEX formula for using 1-d arrays.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9357 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-30 13:25:21 +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
6124d2d047 fpspreadsheet: Add INDEX formula.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9355 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-29 17:00:22 +00:00
wp_xxyyzz
c335a9e65a fpspreadsheet: Add formula ROUNDUP, fix ROUNDDOWN and ROUND. Patch by veb86 (https://forum.lazarus.freepascal.org/index.php/topic,67428.msg518782.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9353 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-28 15:12:51 +00:00
wp_xxyyzz
5d277d115f fpspreadsheet: Fix INDIRECT formula when the argument is a string
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9351 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-24 21:20:41 +00:00
wp_xxyyzz
9f9ac7cd2a fpspreadsheet: Fix compilation (issue caused by renamed haJustify option).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9349 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-10 17:15:32 +00:00
wp_xxyyzz
09ab7329ef fpspreadsheet: Support also haDistributed and haFilled horizontal alignments. haJustify renamed to haJustified.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9348 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-10 10:24:45 +00:00
wp_xxyyzz
611cd2c347 fpspreadsheet: Add haJustify as new horizontal alignment option.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9347 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-09 17:08:43 +00:00
wp_xxyyzz
8fdb399acd fpspreadsheet: Fix type conversion issues in FPC 3.3.1
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9346 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-09 12:52:07 +00:00
wp_xxyyzz
ed4772cf18 fpspreadsheet: Chart link supports series pointers varying with y level in multi-level series
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9282 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-17 12:04:37 +00:00
wp_xxyyzz
c1146182af fpspreadsheet: Gradient support in xlsx charts. Unified gradient directions between xlsx and ods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9278 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-12 11:36:21 +00:00
wp_xxyyzz
d3e74427df fpspreadsheet: xlsx chart writer supports chart background color.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9277 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-08 00:28:54 +00:00
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
4c8c72e8f0 fpspreadsheet: Set default stock chart axis minimum to zero.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9274 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-06 16:49:42 +00:00
wp_xxyyzz
c0659755d3 fpspreadsheet: Fix position of right TChartAxis read from xlsx file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9273 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-06 16:48:36 +00:00
wp_xxyyzz
05d6ec914a fpspreadsheet: Attempting to use Excel's default series colors.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9272 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-05 23:44:14 +00:00