Commit Graph

1207 Commits

Author SHA1 Message Date
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
9f593aa10a fpspreadsheet: Add 1904-DateMode to ExcelXML writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4344 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-20 14:20:04 +00:00
3b55c6c835 fpspreadsheet: Add merged cell support to ExcelXML writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4343 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-20 13:45:51 +00:00
6b92de4051 fpspreadsheet: Add hyperlink support to ExcelXML writer, complete comment support.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4342 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-20 12:22:28 +00:00
995c1a737e fpspreadsheet: Fix comments in ExcelXML writer
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4341 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-20 11:19:49 +00:00
265a1270da fpspreadsheet: Fix rich-text formatted cell text for ExcelXML writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4340 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-20 09:57:10 +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
c22465879e fpspreadsheet: Fix reading non-integer sized fixed panes in xlsx files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4336 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-17 14:48:33 +00:00
899efef347 fpspreadsheet: Fix xlsx reading crashing for non-integer font sizes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4335 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-17 12:51:54 +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
51ae4d34e1 fpspreadsheet: Fix visual controls notification for "replace all".
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4320 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-09 15:49:33 +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
3026d99354 fpspreadsheet: Remove reduncant code when comparing fonts
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4311 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-02 15:43:00 +00:00
2b99bad89d fpspreadsheet: Write unzipped xml files of xlsx and ods to a unique temp directory.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4310 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-09-02 09:36:35 +00:00
9bcaed5b25 fpspreadsheet: Fix reading error in ods related to rich-text fonts
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4309 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-31 21:32:59 +00:00
9720221878 fpspreadsheet: Fix CopyCell to make sure that fonts used in RichTextParams exist for destination cell.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4308 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-31 13:13:22 +00:00
b68bbe08ef fpspreadsheet: Add test case for reading biff 5/8 from stream
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4300 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-27 16:02:58 +00:00
05237dd7a2 fpspreadsheet: Fix writing of OLE structure ignored by sfExcel5 and sfExcel8 in "WriteToStream" (issue #0028573)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4299 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-27 10:30:38 +00:00
bae47dcb21 fpspreadsheet: Avoid logging workbook error when reading Excel8 files containing comboboxes. Fix is not 100% safe, should not crash, though. Let's see...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4277 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-20 16:03:13 +00:00
7fd6590a6b fpspreadsheet: Prevent biff8 reader crashing for a special file containing comboboxes (see forum http://forum.lazarus.freepascal.org/index.php/topic,29409.0.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4276 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-20 13:00:38 +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
f4cb9c14a7 fpspreadsheet: Use HTML conversion to enter rich-text in the visual TsCellEdit control
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4271 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-14 12:44:22 +00:00
55c0c6c4c4 fpspreadsheet: Add simple converter from plain text+rich formatting to html-coded text.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4270 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-13 21:38:02 +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
f8202560a5 fpspreadsheet: Remove support for text rotation from html reader/writer (too difficult...). Introduce some line breaks in written hmtl file to avoid ending with a too-long html line.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4266 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-12 17:31:05 +00:00