Commit Graph

1301 Commits

Author SHA1 Message Date
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
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
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
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
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
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
4ace082188 fpspreadsheet: fix russian language file
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5568 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-12-29 07:37:09 +00:00
26d73deff8 fpspreadsheet: Update wiki offline help.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5564 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-12-28 11:27:03 +00:00
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
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
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
c8e0dfe161 fpspreadsheet: Extend zoom demo to show all pages of the same workbook with the same predefined zoom factor
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5544 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-12-19 22:20:22 +00:00
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
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
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
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
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
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
5d1c8de578 fpspreadsheet: Fix unit reference error in spreadtestgui.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5317 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-11-06 08:36:37 +00:00
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
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
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
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
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
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
5ca39d5f11 fpspreadsheet: Add README.txt
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5285 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-22 21:41:47 +00:00
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
3e6dd484f7 fpspreadsheet: Fix compilation issues when fpc version is changed: separate package units into different folders, incorporate code of fpsnumformatparser in unit fpsnumformat and code of fpsregfileformats in units fpsreaderwriter. Check and fix all demos.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5282 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-22 20:59:00 +00:00
531ef0432e fpspreadsheet: Delete folder examples/visual/shared. The units were moved to (ccr)/applications/spready
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5280 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-21 21:03:08 +00:00
75492d48ea fpspreadsheet: Replace the demo project in fpsctrls by the one created in the wiki spreadsheet tutorial. The former version has been extended and moved to the folder "applications/spready" of ccr.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5279 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-21 20:57:58 +00:00
877d097365 fpspreadsheet: Delete demo project "spready", An extended version is found in ccr folder "applications"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5278 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-21 19:38:12 +00:00
10e082b3c2 fpspreadsheet: Introduce events to notify visual controls of col width/format and row height/format change. Extend worksheet inspector to display col/row formats and col widths.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5276 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-20 21:04:16 +00:00
cacfb22337 fpspreadsheet: Ignore filler columns added by Calc when reading an Excel file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5269 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-19 09:31:06 +00:00
45580a3c97 fpspreadsheet: Ignore the million of ods filler rows added by LibreOffice to Excel files - see memory overflow reported in http://forum.lazarus.freepascal.org/index.php/topic,34464.0.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5268 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-19 08:21:40 +00:00
64c7ebd6f3 fpspreadsheet: Write row and column formats to ExcelXML
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5266 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-18 17:13:35 +00:00
d570c75403 fpspreadsheet: Massive refactoring of ods cell and row writing. ods can write column and row formats now. Fix unit tests (100% ok).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5265 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-18 16:42:24 +00:00
5f7a98d5b9 fpspreadsheet: Write row formats to ods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5264 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-16 20:20:04 +00:00
94a1b7adaf fpspreadsheet: Fix reading of row and column formats from ods files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5261 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-14 10:21:25 +00:00
c908c87838 fpspreadsheet: Heavy refactoring of ods row & cell reading. Intention is to read row and column formats, not 100% correct yet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5260 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-13 22:29:48 +00:00
301f7034db fpspreadsheet: Add "Auto row height" command to menu of fps_ctrls demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5259 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-12 22:40:48 +00:00
bdeef86e41 fpspreadsheet: Significantly speed up zooming of large worksheets
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5258 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-12 18:00:56 +00:00
e0df72b82d fpspreadsheet: Make TsWorksheetGrid.UpdateRowHeights public, add optional parameter "AEnforceCalcRowHeight".
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5257 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-12 10:25:19 +00:00
f05e437ba3 fpspreadsheet: Unless enforced, no row height calculation for rows without row record. Remove useless Disable/EnableControls methods of TsWorkbookSource.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5256 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-12 10:14:16 +00:00
c3ee25b99e fpspreadsheet: Write row format to xlsx. Update colwidth test case.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5255 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-09 21:19:19 +00:00
14c57c73bc fpspreadsheet: Read/write biff2 column/row formats
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5254 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-09 10:50:33 +00:00
9b6a4ba327 fpspreadsheet: Write column and row formats to xlsx
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5253 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-08 20:43:47 +00:00
547331def4 fpspreadsheet: Write column and row formats to biff5/biff8
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5252 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-08 17:57:29 +00:00
db7fbe66f0 fpspreadsheet: Read column and row formats from xlsx files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5250 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-07 16:50:38 +00:00
e47b907659 fpspreadsheet: Initial commit with row and column formats. Display in grid seems to work. Reading implemented for biff8 and biff5.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5249 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-07 13:52:08 +00:00
baaf12ebfa fpspreadsheet: Improved display of row heights in TsSpreadsheetInspector
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5248 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-07 09:21:09 +00:00