cb4466eef7
fpspreadsheet: Fix pasting from LibreOffice clipboard.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5066 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-08-02 13:58:08 +00:00
5bbdbed004
fpspreadsheet: Fix igoring wordwrap flags when painting wordwrapped frozen cells (see forum http://forum.lazarus.freepascal.org/index.php/topic,33453.msg216815/ ).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5025 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-23 09:31:57 +00:00
9c83324e90
fpspreadsheet: Fix db_import_export example being broken after virtualmode change.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4975 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-15 09:23:26 +00:00
c639d3f13d
fpspreadsheet: Modified virtual mode (VirtualColCount, VirtualRowCount and OnWriteCellData were moved from workbook to worksheet). NOTE: THIS BREAKS EXISTING CODE USING VIRTUAL MODE.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4968 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-14 19:43:15 +00:00
5782410686
fpspreadsheet: Add support for format xlsm
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4967 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-14 17:47:48 +00:00
d7477c8171
fpspreadsheet: Public methods AutoRowHeight and AutoColWidth of the WorksheetGrid. Show value of cell's WordWrap in SpreadsheetInspector.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4880 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-07-01 16:43:00 +00:00
de98ef21bf
fpspreadsheet: Fix worksheetgrid growing by 1 row/col if ShowHeaders is off (issue #0030269 )
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4757 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-15 12:28:19 +00:00
5b957218b4
fpspreadsheet: Fix worksheetgrid's colCount not being stored in lfm (related to issue #0030267 )
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4742 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-13 20:23:29 +00:00
a57c29c56a
fpspreadsheet: Fix csv writer ignoring blank cells ("WriteBlank")
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4678 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-06 14:27:52 +00:00
51630a3d94
fpspreadsheet: Fix valid sheetname test case.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4677 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-03 21:43:46 +00:00
28e2ae0453
fpspreadsheet: Fix csv writer to no longer skip non-existent cells.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4676 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-03 14:00:45 +00:00
cd66ccd8a9
fpspreadsheet: Fix rounding error when number format is applied (issue #0030223 )
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4675 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-06-02 17:18:20 +00:00
c1c54a5ee1
fpspreadsheet: Implement TsWorksheet.Clear (removes all content from sheet). Called by new TsWorksheetGrid.Clear.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4674 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-31 14:18:46 +00:00
0f9dd4e82b
fpspreadsheet: Fix crash if WorksheetGrid is used within a TFrame.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4668 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-27 15:17:37 +00:00
068aaab404
fpspreadsheet: Fix compilation error, issue 0030185.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4667 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-25 05:27:07 +00:00
8ed5356be2
fpspreadsheet: Move check for sheet name length to writer -> Sheet names can be any length now. But saving to Excel will abort if there are more than 31 characters.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4656 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-20 21:00:20 +00:00
56aee895f3
fpspreadsheet: Add hungarian translation (by Péter Gábor, issue 0030155).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4655 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-19 07:44:21 +00:00
2c01d20390
fpspreadsheet: Undo prev fix of compilation error because it is fixed in grids.pas now. Update title style of TsWorksheetGrid for Win10.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4653 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-17 11:47:17 +00:00
89caeb5de0
fpspreadsheet: Adapt prev commit to remain compilable for older Lazarus versions
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4652 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-17 07:16:04 +00:00
60506b0a71
fpspreadsheet: Fix compilation error after Lazarus r52316
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4651 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-05-17 06:56:36 +00:00
d25efe02f0
fpspreadsheet: Avoid destruction of cell in TsWorksheet.WriteText if text is empty (issue #0030049 ).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4627 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-23 13:01:15 +00:00
2a25a3e64c
fpspreadsheet: Fix range overflow if formula contains integers > 65535
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4619 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-13 10:03:47 +00:00
d24bf8307f
fpspreadsheet: Fix autorowheight calculation in grid hanging if row contains a zero-width column
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4616 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-11 09:56:53 +00:00
8025b4fd9e
fpspreadsheet: Less hints and warnings
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4615 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-11 09:45:27 +00:00
72d1f2798e
fpspreadsheet: Fix TsWorksheetGrid hanging in case of zero-width or zero-height cells
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4611 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-08 19:27:59 +00:00
34025326da
fpspreadsheet: Workaround for ods rows and columns erroneously added by Libre/OpenOffice when importing an xlsx file (see forum http://forum.lazarus.freepascal.org/index.php/topic,32193.0.html )
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4610 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-08 18:54:58 +00:00
233a4b43b4
fpspreadsheet: Remove/deprecate all color constants and color names exceot for the basic EGA colors.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4608 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-06 10:43:24 +00:00
7b9a56cd3e
fpspreadsheet: Add method AddColors and event OnGetColorName to TsCellCombobox. Remove ComboColors.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4607 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-06 08:37:34 +00:00
6f5068b304
fpspreadsheet: Avoid ods reader using localized color names.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4606 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-04-04 09:47:20 +00:00
fd972a63ea
fpspreadsheet: Add Finnish translation (by Seppo Suutarla).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4601 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-27 20:05:24 +00:00
ad77d88b77
fpspreadsheet: Add Russian translation (by forum user alexs75)
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4596 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-25 10:06:45 +00:00
313853b6e3
fpspreadsheet: Activate i16n for translation of strings. Add German translation. Some cleanup (hints & warnings).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4592 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-24 22:37:10 +00:00
9f50c31c97
fpspreadsheet: Fix compilation with Laz 1.4.4
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4583 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-22 18:11:03 +00:00
279a8cf1e7
fpspreadsheet: Fix usage of html entities in ExcelXML format.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4581 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-20 09:51:49 +00:00
e886dec4de
fpsprreadsheet: Fix usage of LineEndings in the html and wikitable writers.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4580 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-20 09:19:19 +00:00
5121c07d54
fpspreadsheet: Fix ods reader crashing if a formula contains an error cell reference like #REF!1 (initially A1, but column A was deleted).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4579 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 23:47:19 +00:00
b6a839a0f7
fpspreadsheet: Fix automatic row height calculation in WorksheetGrid for rotated text.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4578 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 22:57:46 +00:00
5b524a1262
fpspreadsheet: Fix ods writer crashing occasionally due to uninitialized local rowheight variaible.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4577 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 21:33:01 +00:00
a46928c3a3
fpspreadsheet: Fix writing default colwidth to xlsx (was applied only to first column so far).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4576 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 16:39:43 +00:00
840ff82715
fpspreadsheet: Fix biff default colwidth broken in prev commit.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4575 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 16:23:35 +00:00
ae7cebf901
fpspreadsheet: Avoid regression by new length units by accessing DefaultColWidth and DefaultRowHeights by means of setters/getters. Marked as deprecated though, "official" method is calling workbook's WriteDefaultColWidth/WriteDefaultRowHeight/ReadDefaultColWidth/ReadDefaultRowHeight which get the units as a parameter.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4574 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 15:18:49 +00:00
b3be7d1858
fpspreadsheet: Fix number format nfCurrencyRed for biff2. Fix Excel's format warning when opening the biff2 file written by excel2demo.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4573 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-19 11:59:38 +00:00
222427e8f6
fpspreadsheet: Optional calculation of image position based on pixels improves slight distortion of images written for xlsx.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4570 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-18 21:23:09 +00:00
9280718d44
fpspreadsheet: Fix xlsx image distortion introduced with new workbook units.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4569 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-18 20:27:17 +00:00
5b946b751f
fpspreadsheet: Add units (mm, cm, in, pts, lines/chars) for column width and row heights. Update all demos (some issues left).
...
NOTE: This revision breaks existing code if the worksheet's DefaultRowHeight/DefaultColWidth is changed - value must be in millimeters now. Methods for accessing individual row heiths and column widths are fine, but are marked as deprecated, they use the old units. Optionally a unit parameter can be specified.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4568 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-18 19:50:40 +00:00
08e1a619ca
fpspreadsheet: Improved detection of pixel resolution for variants of bmp file format.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4567 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-17 11:30:10 +00:00
a08f1c7224
fpspreadsheet: Add reading of ods header/footer images
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4562 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-16 21:58:46 +00:00
10c6042b7a
fpspreadsheet: Fix automatic column width in grid.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4561 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-16 17:27:51 +00:00
d942e09963
fpspreadsheet: Fix row height calculation
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4560 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-16 13:08:40 +00:00
66201c6caa
fpspreadsheet: Add reading of ods sheet images. Update TsSpreadsheetInspector.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4559 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-16 12:24:47 +00:00