root/trunk/tests/DumbPrintView.h

Revision 234, 3.2 kB (checked in by jordi, 2 years ago)

Added the missing virtual function for the test dumb PrintView?.

Line 
1 // ePDFView - Dumb Test Preferences View.
2 // Copyright (C) 2006 Emma's Software.
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18 #if !defined (__DUMB_PRINT_VIEW_H__)
19 #define __DUMB_PRINT_VIEW_H__
20
21 namespace ePDFView
22 {
23     class DumbPrintView: public IPrintView
24     {
25         public:
26             DumbPrintView ();
27             virtual ~DumbPrintView (void);
28
29             virtual void addColorModel (const gchar *name, const gchar *value);
30             virtual void addPageSize (const gchar *name, const gchar *value);
31             virtual void addPrinter (const gchar *name, int jobs,
32                                      const gchar *state, const gchar *location);
33             virtual void addResolution (const gchar *name, const gchar *value);
34             virtual void clearColorModelList (void);
35             virtual void clearPageSizeList (void);
36             virtual void clearResolutionList (void);
37             virtual guint getNumberOfCopies (void);
38             virtual PrintPageLayout getPageLayout (void);
39             virtual PrintPageOrientation getPageOrientation (void);
40             virtual const gchar *getPageRange (void);
41             virtual gchar *getColorModel (void);
42             virtual gchar *getPageSize (void);
43             virtual gchar *getResolution (void);
44             virtual gchar *getSelectedPrinterName (void);
45             virtual gboolean isCheckedCollate (void);
46             virtual gboolean isSelectedAllPagesRangeOption (void);
47             virtual gboolean isSelectedEvenPageSet (void);
48             virtual gboolean isSelectedOddPageSet (void);
49             virtual void selectColorModel (guint colorModelIndex);
50             virtual void selectPageSize (guint pageSizeIndex);
51             virtual void selectPrinter (guint printerIndex);
52             virtual void selectResolution (guint resolutionIndex);
53             virtual void sensitiveCollate (gboolean sensitive);
54             virtual void sensitivePageRange (gboolean sensitive);
55             virtual void sensitivePrintButton (gboolean sensitive);
56
57             // Test only functions.
58             gboolean isSensitiveCollate (void);
59             gboolean isSensitivePageRange (void);
60             void selectAllPagesRangeOption (void);
61             void selectCustomPagesRangeOption (void);
62             void setNumberOfCopies (unsigned int copies);
63
64         protected:
65             gboolean m_AllPagesRangeOptionSelected;
66             guint m_NumberOfCopies;
67             gboolean m_SensitiveCollate;
68             gboolean m_SensitivePageRange;
69     };
70 }
71
72 #endif // !__DUMB_PRINT_VIEW_H__
Note: See TracBrowser for help on using the browser.