Changeset 222 for trunk/src/IDocument.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/IDocument.h

    r200 r222  
    134134 
    135135            /// 
     136            /// @brief Makes a copy of the document. 
     137            /// 
     138            /// This function must make a deep copy of the current document 
     139            /// and return the result. 
     140            /// 
     141            /// @return A new document class with the same content than the 
     142            ///         caller document. 
     143            /// 
     144            virtual IDocument *copy (void) const = 0; 
     145 
     146            /// 
    136147            /// @brief Finds text on a single page. 
    137148            /// 
     
    190201            virtual void getPageSizeForPage (gint pageNum, gdouble *width, 
    191202                                             gdouble *height) = 0; 
     203 
     204            /// 
     205            /// @brief Starts the output to PostScript. 
     206            /// 
     207            /// This starts a new PostScript file with name @a fileName and 
     208            /// with @a numPages pages of @a width x @a height. 
     209            /// 
     210            /// @param fileName The file name to output the postscript code. 
     211            /// @param numOfPages The number of pages to output. 
     212            /// @param pageWidth The width of each page. 
     213            /// @param pageHeight The height of each page. 
     214            /// 
     215            virtual void outputPostscriptBegin (const gchar *fileName, 
     216                                                guint numOfPages, 
     217                                                gfloat pageWidth, 
     218                                                gfloat pageHeight) = 0; 
     219 
     220            /// 
     221            /// @brief Ends the output to PostScript. 
     222            /// 
     223            /// Ends any started output to PostScript by calling 
     224            /// outputPostscriptBegin (). 
     225            /// 
     226            virtual void outputPostscriptEnd (void) = 0; 
     227 
     228            /// 
     229            /// @brief Renders a single page to PostScript. 
     230            /// 
     231            /// Renders the page @a pageNum To the PostScript started 
     232            /// at outputPostscriptBegin (). 
     233            /// 
     234            /// @param pageNum The number of the page to render. 
     235            /// 
     236            virtual void outputPostscriptPage (guint pageNum) = 0; 
    192237 
    193238            /// 
     
    248293            const gchar *getCreator (void); 
    249294            void setCreator (gchar *creator); 
    250             const gchar *getPassword (void); 
     295            const gchar *getPassword (void) const; 
    251296            void setPassword (const gchar *password); 
    252297            const gchar *getProducer (void); 
    253298            void setProducer (gchar *producer); 
    254             const gchar *getFileName (void); 
     299            const gchar *getFileName (void) const; 
    255300            void setFileName (const gchar *fileName); 
    256301            const gchar *getFormat (void);