Commit Graph

351 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
18afbfdd84 fpspreadsheet: Excel2003/XML reader supports formulas now.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7038 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-15 21:00:47 +00:00
8f706c4a8c fpspreadsheet: Fix writing of RC formulas for Excel2003/XML format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7037 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-15 11:03:34 +00:00
8ff3813be2 fpspreadsheet: Add format string to number format error messages.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7036 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 21:14:14 +00:00
a601573459 fpspreadsheet: Support comments and hyperlinks in Excel2003/XML reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7035 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 21:03:54 +00:00
5aff5d6d37 fpspreadsheet: Fix writing of RichText in Excel2003/XML format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7034 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 20:37:29 +00:00
73f87c6979 fpspreadsheet: Support merged cells in Excel 2003/xml reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7033 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 18:01:39 +00:00
2683b34e2f fpspreadsheet: Support column and row formats as well as column widths and row heights in Excel2003-xml reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7032 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 17:55:00 +00:00
3713bed892 fpspreadsheet: Style support in Excel2003-xml reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7031 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-14 14:59:32 +00:00
c05c5ff9eb fpspreadsheet: Add support for DefaultRowHeight and DefaultColumnWidth to Excel2003xml reader
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7030 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-13 22:13:45 +00:00
28fc3e19c4 fpspreadsheet: Support "ss:Data" nodes in Excell2003-xml reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7029 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-13 21:49:31 +00:00
b09e7d069b fpspreadsheet: Add basic Excel2003 xml reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7028 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-07-13 20:53:15 +00:00
b38dcbe737 fpspreadsheet: Fix index bug in TsWorksheet.SetIndex (reported by forum user "iteh")
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7012 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-06-17 15:09:48 +00:00
7585c5a3c9 fpspreadsheet: Rework of worksheet sorting, patch by Zoran (https://forum.lazarus.freepascal.org/index.php/topic,45474.msg321648.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7011 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-06-17 12:08:12 +00:00
ffacd7bcca fpspreadsheet: Make TsSpreadsheetInspector support the new TsWorksheet.Index property.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7010 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-06-17 12:06:17 +00:00
d0b98b3435 fpspreadsheet: Fix crash when only unit xlsxooxml is in uses clause for reading an xlsx file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7009 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-06-15 14:18:09 +00:00
21b927cc27 fpspreadsheet: Add property Worksheet.Index.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7005 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-06-09 23:15:10 +00:00
ae1719d0a3 fpspreadsheet: Another fix to default compare procedure for sorting worksheets.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6932 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-21 14:26:52 +00:00
e0213b0848 fpspreadsheet: Make default cell compare procedure public.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6929 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-20 11:49:44 +00:00
dfa57b80e9 fpspreadsheet: Fix infinite loop in Worksheeet sorting when the sorted range contains an empty cell. Make Worksheetgrid.Sort public.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6928 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-20 10:13:39 +00:00
d650914a3f fpspreadsheet: Fix crash in the biff8 reader's FreeSharedStringTable when no SST is used.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6912 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-13 15:43:06 +00:00
acda1ecd09 fpspreadsheet: Fix memory leak due to rich-text streams in shared string table when reading biff8. Issue #35528, modified patch by Jurijs Romanovs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6891 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-06 15:50:39 +00:00
1dc7fd8705 fpspreadsheet: Less stringent requirements for presence of localSheetID attributes for names ranges in xlsx files. Issue #34381.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6858 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-22 18:03:35 +00:00
9369e4d3ef fpspreadsheet: Fix cells being pasted in grid from clipboard when worksheet is protected.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6847 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-13 20:21:33 +00:00
7faddb698f fpspreadsheet: Disable DEL key in worksheet grid when a cell is protected from being edited.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6845 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-13 08:59:45 +00:00
a52a6a75a8 fpspreadsheet: Fix worksheet crashing when Font #4 is created.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6829 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-03-06 23:23:57 +00:00