]> git.saurik.com Git - wxWidgets.git/commitdiff
Made gnome printing stuff return wxPRINT_CANCELLED if
authorRobert Roebling <robert@roebling.de>
Fri, 11 Feb 2005 22:16:41 +0000 (22:16 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 11 Feb 2005 22:16:41 +0000 (22:16 +0000)
    it has been canceled.
  Moved the FORCE_LINK code from app.cpp to the sample
    as I cannot find the right place for it. We'd need
    an empty extrya file for ADV lib only for that.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/printing/printing.cpp
src/gtk/app.cpp
src/gtk/gnome/gprint.cpp
src/gtk1/app.cpp
src/gtk1/gnome/gprint.cpp

index e6fda218b285bae7247b2f2418bafdb42cdba319..5315efebea2d551861308ed44bd1a2e4090e1e3f 100644 (file)
 #include "mondrian.xpm"
 #endif
 
+#if wxUSE_LIBGNOMEPRINT
+#include "wx/html/forcelnk.h"
+FORCE_LINK(gnome_print)
+#endif
+
+
 // Declare a frame
 MyFrame   *frame = (MyFrame *) NULL;
 // int orientation = wxPORTRAIT;
@@ -301,7 +307,7 @@ void MyFrame::Draw(wxDC& dc)
     dc.SetBrush(*wxCYAN_BRUSH);
     dc.SetPen(*wxRED_PEN);
 
-    dc.DrawRectangle(0, 30, 200, 100);
+    dc.DrawRoundedRectangle(0, 30, 200, 100, 20);
 
     dc.DrawText( wxT("Rectangle 200 by 100"), 40, 40);
 
index e370b546658ea0c546f4c0c0cb078839a0923903..b894f1bb1c0cd2340195a08eec067a41614127cc 100644 (file)
 
 #include <gtk/gtk.h>
 
-#if wxUSE_LIBGNOMEPRINT
-
-#include "wx/html/forcelnk.h"
-FORCE_LINK(gnome_print)
-
-#endif
-
 //-----------------------------------------------------------------------------
 // global data
 //-----------------------------------------------------------------------------
index 9be9ac7d62585bdebc7c0d126b6fa7c3b03c1100..45e9735ad302ea59fbb8d85cc91a6dff867d73d3 100644 (file)
@@ -795,7 +795,7 @@ wxDC* wxGnomePrinter::PrintDialog( wxWindow *parent )
     int ret = dialog.ShowModal();
     if (ret == wxID_CANCEL)
     {
-        sm_lastError = wxPRINTER_ERROR;
+        sm_lastError = wxPRINTER_CANCELLED;
         return NULL;
     }
     
index e370b546658ea0c546f4c0c0cb078839a0923903..b894f1bb1c0cd2340195a08eec067a41614127cc 100644 (file)
 
 #include <gtk/gtk.h>
 
-#if wxUSE_LIBGNOMEPRINT
-
-#include "wx/html/forcelnk.h"
-FORCE_LINK(gnome_print)
-
-#endif
-
 //-----------------------------------------------------------------------------
 // global data
 //-----------------------------------------------------------------------------
index 9be9ac7d62585bdebc7c0d126b6fa7c3b03c1100..45e9735ad302ea59fbb8d85cc91a6dff867d73d3 100644 (file)
@@ -795,7 +795,7 @@ wxDC* wxGnomePrinter::PrintDialog( wxWindow *parent )
     int ret = dialog.ShowModal();
     if (ret == wxID_CANCEL)
     {
-        sm_lastError = wxPRINTER_ERROR;
+        sm_lastError = wxPRINTER_CANCELLED;
         return NULL;
     }