f76da1c6b0
fpspreadsheet: Fix test suite not removing a particular temporay file after test,
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4445 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-19 23:14:43 +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
bb0a3ea92c
fpspreadsheet: Fix worksheet ignoring cell borderstyle if cell borderstyle is set before calling WriteBorders. Add '.' to package unit path (seems to fix compilation issue of several laz versions using the same fpx sources).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4411 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-12-30 09:42:57 +00:00
a8dc2255dc
fpspreadsheet: Fix utility function GetAttrValue crashing if Node has no attributes ( http://forum.lazarus.freepascal.org/index.php/topic,30769.0.html , patch by "vk_barnaul").
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4403 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-12-17 11:12:45 +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
b9b381633f
fpspreadsheet: Restore usage of a temp file name for the zipper needed by xlsx and ods writers, now defined by GetTempfilename, instead of the constant '___TEMP.TMP___'. This should work even if the current folder is not writable.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4400 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-12-03 11:10:34 +00:00
7ef55a84d9
fpspreadsheet: Fix compilation of fpsspeedtest.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4399 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-12-02 23:24:41 +00:00
a0ee8b8933
fpspreadsheet:
...
- Move BasicReader/Writer from fpspreadsheet.pas to fpsReaderWriter.pas in order to fix circular unit dependence introduced in prev commit.
- Remove usage of temp file in xlsx and ods stream writers (see forum forum.lazarus.freepascal.org/index.php/topic,30606.msg194818.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4398 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-12-02 22:16:55 +00:00
b2ca3098a4
fpspreadsheet: Reintroduce function GetFormatFromFileName. Fixes compilation error of LazReport addition lrSpreadsheetExport.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4395 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-11-22 12:52:00 +00:00
93c48a5b99
fpspreadsheet: Fix memory leak if writing an empty string to a worksheet by calling WriteUTF8Text
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4388 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-11-13 20:23:03 +00:00
5b07289442
fpspreadsheet: Replace new fpsutils.GetSetValues by typinfo.SetToString.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4382 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-31 10:35:16 +00:00
631c0c84aa
fpspreadsheet: Fix incorrect usage of GetEnumName in test suite.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4381 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-30 17:16:41 +00:00
180a1d049d
fpspreadsheet: Add parsing of cell range strings given in "R1C1" syntax
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4376 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-09 19:33:02 +00:00
ced66bed8b
fpspreadsheet: Implement parsing of cell references in "R1C1" syntax.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4375 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-09 17:30:24 +00:00
b873069b54
fpspreadsheet: Fix incorrect detection of cell ranges in ods files.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4374 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-09 14:47:37 +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
535273462f
fpspreadsheet: Simpler access to clipboard.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4372 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-06 12:01:35 +00:00
cb68f38703
fpspreadsheet: Fix failed unit tests, all passed now again.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4370 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-04 20:11:10 +00:00
f66540336e
fpspreadsheet: Giving up on clipboard support for ods file, not working, remove it.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4369 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-04 19:25:50 +00:00
6cb04bbcea
fpspreadsheet: Simplify clipboard access. Add format "Star Object Descriptor (XML)" for testing communication between LibreOffice and Clipboard.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4368 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-04 16:08:00 +00:00
6fb4bb9c9b
fpspreadsheet: Introduce additional parameter ("AParam") when saving workbooks.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4367 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-04 13:12:46 +00:00
c10dec52ea
fpspreadsheet: Fix writing incorrect biff formats (broken in r4353)
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4366 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-10-04 12:37:09 +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
295db4cdda
fpspreadsheet: Experiments with ods to/from clipboard
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4362 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-26 17:14:10 +00:00
69c34e5687
fpspreadsheet: CutToClipboard using system clipboard now
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4361 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-25 11:28:44 +00:00
2ad5901d28
fpspreadsheet: Some improvements and bug fixes in clipboard access
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4360 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-25 11:16:30 +00:00
333b9070ef
fpspreadsheet: Add 2nd html format for copying to clipboard.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4359 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-24 21:56:19 +00:00
28d84ab294
fpspreadsheet: Copy to clipboard as HTML
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4358 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-24 19:31:54 +00:00
c84939b956
fpspreadsheet: Copy to clipboard as csv or text format
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4357 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-24 18:35:11 +00:00
86b7e99ac9
fpspreadsheet: Paste cell, value, format or formula from clipboard
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4356 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-24 17:35:38 +00:00
39b73bcfec
fpspreadsheet: Add "Paste from clipboard" (for biff8 format)
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4355 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-24 15:27:28 +00:00
ad8daec47c
fpspreadsheet: Add code for copying to clipboard (fpsCtrls), initial version only handles biff8 and biff5 formats.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4354 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-23 21:40:32 +00:00
6a82944c1c
fpspreadsheet: biff writers store selected ranges now.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4353 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-23 13:28:24 +00:00
32343a87a3
fpspreadsheet: Add support for frozen panes to ExcelXML writer.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4351 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-21 21:54:49 +00:00
075b82257f
fpspreadsheet: Add support for hidden gridlines and table headers to ExcelXML writer.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4350 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-21 16:25:50 +00:00
022eac32cf
fpspreadsheet: Add missing files to laz_fpspreadsheet package.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4349 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-21 16:15:44 +00:00
d2510c2961
fpspreadsheet: Add PageLayout support to ExcelXML writer
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4348 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-21 16:03:41 +00:00
62150b4aca
fpspreadsheet: Add support for column width and row height to ExcelXML writer.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4347 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-20 22:41:07 +00:00
f2f4ce227a
fpspreadsheet: Fix formulas in ExcelXMLWriter. Fix excelxmlwrite demo.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4346 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-20 21:01:57 +00:00
0ce72db2f0
fpspreadsheet: Reformat xlsxml.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4345 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-20 15:25:05 +00:00