Commit Graph

1286 Commits

Author SHA1 Message Date
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
642822a08c fpspreadsheet: Fix some typos in Worksheet grid wiki article.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5246 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-06 22:16:20 +00:00
b75e220a8d fpspreadsheet: Update docs
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5245 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-06 21:42:16 +00:00
47a09340ee fpspreadsheet: Fix occasional rounding issue (http://www.pilotlogic.com/sitejoom/index.php/forum/pl-fpspreadsheet/3452-number-in-cell-and-formatting)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5244 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-06 08:26:22 +00:00
4df9e5dc9b fpspreadsheet: Fix reading of numbers formatted as text (@). See http://www.pilotlogic.com/sitejoom/index.php/forum/pl-fpspreadsheet/3656-pl-fpspreadsheet-wrong-reading-libre-office-calc-file
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5243 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-05 22:02:41 +00:00
85187e4927 fpspreadsheet: Add zoom actions. Make worksheetgrid and spreadsheet inspector react on zoom changes. Update fpsctrls demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5242 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-03 22:00:27 +00:00
abe0de42e1 fpspreadsheet: Temporarily activate all WorksheetGrid's AutoExpand modes during file loading (see forum http://forum.lazarus.freepascal.org/index.php/topic,34276.msg224096/topicseen.html#new).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5241 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-03 17:59:08 +00:00
9eb50b81d3 fpspreadsheet: Fix zoom demo file reading error if format is unknown.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5240 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-03 17:24:59 +00:00
1257b32614 fpspreadsheet: Scroll active grid cell back into viewport if lost by zooming process.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5239 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-02 11:45:22 +00:00
669aaf7798 fpspreadsheet: Remove new WorksheetGrid property AutoCalcRowHeights again. Row heights are recalculated only if still at initial value of 0.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5238 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-02 09:23:33 +00:00
b4851141c0 fpspreadsheet: Fix fpsctrls demo picking the correct file extension for saving.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5237 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-01 22:19:02 +00:00
88e48c66de fpspreadsheet: Extend TsSpreadsheetInspector to show row records
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5236 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-01 21:46:44 +00:00
4691888297 fpspreadsheet: Change default value of new WorksheetGrid property AutoCalcRowHeights to false
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5235 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-01 12:50:29 +00:00
1ae0540c8e fpspreadsheet: Fix worksheetgrid not recalculating row height in case of cell content or format change
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5234 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-01 12:37:30 +00:00
863be778f9 fpspreadsheet: Add row height type to row record to distinguish custom from auto-calculated row heights. Add grid property AutoCalcRowHeights to use pre-calculated row height instead of always automatically recalculating row heights.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5233 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-10-01 12:20:18 +00:00
be413db8f0 fpspreadsheet: Fix fpsctrls demo showing a thick black line when column width is changed by dragging header edge (caused by UseXORFeatures=true).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5231 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-28 17:39:46 +00:00