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
74d6314155
fpspreadsheet: Refactor rich-text drawing for TWorksheetGrid (now blocks with same font, instead of char-by-char).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4456 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-22 21:22:05 +00:00
275b48e7ca
fpspreadsheet: Fix bug in drawing the WorksheetGrid's extended selection rectangle in RTL mode. Some simplification of current RTL code.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4453 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-22 09:26:10 +00:00
134f7b1e51
fpspreadsheet: Beginning to implement RTL mode for the WorksheetGrid (merged cells, borderlines, selection), code by forum user "shobits1"
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4452 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-21 22:45:38 +00:00
58b31b09a7
fpspreadsheet: Add new property AutoExpand to the WorksheetGrid. Extend fpsgrids demo (no install version) correspondingly.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4451 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-21 16:23:56 +00:00
bbe063d794
fpspreadsheet: Add property SelectionPen to WorksheetGrid
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4449 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-21 11:39:05 +00:00
7d731629e1
fpspreadsheet: Add method LoadFromWorkbook to WorksheetGrid and WorkbookSource. Remove "deprecated" from some overloaded workbook file access methods.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4448 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-21 10:55:55 +00:00
7940866bb5
fpspreadsheet: Reactivate usage of ColCount and RowCount in the WorksheetGrid. Add cell content to fpsgrid demo (designtime version).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4447 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-20 21:05:02 +00:00
a352efef12
fpspreadsheet: Add new method ShowCellBorders to TsWorksheetGrid for easier cell border creation. Replace in TsWorksheetGrid the TGridRect parameter of some public properties by the direct coordinates. WARNING: THIS CHANGE COULD BREAK EXISTING CODE.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4446 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-20 15:39:22 +00:00
0b6a62b46c
fpspreadsheet: Fix painting artefacts of TsWorksheetGrid when resizing col widths or row heights by dragging with mouse.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4443 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-19 19:34:28 +00:00
2ee3d18801
fpspreadsheet: Activate html codes for Cells property of TsWorksheetGrid. Extended grid demo showing run-time generation of content.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4442 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-19 18:40:41 +00:00
1954c8dea7
fpspreadsheet: Fix WorksheetGrid's colwidths and rowheights at designtime
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4441 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-19 18:09:21 +00:00
d769397eae
fpspreadsheet: Fix merged cells painting into the fixed cells of TsWorksheetGrid.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4439 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-19 12:04:41 +00:00
a433fc3fce
fpspreadsheet: Fix mssing transfer of ColWidths, RowHeights, DefaulColWidth and DefaultRowHeight set by the WorksheetGrid to the worksheet.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4438 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-19 00:06:29 +00:00
62246a58db
fpspreadsheet: Fix the WorksheetGrid method NewWorkbook to respect the column and row count parameter.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4437 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-18 21:53:18 +00:00
cdf96e2fa2
fpspreadsheet: Fix TsWorksheet occasionally crashing in new SetCells method.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4436 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-18 21:26:19 +00:00
2abce47ffb
fpspreadsheet: Add property NumberFormats to TsWorksheetGrid.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4433 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-18 16:09:55 +00:00
96ceb0a296
fpspreadsheet: Make sure that formulas are erased when new cell values are written by WorksheetGrid.Cells into cells containing formulas.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4432 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-18 13:35:48 +00:00