Commit Graph

243 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
fa0c58f9da richmemo: win32 surpress undesired on selection change notifications, correct line spacing adjustments
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3813 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-30 08:32:37 +00:00
3764b37587 richmemo: added constant for linespacing. corrected loading/saving of linespacing information
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3812 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-30 08:14:17 +00:00
2e8c900170 richmemo: refactoring in RTF loading
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3811 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-28 22:09:46 +00:00
9d9a2c6066 richmemo: custom rtf load test
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3810 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-28 22:07:02 +00:00
68f8a5e06c richmemo: use RTFSaveStream, if provided
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3809 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-28 21:24:46 +00:00
5f2a5fd8f8 richmemo: background color
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3808 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-28 21:18:38 +00:00
88e2799ba5 richmemo: allow selectchange event win32
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3807 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-28 20:33:46 +00:00
385b0e79ab richmemo: added design-time Rtf property and a property editor for it
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3806 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-28 15:06:44 +00:00
3ba964d1e6 richmemo: selection change win32 implementation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3803 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-28 06:12:16 +00:00
cce0084857 richmemo: added OnSelectionChange event
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3802 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-28 06:11:15 +00:00
fc26c9c573 richmemo: update RTF saving - specify range to extract as rtf
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3801 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-28 04:51:32 +00:00
179c8192f6 richmemo: gtk2 modify selection change. updated getRangeStyle to fail, if textStart is out of text
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3800 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-28 04:49:27 +00:00
154442eeab richmemo: saving rtf paragraph metric
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3797 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-27 06:36:54 +00:00
f9e3db6342 richmemo: gtk2 update getting paragraph metric
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3796 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-27 06:36:15 +00:00
0acaefb4b5 richmemo: update the package compilation, gtk2 register saving method
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3795 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-27 06:16:24 +00:00
6374f6a014 richmemo: layout anchros for paragraph test
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3794 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-27 06:14:54 +00:00
6c9f217f74 richmemo: gtk2 correct returning metric parameter of the paragraph. Result functions for getpararange
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3793 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-27 06:12:18 +00:00
ba9e51eaa5 richmemo: remove an empty SetHideSelection override
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3792 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-27 06:11:23 +00:00
bcd9116085 richmemo: implemented gtk2 getting para-range and style-range
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3791 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-27 05:05:33 +00:00
74caad60e4 richmemo: started writing of RTF in widgetset independent manner
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3789 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2014-11-26 22:14:54 +00:00