Commit Graph

1672 Commits

Author SHA1 Message Date
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
20199c9a4c fpspreadsheet: Fix unit tests broken after r7152 (lower-case "d", "m" and "y" date format symbols).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7322 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-28 11:32:46 +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
9e2424d40d fpspreadsheet: Extend db_export_import demo to show explicit conversion of a column to text format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7315 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-24 11:45:25 +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
bc94843c24 fpspreadsheet: Minor update of ooxml demo files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7066 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-21 17:16:55 +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
wp_xxyyzz
e71408fc19 fpspreadsheet: Add worksheet option soAutoDetectCellType
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7059 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-20 10:21:39 +00:00
wp_xxyyzz
cb76d86aff fpspreadsheet: Done - Excel2003/XML format passes all tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7058 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-19 22:42:59 +00:00
wp_xxyyzz
4fc6f4949a fpspreadsheet: Support virtual mode for Excel2003/XML format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7057 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-19 21:15:54 +00:00
wp_xxyyzz
658415ee23 fpspreadsheet: Fix font test fails for Excel 2003/XML file format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7056 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-19 20:28:42 +00:00
wp_xxyyzz
bd75fd6cfe fpspreadsheet: More bug fixes for Excel 2003/XML files, down to 9 test failures from 66.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7055 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-19 19:58:07 +00:00
wp_xxyyzz
7cabba34eb fpspreadsheet: Fix some missing page layout values not being written to Excel2003/XML files (not finished yet).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7054 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-18 22:43:54 +00:00
wp_xxyyzz
476d4d795a fpspreadsheet: Fix hyperlink tooltip not being written for Excel2003/XML format
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7053 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-18 21:53:58 +00:00
wp_xxyyzz
a9ba71c6f0 fpspreadsheet: Fix 3d formulas crashing when reading Excel2003/XML files because target sheets have not yet been loaded.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7052 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-18 21:38:01 +00:00
wp_xxyyzz
8e50105ca0 fpspreadsheet: Fix formula parser crashing with an R1C1 formula subtracting cells with a negative relative address.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7051 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-18 21:02:44 +00:00
wp_xxyyzz
3b0e46b92c fpspreadsheet: Fix Excel2003/XML format tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7050 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-18 15:58:16 +00:00
wp_xxyyzz
290fd8f7ab fpspreadsheet: Extend file-based test cases for Excel2003/XML file format. Still lots of issues.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7049 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-18 08:51:02 +00:00
wp_xxyyzz
f534927e0e fpspreadsheet: Add test cases for Excel 2003/XML format. Not complete yet, some test failures.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7048 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-17 22:33:22 +00:00
wp_xxyyzz
900f88ccf2 fpspreadsheet: Avoid unnecessary "ss:index" attribute when writing Excel 2003/XML files. Minor refactoring of writer code.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7045 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-17 19:16:34 +00:00
wp_xxyyzz
4b1c9b09d1 fpspreadsheet: Excel 2003/XML reader supports rich-text formatting.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7044 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-17 17:22:43 +00:00
wp_xxyyzz
347c7328d1 fpspreadsheet: Fix localized AM/PM string appearing in time format strings (https://forum.lazarus.freepascal.org/index.php/topic,46069.msg327309.html#msg327309).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7043 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-16 22:11:00 +00:00
wp_xxyyzz
b472802603 fpspreadsheet: Support of some more features by Excel2003/XML reader. Display PrintRanges, repeated rows and columns by SpreadsheetInspector.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7042 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-16 15:41:29 +00:00
wp_xxyyzz
0051d96af6 fpspreadsheet: Read PageLayout/PrintSettings in Excel2003/XML files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7040 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-15 22:56:15 +00:00
wp_xxyyzz
b7e1b3fee8 fpspreadsheet: Add file missing from previous commit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7039 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-15 22:54:02 +00:00