Changeset 226
- Timestamp:
- 06/12/06 16:39:50 (2 years ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
src/IPrintView.h (modified) (2 diffs)
-
tests/DumbDocument.cxx (modified) (2 diffs)
-
tests/DumbDocument.h (modified) (2 diffs)
-
tests/DumbPrintView.cxx (modified) (3 diffs)
-
tests/DumbPrintView.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/IPrintView.h
r222 r226 175 175 /// @param pageSizeInde The index of the page size to select. 176 176 /// 177 virtual void selectPageSize ( unsignedint pageSizeIndex) = 0;177 virtual void selectPageSize (guint pageSizeIndex) = 0; 178 178 179 179 /// … … 182 182 /// @param printerIndex The index of the printer to select. 183 183 /// 184 virtual void selectPrinter ( unsignedint printerIndex) = 0;184 virtual void selectPrinter (guint printerIndex) = 0; 185 185 186 186 /// -
trunk/tests/DumbDocument.cxx
r210 r226 40 40 g_free (m_SavedFileName); 41 41 g_free (m_TestPassword); 42 } 43 44 IDocument * 45 DumbDocument::copy () const 46 { 47 return new DumbDocument (); 42 48 } 43 49 … … 96 102 } 97 103 104 void 105 DumbDocument::outputPostscriptBegin (const gchar *fileName, guint numberOfPages, 106 gfloat pageWidth, gfloat pageHeight) 107 { 108 } 109 110 void 111 DumbDocument::outputPostscriptEnd () 112 { 113 } 114 115 void 116 DumbDocument::outputPostscriptPage (guint pageNumber) 117 { 118 } 119 98 120 DocumentPage * 99 121 DumbDocument::renderPage (gint pageNum) -
trunk/tests/DumbDocument.h
r210 r226 28 28 29 29 // Interface methods. 30 IDocument *copy (void) const; 30 31 GList *findTextInPage (gint pageNum, const gchar *text); 31 32 gboolean isLoaded (void); … … 34 35 void getPageSizeForPage (gint pageNum, gdouble *width, 35 36 gdouble *height); 37 void outputPostscriptBegin (const gchar *fileName, guint numberOfPages, gfloat pageWidth, gfloat pageHeight); 38 void outputPostscriptEnd (void); 39 void outputPostscriptPage (guint pageNumber); 36 40 DocumentPage *renderPage (gint pageNum); 37 41 gboolean saveFile (const gchar *fileName, GError **error); -
trunk/tests/DumbPrintView.cxx
r218 r226 34 34 } 35 35 36 unsigned int 36 void 37 DumbPrintView::addPageSize (const gchar *name, const gchar *value) 38 { 39 } 40 41 void 42 DumbPrintView::addPrinter (const gchar *name, int jobs, const gchar *state, 43 const gchar *location) 44 { 45 } 46 47 void 48 DumbPrintView::clearPageSizeList () 49 { 50 } 51 52 guint 37 53 DumbPrintView::getNumberOfCopies () 38 54 { 39 55 return m_NumberOfCopies; 56 } 57 58 PrintPageLayout 59 DumbPrintView::getPageLayout () 60 { 61 return PRINT_PAGE_LAYOUT_PLAIN; 62 } 63 64 PrintPageOrientation 65 DumbPrintView::getPageOrientation () 66 { 67 return PRINT_PAGE_ORIENTATION_PORTRAIT; 68 } 69 70 const gchar * 71 DumbPrintView::getPageRange () 72 { 73 return ""; 74 } 75 76 gchar * 77 DumbPrintView::getPageSize () 78 { 79 return NULL; 80 } 81 82 gchar * 83 DumbPrintView::getSelectedPrinterName (void) 84 { 85 return NULL; 86 } 87 88 gboolean 89 DumbPrintView::isCheckedCollate () 90 { 91 return FALSE; 40 92 } 41 93 … … 44 96 { 45 97 return m_AllPagesRangeOptionSelected; 98 } 99 100 gboolean 101 DumbPrintView::isSelectedEvenPageSet () 102 { 103 return FALSE; 104 } 105 106 gboolean 107 DumbPrintView::isSelectedOddPageSet () 108 { 109 return FALSE; 110 } 111 112 void 113 DumbPrintView::selectPageSize (guint pageSizeIndex) 114 { 115 } 116 117 void 118 DumbPrintView::selectPrinter (guint printerIndex) 119 { 46 120 } 47 121 … … 56 130 { 57 131 m_SensitivePageRange = sensitive; 132 } 133 134 void 135 DumbPrintView::sensitivePrintButton (gboolean sensitive) 136 { 58 137 } 59 138 -
trunk/tests/DumbPrintView.h
r218 r226 24 24 { 25 25 public: 26 DumbPrintView ( void);26 DumbPrintView (); 27 27 virtual ~DumbPrintView (void); 28 28 29 virtual unsigned int getNumberOfCopies (void); 29 virtual void addPageSize (const gchar *name, const gchar *value); 30 virtual void addPrinter (const gchar *name, int jobs, 31 const gchar *state, const gchar *location); 32 virtual void clearPageSizeList (void); 33 virtual guint getNumberOfCopies (void); 34 virtual PrintPageLayout getPageLayout (void); 35 virtual PrintPageOrientation getPageOrientation (void); 36 virtual const gchar *getPageRange (void); 37 virtual gchar *getPageSize (void); 38 virtual gchar *getSelectedPrinterName (void); 39 virtual gboolean isCheckedCollate (void); 30 40 virtual gboolean isSelectedAllPagesRangeOption (void); 41 virtual gboolean isSelectedEvenPageSet (void); 42 virtual gboolean isSelectedOddPageSet (void); 43 virtual void selectPageSize (guint pageSizeIndex); 44 virtual void selectPrinter (guint printerIndex); 31 45 virtual void sensitiveCollate (gboolean sensitive); 32 46 virtual void sensitivePageRange (gboolean sensitive); 47 virtual void sensitivePrintButton (gboolean sensitive); 33 48 34 49 // Test only functions. … … 41 56 protected: 42 57 gboolean m_AllPagesRangeOptionSelected; 43 g int m_NumberOfCopies;58 guint m_NumberOfCopies; 44 59 gboolean m_SensitiveCollate; 45 60 gboolean m_SensitivePageRange;
