Commit Graph

106 Commits

Author SHA1 Message Date
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
Julian Smart
0fb56f7115 Allow negative line spacing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-18 12:31:55 +00:00
Vadim Zeitlin
6dced616e6 removed extra semicolons to fix compilation with gcc -Wpedantic (patch 1701236)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 13:03:05 +00:00
Julian Smart
b40735833e Fixed wrapping with tabs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-11 12:48:38 +00:00
Julian Smart
427f484df5 Fixed problem with tab size calculation not reflecting current position in the line
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-05 17:15:01 +00:00
Julian Smart
7e3a37bedf Drawing correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-05 16:08:15 +00:00
Julian Smart
be0d60f7e1 Implemented text background colour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-05 15:22:07 +00:00
Julian Smart
8a6dda6ff7 Fixed a problem with tabs when text spills over the end of the tab stops
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-20 12:54:44 +00:00
Julian Smart
49a0fc52cf Layout correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-19 18:32:07 +00:00
Julian Smart
bacea03059 Added flag for removing attributes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-07 12:24:17 +00:00
Julian Smart
4ea7392787 Added extra hit test style for more accurate reporting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-28 16:57:07 +00:00
Julian Smart
e3eac0ff7f Bullet size should take into account the font of the immediately following content.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-23 15:57:45 +00:00
Julian Smart
7c081bd21c Fix for newline breakage
Inserting text now retains style at current position


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-01 13:52:31 +00:00
Julian Smart
46ee0e5bf8 Fixed insertion point bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-01 12:39:21 +00:00
Vadim Zeitlin
336d8ae9a3 documentation for wxAppTraits (patch 1518295 from Francesco)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-24 18:20:18 +00:00
Julian Smart
ff76711fbe Fixed a bug setting caret position after setting or clearing selection
Implemented forced line breaks within a paragraph, entered with Shift-Return.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-20 11:33:44 +00:00
Julian Smart
12cc29c56a Small cleanup.
Set caret position when calling SetSelection.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-18 22:27:48 +00:00
Julian Smart
5912d19ef7 Removed obsolete code
Added some more event types
Added back GetStyleForRange


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-17 14:28:47 +00:00
Julian Smart
523d2f145e Added wxRICHTEXT_SETSTYLE_RESET SetStyleEx() flag to allow for clearing attributes before setting new ones
SetStyle() now looks up and applies named paragraph or character style
Fixed a bug in text entry (taking previous paragraph's style)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-17 08:33:34 +00:00
Julian Smart
a7ed48a590 Small bug fixes
Added GetStyleForRange to wxRichTextCtrl
HasCharacter/ParagraphAttributes range now consistent with other functions in wxRichTextCtrl


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-15 15:59:06 +00:00
Julian Smart
4d6d8bf4fb Added outline level
Removed unnecessary wxRichTextAttr::CopyTo


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-10 15:48:46 +00:00
Julian Smart
42688aea2d Added a couple of text effects
Added style description
Fixed some bugs in style comparison
Fixed extra newline when loading


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-08 14:05:50 +00:00
Julian Smart
4f32b3cf15 Style application fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 13:19:07 +00:00
Julian Smart
27b5dab348 Fixed compile error with --enable-stl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 09:45:06 +00:00
Vadim Zeitlin
3c738608b4 correct compilation after last change (added ifdef in the wrong function...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 16:19:24 +00:00
Vadim Zeitlin
87bfb3969f don't define specifyLevel variable in release builds (fixes gcc and probably others warning)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 12:51:57 +00:00
Julian Smart
6a81734334 Copy constructor warning elimination
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 18:15:31 +00:00