Commit Graph

434 Commits

Author SHA1 Message Date
wp_xxyyzz
cbfea142d0 fpspreadsheet: Refactor ODS number format writing
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7567 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-26 12:25:06 +00:00
wp_xxyyzz
390c7b935a fpspreadsheet: Fix XLSX reader for conditional number format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7566 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-26 12:20:59 +00:00
wp_xxyyzz
4fc0ea6045 fpspreadsheet: Add proper log error message when XLSX writer tries to write a conditional font format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7565 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-26 10:09:04 +00:00
wp_xxyyzz
f53c6649f5 fpspreadsheet: Put conditional font handling in place for XLSX writer. Commented out, however, because Excel refuses to load such files (although syntactially correct).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7564 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-26 09:56:24 +00:00
wp_xxyyzz
ee32147ee4 fpspreadsheet: More conservative handling of conditional font formatting by the ODS writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7563 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-26 09:53:26 +00:00
wp_xxyyzz
5a5883a156 fpspreadsheet: Refactor ODS style reading
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7561 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-24 15:21:23 +00:00
wp_xxyyzz
175cf1f290 fpspreadsheet: Refactor ODS style reading
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7560 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-24 15:00:01 +00:00
wp_xxyyzz
16ba7692c2 fpspreadsheet: Refactor style reading in ODS reader
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7559 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-24 14:45:30 +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
wp_xxyyzz
64b69c2893 fpspreadsheet: Fix compilation issue due to stupid 64-bit fpc not being able to pick correct overload of MinValue. Less hints on 64 bit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7556 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-22 17:55:17 +00:00
wp_xxyyzz
901b92fa72 fpspreadsheet: Some clean-up: Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7555 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-22 09:07:59 +00:00
wp_xxyyzz
d0fe6490d8 fpspreadsheet: ODS reader supports conditional DataBar format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7554 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-21 21:34:39 +00:00
wp_xxyyzz
43b9050b3b fpspreadsheet: ODS reader supports conditional ColorRange format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7553 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-21 21:12:39 +00:00
wp_xxyyzz
faf6f72ab8 fpspreadsheet: Rearrange ODS reading code for conditional formats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7552 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-21 17:53:20 +00:00
wp_xxyyzz
acb49d9590 fpspreadsheet: Add Excel XML reading support for missing cell-based conditional formats. Fix lost "max compatibility" flag of packages.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7550 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-18 15:57:19 +00:00
wp_xxyyzz
2793744bf7 fpspreadsheet: Add reading and writing support for conditional formats in Excel XML files (not yet complete).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7549 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-17 19:50:40 +00:00
wp_xxyyzz
6aa2860020 fpspreadsheet: Split more code off of fpspreadsheet.pas to separate include files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7548 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-16 23:40:11 +00:00
wp_xxyyzz
52e4cccf80 fpspreadsheet: XLSX reader supports expression conditional format. Add test case for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7546 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-16 20:46:21 +00:00
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