Commit Graph

416 Commits

Author SHA1 Message Date
wp_xxyyzz
c8a4e5bf9f fpspreadsheet: Split cell format code off into separate include file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7545 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-15 21:17:33 +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
0e392dfcaa fpspreadsheet: Add exception handling for CF expressions writing to the workbook's error log.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7542 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-15 17:00:21 +00:00
wp_xxyyzz
269c684533 fpspreadsheet: Support expression conditional cell formatting by XLSX, Excel-XML and ODS writers.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7541 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-15 16:39:05 +00:00
wp_xxyyzz
e14818039f fpspreadsheet: Add more conditional formatting unit tests covering all conditions.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7532 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-09 11:04:37 +00:00
wp_xxyyzz
178e0e9214 fpspreadsheet: CopyWorksheetFrom now copies also the DefaultRowHeight. Remove deprecated properties DefaultRowHeight and DefaultColWidth (the corresponding Read/Write procedures must be used instead).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7530 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-08 20:06:56 +00:00
wp_xxyyzz
9a4f358ae2 fpspreadsheet: Fix unit conversion error in colwidth calculation. CopyWorksheetFrom() now copies also DefaultFont and DefaultColWidth
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7529 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-08 17:56:08 +00:00
wp_xxyyzz
80a3750dbd fpspreadsheet: Fix test suite crashing due to changes in ODS writer. All green again.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7528 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-08 16:59:42 +00:00
wp_xxyyzz
57fc4d5095 fpspreadsheet: Complete of conditional formatting from xlsx. Untested.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7527 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-07 21:48:03 +00:00
wp_xxyyzz
9bc1afa59b fpspreadsheet: Add reading of conditional formats for xlsx. Not complete, and still fragile.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7526 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-05 22:45:12 +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
6b3a74ea33 fpspreadsheet: Write conditional formats to ExcelXML files (Office 2003)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7522 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-02 22:36:59 +00:00
wp_xxyyzz
9bfeddaaf5 fpspreadsheet: Add writing of databar conditional formatting to XLSX and fix it for ODS.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7521 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-02 13:35:01 +00:00
wp_xxyyzz
f3437814bf fpspreadsheet: Add writing of color range conditional formatting to XLSX. Support 2-color mode in color ranges.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7520 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-02 10:53:42 +00:00
wp_xxyyzz
006ca0de49 fpspreadsheet: Complete writing of color range conditional formatting to ODS.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7518 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-02 09:56:11 +00:00
wp_xxyyzz
68f2d8718d fpspreadsheet: Elemental DataBars and ColorRange formatting for ODS writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7516 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-01 22:15:30 +00:00
wp_xxyyzz
28e834c330 fpspreadsheet: Avoid writing duplicate code for fixed and conditional formats to ODS file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7515 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-01 21:16:53 +00:00
wp_xxyyzz
f1421b2b80 fpspreadsheet: Fix ooxml writer for conditional formatting broken in one of previous commits.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7513 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-01 16:26:01 +00:00
wp_xxyyzz
efa8009d96 fpspreadsheet: Avoid writing duplicate conditional formatting styles to "styles.xml" of ods file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7511 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-01 16:08:11 +00:00
wp_xxyyzz
7f80fea142 fpspreadsheet: Support font as conditional formatting style (so far, ODS writer only)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7510 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-01 15:58:30 +00:00
wp_xxyyzz
724cd6ba30 fpspreadsheet: Fix usage of cell references and formulas in conditional formatting by ods and xlsx writers.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7509 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-01 15:35:48 +00:00
wp_xxyyzz
474ce859da fpspreadsheet: Activate missing conditional formatting conditions in ODS writer (a few issues left)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7508 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-01 13:59:21 +00:00
wp_xxyyzz
54fc098d03 fpspreadsheet: Write some more conditional formatting conditions to ODS.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7507 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-01 10:40:36 +00:00
wp_xxyyzz
1845d0fd8d fpspreadsheet: Some progress in writing conditional formatting to ODS files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7506 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-30 23:04:52 +00:00
wp_xxyyzz
23003e75b3 fpspreadsheet: Fix usage of strings in compare operations for conditional formatting.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7505 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-30 20:45:14 +00:00
wp_xxyyzz
aff774ebc9 fpspreadsheet: Add writing of conditional formats to ODS (only cfcEqual condition, so far).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7504 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-30 10:46:07 +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
ea76276469 fpspreadsheet: Add element array with conditional format indexes to TCell record. Needed by ODS writer and for visual controls.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7502 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-28 21:37:30 +00:00
wp_xxyyzz
72986ddc75 fpspreadsheet: top10 in conditional formatting. More advanced demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7501 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-26 16:36:32 +00:00
wp_xxyyzz
fbe85d7e44 fpspreadsheet: xlsx writer supports conditional formatting for duplicate/unique values.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7500 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-26 11:37:21 +00:00
wp_xxyyzz
9a71231010 fpspreadsheet: Add writing of error-related conditional formatting conditions to xlsx writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7499 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-26 11:18:30 +00:00
wp_xxyyzz
8a30aacadb fpspreadsheet: Add writing of text-related conditional formatting conditions to xlsx writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7498 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-26 10:59:12 +00:00
wp_xxyyzz
5578d181a8 fpspreadsheet: Fix usage of format index (dxfId) in writing conditional formatting to xlsx.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7497 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-26 09:27:01 +00:00
wp_xxyyzz
7f4382a137 fpspreadsheet: Add conditions above/belowAverage to conditional formatting.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7496 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-25 23:10:44 +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
f8b9d39838 fpspreadsheet: Prepare for new release v1.12: Remove chart support. Set version number to 1.12. Update help files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7478 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-06-02 11:50:30 +00:00
wp_xxyyzz
92a0c02e8f fpspreadsheet: Add error log entry when reading xlsx files with non-numeric data in numeric cells, instead of aborting the program. Issue #37055, modified patch by Tulurdes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7452 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-05-13 05:42:33 +00:00
wp_xxyyzz
085e3db4fe fpspreadsheet: Fix compilation with Laz trunk after removal of TCustomCombobox.ReadOnly property.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7451 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-05-13 05:40:13 +00:00
wp_xxyyzz
5cdb8c16c7 fpspreadsheet: Add TsWorksheetIndicator as new visual control. Donated by forum user "abcthing" (https://forum.lazarus.freepascal.org/index.php/topic,49312.0.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7385 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-04-15 22:19:20 +00:00
wp_xxyyzz
d3734d69db fpspreadsheet: Fix compilation of crypto package with FPC 3.3.1
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7376 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-04-13 18:35:17 +00:00
wp_xxyyzz
b8eb9fca8b fpspreadsheet: Fix another case of adding/deleting rows/columns, now within the cell range of a formula. Forum https://forum.lazarus.freepascal.org/index.php/topic,49005.msg354461.html#msg354461
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7343 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-26 17:09:25 +00:00
wp_xxyyzz
d4ce1f8c06 fpspreadsheet: Fix formula being affected when a row/column is inserted/deleted in another sheet which is not part of the formula.
See forum https://forum.lazarus.freepascal.org/index.php/topic,49005.0.html
Add test case covering this situation.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7342 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-25 23:20:24 +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
5457aab56b fpspreadsheet: Fix endless loop (seen on Linux) when loading an ods file with embedded images.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7330 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-07 20:04:16 +00:00
wp_xxyyzz
fa4f0c306e fpspreadsheet: Add Worksheet.TabColor support. Update biff8/ooxml/ods readers/writers for it. Add test case for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7326 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-02-10 15:23:30 +00:00
wp_xxyyzz
07ea73781b fpspreadsheet: Fix xlsx reader choking on files in which row and cell coordinates are not specified in the xml nodes (https://forum.lazarus.freepascal.org/index.php/topic,48292.msg347711.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7321 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-28 00:13:13 +00:00
wp_xxyyzz
93ebcc497e fpspreadsheet: Fix cell offset when pasting in from clipboard. Patch by DonAlfredo, https://forum.lazarus.freepascal.org/index.php/topic,47965.0.html
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7214 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-01 23:43:41 +00:00
wp_xxyyzz
6a1b03adfa fpspreadsheet: Fix ooxml reader choking on files written by Adobe Acrobat X which writes HTML colors with # prefix. https://forum.lazarus.freepascal.org/index.php/topic,47749.msg342501.html.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7207 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-12-12 10:17:39 +00:00
wp_xxyyzz
f131c02f88 fpspreadsheet: No "invalid index" error message when attempting to save a workbook without reader/writer unit in "uses"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7197 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-11-23 11:34:00 +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