Commit Graph

3293 Commits

Author SHA1 Message Date
a5e3c273a6 fpspreadsheet: Improved worksheet grid row height and col width calculation taking care of rich text formatted cells.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4207 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-09 21:35:50 +00:00
4e44185df4 fpspreadsheet: Improved centering of stacked text in cells of Worksheetgrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4206 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-09 18:34:31 +00:00
e1920a4bfa fpspreadsheet: Fix new cell painting code causing a hang in case of stacked text rotation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4205 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-09 17:47:59 +00:00
5b319c45bf fpspreadsheet: Fix rich-text ignoring non-ansi characters. Beginning to handle rich-text formatting runs when reading biff5 files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4204 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-09 15:29:44 +00:00
9b89738158 fpspreadsheet: Extend TsFont for sub-/superscripts. Initial implementation of "rich-text" cell format: display in WorksheetGrid and SpreadsheetInspector, read from xlsx, extend TsWorksheet.WriteUTF8Text() for rich-text formatting runs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4203 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-09 11:10:15 +00:00
f80c3a9df0 fpspreadsheet: Fix string encoding error observed with fpc3 and non-UTF8RTL.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4202 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-03 20:35:12 +00:00
e3bb7c1efa fpspreadsheet: Fix formatting of date as weekday
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4200 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-01 09:07:16 +00:00
d8e49350eb fpspreadsheet: Change package version to 1.7. Clean up compilation warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4198 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-28 17:59:09 +00:00
4c43ae6e25 fpspreadsheet: Fix compilation with old Laz 1.2 / fpc 2.6.2
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4197 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-28 17:40:06 +00:00
539da5c2db fpspreadsheet: Final changes before release 1.6
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4196 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-28 12:09:12 +00:00
daeb6ebf88 fpspreadsheet: Prepare offline-wiki for upcoming relase v1.6
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4195 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-27 21:19:58 +00:00
65c59aa927 fpspreadsheet: Add a new chm help file containing snapshots of the fpspreadsheet wiki articles. Move current fpspreadsheet.chm into a docs subfolder and rename it to fpspreadsheet-api.chm. Add/update scripts and tools for creation of these chm files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4194 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-27 19:40:42 +00:00
77c38e6788 RxFPC: TRxColumnEditButton add new property - Enabled.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4192 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-17 08:09:34 +00:00
bf92d455f5 richmemo: extending support for links in win32
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4191 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-15 17:21:30 +00:00
51cb7240d2 richmemo: win32 fix for theme border drawing. #28269, based on the patch by Andrey Korol
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4190 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-15 16:52:31 +00:00
773295ba3e fpspreadsheet: Another exotic formula test case: multiple application of % operator.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4187 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-08 17:11:46 +00:00
e121751361 fpspreadsheet: Reactivate the expression parser test cases which were commented (and forgotten) some time ago. Activate missing argument tests. Add some "exotic" formulas. All passed.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4186 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-08 17:03:55 +00:00
c4c1eeece9 RxFPC:fix export to spreadsheet
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4185 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-08 12:08:21 +00:00
7312852637 fpspreadsheet: Fix speed drop when writing a single column only (reported and fixed by alex80, see http://forum.lazarus.freepascal.org/index.php/topic,28692.msg179682).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4184 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-08 10:19:34 +00:00
b8f0d3572e fpspreadsheet: Erase formula if a new value is entered into cell
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4183 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-07 17:52:38 +00:00
f061f22e72 fpspreadsheet: Simplify expression parser by removing conversion nodes (no type check any more). Add formula ERROR.TYPE().
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4182 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-07 15:33:36 +00:00
5ba3407139 fpspreadsheet: Fix spreadsheet function WEEKDAY to work with cell reference
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4181 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-07 08:22:12 +00:00
9fbe0f7b4e fpspreadsheet: remove type check in TsExpressionParser to be more compatible with Office applications. Fix parser to correctly handle exotic expressions such as "=50%^200%"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4180 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-06 19:34:39 +00:00
5d6bea6a85 fpspreadsheet: Add support for missing arguments to formula parser.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4179 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-06 11:53:47 +00:00
40644ea5d5 fpspreadsheet: Fix biff8 reader crashing with file containing SST and CONTINUE records and asian phonetic string in SST record.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4178 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-04 17:00:21 +00:00
80738eec17 fpspreadsheet: Implement drag and drop of file to biffexplorer
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4177 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-04 15:31:20 +00:00
54e0dc8d6f fpspreadsheet: Avoid BIFFExplorer crashing in case of a biff8 SST record requiring a CONTINUE record.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4176 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-04 15:12:34 +00:00
272db02859 fpspreadsheet: Change package version numbers to 1.6 for next release. Update chm help file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4175 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-03 11:07:39 +00:00
a658f6f7e6 fpspreadsheet: Fix runtime errors of guitests in debug mode
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4174 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-02 08:31:00 +00:00
0d7bdfa06c fpspreadsheet: Move TsCellFormatList from fpsTypes.pas to fpsClasses.pas. Updated chm help file after proof-reading.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4173 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-01 19:58:26 +00:00
694c87f585 fpspreadsheet: Update chm help file
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4172 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-06-01 13:55:40 +00:00
3eeefd11eb fpspreadsheet: Update readme file in examples/other/.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4171 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-31 20:50:07 +00:00
6eacf13d99 fpspreadsheet: Move all numberformat-related procedures/functions to unit fpsnumformat.pas. Check all demos.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4170 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-31 20:28:25 +00:00
a63c9ad4a5 fpspreadsheet: Make unit fpsnumformat.pas independent of fpspreadsheet.pas
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4169 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-31 16:41:34 +00:00
750a0c68f5 fpspreadsheet: Move some general procedures from fpspreadsheet.pas to fpsutils.pas
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4168 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-31 16:34:40 +00:00
f8f72e3847 fpspreadsheet: Make number format parser independent of workbook. Some cleanup.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4167 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-31 16:06:22 +00:00
61a55feef8 fpspreadsheet: Release restriction on max 21 numberformats for writing biff2 files; extra formats not read correctly by Excel although I know from Office97 that there can be more than 21 formats in a biff2 file. Add some more unit tests for number format parser.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4166 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-30 22:09:53 +00:00
dc32996691 fpspreadsheet: Collapsable/expandable items in TsSpreadsheetInspector
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4165 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-30 14:32:09 +00:00
5b0181c297 fpspreadsheet: Improved usability of the TsSpreadsheetInspector.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4164 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-30 14:01:10 +00:00
75b30afd0a fpspreadsheet: Fix biff2 reader interpreting "general" number format as nfCustom.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4163 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-30 13:32:54 +00:00
3793c9bd95 fpspreadsheet: In numberformats with ambiguous "m" tokens ("month" or "minute") use "month" (like Excel)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4162 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-29 22:45:42 +00:00
e2ddc7c705 fpspreadsheet: Extend number format parser to accept the keyword "General" in custom formats
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4161 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-29 21:35:07 +00:00
a05a385c8d fpspreadsheet: Fix too dense background fill of biff2 files in spreadsheet grid, now like in Excel. Read number formats from BIFF2 files (don't use 21 predefined formats any more).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4160 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-29 17:57:05 +00:00
7a1caea387 fpspreadsheet: Prev commit was not good, now ok. Also: Fix fraction formats with explicit denominator (such as "#/32").
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4159 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-29 17:30:43 +00:00
f014686438 fpspreadsheet: Fix missing space between integer and numerator of formatted mixed fraction if integer format contains a thousand separator.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4158 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-29 16:16:37 +00:00
cb6433ad15 fpspreadsheet: Add demo how to write all Excel8 colors.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4157 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-28 21:54:05 +00:00
545bd7ed0f fpspreadsheet: Major reconstructor of color management: no more palettes now, use direct rgb colors instead. May break existing code - sorry! Update all demos and unit tests (passed).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4156 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-28 20:08:24 +00:00
46386a0f37 richmemo: win32 clean up hints
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4155 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-27 01:42:13 +00:00
6ac1c63457 richmemo: win32 theme drawing. #21347. The implementation is based on the patch (by unknown contributor - see the bug tacker issue). But, thank you!
The way to override the implementation is provided. 

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4154 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-26 16:48:41 +00:00
8592b112fd richmemo: clean up win32 compiler hint messages
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4153 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-05-26 16:08:53 +00:00