Commit Graph

66 Commits

Author SHA1 Message Date
Joshy
fa1a92f38d Fixes bug 0016003 using patch from Lagunov Aleksey. Zero length read stream reads ALL the stream instead nothing.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1181 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-03-15 19:05:59 +00:00
Joshy
73c6419656 Fixed read beyond Worksheet count, resolves Mantis #15546
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1127 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-01-19 16:53:49 +00:00
Joshy
c429d42414 Opendocument XML.Widestring->UTF8String conversion. Bug: 2897793 by Luiz Camara.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1013 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-11-16 12:46:31 +00:00
Joshy
758a46563d Fixes 2897681 and 2897708 reported by Luiz Camara.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1007 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-11-14 18:48:17 +00:00
Joshy
cafe31ad59 Fixed bug 2897449 by Luiz Camara
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1006 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-11-14 18:46:10 +00:00
Joshy
707600eeba Adopted new WriteToFile parameters and better handling of open OLE streams.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1003 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-11-12 20:28:21 +00:00
Joshy
8c0fa3a08d Fixed bugs 2896335 and 2896338 in sf tracker.
Fixed loading of OpenDocument float values (locale independent)
Fixed loading of OpenDocument with infinite "1.#INF" value in a cell.
Decompression of "contents.xml" now tales place in local temporal user folder.


