Commit Graph

163 Commits

Author SHA1 Message Date
skalogryz
d0aed3c85f richmemo: win32 cleanup
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4069 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-27 13:52:25 +00:00
skalogryz
214b9bdbda richmemo: added support for subscript and superscript. win32 implementation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4068 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-27 13:52:05 +00:00
skalogryz
8f4b0570a8 richmemo: win32 verify the update state of Lines before changing WM_SETREDRAW flag
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4065 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-25 04:19:12 +00:00
skalogryz
671e0af7b1 richmemo: fix delphi SelAttributes.Styles unset behaviour
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4064 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-24 12:41:02 +00:00
skalogryz
352531c61f richmemo: print event processing
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4063 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-22 21:00:03 +00:00
skalogryz
cb78def1e9 richmemo: remove explicit use of "richmemopackage" from sample projects
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4061 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-21 03:44:34 +00:00
skalogryz
5384089c5f richmemo: print sample
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4060 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-21 03:41:39 +00:00
skalogryz
72db518cb9 richmemo: modified print from pageRect to margins (double) for paragraph's consistency.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4059 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-21 03:41:19 +00:00
skalogryz
623a2c3fbf richmemo: Print() method introduced and implemented for Win32.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4056 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-20 18:58:11 +00:00
skalogryz
4093d31ddb richmemo: cocoa implemented zoomfactor(), had to introduce TCocoaRichView to store the previous scaling factor
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4053 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-19 04:25:52 +00:00
skalogryz
7b24fd2711 richmemo: cocoa, implement get/set text attirbute, paragraph metrics. updated tab stops set/get methods
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4052 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-19 03:46:54 +00:00
skalogryz
b4799b072a richmemo: update helper to adjust tabs for all selected paragraphs, rather than under cursor position
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4049 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-18 15:53:20 +00:00
skalogryz
885b7ba7a6 richmemo: delphi compatible helper is extended with Tab Stops implementation. Modified paragraph to be in points and not in pixels to match Delphi implementation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4048 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-18 15:28:53 +00:00
skalogryz
50f3ed0d1b richmemo: gtk2 correct wordwrap setting
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4047 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-18 02:10:28 +00:00
skalogryz
e36746f27d richmemo: gtk2 fix scrollbars property to match TMemo rules. implemented tab stops
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4044 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-17 03:43:59 +00:00
skalogryz
3f4026e7c4 richmemo: added tab offset mask (to prevent collision with tab underline information)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4043 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-17 02:28:31 +00:00
skalogryz
3fec33252d richmemo: adjusted renamed tab align properties
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4042 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-17 02:21:39 +00:00
skalogryz
f892042ca9 richmemo: renamed tab stop alignment to left and right, implemented for cocoa
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4041 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-17 01:52:51 +00:00
skalogryz
3f1fc5e502 richmemo: * added tabstops support for the RichMemo and Win32Implementation
* added initialization to factory unit to prevent a warning on package compilation 
* clean up uses for richedit helpers
* code cleanup (removing empty lines)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4040 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-16 17:41:08 +00:00
skalogryz
032850517e richmemo: fix style check for boldness of the default font
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4025 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-14 00:24:13 +00:00
skalogryz
0f0f3e8651 richmemo: the package unit shouldn't be attached to the project
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4023 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-13 20:12:25 +00:00
skalogryz
26fef957ec richmemo: simplify flag checks for byte type. corrected gtk2 style read for default font
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4017 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-12 04:08:37 +00:00
skalogryz
47109b3dd8 richmemo: fix color assignment when generating TFontParams from TFont. Introduced RMGetFontData to cover the issue with LCL GetFontData. todo: patch LCL Graphics.GetFontData
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4016 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-12 03:46:49 +00:00
skalogryz
6f05506393 richmemo: gtk2 fix gettextattribute function, implement WSGetFontParams
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4011 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-09 03:11:02 +00:00
skalogryz
896ff5fe08 richmemo: added wsgetfontparams to handle missing informations
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4010 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-09 03:10:06 +00:00
skalogryz
6d2e993c22 richmemo:
* introduced GetFontParams(TFont) to convert TFont to TFontParams (resolving font data). Using GetFontData(AFont.Reference.Handle) to resolve the passed font information (to handle uninitialized fonts). TFont.Handle is deprecated.
* corrected the TFontParams parameter passing in InsertFontText function

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4001 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-06 16:41:17 +00:00
skalogryz
fdd08738ef richmemo: initialize font params structure SetTextAttributes method with TFont
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3999 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-03-06 14:04:42 +00:00
skalogryz
097469f097 richmemo: gtk2 inline objects initial support. The inline samples works, but leaves a lot of resource leaks
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3920 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-02-02 03:14:10 +00:00
skalogryz
7d5620b2da richmemo: gtk2 removing timer dependent code for getting selection length
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3916 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-01-30 23:55:14 +00:00
skalogryz
7b848b49d8 richmemo: gtk2 replacing memostrings with richmemostrings (not using timer). uninstalling selection-change handler on destruction of the widget to prevent crashes
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3910 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-01-30 00:51:43 +00:00
skalogryz
48db5117f5 richmemo: win32 prevent selection change on inline insert
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3901 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2015-01-25 19:28:08 +00:00
skalogryz
cd6fad17f3 richmemo: gtk2 numbering - erasing with backspace
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3853 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-25 18:56:43 +00:00
skalogryz
c6d23a2712 richmemo: gtk initial numbering implementation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3852 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-24 04:11:38 +00:00
skalogryz
77610e63ca richmemo: remove numbering buttons - they are to be added as a separate demo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3851 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-23 14:14:10 +00:00
skalogryz
c147bf9ceb richmemo: win32 corrected insertion of inline object - use specified start character and characters length
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3850 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-23 13:17:28 +00:00
skalogryz
01753e2ba7 richmemo: cleanup inline example. left the reference to the origin of the cheetah logo image
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3849 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-23 13:16:25 +00:00
skalogryz
5c830bda81 richmemo: added inline objects demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3848 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-23 06:15:41 +00:00
skalogryz
9b07721e51 richmemo: implementation of win32 inline objects
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3847 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-20 16:45:53 +00:00
skalogryz
7c11c226d3 richmemo: inline objects to the interface
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3846 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-20 16:44:08 +00:00
skalogryz
4cae993724 richmemo: improve win32 numbering
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3842 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-17 03:32:59 +00:00
skalogryz
e46d06509e richmemo: load rtf (tobe improved), paragraph set alignment for cocoa
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3837 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-12 06:05:10 +00:00
skalogryz
ff15ba407a richmemo: refactored numbering API
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3832 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-10 12:06:44 +00:00
skalogryz
105be398c2 richmemo: gtk2 zoomfactor
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3830 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-07 05:32:21 +00:00
skalogryz
739e0a8f41 richmemo: adding zoom sample
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3828 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-06 20:49:22 +00:00
skalogryz
9b8a8037c7 richmemo: introducing zoomfactor property with win32 implementation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3827 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-06 20:49:00 +00:00
skalogryz
08713071ff richmemo: gtk2 use custommemo default signal handlers, added a handle for selection change notification
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3820 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-02 03:49:12 +00:00
skalogryz
681614d3c4 richmemo: improve line height support for gtk2
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3819 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-02 03:14:38 +00:00
skalogryz
f75c4cc370 richmemo: mitigrate range operations
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3818 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-02 03:14:02 +00:00
skalogryz
4f37004628 richmemo: sample of the different line height
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3816 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-01 11:46:47 +00:00
skalogryz
3bf63e4d38 richmemo: optimize rtf reading for paragraph alignment, text buffer, skipping rtf destinations
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3815 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-12-01 11:08:59 +00:00