Changeset 222 for trunk/src/PrintPter.h

Show
Ignore:
Timestamp:
06/11/06 14:46:38 (2 years ago)
Author:
jordi
Message:

Added a new class named JobPrint? whose duty is to render the current document to PostScript? and print the resultant file. It already renders the requested pages (Note: the setUpPageRange is horrible) to PostScript?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/PrintPter.h

    r221 r222  
    2525{ 
    2626    /// 
    27     /// @enum PrintPageOrientation. 
    28     /// 
    29     enum PrintPageOrientation 
    30     { 
    31         PRINT_PAGE_ORIENTATION_PORTRAIT, 
    32         PRINT_PAGE_ORIENTATION_LANDSCAPE 
    33     }; 
    34  
    35     /// 
    36     /// @enum PrintPageLayout 
    37     /// 
    38     enum PrintPageLayout 
    39     { 
    40         PRINT_PAGE_LAYOUT_PLAIN, 
    41         PRINT_PAGE_LAYOUT_2IN1, 
    42         PRINT_PAGE_LAYOUT_4IN1 
    43     }; 
    44  
    45     /// 
    4627    /// @class PrintPter 
    4728    /// @brief Print Presenter. 
     
    5031    { 
    5132        public: 
    52             PrintPter (void); 
     33            PrintPter (IDocument *document); 
    5334            ~PrintPter (void); 
    5435 
     
    6344 
    6445        protected: 
     46            IDocument *m_Document; 
    6547            IPrintView *m_View; 
    6648 
     49            void getPageSizeForPrinter (const gchar *printerName, 
     50                                        const gchar *sizeName, 
     51                                        float *pageWidth, float *pageHeight); 
    6752            printerAttributes *getPrinterAttributes (const gchar *printerName); 
    6853            void listPrinters (void);