Commit Graph

4555 Commits

Author SHA1 Message Date
98259f1cc5 netgradient: remove duplicate identifier
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4305 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-29 15:53:22 +00:00
168feae37d ColorPalette: Modify palette file reader to be case-insensitive.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4304 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-29 14:56:37 +00:00
2192c0ab35 Colorpalette: Add some ColorPalette properties to palette file; add TPaletteItems parameter to "LoadFromPalette".
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4303 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-29 14:26:07 +00:00
488f5fefb8 ColorPalette: Update offline chm version of wiki page
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4302 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-28 11:53:58 +00:00
5613459aeb ColorPalette: Fix size issue with aligned ColorPalette. Replace #13 by "LineEnding"
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4301 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-28 10:40:44 +00:00
b68bbe08ef fpspreadsheet: Add test case for reading biff 5/8 from stream
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4300 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-27 16:02:58 +00:00
05237dd7a2 fpspreadsheet: Fix writing of OLE structure ignored by sfExcel5 and sfExcel8 in "WriteToStream" (issue #0028573)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4299 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-27 10:30:38 +00:00
2941a83e64 ColorPalette: turn off ShowColorHint in ToolbarDemo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4298 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-26 20:54:44 +00:00
1c21a6547f ColorPalette: Fix ToolbarDemo to show flipped colorpalette fully. Fix missing MouseLeave notification.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4297 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-26 20:31:52 +00:00
0e8bee25b6 ColorPalette: Remove properties related to "Selected" color, replace by "Picked" color etc. Reason: Color selection event handler must pass Shift state to calling routine for further evaluation --> Reactivate old OnColorPick (instead of OnSelectColor). Remove property PickShift.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4296 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-26 14:29:55 +00:00
754d1f376e ColorPalette: Fix fpc3.1.1/x64 compilation error (issue #28568). Avoid duplicate colors in built-in gradient palette. Modifications in Toolbar demo (not complete yet). Rename property "Vertical" to "Flipped".
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4295 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-26 09:15:35 +00:00
7bc0d5fe4f ColorPalette: Add new property Vertical (Note: In vertical orientation, "ColumnCount" defines the number of ROWS !!!). New demo ToolbarDemo showing application of ColorPalette in toolbar. Old demo moved to folder demo/GeneralDemo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4294 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-25 17:13:02 +00:00
fc29a13688 ColorPalette: Replace ShowSelection by SelectionKind. Add property SelectionColor.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4293 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-25 12:12:26 +00:00
68424fab94 ColorPalette: Fix 1-pixel error when drawing the selection rect.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4292 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-24 22:34:36 +00:00
365546a580 ColorPalette: Update off-line version of wiki
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4291 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-24 20:45:24 +00:00
0f6162b2a8 ColorPalette: Fix demo (Colornames in LblMouseColorInfo not changing).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4290 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-24 20:08:06 +00:00
ec4cc3f4b3 ColorPalette: Fix painting of background color.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4289 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-24 17:29:23 +00:00
0239cb3c67 ColorPalette: Add MouseIndex and MouseColor. Restructure painting and layout calculation. Rename BorderWidth to ButtonDistance, BorderColor to ButtonBorderColor.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4288 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-24 16:56:28 +00:00
ce951f772f ColorPalette: Support named colors. New property "UseSpacers" (false: clNone is a "no-fill" color). Replace hkWebsafePalette2 by pkHTMLPalette.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4287 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-23 20:46:00 +00:00
bb268bb712 Colorpalette: Add event OnGetHintText to provide a custom color hint text.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4286 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-23 13:36:05 +00:00
324471915a ColorPalette: Add off-line version of wiki page as chm file. Default value of Pickmode is pmImmediate now.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4285 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-23 13:18:30 +00:00
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
0d7318fc29 test : do not save generated files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4269 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-13 15:15:33 +00:00
9a060b2d23 Fix Binary Format optional object read failing.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4268 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-08-13 15:14:26 +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