Commit Graph

3338 Commits

Author SHA1 Message Date
631881ca39 fpspreadsheet: Fix incorrect characters in label cells read from of ods files. Partial fix of negative values forgetting the red color in case of built-in format nfCurrencyRed.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3188 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-17 11:57:03 +00:00
5a04bbbdda First commit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3187 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-17 09:08:16 +00:00
1e5fa19f94 fpspreadsheet: add support for writing currency formats to ods files. Fix "red" option for negative numbers.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3186 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-17 09:06:34 +00:00
0b809fbbfd First commit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3185 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-17 08:59:47 +00:00
1ca48d6cd2 First commit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3184 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-17 08:53:29 +00:00
9b60ec63be fpspreadsheet: Fix writing of percentage number formats to ods files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3183 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 19:30:43 +00:00
1d92e483ca WstImportDlg: improve GUI layout use anchors (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3182 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 19:09:54 +00:00
58be34c928 WstImportDlg: fix opening generated files in editor (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3181 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 19:08:10 +00:00
f1b0922aa1 Fix compilation of test-project with -Define-WST_HANDLE_D (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3180 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 19:05:44 +00:00
a10ed81837 Design Time package : Use FPC resources instead of LRS files (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3179 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 19:01:27 +00:00
4f9993b4b0 fpspreadsheet: Add workaround for number format nfSci which is not supported by Open/LibreOffice
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3178 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 16:32:39 +00:00
af326242a5 xsd_generator : Move duplicated code to a function (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3177 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 15:16:14 +00:00
31bbc5c053 XSD generator: prevent a Nil object reference (=>AV) (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3176 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 15:11:10 +00:00
cc849ecbac Use FPC resources instead of LRS files (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3175 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 15:00:22 +00:00
03ccd5323a fpspreadsheet: Infrastructure for writing of number formats to ods files. Fixed and exponential formats ok, percentage not working. Others not yet implemented.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3174 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 14:38:17 +00:00
bdeed1bcec Setting version to 1.5.1
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3173 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 11:37:29 +00:00
fe114b6b49 Releasing the version 1.5
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3172 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 11:33:49 +00:00
05f60addce Setting version to 1.5 and updating documentation accordingly
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3171 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-16 11:29:33 +00:00
144f4dd25b fpspreadsheet: Beginning to extend to number format parser for xml strings (for ods). Not finished, yet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3170 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-15 22:27:46 +00:00
bba6d27241 Lazarus Trunk Fix (Thanks Juha Maninnen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3169 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-14 17:19:39 +00:00
bb44723bea patch from Michal Gawrycki - see 0026325: Proposition: RxDBGrid and AutoSort without sort engine
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3168 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-14 07:16:52 +00:00
f4f860abc2 fpspreadsheet: Cleaning up
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3167 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-13 20:32:58 +00:00
9f69ce203a fpspreadsheet: Fix ods number format issues introduced with new number format parser. No regressions in test suite any more.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3166 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-13 20:11:41 +00:00
0083c7c510 fpspreadsheet: Add to the numformatparser test some more complicated formatting strings found in Excel files -> passed.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3165 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-13 14:35:36 +00:00
36765d4f9b fpspreadsheet: Fix issues related to biff2 expecting localized formatting strings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3164 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-13 13:33:02 +00:00
4d2ea06bfa Use LazUTF8 instead of LCLProc
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3163 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-13 10:46:13 +00:00
0abb220530 fpspreadsheet: Fix changing of decimal places for currency format in fpsgrid demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3162 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-13 10:03:29 +00:00
e94ee856a7 fpspreadsheet: Fix selection of date/time formats in fpsgrid demo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3161 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-13 08:33:41 +00:00
6895cc335e fpspreadsheet: Fix selection of short and long date formats in fpsgrid demo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3160 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-13 08:22:45 +00:00
2818ec7662 fpspreadsheet: Fix fpsgrid demo showing an incorrect backgroundcolor of new spreadsheets.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3159 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-13 08:17:31 +00:00
95347f5d5a fpspreadsheet: Fix usage of decimal places in fpsgrid demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3158 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-13 07:59:42 +00:00
8aee090396 fpspreadsheet: Remove testing code from excel8write.lpr
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3157 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-12 22:22:56 +00:00
a4ee00f870 fpspreadsheet: Major reconstruction of numberformat parser to facilitate creation of xml formats for ods. Some minor regressions in unit tests and fpsgrid demo to be fixed. Removed elements "Decimals" and "CurrencySymbol" from TCell (this information is taken from the format string now). Removed the built-in format nfFmtDateTime (makes life easier, use nfCustom instead).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3156 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-12 22:20:45 +00:00
885faa4ed6 * Cleanup TJvXPBarItem.GetImages
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3155 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-08 00:10:30 +00:00
3d09a86a15 Add "Word" and "Byte" overloaded "CheckEquals"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3154 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-07 14:35:17 +00:00
776bfddbcf "DefaultFormatSettings" is not defined for Delphi <= 2007
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3153 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-07 14:33:16 +00:00
12c4a4a2a2 fpspreadsheet: Read ods formula and display it in TsWorksheetGrid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3152 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-06 15:48:02 +00:00
712e0f9f27 fpspreadsheet: Add font writing support to ods. Add font ods test cases. Passed.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3151 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-06 13:09:14 +00:00
20567b639c fpspreadsheet: some cosmetics to better show the file format tested in a test case
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3150 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-06 12:17:45 +00:00
0e675ba97d fpspreadsheet: Add units tests for ods font colors
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3149 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-06 12:08:04 +00:00
ebf3fce852 fpspreadsheet: Write font attributes to ods file (except for font name).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3148 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-06 11:16:23 +00:00
d7ee2a84d8 fpspreadsheet: Fix crash of unit test application in case of missing length unit in HTMLLengthStrToPts. Rearrange code for ods font reading.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3147 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-06 09:17:52 +00:00
036383d658 fpspreadsheet: Add support for reading fonts from ods files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3146 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-06 08:48:22 +00:00
0954ad8470 * fpspreadsheet: anticipate changed messages handling in Lazarus trunk (see e.g. Lazarus revision 45363) by removing explicit messages file specification
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3145 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-06 06:14:23 +00:00
6c0efaf6eb fpspreadsheet: Improvments of TsWorksheetGrid and fpsgrid demo: Fix currency symbol not shown when selecting currency format. Fix showing a zero value when assigning a number format to an empty cell. Fix formula display when selecting an empty cell. Reset number format when selecting "General" format. Move selection to entered cell address in address edit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3144 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-05 21:57:23 +00:00
c275de3947 fpspreadsheet: Fix BIFF currency bug of previous commit. Fix UTF8 bug when reading currency symbol. No more errors in number test.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3143 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-05 19:57:00 +00:00
c335deb56c fpspreadsheet: Add currency test cases to numbertests. 1 fail for biff to be fixed, ods ok. Remove experimental code from opendocread.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3142 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-05 09:14:13 +00:00
292908eac3 fpspreadsheet: Add basic currency format support to ods reading. Replace xmlread and DOM in the uses clause of fpsopendocument.pas laz2_xmlread and laz2_DOM to correctly catch the currency symbols.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3141 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-05 08:29:32 +00:00
bac68e48c5 fpspreadsheet: Combine percentage format detection with other number formats (for ods)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3140 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-05 07:58:18 +00:00
0aeefd619f fpspreadsheet: Fix remaining issue of ods-1904 datetests. All tests green finally again.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3139 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-06-05 07:39:16 +00:00