Commit Graph

1257 Commits

Author SHA1 Message Date
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
ac9245401a fpspreadsheet: Add workbook option boWriteZoomFactor and update xls, xlsx and ods writers. Extend zoom demo by saving command. Add define CALC_ALL_ROWHEIGHTS to fpspreadsheetgrid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5230 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-28 16:35:39 +00:00
f87e5706fb fpspreadsheet: Add example for zooming.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5229 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-28 09:08:15 +00:00
64f5eff922 fpspreadsheet: Read/write zoom factor from/to OpenDocument files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5227 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-28 05:56:38 +00:00
f01a005300 fpspreadsheet: Read/write zoom factor from/to xlsx file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5226 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-28 05:18:08 +00:00
c015acfa0f fpspreadsheet: Read zoom factor from BIFF8 and BIFF5 files, and write it back
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5225 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-27 23:03:09 +00:00
aa04c61ba3 fpspreadsheet: Fix zooming of rich-text cells
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5224 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-27 18:07:51 +00:00
048f8dd7de fpspreadsheet: Simplification of previous commit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5223 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-27 17:24:48 +00:00
1f3e78f896 fpspreadsheet: Fix word wrap algorithm getting stuck if column width is smaller than the character width.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5222 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-27 17:16:47 +00:00
80e3ae6ef0 fpspreadsheet: Fix "row height 0" issue after one of the recent commits. Call row height calculation after scrolling.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5221 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-27 13:22:30 +00:00
0a99b97c4b fpspreadsheet: Add zooming support to WorksheetGrid (use SHIFT+CTRL+MouseWheel in fpctrls demo).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5218 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-26 22:34:28 +00:00
f38a3f42de fpspreadsheet: Fix WorksheetGrid.OnValidateEntry not showing OldValue and NewValue parameters (issue #30236)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5214 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-25 22:23:26 +00:00
a85bda5f5d fpspreadsheet: Restore old cell content if ESC is pressed in the TsCellEdit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5213 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-25 21:50:51 +00:00
4a1bea77f7 fpspreadsheet: Add new grid method LoadSheetFromSpreadsheetFile (in order to be able to read a specific sheet without having to specify the file format id).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5212 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-25 21:36:52 +00:00
8d22d09e3f fpspreadsheet: Refactor WorksheetGrid behavior on ESC key
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5211 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-25 21:29:32 +00:00
7865499417 fpspreadsheet: Remove an overloaded LoadFromSpreadsheetFile method of TsWorksheetGrid to make this method compile with all levels of optional parameters used.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5210 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-25 20:26:02 +00:00
b034ec0017 fpspreadsheet: Fix incorrect handling of CONTINUE record when reading biff8 if current string is UTF16
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5209 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-25 11:07:35 +00:00
d8bf9f10b7 fpspreadsheet: Fix grid autoexpanding for navigation purposes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5208 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-25 08:53:01 +00:00
ff2e533d06 fpspreadsheet: Fix rewinding error of rtf memory stream when reading biff8 (see forum http://forum.lazarus.freepascal.org/index.php/topic,34150.msg223013)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5207 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-24 21:38:57 +00:00
ec13cdb929 fpspreadsheet: Fix compilation of spreadsheet tests
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5206 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-24 18:31:03 +00:00
6fd0ed87e3 fpspreadsheet: A more general fix of issue #30633 for streams which do not rewind in LoadFromStream.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5205 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-23 16:01:54 +00:00
2a43d89371 fpspreadsheet: Fix writing of images from stream (issue #30633)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5204 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-09-23 15:44:08 +00:00
cb4466eef7 fpspreadsheet: Fix pasting from LibreOffice clipboard.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5066 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-02 13:58:08 +00:00
5bbdbed004 fpspreadsheet: Fix igoring wordwrap flags when painting wordwrapped frozen cells (see forum http://forum.lazarus.freepascal.org/index.php/topic,33453.msg216815/).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5025 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-23 09:31:57 +00:00
9c83324e90 fpspreadsheet: Fix db_import_export example being broken after virtualmode change.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4975 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-15 09:23:26 +00:00
c639d3f13d fpspreadsheet: Modified virtual mode (VirtualColCount, VirtualRowCount and OnWriteCellData were moved from workbook to worksheet). NOTE: THIS BREAKS EXISTING CODE USING VIRTUAL MODE.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4968 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-14 19:43:15 +00:00
5782410686 fpspreadsheet: Add support for format xlsm
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4967 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-14 17:47:48 +00:00
d7477c8171 fpspreadsheet: Public methods AutoRowHeight and AutoColWidth of the WorksheetGrid. Show value of cell's WordWrap in SpreadsheetInspector.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4880 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-01 16:43:00 +00:00
de98ef21bf fpspreadsheet: Fix worksheetgrid growing by 1 row/col if ShowHeaders is off (issue #0030269)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4757 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-15 12:28:19 +00:00
5b957218b4 fpspreadsheet: Fix worksheetgrid's colCount not being stored in lfm (related to issue #0030267)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4742 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-13 20:23:29 +00:00