Commit Graph

393 Commits

Author SHA1 Message Date
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
wp_xxyyzz
5bd2fd23eb fpspreadsheet: Avoid duplicate assignment of Result in TsWorksheet.ReadAsText. Put Hyperlink code used here in more general context.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7172 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-10-26 11:15:21 +00:00
wp_xxyyzz
692aa12768 fpspreadsheet: Reduce max count of digits in general number format (15 --> 14, like in Calc, Excel only has 9)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7153 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-10-08 16:18:47 +00:00
wp_xxyyzz
c13facb3dc fpspreadsheet: Write lower-case year/month/day symbols ("y"/"m"/"d") to date format strings. Issue #36137.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7152 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-10-06 17:49:15 +00:00
wp_xxyyzz
b54250ef50 fpspreadsheet: Avoid writing unnecessary row indexes to by Excel 2003/xml writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7127 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-08-13 23:00:13 +00:00
wp_xxyyzz
535ad46df3 fpspreadsheet: Fix colwidth issue causing the reader's FixCols to delete all col records.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7091 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-31 20:46:07 +00:00
wp_xxyyzz
88653ac32d fpspreadsheet: Fix xlsx reader applying hyperlinks to all sheets (https://forum.lazarus.freepascal.org/index.php/topic,46248.msg329067)-
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7089 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-30 19:39:09 +00:00
wp_xxyyzz
9436da6a2c fpspreadsheet: Fix ods reader's ApplyColData erasing page breaks written by LibreOffice Calc (issue #1 in https://forum.lazarus.freepascal.org/index.php/topic,46175.msg328961.html#msg328961).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7087 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-29 22:45:00 +00:00
wp_xxyyzz
10a21f6ba9 fpspreadsheet: Add WorksheetGrid methods Show|HideRow|Col.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7080 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-27 20:42:54 +00:00
wp_xxyyzz
d9a8c87eef fpspreadsheet: Protect colwidth/rowheight when col/row is hidden.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7079 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-27 20:41:09 +00:00
wp_xxyyzz
a66ccaf563 fpspreadsheet: Fix remaining pagebreak fails of ODS reader. All tests passed now.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7078 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-27 16:19:41 +00:00
wp_xxyyzz
47c52465cb fpspreadsheet: Show page breaks in Worksheetgrid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7076 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-26 16:29:13 +00:00
wp_xxyyzz
1968f22a50 fpspreadsheet: Fix stupid error in writing row and column page breaks to xlsx file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7075 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-26 15:37:02 +00:00
wp_xxyyzz
ad4c29b027 fpspreadsheet: Add writing support of page breaks to ODS format. Related ODS tests still failing.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7073 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-24 23:08:19 +00:00
wp_xxyyzz
014941827c fpspreadsheet: Add reading support of page breaks to ODS format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7072 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-24 17:10:33 +00:00
wp_xxyyzz
2d29205b57 fpsrpeadsheet: Excel xls format (BIFF8, BIFF5 and BIFF2) supports PageBreaks now.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7071 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-24 15:50:43 +00:00
wp_xxyyzz
abe882b551 fpspreadsheet: Excel2003/XML fileformat now fully supports page breaks.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7070 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-24 08:23:38 +00:00
wp_xxyyzz
aece082d53 fpspreadsheet: Read/write PageBreaks in xlsx format, write in Excel2003/xml format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7069 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-23 23:10:20 +00:00
wp_xxyyzz
6fb1f76bc2 fpspreadsheet: Introduce enum field "Options" of TRow and TCol records to replace boolean "Hidden". Prepare for new "PageBreak" option.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7068 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-23 14:41:55 +00:00
wp_xxyyzz
47e9e05399 fpspreadsheet: Refactor dialects in formula parser.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7067 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-22 17:49:17 +00:00
wp_xxyyzz
d310b3b9f2 fpspreadsheet: Fix expression parser crashing in GUI with comma as decimal separator.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7065 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-21 09:42:19 +00:00
wp_xxyyzz
de42ac0072 fpspreadsheet: Fix application of cell format to a cell range by TsNumberFormatAction.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7064 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-20 21:33:59 +00:00
wp_xxyyzz
42926f53d3 fpspreadsheet: Ignore content detection when a cell is formatted as text (nfText).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7063 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-20 20:54:26 +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