Paul Cornett
04ee05f92a
fix a huge number of build errors
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-17 18:26:00 +00:00
Julian Smart
6c0ea5130f
Don't take the previous paragraph style when deleting paragraph marker
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 17:59:06 +00:00
Julian Smart
62381daaaf
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/trunk@52110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 12:54:01 +00:00
Julian Smart
6ccbca24ee
Fix caret position when deleting last character
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-21 16:58:43 +00:00
Julian Smart
5607c89090
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/trunk@51968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-21 16:23:39 +00:00
Julian Smart
4b3483e73b
Fixed two out by one errors
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-20 20:33:18 +00:00
Julian Smart
fa01bfddc6
Avoid paragraphs with no children
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-16 13:36:03 +00:00
Julian Smart
0745f36410
Fixed undo batching
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-13 16:28:00 +00:00
Julian Smart
c025e094f4
Further fixes, for selected text display and new paragraph insertion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-13 14:24:49 +00:00
Julian Smart
99404ab05f
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/trunk@51740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-12 17:05:54 +00:00
Vadim Zeitlin
b8e58b85d9
remove extraneous IncRef() from wxRichTextFontTable ctor (replaces patch 1884594)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-09 15:41:28 +00:00
Julian Smart
cd8ba0d9e4
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/trunk@51494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-01 14:14:44 +00:00
Julian Smart
44580804c2
Take basic style into account when applying style sheet
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 17:37:17 +00:00
Julian Smart
3c8766f7dc
Optimization correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 17:28:59 +00:00
Julian Smart
c21f3211ea
Fixed pasting inefficiency
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-30 14:20:49 +00:00
Paul Cornett
d65381ac34
fix for link errors in DLL build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-11 05:56:42 +00:00
Julian Smart
ecb5fbf135
Big wxRichTextCtrl performance increase due to faster wrapping code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-06 12:26:22 +00:00
Julian Smart
9b4af7b7de
Fixed bug in optimization for character input, affecting first paragraph in the buffer.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 16:13:47 +00:00
Julian Smart
0ec6da0248
Now uses the correct selection colours.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 14:53:07 +00:00
Julian Smart
caad01090a
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/trunk@49429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 14:41:21 +00:00
Julian Smart
44cc96a80c
Merged wxRichTextAttr and wxTextAttrEx into wxTextAttr, and added a font table
...
to wxRichTextBuffer to reduce wxFont consumption and increase performance.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-09 11:20:36 +00:00
Julian Smart
797e38dde1
Added missing URL attribute testing
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-07 14:11:41 +00:00
Vadim Zeitlin
0ec1179b86
added wxTextEntry common base class for both wxTextCtrl and wxComboBox; refactor wxGTK code to put common parts of these classes in the base class; fixed some inconsistencies in the text control behaviour between platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-26 00:30:22 +00:00
Julian Smart
b78b6e887e
Added omitted variable copy
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-17 09:26:08 +00:00
Julian Smart
f728025eae
Added a new overload of wxDecToHex and used it in wxRichTextImageBlock::WriteHex
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-11 17:16:59 +00:00
Julian Smart
351c06476d
Faster hex encoding
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-09 17:52:47 +00:00
Julian Smart
1a75935d3f
Don't insert a newline when we get text
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-07 12:49:35 +00:00
Vadim Zeitlin
f4f963f4a5
put #if wxUSE_FFILE && wxUSE_STREAMS around functions using wxFFileStream (patch 1721939)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-25 00:53:12 +00:00
Julian Smart
cc91438c0f
Allow negative line spacing
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-18 12:31:55 +00:00
Václav Slavík
47b378bd88
removed extra semicolons (patch #1700459 ; fixes compilation with gcc's -pedantic flag)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 09:58:37 +00:00
Václav Slavík
c9f7896861
first phase of transition to unified Unicode build:
...
1. changed c_str() to return wxCStrData (implicitly convertible to wxChar*)
2. added template type-safe wrappers for vararg functions
3. added wxUniChar class representing single Unicode character
4. changed wxString::operator[] and wxString::iterator to return wxUniChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-17 10:26:10 +00:00
Julian Smart
31002e44b5
Fixed wrapping with tabs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-11 12:48:38 +00:00
Julian Smart
0f1fbeb810
Fixed problem with tab size calculation not reflecting current position in the line
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-05 17:15:01 +00:00
Julian Smart
f0e9eda2a5
Drawing correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-05 16:08:15 +00:00
Julian Smart
3e54156282
Implemented text background colour
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-05 15:22:07 +00:00
Julian Smart
4794d69c84
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/trunk@44541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-20 12:54:44 +00:00
Julian Smart
3087eaea04
Layout correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-19 18:32:07 +00:00
Julian Smart
aeb6ebe2a5
Added flag for removing attributes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-07 12:24:17 +00:00
Julian Smart
f262b25c93
Added extra hit test style for more accurate reporting
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@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