]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/prntbase.h
radically simplified declarations of wxUString-specific char buffers: there are no...
[wxWidgets.git] / include / wx / prntbase.h
index 011edd1f23d89c3039115d081bf761b142907bb8..81e32415b57bb17332df1f271abd8133dfbd36ba 100644 (file)
@@ -561,11 +561,20 @@ public:
     // the currently selected printer.
     virtual void DetermineScaling() = 0;
 
+protected:
+    // helpers for RenderPage():
+    virtual bool RenderPageIntoDC(wxDC& dc, int pageNum);
+    // renders preview into m_previewBitmap
+    virtual bool RenderPageIntoBitmap(wxBitmap& bmp, int pageNum);
+
+    void InvalidatePreviewBitmap();
+
 protected:
     wxPrintDialogData m_printDialogData;
     wxPreviewCanvas*  m_previewCanvas;
     wxFrame*          m_previewFrame;
     wxBitmap*         m_previewBitmap;
+    bool              m_previewFailed;
     wxPrintout*       m_previewPrintout;
     wxPrintout*       m_printPrintout;
     int               m_currentPage;