Commit Graph

1162 Commits

Author SHA1 Message Date
5879d12600 fpspreadsheet: Update offline wiki help file
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4555 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-14 23:12:49 +00:00
779d7dc1b3 fpspreadsheet: Update offline api help file
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4554 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-14 23:12:20 +00:00
a2d7f601c2 fpspreadsheet: Update script for creation of api help files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4553 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-14 23:11:33 +00:00
e76a0394d3 fpspreadsheet: User-provided registration of image formats. Automatic detection of image format from file header.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4552 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-14 22:04:00 +00:00
da0eddc8e4 fpspreadsheet: Avoid orphaned tempory files if workbook Options contain boFileStream.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4549 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-13 23:29:08 +00:00
b78383bc8f fpspreadsheet: Fix size calculation for some embedded jpeg images.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4548 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-13 23:14:30 +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
d5fb9128ef fpspreadsheet: Write defaultrowheight and defaultcolwidth for Excel formats (don't know how ods stores them...)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4543 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-11 22:42:13 +00:00
345f1c6818 fpspreadsheet: Fix Excel error with several images in xlsx file
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4542 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-11 18:38:48 +00:00
8a75b32525 fpspreadsheet: Write embedded images to ods files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4541 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-11 17:54:29 +00:00
d7bba9bd93 fpspreadsheet: Reading of text format for ods and all Excel (except for biff2)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4540 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-10 11:05:34 +00:00
e4946cf801 fpspreadsheet: Write text format to ods, xlsx, biff8 and biff5
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4539 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-10 10:43:44 +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
8fcf90d13a fpspreadsheet: Fix compilation of new Excel unit test for non-Windows systems.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4536 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-09 09:55:28 +00:00
0fc1e4c933 fpspreadsheet: Add tests for Excel being able to read files containing commens, images, header/footer images, and hyperlinks.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4533 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-08 13:38:04 +00:00
8abea8d2f7 fpspreadsheet: Support for writing headers/footer images to xlsx. Remove some compiler hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4532 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-08 11:29:13 +00:00
e17429c92c fpspreadsheet: Load images for header/footer into workbook's embedded streams list.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4531 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-04 23:43:40 +00:00
f1c07951dd fpspreadsheet: Move PageLayout to separate unit (fpsPageLayout). Move PrintRanges and RepeatedRows/Cols to PageLayout. Some simplifiations because TsPageLayout is a class now. Prepare for images in header/footer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4530 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-04 23:01:21 +00:00
e3ee61aec5 fpspreadsheet: Support .svg, .pcx, .wmf and .emf image formats for embedding into worksheets (in addition to .jpg, .bmp, .tiff, .gif, .png).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4529 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-03 22:17:12 +00:00
58547464d3 fpspreadsheet: Initial support for embedded images. Writer for xlsx. Avoid writing relationship for non-existing files to xlsx. Add "numFmtId=0" to xlsx styles (seems to be mandatory for import to Access).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4528 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-03 19:12:58 +00:00
0debf57411 fpspreadsheet: Remove BIFFExplorer (has been moved to application)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4518 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-21 11:05:39 +00:00
e6e1dc1c30 fpspreadsheet: Update readme.txt of BIFFExplorer
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4514 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-21 10:55:49 +00:00
b0adfe7a2a fpspreadsheet: Improvements for BIFFExplorer (use KHexEditor, simplify virtual tree node management, fix memory leaks).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4513 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-21 10:50:54 +00:00
d2b80cf143 fpspreadsheet: Read print ranges and repeated print rows and columns from BIFF5 and BIFF8 files (xls - BIFF2 does not support them).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4512 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-19 19:53:10 +00:00
d9dd29c0fc fpspreadsheet: Set absolute flag for http hyperlinks in sfExcel8
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4507 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-16 11:05:32 +00:00
e3d715a8a8 fpspreadsheet: Fix ods repeated rows/cols unit tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4506 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-16 10:28:14 +00:00
fdf0f89a66 fpspreadsheet: Reading of ods repeated print columns. Unit tests for repeated rows/cols (not ok, yet).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4505 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-15 23:43:17 +00:00
bfac43cabe fpspreadsheet: Add reading of ods repeated print rows.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4504 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-15 22:33:24 +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
ad4813947b fpspreadsheet: Add support for print ranges to ods reader. Add ods unit test for writing and reading print ranges.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4502 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-14 21:49:25 +00:00
8eff203daa fpspreadsheet: Write printranges and repeated cells to biff5 files. Related improvements in BIFFExplorer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4501 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-14 17:03:20 +00:00
42e34dc695 fpspreadsheet: Identify some unknown formula tags in DEFINEDNAME records.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4500 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-14 14:16:28 +00:00
1f55bbd8b7 fpspreadsheet. Support writing of print ranges and repeated header rows/columns by biff8 format
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4499 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-14 14:01:51 +00:00
1de8a2f14a fpspreadsheet: Improved details of DEFINEDNAME, EXTERNBOOK and EXTERNSHEET records.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4498 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-14 11:16:57 +00:00
4ecc8681b3 fpspreadsheet: Add methods DeleteRichTextParams, HasRepeatedPrintCols and HasRepeatedPrintRows to TsWorksheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4497 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-14 11:15:23 +00:00
22c42622a2 fpspreadsheet: Add printranges and repeated header cols/rows (for printing) to worksheet. Implement writing to xlsx and ods. (Request from the forum http://forum.lazarus.freepascal.org/index.php/topic,31496.0.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4496 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-13 17:45:36 +00:00
8a0351fde3 fpspreadsheet: Fix incorrect writing order of merged cells and hyperlinks in xlsx files causing an Excel read error (issue #0029640)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4495 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-12 14:04:35 +00:00
9a35171efd fpspreadsheet: Fix writing of hyperlink displaytext with double-quotation characters in xlsx causing an xml read error. Issue #0029640.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4494 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-02-12 13:41:18 +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
0ceb659793 fpspreadsheet: Add functions SUMIF and AVERAGEIF
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4479 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-27 18:15:44 +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
85dd9bc35d fpspreadsheet: Add BiDiMode to TCell record helper.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4473 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-01-25 23:12:48 +00:00