Commit Graph

51 Commits

Author SHA1 Message Date
wp_xxyyzz
4ce25109a8 fpspreadsheet: Read/write worksheet hidden state for biff8 and biff5.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5775 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-01 20:01:14 +00:00
wp_xxyyzz
59c6c664f9 fpspreadsheet: Read/write hidden state of worksheets for ods
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5774 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-01 18:21:21 +00:00
wp_xxyyzz
3750e3717d fpspreadsheet: Read/write hidden state of worksheets for xlsx files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5773 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-01 17:58:02 +00:00
wp_xxyyzz
2a83ad41eb fpspreadsheet: Show info on hidden worksheet in TsSpreadsheetInspector
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5772 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-01 17:45:52 +00:00
wp_xxyyzz
47c857aa6b fpspreadsheet: Add worksheet option soHidden to mark a worksheet as hidden.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5771 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-01 17:29:24 +00:00
wp_xxyyzz
4191575bd1 fpspreadsheet: Implement reading of shared formulas with cell block arguments (see http://forum.lazarus.freepascal.org/index.php/topic,35903.msg238701.html#msg238701)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5767 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-20 22:57:23 +00:00
wp_xxyyzz
f85d2543ba fpspreadsheet: Make sure that all demos are compiled with -Xg
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5764 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-20 17:21:56 +00:00
wp_xxyyzz
2f57f36178 fpspreadsheet: Fix TsCopyAction if triggered by copy brush toolbutton
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5763 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-20 17:20:48 +00:00
wp_xxyyzz
7383d29bb7 fpspreadsheet: Fix overflowing right-align cell painting into fixed cells
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5762 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-20 17:19:00 +00:00
wp_xxyyzz
a306981b46 fpspreadsheet: Fix xlsx reader incorrectly detecting word wrap.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5756 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-18 20:23:25 +00:00
wp_xxyyzz
b00e9fa332 fpspreadsheet: Suppress filler columns in xlsx files by reading the dimensions attribute.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5755 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-18 19:01:22 +00:00
wp_xxyyzz
7e91f6373f fpspreadsheet: Fix different listseparator used in formulas of ods files written by Excel.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5754 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-18 18:19:53 +00:00
wp_xxyyzz
280dc39ddc fpspreadsheet: Fix formulas from prev sheet overrunning other formulas in sheet, xlsx issue (SharedFormulaBase list must be reset for each sheet) - see http://forum.lazarus.freepascal.org/index.php/topic,35903.0.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5753 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-18 17:31:05 +00:00
wp_xxyyzz
ef4c18081d fpspreadsheet: Replace prev commit by better fix for formulas with return a blank cell being lost.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5752 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-18 16:54:50 +00:00
wp_xxyyzz
cf167af00d fpspreadsheet: Fix TsWorksheet.WriteBlank erasing formula (see: http://forum.lazarus.freepascal.org/index.php/topic,35906.msg238389/topicseen.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5751 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-17 23:38:47 +00:00
wp_xxyyzz
694b61fac2 fpspreadsheet: Experimental implementation of moving of columns (see http://forum.lazarus.freepascal.org/index.php/topic,35733.0.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5750 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-15 21:56:11 +00:00
wp_xxyyzz
6ac78ab6b6 fpspreadsheet: Fix default value of TsWorksheetGrid.AutoExpand.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5749 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-15 10:08:42 +00:00
wp_xxyyzz
2d45c4ca42 fpspreadsheet: Add new AutoExpand mode aeDefault to WorksheetGrid which expands a "small" worksheet to default size (see: http://forum.lazarus.freepascal.org/index.php/topic,35347.msg237128.html#msg237128)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5742 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-09 18:47:02 +00:00
wp_xxyyzz
d3f2c24886 fpspreadsheet: Less warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5741 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-09 18:44:58 +00:00
wp_xxyyzz
ebb9b428ea fpspreadsheet: Set "use unit" flag of fpscell. Update demo_write_formatting to use package instead of path to fpspreadsheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5740 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-05 21:04:36 +00:00
wp_xxyyzz
07f9fa03df fpspreadsheet: Fix worksheetgrid initially selecting cell B1 if attached to the internal workbook source
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5738 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-02-03 12:09:21 +00:00
wp_xxyyzz
f481479e3f fpspreadsheet: Fix AutoRowHeight calculation in grid if numberic cell content is rotated.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5737 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-30 21:39:14 +00:00
wp_xxyyzz
ebb8ad7ad3 fpspreadsheet: Ignore merged cells when calculating AutoColWidth (like Excel).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5736 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-30 21:18:56 +00:00
wp_xxyyzz
c1adce9a43 fpspreadsheet: Fix AutoColWidth calculation if cell content is wider than column
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5735 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-30 18:04:36 +00:00
wp_xxyyzz
4938bf8ec4 fpspreadsheet: Overload also worksheet *function* WriteCellValueAsString.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5729 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-29 16:09:52 +00:00
wp_xxyyzz
fee22c947f fpspreadsheet: Simplify csv reader interpreting text (calls worksheet's WriteCellValueAsString now).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5728 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-29 14:48:27 +00:00
wp_xxyyzz
27b17a3585 fpspreadsheet: Overload Worksheet.WriteCellValueAsString with version having its own FormatSettings as a parameter.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5727 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-29 14:04:52 +00:00
wp_xxyyzz
2200c4879e fpspreadsheet: Fix crash when WorksheetGrid with assigned WorkbookSource is used in a frame (see http://www.lazarusforum.de/viewtopic.php?f=18&t=10428)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5684 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-21 21:39:20 +00:00
wp_xxyyzz
7b9d82db39 fpspreadsheet: Inherit TCellIndicator from TCustomEdit (instead of TEdit) to publish only needed properties.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5607 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-08 11:59:01 +00:00
wp_xxyyzz
8c56dd2d66 fpspreadsheet: Fix loading error messages not being shown by TsWorkbookSource.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5606 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-08 10:53:23 +00:00
wp_xxyyzz
212a9470c7 fpspreadsheet: Relax reading of unknown fill patterns from xlsx (avoids crash of xlsx files written by Gnumeric).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5595 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-05 16:18:37 +00:00
wp_xxyyzz
400d64a17d fpspreadsheet: Fix incorrect copying of row/col records from an external worksheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5589 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-03 00:12:46 +00:00
wp_xxyyzz
935c054138 fpspreadsheet: Add TsWorksheet.IsEmpty and TsWorkbook.RemoveAllEmptyWorksheets.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5582 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-02 09:35:10 +00:00
wp_xxyyzz
587ea10dc8 fpspreadsheet: Include copying of row and column records in CopyWorksheetFrom.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5580 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-01-02 09:10:20 +00:00
wp_xxyyzz
ff50ff842d fpspreadsheet: Make DEFAULT_COL_COUNT and DEFAULT_ROW_COUNT variables (instead of const).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5561 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-12-23 20:52:52 +00:00
wp_xxyyzz
e22ceab9c9 fpspreadsheet: Fix grid's Col/RowCount not being reduced if a sheet with less cols/rows than the current sheet is selected (http://forum.lazarus.freepascal.org/index.php/topic,35182.msg232477.html#msg232477). Introduce top/left cell indexes in worksheet to make sure that active cell remains at the row/col stored in the worksheet when changing worksheets.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5560 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-12-23 17:05:14 +00:00
wp_xxyyzz
2cf4c24eb5 fpspreadsheet: Cosmetic changes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5545 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-12-19 22:20:55 +00:00
wp_xxyyzz
56009b4a89 fpspreadsheet: Add workbook methods to navigate to previous, next and last worksheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5543 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-12-19 22:19:00 +00:00
wp_xxyyzz
249a40754b fpspreadsheet: Fix crash of Workbooksource when loading other sheets from the same workbook into a grid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5542 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-12-19 22:17:09 +00:00
wp_xxyyzz
592312d0d7 fpspreadsheet: Avoid modification of Short/LongDateFormat in the workbook's FormatSettings. (see http://forum.lazarus.freepascal.org/index.php/topic,34988.msg230513/topicseen.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5401 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-12-01 23:59:21 +00:00
wp_xxyyzz
7d38a1fa62 fpspreadsheet: Improved handling of default cell format in ods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5322 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-07 13:47:57 +00:00
wp_xxyyzz
0dd55ed594 fpspreadsheet: Fix conversion of rich-text parameters to html
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5319 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-06 16:07:29 +00:00
wp_xxyyzz
53062a527e fpspreadsheet: Fix detection of common row heights.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5318 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-06 08:37:07 +00:00
wp_xxyyzz
f0d908f280 fpspreadsheet: Fix SpreadsheetInspector not displaying cell properties and values any more.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5316 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-05 22:02:31 +00:00
wp_xxyyzz
eb29f677d7 fpspreadsheet: Improved interpretation of text-position attribute by ods reader (see forum http://forum.lazarus.freepascal.org/index.php/topic,34687.msg227906.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5315 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-05 16:49:34 +00:00
wp_xxyyzz
c1983ae8a2 fpspreadsheet: Add property FormatTarget to TsCombobox for application of format to cell, row, column or default.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5297 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-31 22:50:56 +00:00
wp_xxyyzz
a31f259f9d fpspreadsheet: Fix text overflow and merged cell not being drawn for frozen cols and rows
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5294 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-25 13:46:17 +00:00
wp_xxyyzz
a93e9d16d6 fpspreadsheet: Write wikitable cells with row and column formats correctly
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5287 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-24 12:53:27 +00:00
wp_xxyyzz
027504e95f fpspreadsheet: Write row and column formats to html
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5286 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-23 14:12:30 +00:00
wp_xxyyzz
835f622ed6 fpspreadsheet: Fix fpsreaderwriter "using" the no-longer existing unit fpsregfileformats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5283 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-22 21:07:29 +00:00