684 Commits

Author SHA1 Message Date
aba1fc911f fpspreadsheet: Clarify Rich-text output in TsSpreadsheetInspector.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8564 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-17 22:45:23 +00:00
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
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
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
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
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
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
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
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
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
a7913ef0a4 fpspreadsheet: Do not unmerge cells in Worksheet.EraseCell when parameter KeepFormat is true.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8047 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-06-03 09:59:51 +00:00
ffa59aca22 fpspreadsheet: Fix xlsx and ods writers using local format settings for writing floats in conditional formats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8039 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-19 21:00:50 +00:00
45fb828427 fpspreadsheet: OOXML must write conditionalFormattings node before hyperlinks node (see forum https://forum.lazarus.freepascal.org/index.php/topic,54650.msg406200.html#msg406200).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8038 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-19 17:58:08 +00:00
b18474f986 fpspreadsheet: Remove comment about to do item regarding writing of conditional fonts in xlsx.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8037 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-18 10:43:34 +00:00
7959f69879 fpspreadsheet: Unified usage of color syntax in Excel xlsx files
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8036 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-18 10:38:33 +00:00
639385a707 fpspreadsheet: Fix writing of conditional fonts to xlsx.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8035 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-18 10:24:52 +00:00
e66195efeb fpspreadsheet: Remove fix for Excel's Year-1900 problem because it creates new issues... (issue #38742).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8033 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-15 21:38:39 +00:00
1efc3bc6f2 fpspreadsheet: Fixing Year-1900 date/time issue in Excel files for fps.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8032 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-15 17:23:04 +00:00
f190ffd0b5 Update chm help (add help for fpspreadsheetctrls and fpspreadsheetgrid).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8001 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-04-16 23:02:30 +00:00