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
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
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
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
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
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
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
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
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
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
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
c1c54a5ee1
fpspreadsheet: Implement TsWorksheet.Clear (removes all content from sheet). Called by new TsWorksheetGrid.Clear.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4674 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-31 14:18:46 +00:00
0f9dd4e82b
fpspreadsheet: Fix crash if WorksheetGrid is used within a TFrame.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4668 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-27 15:17:37 +00:00
2c01d20390
fpspreadsheet: Undo prev fix of compilation error because it is fixed in grids.pas now. Update title style of TsWorksheetGrid for Win10.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4653 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-17 11:47:17 +00:00
89caeb5de0
fpspreadsheet: Adapt prev commit to remain compilable for older Lazarus versions
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4652 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-17 07:16:04 +00:00
60506b0a71
fpspreadsheet: Fix compilation error after Lazarus r52316
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4651 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-17 06:56:36 +00:00
8025b4fd9e
fpspreadsheet: Less hints and warnings
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4615 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-11 09:45:27 +00:00
34025326da
fpspreadsheet: Workaround for ods rows and columns erroneously added by Libre/OpenOffice when importing an xlsx file (see forum http://forum.lazarus.freepascal.org/index.php/topic,32193.0.html )
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4610 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-08 18:54:58 +00:00
313853b6e3
fpspreadsheet: Activate i16n for translation of strings. Add German translation. Some cleanup (hints & warnings).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4592 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-24 22:37:10 +00:00
ae7cebf901
fpspreadsheet: Avoid regression by new length units by accessing DefaultColWidth and DefaultRowHeights by means of setters/getters. Marked as deprecated though, "official" method is calling workbook's WriteDefaultColWidth/WriteDefaultRowHeight/ReadDefaultColWidth/ReadDefaultRowHeight which get the units as a parameter.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4574 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 15:18:49 +00:00
5b946b751f
fpspreadsheet: Add units (mm, cm, in, pts, lines/chars) for column width and row heights. Update all demos (some issues left).
...
NOTE: This revision breaks existing code if the worksheet's DefaultRowHeight/DefaultColWidth is changed - value must be in millimeters now. Methods for accessing individual row heiths and column widths are fine, but are marked as deprecated, they use the old units. Optionally a unit parameter can be specified.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4568 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-18 19:50:40 +00:00
c8d5e0f95a
fpspreadsheet: Add text format. Allow leading apostrophe to prevent conversion of a cell text to numbers.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4538 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-09 21:17:53 +00:00
ef7c595cf7
fpspreadsheet: Fix several painting issues of TWorksheetGrid related to merged cells. Add diagonal borders to fpsActions and demo.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4482 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-29 09:59:37 +00:00
7679ef468c
fpspreadsheet: Show message during writing when a formula is not supported by file format. Fix TsWorkbookSource ignoring its set options (i.e. ReadFormulas and AutoCalc working again).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4480 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-27 22:17:56 +00:00
19cfc90061
fpspreadsheet: Implementation of COUNTIF function
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4478 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-27 17:03:15 +00:00
590c9d8a47
fpspreadsheet: More combinations of source and destination cells for copy/paste to clipboard.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4477 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-26 23:37:08 +00:00
07e26c4abe
fpspreadsheet: Fix editing of merged cells in TWorksheetGrid: editor has same size as merged block now.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4476 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-26 13:44:13 +00:00
cd94f9e48e
fpspreadsheet: Fix position of comment marker triangle in WorksheetGrid for RTL
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4475 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-26 12:07:56 +00:00
aa29b42ebc
fpspreadsheet: Add worksheet-BiDiMode. Read/write for Excel5, Excel8, xlsx, ods.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4474 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-26 11:26:57 +00:00
1184e0ce26
fpspreadsheet: Fix painting of "hair" border line (densely dotted) in WorksheetGrid
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4472 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-25 22:55:31 +00:00
16e6614574
fpspreadsheet: Fix diagonal border lines in merged cells.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4471 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-25 22:39:37 +00:00
9e0db3722b
fpspreadsheet: Fix incoomplete saving of merged cell borders if borders are assigned only to merge base cell.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4470 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-25 22:29:13 +00:00
8184c4b609
fpspreadsheet: Add cell-based BiDiMode. Read/write to/from biff8, xlsx, ods.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4469 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-25 18:55:33 +00:00
4f691313d7
fpspreadsheet: Fix merged cell borders in TWorksheet being drawn as defined by the merge base.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4467 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-25 13:57:19 +00:00
8a5364b8b7
fpspeadsheet: Fix infinite loop in TsWorksheet if word-wrapped cell gets narrower than the width of a character.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4463 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-23 18:15:21 +00:00
b4b631c0f8
fpspreadsheet: Fix minor painting issues in RTL mode when TsWorksheet headers are off.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4462 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-23 17:23:39 +00:00
89c374f198
fpspreadsheet: Fix clip rect error when painting TsWorksheet fixed cells.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4461 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-23 16:10:38 +00:00
d4acf83c51
fpspreadsheet: Fix RTL text overflow painting in TsWorksheetGrid
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4460 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-23 14:26:08 +00:00
61db2acff8
fpspreadsheet: Fix TWorksheetGrid focus rect on merged cells in being offset (fixed by "shobits1").
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4458 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-22 23:24:11 +00:00
9dc3304375
fpspreadsheet: In the WorksheetGrid, adapt default HorAlignment to right-to-left mode.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4457 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-22 21:38:04 +00:00