Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv18147/src/modules
Modified Files:
HtmlViewer.cpp
Log Message:
implemented copying the selection from HTML viewer
Index: HtmlViewer.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/HtmlViewer.cpp,v
retrieving revision 1.54
retrieving revision 1.55
diff -b -u -2 -r1.54 -r1.55
--- HtmlViewer.cpp 2 Oct 2003 11:59:41 -0000 1.54
+++ HtmlViewer.cpp 3 Oct 2003 22:18:59 -0000 1.55
@@ -372,4 +372,21 @@
wxString *redirect) const;
+
+ // provide access to some wxHtmlWindow protected methods
+ void Copy()
+ {
+#if wxCHECK_VERSION(2, 5, 1)
+ CopySelection();
+#endif
+ }
+ wxString GetSelection()
+ {
+#if wxCHECK_VERSION(2, 5, 1)
+ return SelectionToText();
+#else
+ return wxEmptyString;
+#endif
+ }
+
private:
// get the clickable info previousy stored by StoreClickable()
@@ -606,4 +623,5 @@
bool HtmlViewer::FindAgain()
{
+ // TODO
wxLogError(_("Sorry, searching is not implemented in the HTML viewer yet"));
@@ -613,11 +631,10 @@
void HtmlViewer::Copy()
{
- // TODO
+ m_window->Copy();
}
String HtmlViewer::GetSelection() const
{
- // TODO
- return "";
+ return m_window->GetSelection();
}
@@ -796,5 +813,5 @@
// map the font family into HTML font face name
//
- // FIXME: use <font face="...">
+ // TODO: use <font face="...">
if ( font.IsFixedWidth() )
{
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates