Julian Smart
e4db8a879f
Simplify SetSelectionRange and make consistent with SetSelection.
...
Fix a bug that returns true for character and paragraph style tests if no characters or paragraphs were found.
Fix SetSelection to position caret at end.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@63345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-01 12:07:28 +00:00
Julian Smart
8cc53ff56b
Applied #11238 : Wrong text positioning if fonts with different Ascent/Descent ratio are on the same line
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 11:14:24 +00:00
Julian Smart
a3e04e576b
Compile fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-23 07:45:14 +00:00
Julian Smart
279df2ce99
Fix for wrong line placement when centering or right-aligning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-23 07:38:57 +00:00
Julian Smart
2614c696fe
Made standard bullet names translatable
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-24 10:28:04 +00:00
Julian Smart
e8e94d3c99
Patch from Bruno Daniel to fix tab position inconsistency
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-20 23:26:05 +00:00
Julian Smart
0c3f08c51d
Removed redundant/harmful no anti-aliasing on Mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@60280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-22 07:58:35 +00:00
Julian Smart
b759e7d3d0
Fixed [wxRichTextCtrl] Right Alignment sets text in the RTC too close to the border ( #10277 )
...
Also [wxRichTextCtrl] Wrong text positioning if different font sizes in the same paragraph (#10279 )
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-10 14:55:07 +00:00
Julian Smart
2f4390c06b
Centre/right justification fix when there is a right indent
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-28 16:05:11 +00:00
Julian Smart
4b08e76925
Fixed centering and right-justification when combined with left indentation (bug #10221 ).
...
Fixed wrapping problem for long lines (bug #10149 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-28 15:52:52 +00:00
Vadim Zeitlin
f837582af4
fix a couple of harmless warnings reported by g++ 4.3
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 14:39:11 +00:00
Julian Smart
f493fe3249
Improved auto list numbering
...
Fixed selection bugs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-22 15:21:13 +00:00
Julian Smart
f8ae0bd260
Shift+Return now puts the cursor on the next line
...
Fixed GetContiguousPlainText bug that caused wrapping problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 12:11:36 +00:00
Julian Smart
c5c857c9a2
Out by one correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-04 06:14:40 +00:00
Julian Smart
dc99dea363
Fixed a bug preventing style resetting from occurring
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-18 17:04:26 +00:00
Julian Smart
60efb3422f
Fixed common style collection and superscript/subscript selection
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-17 17:54:51 +00:00
Julian Smart
ca8eed8584
Apply previous paragraph style if pasting plain text, but not if pasting rich text.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-09 08:46:55 +00:00
Julian Smart
a6fb54ec71
Added a wxRichTextCtrl-specific caret implementation in case of need
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-29 09:10:05 +00:00
Julian Smart
00217f95a4
Bug fix for empty objects
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-27 17:17:08 +00:00
Julian Smart
ff004763b2
Further wxRichTextCtrl performance improvements
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-27 13:26:57 +00:00
Julian Smart
567197af17
Made performance acceptable for editing large paragraphs on low-powered machines
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-24 14:39:54 +00:00
Julian Smart
3bc1747441
Further optimizations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-24 11:44:13 +00:00
Julian Smart
126bfec4f8
Further performance optimizations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-23 15:01:54 +00:00
Julian Smart
555accf41f
Two bug fixes for FindWrapPosition
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-22 07:57:16 +00:00
Julian Smart
33f0828996
Speeded up wrapping (again), this time using partial text extents.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-21 15:25:59 +00:00
Julian Smart
4e42bc75f6
Fix for slow first character insertion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-20 19:06:39 +00:00
Julian Smart
b99e1e15be
Added wxRichTextCtrl superscript and subscript support (Knut Petter Lehre).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-10 14:05:25 +00:00
Julian Smart
08013d598e
Avoid the use font setters to avoid any memory leaks
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-07 12:25:08 +00:00
Julian Smart
4d46b12984
Don't take the previous paragraph style when deleting paragraph marker
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 17:59:20 +00:00
Julian Smart
b9203caf27
Fixed bug [ 1870906 ] There are few problems selection text by mouse in RichTextCt
...
Fixed bug [ 1870265 ] window does not scroll after pasting text
Fixed bug [ 1870264 ] wxTextUrlEvent after click in empty space
Fixed bug [ 1806479 ] wxRichText URL issues (URL event triggered when clicking on blank space)
Fixed bug [ 1806953 ] wxRichTextControl::AddParagraph() is broken
Fixed a bug in SelectWord causing bad selections.
Added Ctrl+Backspace word deletion.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 12:53:39 +00:00
Julian Smart
0f7e255a73
Fix caret position when deleting last character
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-21 16:57:47 +00:00
Julian Smart
bff43ea980
Don't treat character attributes as non-paragraph attributes if using a named paragraph style
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-21 16:23:22 +00:00
Julian Smart
109b4aa352
Fixed two out by one errors
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-20 20:32:13 +00:00
Julian Smart
b007ad818b
Avoid paragraphs with no children
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-16 13:35:42 +00:00
Julian Smart
b402ac436c
Fixed undo batching
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-13 16:27:49 +00:00
Julian Smart
35e93e199f
Further fixes, for selected text display and new paragraph insertion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-13 14:24:37 +00:00
Julian Smart
af5f42f506
Fixed several style, paste and undo bugs
...
Added a reload function to the sample for quickly restoring original text
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-12 17:05:32 +00:00
Julian Smart
8b2a6dfc24
Added a reset-buffer event to give an opportunity to set the default initial style
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-01 14:13:51 +00:00
Julian Smart
fbd42050d5
Take basic style into account when applying style sheet
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 17:58:43 +00:00
Julian Smart
7885636055
Style removal fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 22:23:08 +00:00
Julian Smart
d06f01b7a2
Optimization correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 17:28:41 +00:00
Julian Smart
cb6aa66cae
Fixed pasting inefficiency
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-30 14:22:24 +00:00
Julian Smart
7a6db76600
Big wxRichTextCtrl performance increase due to faster wrapping code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-06 12:25:59 +00:00
Julian Smart
a47427fa62
Fixed bug in optimization for character input, affecting first paragraph in the buffer.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 16:13:33 +00:00
Julian Smart
768f35ecc6
Now uses the correct selection colours.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 14:53:25 +00:00
Julian Smart
1f57c2895e
Fixed a style application bug inserting a newline other than after the end of a paragraph.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 14:41:05 +00:00
Julian Smart
9ee6506afd
Added missing URL attribute testing
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-07 14:09:59 +00:00
Julian Smart
df72db91c4
Added omitted variable copy
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-17 09:25:56 +00:00
Julian Smart
8248c56400
Faster hex encoding
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-09 17:52:47 +00:00
Julian Smart
85543d154a
Don't insert a newline when we get text
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-07 12:49:35 +00:00