Commit Graph

439 Commits

Author SHA1 Message Date
6ec5e264f3 fpspreadsheet: Add compiler mode directive to fpscrypto.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8743 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-02-25 17:23:25 +00:00
3a2cfd397f fpspreadsheet: Check compilation back to Laz 1.4.4/fpc 2.6.4. Update conditional defines in fps.inc.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8734 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-02-23 11:42:24 +00:00
8ab147776a fpspreadsheet: Fix typo in previous commit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8697 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-02-07 19:03:25 +00:00
7905e5a72e fpspreadsheet: Support the csv reader/writer options IgnoreOuterWhiteSpace and QuoteOuterWhiteSpace (see https://forum.lazarus.freepascal.org/index.php/topic,62151.0.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8696 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-02-07 16:54:19 +00:00
2daa348262 fpspreadsheet: Adjust conditional format range when rows/cols are inserted or deleted. See https://forum.lazarus.freepascal.org/index.php/topic,61810.0.html
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8672 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-01-10 21:54:55 +00:00
c5dcc98172 fpspreadsheet: Fix TsSpreadOpenDocReder.ReadCell returning undefined ColsRepeated value if there are too many columns.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8631 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-11-25 10:30:02 +00:00
eb0d7767fb fpspreadsheet: Fix handling of hyperlinks with spaces in the bookmark (sheet name).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8604 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-11-10 19:23:23 +00:00
68ec591390 fpspreadsheet: Use '?' as common broken-utf8-replacement character.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8578 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-21 14:20:06 +00:00
506dbe52b7 fpspreadsheet: Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8577 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 21:15:56 +00:00
88f48bfdcb fpspreadsheet: Fix failures in unit tests introduced by r8569.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8576 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 21:14:57 +00:00
963fa9bc2f fpspreadsheet: Adapt virtual mode writer to ods writer after r8574.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8575 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 20:40:44 +00:00
8a005864a4 fpspreadsheet: Fix virtual mode ignoring style cell when writing ods. Issue #39045, patch by Bartek Dajewski,
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8574 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 20:39:25 +00:00
8ca568fad2 fpspreadsheet: Simplify ValidXMLText().
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8573 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 15:25:33 +00:00
9d63e15606 fpspreadsheet: Fix writing malformed UTF8 text to Excel5 xls format (display as '?').
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8572 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 15:24:39 +00:00
4831f684fc fpspreadsheet: Avoid duplicate error message when writing defective UTF8 to ods. Related to issue #39045.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8570 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 14:09:56 +00:00
ab310b1165 fpspreadsheet: Fix writing of defective UTF8 strings to xlsx. Related to issue #39045.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8569 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 14:08:53 +00:00
df2c182ee2 fpspreadsheet: Simplified solution for multi-line text issue #39045 fixing also malformed UTF8 strings for ods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8568 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-19 10:09:16 +00:00
5dff24de86 fpspreadsheet: Fix usage of define FPS_NO_LAZUNICODE.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8566 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-17 22:57:46 +00:00
bf4b943cb2 fpspreadsheet: Fix writing multi-line text to ods. Issue #39045. Based on patch by Bartek Dajewski.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8565 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-17 22:46:41 +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
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
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
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
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
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
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