Commit Graph

3107 Commits

Author SHA1 Message Date
654d2a7381 * Synchronize with main VTV repository up to svn rev 207
* Fix compilation

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2911 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-24 01:53:06 +00:00
e9a69cac65 * Synchronize with main VTV repository up to svn rev 198
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2910 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-24 01:36:04 +00:00
12a4c4c07b * LibreOffice/ODS format: fix time-only calculations exceeding EncodeDate limits
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2909 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-23 13:06:19 +00:00
b70f1be9c3 + OpenDocument .ods: initial support for reading time only fields. To do: needs additional support for 1900/1904 date mode.
+ OpenDocument: naive speed improvement for reading repeated rows/columns.



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2908 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-23 11:36:36 +00:00
52b97c050d + Tests: add support for LibreOffice/OpenOffice .ods spreadsheets
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2907 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-23 11:34:37 +00:00
9f4da10a62 cleanup code from ifdef regarding very old Lazarus version
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2906 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-15 15:28:02 +00:00
b9af1a89c7 TRxDBLookupCombo - fix close list after double click on control button
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2905 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-13 20:38:03 +00:00
d4dd5203a8 RxDBGrid: fix work TRxCollumn.SortFields
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2904 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-13 19:54:30 +00:00
9ef50a2413 Always use PopupMode pmAuto
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2901 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-09 16:11:37 +00:00
191dad47a3 RxDBGrid - fix AV on lazarus with FPC 2.6.2
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2900 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-03-06 10:21:52 +00:00
99ecf565f6 AutoAdvance set by default
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2899 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-02-19 08:40:21 +00:00
4d82896a64 Prevent combo date mode when day is not shown
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2898 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-02-10 14:24:21 +00:00
2631521c02 RxMDI - fix AV on CloseAll
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2897 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-02-09 14:06:06 +00:00
3128e2a844 RxDBGrid - new property TRxCollumn.SortField - define custom sort field(s) for grid collumn
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2896 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-02-08 11:02:58 +00:00
82953d2169 КRxDBGrid - copy cell values for multiselect mode
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2895 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-02-04 16:58:30 +00:00
4b7b914d2a RxDBGrid.Columns[].EditButtons[].Style=ebsPlusRx - show UpDown buttorn for edit current numeric field
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2894 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-02-02 11:14:10 +00:00
acb193861d RxDBGrid - property OnEditingDone now is published
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2893 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-02-02 06:02:22 +00:00
d7ae172c98 RxDBGrid - try to fix work on MAC
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2892 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-25 16:15:23 +00:00
bfd340e043 RxVerInfo - fix compile on non Linux or Windows OS
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2891 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-25 14:56:15 +00:00
400bf62aba * OpenDocument/OpenOffice/LibreOffice date/time read fix; code adapted from curtisnewton, thanks a lot! Fixes mantis issue #25585
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2890 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-24 10:32:23 +00:00
7f1dc5a82e RxDateEdit - fix calendar popup windows position on multimonitor configuration
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2889 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-20 06:54:10 +00:00
1e13eb1c2d RxDBGrid - fix error display last data line with active Footer row
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2888 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-19 18:47:05 +00:00
6975302d15 RxDBGrid - add Collumn.Constraints
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2887 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-15 12:18:24 +00:00
b94045e9d1 RxDBGrid - russian translate
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2886 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-15 12:04:11 +00:00
3716b6a895 RxDBGrid - add new KeyStroke - Copy cell value. Default - Ctrl+C
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2885 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-15 11:35:25 +00:00
498fd01a38 RxMDI - fix change active window after hide active control
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2882 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-09 19:00:14 +00:00
48751408f2 RxLibFpc - small ToDo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2881 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-09 18:53:11 +00:00
c3161bff2b Explicitly specify test source file codepage as UTF8. Only works on FPC trunk. Tested on FPC trunk and FPC 2.6.2 x86, Windows.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2880 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-01-08 15:41:43 +00:00
de918f9d48 * Register components on different pages
* When a control on a view is unknown, show a UIxcodePlaceholder component
 * Redraw after changing the title of a UISegmentedControl
 * Removed commented code


