Changeset 226

Show
Ignore:
Timestamp:
06/12/06 16:39:50 (2 years ago)
Author:
jordi
Message:

Added all missing virtual function to be able to execute the test suites.

Location:
trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/IPrintView.h

    r222 r226  
    175175            /// @param pageSizeInde The index of the page size to select. 
    176176            /// 
    177             virtual void selectPageSize (unsigned int pageSizeIndex) = 0; 
     177            virtual void selectPageSize (guint pageSizeIndex) = 0; 
    178178 
    179179            /// 
     
    182182            /// @param printerIndex The index of the printer to select. 
    183183            /// 
    184             virtual void selectPrinter (unsigned int printerIndex) = 0; 
     184            virtual void selectPrinter (guint printerIndex) = 0; 
    185185 
    186186            /// 
  • trunk/tests/DumbDocument.cxx

    r210 r226  
    4040    g_free (m_SavedFileName); 
    4141    g_free (m_TestPassword); 
     42} 
     43 
     44IDocument * 
     45DumbDocument::copy () const 
     46{ 
     47    return new DumbDocument (); 
    4248} 
    4349 
     
    96102} 
    97103 
     104void 
     105DumbDocument::outputPostscriptBegin (const gchar *fileName, guint numberOfPages, 
     106                                     gfloat pageWidth, gfloat pageHeight) 
     107{ 
     108} 
     109 
     110void 
     111DumbDocument::outputPostscriptEnd () 
     112{ 
     113} 
     114 
     115void 
     116DumbDocument::outputPostscriptPage (guint pageNumber) 
     117{ 
     118} 
     119 
    98120DocumentPage * 
    99121DumbDocument::renderPage (gint pageNum) 
  • trunk/tests/DumbDocument.h

    r210 r226  
    2828 
    2929            // Interface methods. 
     30            IDocument *copy (void) const; 
    3031            GList *findTextInPage (gint pageNum, const gchar *text); 
    3132            gboolean isLoaded (void); 
     
    3435            void getPageSizeForPage (gint pageNum, gdouble *width, 
    3536                                     gdouble *height); 
     37            void outputPostscriptBegin (const gchar *fileName, guint numberOfPages, gfloat pageWidth, gfloat pageHeight); 
     38            void outputPostscriptEnd (void); 
     39            void outputPostscriptPage (guint pageNumber); 
    3640            DocumentPage *renderPage (gint pageNum); 
    3741            gboolean saveFile (const gchar *fileName, GError **error); 
  • trunk/tests/DumbPrintView.cxx

    r218 r226  
    3434} 
    3535 
    36 unsigned int 
     36void 
     37DumbPrintView::addPageSize (const gchar *name, const gchar *value) 
     38{ 
     39} 
     40 
     41void 
     42DumbPrintView::addPrinter (const gchar *name, int jobs, const gchar *state, 
     43                           const gchar *location) 
     44{ 
     45} 
     46 
     47void 
     48DumbPrintView::clearPageSizeList () 
     49{ 
     50} 
     51 
     52guint 
    3753DumbPrintView::getNumberOfCopies () 
    3854{ 
    3955    return m_NumberOfCopies; 
     56} 
     57 
     58PrintPageLayout 
     59DumbPrintView::getPageLayout () 
     60{ 
     61    return PRINT_PAGE_LAYOUT_PLAIN; 
     62} 
     63 
     64PrintPageOrientation 
     65DumbPrintView::getPageOrientation () 
     66{ 
     67    return PRINT_PAGE_ORIENTATION_PORTRAIT; 
     68} 
     69 
     70const gchar * 
     71DumbPrintView::getPageRange () 
     72{ 
     73    return ""; 
     74} 
     75 
     76gchar * 
     77DumbPrintView::getPageSize () 
     78{ 
     79    return NULL; 
     80} 
     81 
     82gchar * 
     83DumbPrintView::getSelectedPrinterName (void) 
     84{ 
     85    return NULL; 
     86} 
     87 
     88gboolean 
     89DumbPrintView::isCheckedCollate () 
     90{ 
     91    return FALSE; 
    4092} 
    4193 
     
    4496{ 
    4597    return m_AllPagesRangeOptionSelected; 
     98} 
     99 
     100gboolean 
     101DumbPrintView::isSelectedEvenPageSet () 
     102{ 
     103    return FALSE; 
     104} 
     105 
     106gboolean 
     107DumbPrintView::isSelectedOddPageSet () 
     108{ 
     109    return FALSE; 
     110} 
     111 
     112void 
     113DumbPrintView::selectPageSize (guint pageSizeIndex) 
     114{ 
     115} 
     116 
     117void 
     118DumbPrintView::selectPrinter (guint printerIndex) 
     119{ 
    46120} 
    47121 
     
    56130{ 
    57131    m_SensitivePageRange = sensitive; 
     132} 
     133 
     134void 
     135DumbPrintView::sensitivePrintButton (gboolean sensitive) 
     136{ 
    58137} 
    59138 
  • trunk/tests/DumbPrintView.h

    r218 r226  
    2424    { 
    2525        public: 
    26             DumbPrintView (void); 
     26            DumbPrintView (); 
    2727            virtual ~DumbPrintView (void); 
    2828 
    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); 
    3040            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); 
    3145            virtual void sensitiveCollate (gboolean sensitive); 
    3246            virtual void sensitivePageRange (gboolean sensitive); 
     47            virtual void sensitivePrintButton (gboolean sensitive); 
    3348 
    3449            // Test only functions. 
     
    4156        protected: 
    4257            gboolean m_AllPagesRangeOptionSelected; 
    43             gint m_NumberOfCopies; 
     58            guint m_NumberOfCopies; 
    4459            gboolean m_SensitiveCollate; 
    4560            gboolean m_SensitivePageRange;