Commit Graph

209 Commits

Author SHA1 Message Date
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
638b34c693 fpspreadsheet: Add support for formulas, as well as properties for cell comments, hyperlinks and number formats to TsSpreadsheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4431 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-18 12:09:06 +00:00
9139f15d74 fpspreadsheet: Additions to TsSpreadsheetGrid:
- Add property Cells
- Add overloaded MergeCells and UnmergeCells methods
- Publish property CellFontColor.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4429 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-18 00:03:09 +00:00
b3ee66fb2f fpspreadsheet: Some cleanup
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4402 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-12-12 10:17:03 +00:00
48c33e0c1c fpspreadsheet: Massive reconstruction of file format registration: it is now possible to add user-defined readers and writers without modifying the fpsspreadsheet sources (--> new unit fpsregfileformats). Add (incomplete) unit for the SYLK file format (---> new unit fpssylk) to show this in the demo project visual/fpsctrls/demo_ctrls. Update all visual demos.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4373 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-09 13:27:04 +00:00
95704110ce fpspreadsheet: Improved cooperation of visual controls with clipboard.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4363 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-28 20:23:28 +00:00
f9c7e354c5 fpspreadsheet: Clean-up
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4317 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-09 13:20:09 +00:00
2a0d2f2e0c fpspreadsheet: Fix crash of worksheetGrid if methods using external workbooksource are accessed and only internal source is active.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4273 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-15 15:34:24 +00:00
adbc5c7c21 fpspreadsheet: Fix TsWorksheetGrid to be correctly notified of worksheet changes if not connected to a WorkbookSource (suggested by rvk, http://forum.lazarus.freepascal.org/index.php/topic,29214.msg184168.html#msg184168). Fix related demos.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4272 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-15 14:24:31 +00:00
caacb195e4 spreadsheet: Fix painting issues for rich-text imported by HTMLReader, not fully solved yet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4261 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-09 22:42:20 +00:00
62355e2d51 fpspreadsheet: Re-do rich-text format (easier, less code). Fix rich-text issues with utf8 characters.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4257 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-08 16:23:49 +00:00
6a6f290fda fpspreadsheet: Read/write name of active worksheet (biff5, biff8, xlsx, ods, visual controls)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4240 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-03 19:04:40 +00:00
9f775a09d6 fpspreadsheet: Fix worksheetGrid to expand itself if new cells are created beyout the current grid extent.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4234 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-31 16:23:59 +00:00
9c0df635f8 fpspreadsheet: Support reading and writing of all additional linetypes of biff8 and ooxml.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4229 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-30 19:08:39 +00:00
b6a8d809bb fpspreadsheet: Support for all line styles of biff8 and ooxml.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4228 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-30 17:15:48 +00:00
56a82b945b fpspreadsheet: Fix worsheetgrid respecting font color defined by number format code
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4225 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-30 13:10:03 +00:00