Commit Graph

1207 Commits

Author SHA1 Message Date
48eaf9d6a0 fpspreadsheet: Add pagelayout testcases for page margins.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4111 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-03 21:41:27 +00:00
f2f610ffbd fpspreadsheet: Fix formula parser error in binary math operations of cell references (incorrect usage of integer instead of floating point values).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4110 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-03 20:07:35 +00:00
dfa4df2c1e fpspreadsheet: Write page layout to ods. Fix some page-layout-related bugs for ooxml.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4109 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-02 23:04:59 +00:00
080efbf542 fpspreadsheet: Fix format in predefined test files (test*_1899*.* and test*_1904*.*); fix biff8 ignoring cell format in shared formula range.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4108 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-02 14:25:39 +00:00
3902f75dfc fpspreadsheet: Read page layout from ods file (some simplifications, though)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4107 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-01 22:51:01 +00:00
e66caefbe0 fpspreadsheet: Add headers and footers to the pagelayout record, implemented for all Excel formats (reading & writing).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4104 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-01 15:14:25 +00:00
82117326a4 fpspreadsheet: Add some more page layout properties (page size, orientation etc) for all Excel and ods formats (ods implementation, however, not correct at the moment).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4103 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-30 21:55:55 +00:00
4f520e0bf2 fpspreadsheet: Add PageLayout record to Worksheet; implement reading and writing of page margins for xlsx.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4102 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-29 20:00:07 +00:00
3a2b5f2aad fpspreadsheet: Add support for fraction formats having a fixed denominator ("# ?/4" for quarters, etc.)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4101 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-29 16:23:07 +00:00
dc8ad5acde fpspreadsheet: Fix hyperlinks unit test case
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4100 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-27 09:59:59 +00:00
de39db4c01 fpspreadsheet: Fix comiliation error w/ fpc-trunk (issue 0027978)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4099 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-27 09:44:21 +00:00
f5c1eb21cb fpspreadsheet: Add dialog for number format selection to examples folder. Fix grid forgetting current number format after editing cell content.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4095 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-26 16:24:19 +00:00
c2dd60bb18 fpspreadsheet: Improved conversion of numbers to formatted strings, handles more special cases (e.g. integer-only fractions, optional digits, optional space digits).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4094 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-22 18:48:08 +00:00
cb3e968166 fpspreadsheet: Fix compilation issue using fpc 3.1.1 (issue #0027916)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4092 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-21 20:51:31 +00:00
c3da3fa60c fpspreadsheet: More general handling of conditional colors in number format strings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4091 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-21 09:35:58 +00:00
249c483503 fpspreadsheet: Remove no-longer-needed method "Localize" of TsNumFormatParser
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4090 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-20 11:20:09 +00:00
cd397b64d5 fpspreadsheet: Remove TsNumberFormatDialect, not needed by number format parser any more. Fix some issues in visual demos related to number formats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4089 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-19 22:03:33 +00:00
06ae0f91dc fpspreadsheet: Fix unreadable xlsx file created by hyperlinkdemo/collectlinks demo project
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4083 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-18 17:37:20 +00:00
03b7dedde7 fpspreadsheet: Improved number format parser
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4082 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-18 14:58:38 +00:00
389c4646f5 fpspreadsheet: Improved fraction format parser
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4079 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-04-08 22:43:57 +00:00
ccf0fa6a51 fpspreadsheet: Improved syntax for mixed fraction formatting strings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4074 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-31 20:15:04 +00:00
5c2b844bb7 fpspreadsheet: Add formatting of numbers as fractions
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4073 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-31 19:01:16 +00:00
04370d76dc fpspreadsheet: Complete hyperlink form. In examples/visual/fpsctrls, open hyperlink URI when hyperlink cell is activated.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4062 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-21 22:38:54 +00:00
beca637d7c fpspreadsheet: Fix shared formulas incorrectly read from xlsx files. Fix formulas being lost when reading xlsx and ods files where formulas had not been calculated at saving.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4058 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-20 23:24:12 +00:00
34ec877414 fpspreadsheet: Improved handling of empty cells containing hyperlinks.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4057 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-20 20:51:07 +00:00
155bbd8662 fpspreadsheet: Beginning to integrate hyperlinks into visual demos --> THyperlinkForm (not complete yet).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4055 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-19 23:38:16 +00:00
2252e04cec fpspreadsheet: Improve copying of multiple cells in the WorksheetGrid. Fix worksheet not deleting formula if a blank cell is written.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4054 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-19 11:40:07 +00:00
fea54220d3 fpspreadsheet: Less hints
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4051 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-18 20:19:41 +00:00
e165ffb180 fpspreadsheet: Improved AVLTree enumerators (no speed loss of column enumerator compared to for-to cell access)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4050 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-18 18:11:52 +00:00
94bb14c171 fpspreadsheet: Switch to lfm resource in some shared demo forms. Modify shared unit "sctrls" to no longer hide inherited method.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4046 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-17 12:17:58 +00:00
56373ed329 fpspreadsheet: Fix row heights incorrectly displayed in WorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4045 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-17 11:42:57 +00:00
d1a80fc98f fpspreadsheet: Fix severe speed issue in WorksheetGrid (unnecessarily seeking last sheet column in DrawRow, needed for cell text overflow).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4039 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-16 17:40:16 +00:00
99276082a3 fpspreadsheet: Improved painting speed of TsWorksheetGrid for large files (draws borders and calculates row heights only for visual part of the grid) - still not perfect.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4038 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-16 09:45:58 +00:00
95edadbd29 fpspreadsheet: Fix cell row and column enumerator sometimes failing
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4036 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-16 00:05:56 +00:00
3a9150acf3 fpspreadsheet: Add demo hyperlinkdemo which collects the sheets of linked workbooks to a new workbook
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4035 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-15 11:02:15 +00:00
571956ccde fpspreadsheet: Add method to copy a worksheet into another workbook.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4032 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-15 00:09:53 +00:00
eab9c797ef fpspreadsheet: Add method AddCell to worksheet which does not check if cell already exists. --> some speed-up of reading.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4031 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-14 22:48:38 +00:00
d5e7867abd fpspreadsheet: Introduce read/write flag to indicate that workbook is currently being read or written. Avoid calculation of formulas during reading (--> signficant speed-up of reading of large files)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4030 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-14 22:23:43 +00:00
0195417270 fpspreadsheet: Set correct output folder for opendocread demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4029 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-14 22:11:46 +00:00
b406d1e64d fpspreadsheet: Add measurement of file loading time to fpsctrls/demo_ctrl
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4028 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-14 22:10:29 +00:00
6a263081e6 fpspreadsheet: Fix biff8 reader not attaching file protocol to absolute path hyperlink
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4027 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-14 22:02:34 +00:00
18e94d29b1 fpspreadsheet: Add settings dialogs from shared examples folder to fpsctrls/demo_ctrls demo project.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4024 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-13 22:54:42 +00:00
f94692451c fpspreadsheet: Fix duplicate unit issues for examples requiring installed visual package
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4022 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-13 17:49:33 +00:00
31bd092955 fpspreadsheet: Fix WorksheetGrid not calculating formulas in current cell
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4021 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-13 14:54:55 +00:00
6a56fc20c9 fpspreadsheet: Modify the define which deactivates multi-selection in the grid (old way not working for old Laz 1.3)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4020 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-13 14:33:55 +00:00
380ac8247c fpspreadsheet: Rearrange most of the demos into folders "read_write" and "visual"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4019 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-13 00:08:44 +00:00
1ded103b39 fpspreadsheet: Add function TEXT() and fix function VALUE() to make the provided test files of the test suite readable by fpspreadsheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4018 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-12 13:11:33 +00:00
c7c8d73179 fpspreadsheet: optimize workbook font infrastructure to avoid that missing font 4 dictated by Excel. Remove UsedFormattingField uffBold (obsolete since supporting fonts).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4015 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-11 22:28:07 +00:00
24b49277c1 fpspreadsheet: Fix incorrect assignment of cell format to hyperlinks when reading ods files (and some more bugs). Extend TsSpreadsheetInspector to display font and cell format lists of the workbook.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4014 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-10 23:48:30 +00:00
9f26fd4b79 fpspreadsheet: Fix test suite to pass all tests in Linux
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4009 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-08 22:13:15 +00:00