git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1002 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-11-12 20:26:02 +00:00
sekelsenmat
519e75d5a6 fpspreadsheet: Implements support to setting if existing files should be overwritten or not
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@993 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-11-08 19:21:23 +00:00
sekelsenmat
2d2920da93 fpspreadsheet: Adds initial implementation of a visual component and reads cell iteration methods to TsWorksheet
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@972 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-10-06 19:25:18 +00:00
Joshy
a2b1693f96 Fixed read bug in Excel files with a ministream bigger than 1024 (1024 is a casual number, any other could raise the bug).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@955 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-05 17:14:45 +00:00
Joshy
efbc5a8d2c Read excel formula and stores the precalculated value as a cell fixed value. Only numeric values, strings are not supported my fpspreadsheet at least by now.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@954 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-04 22:18:43 +00:00
Joshy
75dd051f39 Fixed memory leak in WriteWorksheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@953 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-03 12:04:04 +00:00
Joshy
c9cad114e8 Applied patch from Torsten Bonde Christiansen ( http://bugs.freepascal.org/view.php?id=14480 ) with some minor changes. Big speedup reading spreadsheets.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@952 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-02 22:03:01 +00:00
Joshy
312e8f16fc Removed LCL dependency in lpk file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@951 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-02 18:24:32 +00:00
Joshy
7f32d73b05 Fixed reading in non US locales (decimal separator = '.') of floating point data in Open Document.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@949 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-02 01:22:46 +00:00
Joshy
9c7a5199c7 Fixes reading of ZIPs with "wrong" local header information (size, crc, ...), as unzip.exe use the data from Central header instead.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@948 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-02 01:19:46 +00:00
Joshy
d7c494635e Removed all LCL dependencies.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@947 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-01 23:41:05 +00:00
Joshy
41aab444e0 Fixed memory leak in ReadOLEFile.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@946 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-01 23:04:57 +00:00
Joshy
a9e4cc5457 XLS BIFF8 (Excel 97-2004) can read SSTLabels, Rich strings and RKValues (even in range). Fixes issue 0014085 in bug tracker.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@945 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-01 23:00:13 +00:00
sekelsenmat
cc11ea4ee1 fpspreadsheet: Small improvements
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@943 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-09-01 16:47:45 +00:00
Joshy
ca0c39185f Fixed: http://bugs.freepascal.org/view.php?id=14456 (using PtrInt instead Integer)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@942 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-08-30 14:20:55 +00:00
sekelsenmat
72d201621f fpspreadsheet: small improvements
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@932 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-08-12 13:08:44 +00:00
sekelsenmat
77877e6009 fpspreadsheet: Fixes compilation with trunk fpc
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@931 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-08-12 12:55:05 +00:00
sekelsenmat
e25295e088 fpspreadsheet: Fixes encoding conversions for Excel 2 and 5 formats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@930 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-08-12 12:46:33 +00:00
sekelsenmat
e7fede2029 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@928 8e941d3f-bd1b-0410-a28a-d453659cc2b4 2009-08-11 15:28:08 +00:00
sekelsenmat
67aac8aa37 fpspreadsheet: Adds excel 8 example
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@927 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-08-07 14:16:17 +00:00
vsnijders
416b85851f fpspreadsheet: opendocument format, write numbers without localized decimal separator, fixes https://sourceforge.net/tracker/?func=detail&aid=2813780&group_id=92177&atid=599764
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@889 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-07-01 14:01:44 +00:00
sekelsenmat
b9af2f71bb fpspreadsheet: Adds OpenDocument read support from José Luis Jurado Rincón
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@888 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-07-01 11:26:56 +00:00
sekelsenmat
f3259be492 fpspreadsheet: improves Excel 5 RPN formulas, add ABS and ROUND functions
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@833 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-09 21:34:58 +00:00
sekelsenmat
bb04dbc318 fpspreadsheet: starts implementing formulas. RPN version working for Excel 5
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@832 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-09 11:19:10 +00:00
Joshy
287270c308 Fixed floating point calculation for RKValue.
Fixed write label > 255 chars (not possible, truncate string).

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@828 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-06 15:04:42 +00:00
Joshy
7baab9820c Added RSTRING, RK Value and MULRK excel tags.
Started integration of BIFF classes using a common ancestor.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@819 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-02 18:30:22 +00:00
sekelsenmat
894dbe3c90 Fix Mac OS X compilation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@811 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-05-26 18:35:18 +00:00
sekelsenmat
90d327e0ee Patch from Joshy, small fix for OLE
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@810 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-05-26 18:32:09 +00:00
jesusr
e14f7af87a fpspreadsheet, fixed compilation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@798 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-05-13 02:54:26 +00:00
Joshy
0cae800f3e xlsbiff8 reader declared. It works.
xlsbiff5 and xlsbiff8 must be descendants of a general biff class as many unsupported tags are common for both formats, some of them even common with biff2.
Added a list of unsupported tags to xlsbiff5 (IFDEFed) to easilly catch tags that must be supported like RK and MULRK which prevent it for load completly many xls files. xlsbiff8 must support them also.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@795 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-05-10 17:59:25 +00:00
Joshy
d3d71c2560 Included xlsbiff8 in the fpallformats.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@794 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-05-10 17:55:28 +00:00
Joshy
21528cb453 Fixed a read bug (Stream was always created even when it has been created yet).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@793 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-05-10 17:54:26 +00:00
Joshy
181a1e0a98 New implementation to read and write OLE documents (Excel BIFF 5 & 8).
Now BIFF 5 & 8 should be possible to be generated in non Windows environment but this fact has not been tested.
To use the older mode replace uses "fpolebasic" by "fpolestorage".
Extensive tests are needed.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@792 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-05-09 15:41:38 +00:00
Joshy
badefdd310 Fixes memory leak when releasing cell's memory.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@783 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-04-23 12:23:09 +00:00
sekelsenmat
119b9f0bd4 Patch from Joshy, implements initial biff 8 support
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@782 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-04-21 15:08:43 +00:00
sekelsenmat
0ef4baae5a Small fix for bug in excel string write
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@779 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-04-18 12:31:46 +00:00
sekelsenmat
0ccb66c492 Patch from JoshyFun to fix OOXML files
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@778 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-04-18 01:31:09 +00:00
sekelsenmat
19c8c3211d Improves fpspreadsheet help
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@699 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-05 11:16:19 +00:00
sekelsenmat
621bbc2b26 Improves fpspreadsheet help
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@698 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-05 11:14:00 +00:00
sekelsenmat
c064101224 Adds epiktimer
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@697 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-05 10:21:42 +00:00
sekelsenmat
1b1a30f00c fpspreadsheet: Improves OpenDocument support
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@695 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-03 09:41:17 +00:00
sekelsenmat
933d8a5b44 fpspreadsheet: Improves OpenDocument support
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@692 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-02 09:58:51 +00:00
sekelsenmat
53ac16be22 Small fixes to fpspreadsheet and pascocoa
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@690 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-01-30 18:21:18 +00:00
sekelsenmat
7e67d5e83e fpspreadsheet: Improves OpenDocument support and moved back to 0-based grid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@688 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-01-29 13:24:37 +00:00