Commit Graph

113 Commits

Author SHA1 Message Date
71b627aa59 fpspreadsheet: Fix xlsx reader bug which assumes that sheet files in the xlsx structure are always named "sheet1.xml", "sheet2.xml", etc. Issue #39050, patch by Domenico Mammola.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8763 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-03-15 18:59:12 +00:00
3a2cfd397f fpspreadsheet: Check compilation back to Laz 1.4.4/fpc 2.6.4. Update conditional defines in fps.inc.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8734 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-02-23 11:42:24 +00:00
506dbe52b7 fpspreadsheet: Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8577 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 21:15:56 +00:00
963fa9bc2f fpspreadsheet: Adapt virtual mode writer to ods writer after r8574.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8575 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 20:40:44 +00:00
ab310b1165 fpspreadsheet: Fix writing of defective UTF8 strings to xlsx. Related to issue #39045.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8569 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 14:08:53 +00:00
6110d9acc7 fpspreadsheet: Refactor xlsx reader for comments and defined names
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8340 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-07 09:53:16 +00:00
fbd714c976 fpspreadsheet: Refactor xlsx reader for comments and hyperlinks.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8339 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-05 22:56:39 +00:00
8355a48dfd fpspreadsheet: xlsx reader supports scaling of header/footer images.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8338 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-04 20:27:06 +00:00
802af455b3 fpspreadsheet: Introduce image scaling factor for header/footer images. Supported by xlsx writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8337 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-04 17:48:22 +00:00
37685f0c64 fpspreadsheet: Refactor xlsx reader for images to avoid excessive unzipping.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8336 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-04 16:13:07 +00:00
702fd643f3 fpspreadsheet: xlsx reader adds header/footer images to PageLayout.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8335 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-03 18:02:59 +00:00
105099f338 fpspreadsheet: xlsx reads images in header/footer
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8333 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-01 20:36:06 +00:00
93b4393d86 fpspreadsheet: Support image scaling factor when reading images from xlsx.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8328 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-06-26 17:38:08 +00:00
78332efef7 fpspreadsheet: Basic image support by xlsx reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8327 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-06-25 21:06:07 +00:00
1626e8ab2f fpspreadsheet: Less hints and warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8126 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-10-27 16:14:40 +00:00
ffa59aca22 fpspreadsheet: Fix xlsx and ods writers using local format settings for writing floats in conditional formats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8039 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-19 21:00:50 +00:00
45fb828427 fpspreadsheet: OOXML must write conditionalFormattings node before hyperlinks node (see forum https://forum.lazarus.freepascal.org/index.php/topic,54650.msg406200.html#msg406200).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8038 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-19 17:58:08 +00:00
b18474f986 fpspreadsheet: Remove comment about to do item regarding writing of conditional fonts in xlsx.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8037 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-18 10:43:34 +00:00
7959f69879 fpspreadsheet: Unified usage of color syntax in Excel xlsx files
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8036 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-18 10:38:33 +00:00
639385a707 fpspreadsheet: Fix writing of conditional fonts to xlsx.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8035 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-18 10:24:52 +00:00
e66195efeb fpspreadsheet: Remove fix for Excel's Year-1900 problem because it creates new issues... (issue #38742).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8033 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-15 21:38:39 +00:00
1efc3bc6f2 fpspreadsheet: Fixing Year-1900 date/time issue in Excel files for fps.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8032 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-15 17:23:04 +00:00
65188478a6 fpspreadsheet: Fix reading of text cells with type "inlineStr"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7936 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-12-20 22:35:10 +00:00
35fecc8c8d FPSpreadsheet: Fix writing of meta data containing special xml characters (sourceforge issue #46)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7894 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-11-21 11:33:02 +00:00
7c09abbb51 fpspreadsheet: Add custom meta data support. Reading/writing for XLSX, Excel XML, ODS.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7591 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-29 22:51:39 +00:00
3959cbbe45 fpspreadsheet: Add new metadata item "subject"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7590 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-29 21:11:36 +00:00
9d7457ccd4 fpspreadsheet: Add, with r/w support, conditional date formats cfcLastYear, cfcThisYear, cfcNextYear.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7588 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-29 17:41:00 +00:00
aebb067738 fpsprreadsheet: Add conditional date formats, read/write support for XLSX, ODS, ExcelXML. Add unit tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7587 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-29 16:55:45 +00:00
7e5dde96c3 fpspreadsheet: Fix xlsx writer mismatch between _rels/.rels and docProps/core.xml files making files without metadata unreadable for Excel.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7584 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-28 21:38:32 +00:00
25d59b8e88 fpspreadsheet: Fix meta data reading error of some ods files. Avoid display of metadata zero dates in Excel.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7583 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-28 21:30:12 +00:00
ea91b7fca5 fpspreadsheet: Add metadata writer for Excel XML. Fix usage of UTC in the Excel metadata.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7580 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-28 17:57:32 +00:00
dd3f0611a0 fpspreadsheet: Better names for some MetaData properties.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7578 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-28 14:28:33 +00:00
bbf4b2b092 fpspreadsheet: Add metadata support. Add metadata reader/writer for XLSX.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7577 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-07-28 12:34:50 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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