added line selection

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-06-05 20:30:56 +00:00
parent 13bf5a8231
commit 0994d9683e
2 changed files with 99 additions and 18 deletions

View File

@@ -245,6 +245,12 @@ protected:
// Copies selection to clipboard:
void CopySelection(ClipboardType t = Secondary);
// Helper functions to select parts of page:
void SelectWord(const wxPoint& pos);
void SelectLine(const wxPoint& pos);
// Automatic scrolling during selection:
void StopAutoScrolling();
#endif
@@ -284,6 +290,12 @@ protected:
bool m_makingSelection;
#if wxUSE_CLIPBOARD
// time of the last doubleclick event, used to detect tripleclicks
// (tripleclicks are used to select whole line):
wxLongLong m_lastDoubleClick;
// helper class to automatically scroll the window if the user is selecting
// text and the mouse leaves wxHtmlWindow:
wxHtmlWinAutoScrollTimer *m_timerAutoScroll;
#endif