Commit Graph

2667 Commits

Author SHA1 Message Date
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
26fef957ec richmemo: simplify flag checks for byte type. corrected gtk2 style read for default font
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4017 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-12 04:08:37 +00:00
47109b3dd8 richmemo: fix color assignment when generating TFontParams from TFont. Introduced RMGetFontData to cover the issue with LCL GetFontData. todo: patch LCL Graphics.GetFontData
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4016 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-12 03:46:49 +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
7169bfbc64 chelper: updated the parsing (use includes first) and then parse the body. Added IgnoreDirectives option to force skipping of directives
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4013 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-09 18:39:18 +00:00
9bdc865712 chelper: fixed parsing standard C "signed" type names
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4012 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-09 04:19:46 +00:00
6f05506393 richmemo: gtk2 fix gettextattribute function, implement WSGetFontParams
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4011 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-09 03:11:02 +00:00
896ff5fe08 richmemo: added wsgetfontparams to handle missing informations
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4010 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-09 03:10:06 +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
072efe0a95 fpspreadsheet: Fix hyperlinks tests under Linux
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4008 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-08 17:27:52 +00:00
d16e0915f5 fpspreadsheet: Fix hyperlink unit tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4007 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-08 17:04:25 +00:00
928a3c8a17 chelper: extended parsing of mulitple header files
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4006 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-08 02:37:29 +00:00
4bd67b966e chelper: extended support for variables/constants parsing by reading its initial value.
added support for function body parsing. Removed a deprecated function.
fixed the preprocess handling

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4005 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-08 02:36:47 +00:00
9de53b2440 chelper: improved objc support:
Categories now can have protocol support. 
Added parameter method direction modified (in, byref, inout .. etc)
Parsing of non-class entities (typedef, vars and funcs) within class declaration

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4004 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-08 02:29:00 +00:00
7c169b576f fpspreadsheet: Forgot to add hyperlinktests.pas
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4003 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-08 00:51:39 +00:00
2d76afb541 fpspreadsheet: Unit tests for hyperlinks. Some issues left.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4002 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-08 00:50:10 +00:00
6d2e993c22 richmemo:
* introduced GetFontParams(TFont) to convert TFont to TFontParams (resolving font data). Using GetFontData(AFont.Reference.Handle) to resolve the passed font information (to handle uninitialized fonts). TFont.Handle is deprecated.
* corrected the TFontParams parameter passing in InsertFontText function

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4001 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-06 16:41:17 +00:00
115e6a7557 chelper: updated preprocess expression valuation - using macors values. Renamed the valuation function name.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4000 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-06 14:08:16 +00:00
fdd08738ef richmemo: initialize font params structure SetTextAttributes method with TFont
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3999 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-06 14:04:42 +00:00
9365a1dff2 fpspreadsheet: Reduce support for shared formulas (too many problems...), only reading from xls and xlsx files supported.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3998 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-06 12:12:45 +00:00
1af6c4c6f1 chelper: improve expression parsing detection of typecast vs (expression) - added standard set of c types and ctypeinfo library
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3997 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-06 04:32:31 +00:00
7dc4fd2a7e fpspreadsheet: Fix 2nd parameter of formula HYPERLINK
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3996 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-05 21:47:27 +00:00
52515073d2 fpspreadsheet: Add spreadsheet function "=HYPERLINK(link, cell_text)"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3995 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-05 20:07:15 +00:00
016c43335d chelper: added defined() function valuation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3994 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-05 18:20:40 +00:00
679a1c6762 chelper: added handling of c-preprocessor condition directives
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3993 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-05 15:27:26 +00:00
2c63f357de fpspreadsheet: Move InitFormatRecord from unit fpstypes to fpsutils. Add enumeratortests to spreadtestcli.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3992 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-05 10:54:06 +00:00
c5f6cbe82d fpspreadsheet: Replace for-to loops by for-in loops if possible. Update example demos.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3991 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-05 10:35:32 +00:00
75b09e07c3 chelper: further changes to match c-preprocess text processing. added precompiler evaluation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3990 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-05 05:01:11 +00:00
d51ddefe7d chelper: revising c preprocess handling. added new routines to prepare and collection preprocessing information
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3989 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-04 18:15:02 +00:00
7e52faa49f fpspreadsheet: In fpspreadsheet.pas, extract cells AVLTree to fpsclasses.pas. Implement enumerator for the avl trees. Add unit tests for cell and comment enumeration.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3988 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-04 17:30:59 +00:00
e85c36df87 * cleanup unused variables
* added processing for C++ sections (extern "C")
* added additional error comment 

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3987 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-03 14:43:23 +00:00
fb4365096d chelper: modified the parsing approach of the unit. currently breaks compatibility with chelper
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3986 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-03 03:45:41 +00:00
ca3c9c7339 chelper: additional functions for the new parsing aproach
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3985 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-03 03:44:46 +00:00
4759c5fcdd chelper: extended log functions with overload counterparts
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3984 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-03 03:43:40 +00:00
3a121294b0 chelper: cleanup error message generator. added obj-c class bit sized fields support
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3983 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-03 03:42:45 +00:00
bacca9d664 chelper: support for macros with variable arguments. end offset of a comment
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3982 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-03 03:06:50 +00:00
23d6bdc557 fpspreadsheet: Fix writing of empty strings to cell. Fix biff8 stream read error of hyperlinks.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3981 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-03 00:06:15 +00:00
135ceb1eef fpspreadsheet: Fix WorksheetGrid to show selection of merged cell range correctly. Fix cell content of blank cells after adding a hyperlink.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3980 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-02 21:20:00 +00:00
a10546d99b fpspreadsheet: Migrate MergeCells tree to fpsClasses
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3979 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-02 16:50:14 +00:00
7ad2d347ea fpspreadsheet: Begin migration of code related to AVLTrees to new unit fpsclasses. Hyperlinks and comments trees already migrated.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3978 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-02 12:23:52 +00:00
fbe591128c RxFPC:new function - RxGetAppConfigDir
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3977 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-02 08:49:50 +00:00
0121737d96 RxFPC:fix work on windows with non ansi (russian) chars in windows user name
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3976 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-02 08:01:34 +00:00
f92da238ee fpspreadsheet: Consider hyperlinks when inserting/deleting rows/columns
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3975 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-01 22:20:03 +00:00
5a4bb856f5 fpspreadsheet: Fix TsWorksheet.CopyCell ignoring comments, hyperlinks and merged cells. Fix incorrect handling of trailing zeros of hyperlink strings when reading biff8.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3974 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-01 12:23:14 +00:00
aca6971fe2 fpspreadsheet: Rename TsWorksheet.IsHyperlink to .HasHyperlink to be consistent with .HasComment
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3973 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-01 11:40:04 +00:00
0b7b50f476 chelper: added support for C++ enum element types. Refactored parsing next entity - added EndOffset, intComments
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3972 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-01 06:32:55 +00:00
58031aba3a fpspreadsheet: Modify hyperlink infrastructure to support non-label cells as well. Add hyperlinks to biff8 reader. Show hyperlink tooltip in TsWorksheetGrid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3971 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-02-28 23:46:08 +00:00
48490fd3c5 chelper: updates in the converter help file and default behaviour
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3970 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-02-28 04:56:08 +00:00
b45156a654 fpspreadsheet: Write hyperlinks to xls files (BIFF8 only, feature not supported by others)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3969 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-02-27 20:23:26 +00:00