Commit Graph

1194 Commits

Author SHA1 Message Date
2a25a3e64c fpspreadsheet: Fix range overflow if formula contains integers > 65535
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4619 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-13 10:03:47 +00:00
d24bf8307f fpspreadsheet: Fix autorowheight calculation in grid hanging if row contains a zero-width column
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4616 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-11 09:56:53 +00:00
8025b4fd9e fpspreadsheet: Less hints and warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4615 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-11 09:45:27 +00:00
72d1f2798e fpspreadsheet: Fix TsWorksheetGrid hanging in case of zero-width or zero-height cells
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4611 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-08 19:27:59 +00:00
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
6f5068b304 fpspreadsheet: Avoid ods reader using localized color names.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4606 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-04 09:47:20 +00:00
fd972a63ea fpspreadsheet: Add Finnish translation (by Seppo Suutarla).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4601 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-27 20:05:24 +00:00
ad77d88b77 fpspreadsheet: Add Russian translation (by forum user alexs75)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4596 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-25 10:06:45 +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
9f50c31c97 fpspreadsheet: Fix compilation with Laz 1.4.4
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4583 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-22 18:11:03 +00:00
279a8cf1e7 fpspreadsheet: Fix usage of html entities in ExcelXML format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4581 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-20 09:51:49 +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
5121c07d54 fpspreadsheet: Fix ods reader crashing if a formula contains an error cell reference like #REF!1 (initially A1, but column A was deleted).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4579 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 23:47:19 +00:00
b6a839a0f7 fpspreadsheet: Fix automatic row height calculation in WorksheetGrid for rotated text.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4578 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 22:57:46 +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
a46928c3a3 fpspreadsheet: Fix writing default colwidth to xlsx (was applied only to first column so far).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4576 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 16:39:43 +00:00
840ff82715 fpspreadsheet: Fix biff default colwidth broken in prev commit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4575 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 16:23:35 +00:00
ae7cebf901 fpspreadsheet: Avoid regression by new length units by accessing DefaultColWidth and DefaultRowHeights by means of setters/getters. Marked as deprecated though, "official" method is calling workbook's WriteDefaultColWidth/WriteDefaultRowHeight/ReadDefaultColWidth/ReadDefaultRowHeight which get the units as a parameter.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4574 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 15:18:49 +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
222427e8f6 fpspreadsheet: Optional calculation of image position based on pixels improves slight distortion of images written for xlsx.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4570 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-18 21:23:09 +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
08e1a619ca fpspreadsheet: Improved detection of pixel resolution for variants of bmp file format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4567 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-17 11:30:10 +00:00
a08f1c7224 fpspreadsheet: Add reading of ods header/footer images
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4562 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-16 21:58:46 +00:00
10c6042b7a fpspreadsheet: Fix automatic column width in grid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4561 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-16 17:27:51 +00:00
d942e09963 fpspreadsheet: Fix row height calculation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4560 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-16 13:08: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
46d14f5cfe fpspreadsheet: Add stream variant of PageLayout.AddHeaderImage and .AddFooterImage
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4558 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-15 21:01:01 +00:00
6adaa12975 fpspreadsheet: Add stream variant of TsWorksheet.WriteImage.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4557 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-15 14:04:06 +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
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