added copying selection to clipboard; fixes to selection making
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -213,6 +213,10 @@ protected:
|
||||
void OnMouseDown(wxMouseEvent& event);
|
||||
void OnMouseUp(wxMouseEvent& event);
|
||||
void OnIdle(wxIdleEvent& event);
|
||||
#if wxUSE_CLIPBOARD
|
||||
void OnKeyUp(wxKeyEvent& event);
|
||||
void OnCopy(wxCommandEvent& event);
|
||||
#endif
|
||||
|
||||
// Returns new filter (will be stored into m_DefaultFilter variable)
|
||||
virtual wxHtmlFilter *GetDefaultFilter() {return new wxHtmlFilterPlainText;}
|
||||
@@ -224,6 +228,18 @@ protected:
|
||||
// and wxHW_NO_SELECTION not used)
|
||||
bool IsSelectionEnabled() const;
|
||||
|
||||
// Convert selection to text:
|
||||
wxString SelectionToText();
|
||||
|
||||
enum ClipboardType
|
||||
{
|
||||
Primary,
|
||||
Secondary
|
||||
};
|
||||
|
||||
// Copies selection to clipboard:
|
||||
void CopySelection(ClipboardType t = Secondary);
|
||||
|
||||
protected:
|
||||
// This is pointer to the first cell in parsed data.
|
||||
// (Note: the first cell is usually top one = all other cells are sub-cells of this one)
|
||||
|
Reference in New Issue
Block a user