git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2874 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-29 12:58:57 +00:00
f76acb185e * Correction for r2871: less ugly, more efficient code.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2873 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-28 16:01:15 +00:00
0368dda4a8 + Expanded fpsgrid example to be able to load/save first sheet of spreadsheet files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2872 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-28 15:29:22 +00:00
9351660d56 * Correct color output for background colors, see thread
http://forum.lazarus.freepascal.org/index.php/topic,19887.0.html
  and testmanual.xls from test suite.

  To do: needs verification on big-endian systems.
  To do: scWheat etc (the colors after grayx%) still don't work.



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2871 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-27 18:01:59 +00:00
86a42c6c02 * Tests: cosmetic/slight tightening file exist test
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2870 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-27 13:55:56 +00:00
449252cbe6 * tests: test WriteToFile AOverwriteExisting, hopefully catches error reported in
http://forum.lazarus.freepascal.org/index.php/topic,23051.msg137012.html#msg137012



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2869 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-27 09:32:10 +00:00
75b5c4188f * Test suite: fix r2863 invalid sheet name (at least when opening with Excel) for formatted text test.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2868 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-23 13:39:30 +00:00
018f05324b + Initial write date/time cell support for opendocument/OpenOffice/Libreoffice
To do: adjust test suite for .ods files



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2867 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-23 13:35:36 +00:00
93206c37ca * Cosmetic/comments
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2866 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-23 13:16:32 +00:00
6a4ff4c1c2 * Correction to r2863: use ISO 8601 format for WriteDateTime text output (currently every format except BIFF8 xls).
Ensures resulting files are interoperable regardless of OS locale settings, conforming to date/time cell support in BIFF8.



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2865 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-23 12:11:20 +00:00
f7dfeba208 * Excel8write.lpr demo compile fix for r2863 by wp
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2864 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-22 18:09:55 +00:00
7f7d07f151 + Add support for text/number/date formats in BIFF8/xls.
+ Add support for writing out date/time to non-BIFF8 xls (though as text only for now)
  Slightly modified patch by wp, thanks a lot. 
  See
  http://forum.lazarus.freepascal.org/index.php/topic,22940.msg136761.html#msg136761

Still to do: add test cases for invalid format strings



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2863 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-22 14:02:04 +00:00
b0c00c63e4 * Added UISegmentedControl
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2862 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-17 21:03:56 +00:00
f1c9fb3597 * TsWorksheet.ReadAsUTF8Text: readasdate also reads time values unless sure cell is date-only. Thanks wp for the suggestions!
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2861 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-10 12:23:02 +00:00
da12b16bb5 * tests: fix testsutility.pas file type.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2860 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-10 12:10:28 +00:00
a98a75327e Tests:
+ added test for GetSheetByName function
+ Added TSpreadInternalTests.ReadDateAsUTF8 to test wp's ReadAsUTF8 forum problem report with date/time cells
* Fixed displaying sheet+column where problems occur (CellNotation function)



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2859 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-10 12:06:12 +00:00
abd8d0bea8 + Add date/time/datetime read/write support for BIFF8 xls format. No plans for earlier formats though the code could be adapted
+ XLS BIFF8: added DATE and TIME worksheet functions to RPN formula
* Allow writing formulas,numbers etc using cardinals increasing row/column limits for formats that support it.
* Add checks for text cell size limits when writing xls, xml. If exceeded, cell text will be truncated (better than corrupting the xls file - e.g. try to open it with Excel 2002 - as happens now with xls format)
* Formats that use fpspreadsheet zip have extra checks to prevent crashes for invalid zip dates
+ Use FPC built-in zip format when using FPC 2.7.1+ as it has fixes/improvements (e.g. zip64 support)
+ Added FPCUnit test suite to test reading and reading writing files. For now uses BIFF8 xls; contributions for other formats and more tests welcome. See the tests subdirectory.
+ Add link to msodumper tool for reference/debugging/troubleshooting .xls output

Fixes Mantis bugtracker issue #25388



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2857 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-07 13:42:22 +00:00
08230c6ccb * Added component icons
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2856 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-04 20:40:42 +00:00
6aa1ad039d * Fixed sigint by closing/re-opening resource
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2855 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-12-01 16:37:25 +00:00
94144e9e61 Improving detection of default date display order.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2854 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-11-27 13:55:36 +00:00
625cb24459 Fix bugs and code refactoring
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2853 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-11-27 11:27:42 +00:00
e43cc06e92 Fixed: incorrect format display
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2852 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-11-27 10:33:53 +00:00