Commit Graph

1865 Commits

Author SHA1 Message Date
2f844467a9 fpspreadsheet: Fix memory leak in ODS reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8352 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-19 20:55:25 +00:00
e2a0b7912c fpspreadsheet: Add demo programs for reading/writing comments.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8341 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-07 17:08:09 +00:00
6110d9acc7 fpspreadsheet: Refactor xlsx reader for comments and defined names
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8340 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-07 09:53:16 +00:00
fbd714c976 fpspreadsheet: Refactor xlsx reader for comments and hyperlinks.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8339 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-05 22:56:39 +00:00
8355a48dfd fpspreadsheet: xlsx reader supports scaling of header/footer images.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8338 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-04 20:27:06 +00:00
802af455b3 fpspreadsheet: Introduce image scaling factor for header/footer images. Supported by xlsx writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8337 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-04 17:48:22 +00:00
37685f0c64 fpspreadsheet: Refactor xlsx reader for images to avoid excessive unzipping.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8336 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-04 16:13:07 +00:00
702fd643f3 fpspreadsheet: xlsx reader adds header/footer images to PageLayout.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8335 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-03 18:02:59 +00:00
105099f338 fpspreadsheet: xlsx reads images in header/footer
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8333 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-07-01 20:36:06 +00:00
1432cbe4c7 fpspreadsheet: Add demo for reading embedded images.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8330 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-06-26 22:18:38 +00:00
e8d8973789 fpspreadsheet: Improved painting of embedded images in worksheetgrid in case of scaling factor 1.0
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8329 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-06-26 17:39:07 +00:00
93b4393d86 fpspreadsheet: Support image scaling factor when reading images from xlsx.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8328 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-06-26 17:38:08 +00:00
78332efef7 fpspreadsheet: Basic image support by xlsx reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8327 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-06-25 21:06:07 +00:00
7458f2b434 fpspreadsheet: Update image file paths in sample project "demo_write_images"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8326 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-06-24 17:28:59 +00:00
870e46847a fpspreadsheet: MoveCell completely overwrites destination cell. MoveCell with sourcecell=nil erases destination cell. Related unit test cases.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8270 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-28 10:08:39 +00:00
16d631d0cf fpspreadsheet: Fix missing error when cells are moved so that a circular reference formula is created (https://forum.lazarus.freepascal.org/index.php/topic,59137.msg441301.html#msg441301).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8269 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-27 21:28:44 +00:00
8e8d070239 fpspreadsheet: Fix drag and drop in worksheet grid to move cells and formulas correctly.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8264 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-22 22:10:06 +00:00
a64ed1654e fpspreadsheet: Fix issue when moving cells with formulas mentioned in previous commit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8263 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-22 21:57:56 +00:00
e97d4c3c20 fpspreadsheet: Add unit test for moving cells. NOTE: currently there is a fail when moving a cell with relative formula.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8262 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-22 21:44:01 +00:00
25878c44d6 fpspreadsheet: Disable workbook notifications while moving cells.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8261 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-22 21:42:02 +00:00
02bd21629c fpspreadsheet: Add method TsWorksheet.MoveCell (forum https://forum.lazarus.freepascal.org/index.php/topic,59137).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8260 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-22 20:12:08 +00:00
b4ac1e075d fpspreadsheet: Fix issue that Insert/DeleteRow/Col operation changes formulas in unaffected sheets (see https://forum.lazarus.freepascal.org/index.php/topic,59102.0.html). Add test cases for it.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8259 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-21 16:45:44 +00:00
fb53f95eaf fpspreadsheet: Fix result of formula with unary plus having a string as input.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8257 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-20 21:33:13 +00:00
c5c3755b64 fpspreadsheet: Handle numeric cells strings in TUPlusExprNode of the formula parser.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8247 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-08 17:18:11 +00:00
520e94f2d7 fpspreadsheet: Fix integer overflow in formulas with large integer values.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8246 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-08 17:01:55 +00:00
0f64e793db fpspreadsheet: Fix incorrect column calculation when ODS formula refers to column index > 25 (> 'AA') (https://forum.lazarus.freepascal.org/index.php/topic,59001).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8245 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-08 10:57:15 +00:00
5ce0a6ca18 fpspreadsheet: Fix TsUnaryExpressionNode not implementing the IterateNodes method (https://forum.lazarus.freepascal.org/index.php/topic,58969).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8242 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-04 09:13:40 +00:00
b5c5632668 fpspreadsheet: Fix incorrect row height when row switches from hidden to visible (https://forum.lazarus.freepascal.org/index.php?topic=58792.msg438138#msg438138).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8218 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-03-22 10:11:23 +00:00
00dfa0a45e fpspreadsheet: minor refactoring of crypto example.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8199 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-02-18 18:17:14 +00:00
27b1f3af8c fpspreadsheet: Update help files for v1.14. Add instructions how to build them.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8193 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-01-31 11:32:56 +00:00
e028bf3a27 fpspreadsheet: preparing v1.14 for next OPM release.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8192 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-01-31 09:37:01 +00:00
a0993874a1 fpspreadsheet: Add chm help for unit fpsCurrency. Refine some help texts in fpsUtils.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8152 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-11-22 22:35:12 +00:00
fcb02822e2 fpspreadsheet: More detailed font conversion routines, needed for RichMemo integration.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8147 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-11-13 22:10:10 +00:00
1626e8ab2f fpspreadsheet: Less hints and warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8126 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-10-27 16:14:40 +00:00
c0a1aade9a fpspreadsheet: Add new properties to grid: CellFormula, CellProtection, CellProtections. Grid cell editor uses cell font. Expose the upper-left grid corner pixel coordinates as LeftTopPx property. Patch by milesyou (https://forum.lazarus.freepascal.org/index.php/topic,56548.0.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8116 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-10-02 20:57:03 +00:00
68da1ac936 fpspreadsheet: Add demo how to create a spreadsheet by means of TsWorksheetDataset.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8101 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-28 22:18:11 +00:00
83268bfd02 fpspreadsheet: Add TsWorksheetDataset.Flush to write a spreadsheet file to disk.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8100 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-28 22:15:10 +00:00
db6dc4b039 fpspreadsheet: Prevent adding field defs for unsupported field types.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8099 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-28 17:17:40 +00:00
37c1130a12 fpspreadsheet: Add dataset example
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8097 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-24 21:30:14 +00:00
0fce0c2ddf fpspreadsheet: Add TDataset-descendant, TsWorksheetDataset, and related unit-tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8095 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-24 09:05:05 +00:00
4585269bdb Move unit tests into folder unit-tests/common
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8094 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-24 08:45:28 +00:00
c642795086 fpspreadsheet: Fix typo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8085 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-13 07:21:00 +00:00
26b0f4f5a1 fpspreadsheet: Cosmetic typo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8082 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-08-31 16:58:24 +00:00
dba75889aa fpspreadsheet: Clean up searching routines.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8080 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-08-26 13:19:10 +00:00
ac50969b7f fpspreadsheet: Catch formula errors in ODS reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8067 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-08-08 16:18:51 +00:00
e9fc0f2a36 fpspreadsheet: Fix ods reader crashing when the file contains an embedded chart.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8066 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-08-08 15:24:43 +00:00
0f89af8cd7 fpspreadsheet: Simplify setting borders in neighboring cells of the worksheetgrid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8061 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-07-11 19:24:56 +00:00
a0801dd183 fpspreadsheet: Another attempt to fix overwriting of frozencols borderline by cells with borders.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8060 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-07-11 14:04:46 +00:00
4bbe58f7cf fpspreadsheet: Fix cell borders painting over frozencols border line (https://forum.lazarus.freepascal.org/index.php/topic,55317.0.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8059 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-07-11 08:32:08 +00:00
3f87df497d fpspreadsheet: Fix grid column headers being overwritten when ShowHeaders is false.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8058 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-07-09 21:42:36 +00:00