Commit Graph

3107 Commits

Author SHA1 Message Date
4474770b78 ColorPalette: Add built-in palettes (property "PaletteKind", and "GradientSteps" for GradientPalette)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4284 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-22 19:20:50 +00:00
3980f70b8b ColorPalette: New properties BorderColor and BorderWidth.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4283 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-21 22:32:56 +00:00
895bad7c04 ColorPalette: Support for popup hints.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4282 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-21 15:27:19 +00:00
7d6e60fc65 ColorPalette: New property SelectedIndex.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4281 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-21 14:46:15 +00:00
bec8c5ac86 ColorPalette: Some cosmetic changes. Add new event OnSelectColor (which fires if ShiftState matches, in contrast to OnColorPick which fires always now).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4280 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-21 12:38:46 +00:00
7f5584ad24 ColorPalette: Add new properties "PickMode" and "PickShift" to select when and by which mouse button the color is selected. Some reorganisation of code. Update demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4279 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-20 21:02:08 +00:00
77c582dda8 ColorPalette: Improved demo by forum user "polpero"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4278 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-20 18:59:01 +00:00
bae47dcb21 fpspreadsheet: Avoid logging workbook error when reading Excel8 files containing comboboxes. Fix is not 100% safe, should not crash, though. Let's see...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4277 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-20 16:03:13 +00:00
7fd6590a6b fpspreadsheet: Prevent biff8 reader crashing for a special file containing comboboxes (see forum http://forum.lazarus.freepascal.org/index.php/topic,29409.0.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4276 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-20 13:00:38 +00:00
4ffb9185c2 TColorPalette: Add method "SavePalette" and property "ColumnCount"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4275 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-19 15:08:19 +00:00
94124c6bb7 TColorPalette: New methods AddColor and DeleteColor. Add demo project. (see discussion in http://forum.lazarus.freepascal.org/index.php/topic,29400.msg185669.htm)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4274 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-19 14:23:23 +00:00
2a0d2f2e0c fpspreadsheet: Fix crash of worksheetGrid if methods using external workbooksource are accessed and only internal source is active.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4273 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-15 15:34:24 +00:00
adbc5c7c21 fpspreadsheet: Fix TsWorksheetGrid to be correctly notified of worksheet changes if not connected to a WorkbookSource (suggested by rvk, http://forum.lazarus.freepascal.org/index.php/topic,29214.msg184168.html#msg184168). Fix related demos.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4272 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-15 14:24:31 +00:00
f4cb9c14a7 fpspreadsheet: Use HTML conversion to enter rich-text in the visual TsCellEdit control
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4271 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-14 12:44:22 +00:00
55c0c6c4c4 fpspreadsheet: Add simple converter from plain text+rich formatting to html-coded text.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4270 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-13 21:38:02 +00:00
4f741ca06d fpspreadsheet: Add new worksheet method "WriteTextAsHTML" which can contain embedded html codes translated to "rich-text" sections. The method for normal text, "WriteUTF8Text", has been renamed to "WriteText"; the old one is deprecated. Same with "ReadAsUTF8Text" (which is now "ReadText").
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4267 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-12 20:07:24 +00:00
f8202560a5 fpspreadsheet: Remove support for text rotation from html reader/writer (too difficult...). Introduce some line breaks in written hmtl file to avoid ending with a too-long html line.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4266 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-12 17:31:05 +00:00
d457ed7dd3 fpspreadsheet: HTML reader supports cell border. Fix merged cells for html reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4265 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-11 18:49:05 +00:00
a18212c351 Create more meaningful HTML links from help.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4264 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-11 16:43:09 +00:00
e0fdad55fd fpspreadsheet: Fixes font stack used by html reader; now takes into account fonts declared in the <BODY> and <TABLE> tags. Define constant FPS_LINE_ENDING for multiline cell text.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4263 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-10 20:54:37 +00:00
89b1fad36e fpspreadsheet: Improved rendering of white space by the html reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4262 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-10 20:19:51 +00:00
caacb195e4 spreadsheet: Fix painting issues for rich-text imported by HTMLReader, not fully solved yet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4261 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-09 22:42:20 +00:00
baeaf9a230 fpspreadsheet: HTMReader has now a stack for font indexes. Support for <A>, <P>, <H1>, <H2>,... tags. Rearrange code for faster tag detection.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4260 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-09 16:34:48 +00:00
6f1b452469 fpspreadsheet: HTML reader supports <font> and <span> tags
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4259 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-09 10:11:04 +00:00
b16695f420 fpspreadsheet: HTML reader respects embedded <B>, <I> etc tags.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4258 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-08 20:56:28 +00:00
62355e2d51 fpspreadsheet: Re-do rich-text format (easier, less code). Fix rich-text issues with utf8 characters.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4257 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-08 16:23:49 +00:00
3e2a6b4bc6 fpspreadsheet: HTML reader respects character encoding of file
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4256 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-06 10:19:57 +00:00
8432eece02 fpspreadsheet: HTML reader reckignozes font specified in "styles" attribute of "table" element as default font of worksheet.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4255 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-05 19:32:27 +00:00
8ad3ef69c7 fpspreadsheet: Initial implementation of html font reader (so far, uses only "style" attribute of "td" node)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4254 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-05 18:51:32 +00:00
2241febbd4 fpspreadsheet: HTML reader understands horizontal and vertical cell alignment
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4253 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-05 11:14:58 +00:00
525c51cd9e fpspreadsheet: HTMLReader detects background color (from "bgcolor" or "style:background-color" tags of "td" node).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4252 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-05 10:29:02 +00:00
1e084c308c RxFPC:fix mem leak in RxColumnFooterItem.Destroy. thx java73 from freepascal.ru
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4251 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-05 08:21:15 +00:00
ad6ce37f87 fpspreadsheet: Fix crash when reading xlsx with unexpected formatting of column width node. Add "inlineStr" data type to xlsx reader.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4250 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-04 19:27:29 +00:00
63f7b01a76 fpspreadsheet: Fix writing of rich-text info for biff5 and biff8 in some special cases.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4249 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-04 18:08:10 +00:00
68d15c38a9 fpspreadsheet: Reading/writing of error values for xlsx and ods (initial implementation was incomplete).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4248 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-04 17:01:40 +00:00
71fa9ae693 fpspreadsheet: Add redundant information on selected worksheet to xls files (like Excel does). Add code to read/write selected cell in xls, xlsx and ods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4243 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-04 09:42:39 +00:00
31090f663a fpspreadsheet: Fix incorrect "Continue" in TsSpreadOOXMLReader.ReadFrom(Stream|File)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4242 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-03 21:12:11 +00:00
bfd19235c6 fpspreadsheet: Add stream version of TsWorkbook.GetFormatFromFileHeader (patch by Craig Peterson, issue #28465)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4241 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-03 19:34:46 +00:00
6a6f290fda fpspreadsheet: Read/write name of active worksheet (biff5, biff8, xlsx, ods, visual controls)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4240 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-03 19:04:40 +00:00
acaacf81d4 fpspreadsheet: New demo htmlread_http (reading html table from the internet). HTML reader now detects hyperlinks (only one per cell, though - like in xls).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4239 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-03 15:21:33 +00:00
126fe87ad1 fpspreadsheet: Fix xlsx writing column widths
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4238 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-03 14:18:23 +00:00
c5677621dc fpspreadsheet: Evaluate the colspan and rowspan attributes to merge cells when reading html files
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4237 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-02 11:16:31 +00:00
7c8e0a8b3d fpspreadsheet: Initial support for reading html files (data only, no formats, no nested tables).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4236 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-01 22:11:44 +00:00
fb75c2bef1 fpspreadsheet: Fix compilation issue with -MDelphi
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4235 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-31 20:23:31 +00:00
9f775a09d6 fpspreadsheet: Fix worksheetGrid to expand itself if new cells are created beyout the current grid extent.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4234 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-31 16:23:59 +00:00
9c0df635f8 fpspreadsheet: Support reading and writing of all additional linetypes of biff8 and ooxml.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4229 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-30 19:08:39 +00:00
b6a8d809bb fpspreadsheet: Support for all line styles of biff8 and ooxml.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4228 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-30 17:15:48 +00:00
85351db23a fpspreadsheet: Improved replacement of unsupported xlsx border line styles.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4227 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-30 16:33:25 +00:00
954be7d438 fpspreadsheet: Fix writing rich-text to xlsx (Error when Excel opens this file). Fix writing multiline cell texts containing a CR as line ending which is not accepted by xls.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4226 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-30 16:28:30 +00:00
56a82b945b fpspreadsheet: Fix worsheetgrid respecting font color defined by number format code
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4225 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-07-30 13:10:03 +00:00