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
233a4b43b4
fpspreadsheet: Remove/deprecate all color constants and color names exceot for the basic EGA colors.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4608 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-06 10:43:24 +00:00
7b9a56cd3e
fpspreadsheet: Add method AddColors and event OnGetColorName to TsCellCombobox. Remove ComboColors.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4607 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-06 08:37:34 +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
e886dec4de
fpsprreadsheet: Fix usage of LineEndings in the html and wikitable writers.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4580 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-20 09:19:19 +00:00
5b524a1262
fpspreadsheet: Fix ods writer crashing occasionally due to uninitialized local rowheight variaible.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4577 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 21:33:01 +00:00
b3be7d1858
fpspreadsheet: Fix number format nfCurrencyRed for biff2. Fix Excel's format warning when opening the biff2 file written by excel2demo.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4573 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 11:59:38 +00:00
9280718d44
fpspreadsheet: Fix xlsx image distortion introduced with new workbook units.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4569 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-18 20:27:17 +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
66201c6caa
fpspreadsheet: Add reading of ods sheet images. Update TsSpreadsheetInspector.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4559 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-16 12:24:47 +00:00
998c8b0dfc
fpspreadsheet: Replace workbook's EmbeddedStream by a more general EmbeddedObj storing image width, height and format as well.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4556 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-15 12:29:58 +00:00
2a026867ca
fpspreadsheet: Finalize image and headerfooter_image demos. Update readme in other demos folder.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4547 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-13 23:01:12 +00:00
44b8adf293
fpspreadsheet: Activate scaling factor for embedded images.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4546 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-13 22:28:59 +00:00
a5e8d60e81
fpspreadsheet: Add writing of header/footer images to ods.
...
Reorganize ods header/footer code.
Fix writing of page margings for ods.
Fix Excel failing to load file with footer image.
Add header/footer image and image demos.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4545 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-13 18:15: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
1504384e79
fpspreadsheet: Add reading of print ranges and repeated print cols/rows for xlsx. xlsx unit test for print ranges. Fix reading/writing of worksheets with spaces and special xml entities in the sheet name.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4503 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-15 21:12:17 +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
9e637a3e93
fpspreadsheet: Fix compilation of spready
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4481 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-27 22:29:45 +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
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
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
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
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
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
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
d5d400798e
fpspreadsheet: Fix missing spaces in alignment tag of xml writer. Add excelxmlwrite demo (not working yet).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4339 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-19 23:16:57 +00:00
0dc5a6e45e
fpspreadsheet: Add writer for ExcelXML files (Office XP and 2003, will be needed for clipboard operations); formulas and rich-text not functional, yet.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4338 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-19 22:55:18 +00:00
bf2d6f4417
fpspreadsheet: Readers/writers now use memory streams by default. Add workbook option boFileStream to enforce usage of file streams. Improve fpsSpeadtest, add csv speed test.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4327 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-11 17:19:26 +00:00
ec22eb1154
fpspreadsheet: Fix search starting at first cell if search is resumed.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4324 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-10 11:42:21 +00:00
106c5a90f6
fpspreadsheet: Add ColorRectOffset to TsCellCombobox. Fix color rect of TsCellCombobox being truncated in qt.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4321 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-09 20:58:15 +00:00
1641355a19
fpspreadsheet: Control position of search dialog and confirmation dialog.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4319 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-09 15:26:11 +00:00
e633cfc677
fpspreadsheet: Improved search dialog
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4318 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-09 15:03:52 +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
a5cbacff27
fpspreadsheet: Add "replace" to search engine.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4316 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-08 21:43:02 +00:00
49dea52ee1
fpspreadsheet: Redo searching (better OO code), some identifiers renamed with respect to initial commit.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4313 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-07 15:48:43 +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
4f741ca06d
fpspreadsheet: Add new worksheet method "WriteTextAsHTML" which can contain embedded html codes translated to "rich-text" sections. The method for normal text, "WriteUTF8Text", has been renamed to "WriteText"; the old one is deprecated. Same with "ReadAsUTF8Text" (which is now "ReadText").
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4267 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-12 20:07:24 +00:00
acaacf81d4
fpspreadsheet: New demo htmlread_http (reading html table from the internet). HTML reader now detects hyperlinks (only one per cell, though - like in xls).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4239 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-03 15:21:33 +00:00
7c8e0a8b3d
fpspreadsheet: Initial support for reading html files (data only, no formats, no nested tables).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4236 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-01 22:11:44 +00:00
efa58b67c7
fpspreadsheet: Merged cell, hyperlink and row height support for html writer. Fix reading order of rich-text and asian phonetic info for biff8 reader.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4220 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-29 17:34:54 +00:00
ae6246254b
fpspreadsheet: add demo for html writer
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4219 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-28 22:29:45 +00:00
9bf5e60e90
fpspreadsheet: Initial commit of html writer.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4218 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-28 22:13:48 +00:00