root/trunk/tests/DumbPrintView.cxx

Revision 234, 3.6 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#include <epdfview.h>
19#include "DumbPrintView.h"
20
21using namespace ePDFView;
22
23DumbPrintView::DumbPrintView ():
24    IPrintView ()
25{
26    m_AllPagesRangeOptionSelected = TRUE;
27    m_NumberOfCopies = 1;
28    m_SensitiveCollate = TRUE;
29    m_SensitivePageRange = TRUE;
30}
31
32DumbPrintView::~DumbPrintView ()
33{
34}
35
36void
37DumbPrintView::addColorModel (const gchar *name, const gchar *value)
38{
39}
40
41void
42DumbPrintView::addPageSize (const gchar *name, const gchar *value)
43{
44}
45
46void
47DumbPrintView::addPrinter (const gchar *name, int jobs, const gchar *state,
48                           const gchar *location)
49{
50}
51
52void
53DumbPrintView::addResolution (const gchar *name, const gchar *value)
54{
55}
56
57
58void
59DumbPrintView::clearColorModelList ()
60{
61}
62
63void
64DumbPrintView::clearPageSizeList ()
65{
66}
67
68void
69DumbPrintView::clearResolutionList ()
70{
71}
72
73guint
74DumbPrintView::getNumberOfCopies ()
75{
76    return m_NumberOfCopies;
77}
78
79gchar*
80DumbPrintView::getColorModel ()
81{
82    return g_strdup ("");
83}
84
85PrintPageLayout
86DumbPrintView::getPageLayout ()
87{
88    return PRINT_PAGE_LAYOUT_PLAIN;
89}
90
91PrintPageOrientation
92DumbPrintView::getPageOrientation ()
93{
94    return PRINT_PAGE_ORIENTATION_PORTRAIT;
95}
96
97gchar *
98DumbPrintView::getResolution ()
99{
100    return g_strdup ("");
101}
102
103const gchar *
104DumbPrintView::getPageRange ()
105{
106    return "";
107}
108
109gchar *
110DumbPrintView::getPageSize ()
111{
112    return NULL;
113}
114
115gchar *
116DumbPrintView::getSelectedPrinterName (void)
117{
118    return NULL;
119}
120
121gboolean
122DumbPrintView::isCheckedCollate ()
123{
124    return FALSE;
125}
126
127gboolean
128DumbPrintView::isSelectedAllPagesRangeOption ()
129{
130    return m_AllPagesRangeOptionSelected;
131}
132
133gboolean
134DumbPrintView::isSelectedEvenPageSet ()
135{
136    return FALSE;
137}
138
139gboolean
140DumbPrintView::isSelectedOddPageSet ()
141{
142    return FALSE;
143}
144
145void
146DumbPrintView::selectColorModel (guint colorModelIndex)
147{
148}
149
150void
151DumbPrintView::selectPageSize (guint pageSizeIndex)
152{
153}
154
155void
156DumbPrintView::selectPrinter (guint printerIndex)
157{
158}
159
160void
161DumbPrintView::selectResolution (guint resolutionIndex)
162{
163}
164
165void
166DumbPrintView::sensitiveCollate (gboolean sensitive)
167{
168    m_SensitiveCollate = sensitive;
169}
170
171void
172DumbPrintView::sensitivePageRange (gboolean sensitive)
173{
174    m_SensitivePageRange = sensitive;
175}
176
177void
178DumbPrintView::sensitivePrintButton (gboolean sensitive)
179{
180}
181
182////////////////////////////////////////////////////////////////
183// Test Only Functions
184////////////////////////////////////////////////////////////////
185
186gboolean
187DumbPrintView::isSensitiveCollate ()
188{
189    return m_SensitiveCollate;
190}
191
192gboolean
193DumbPrintView::isSensitivePageRange ()
194{
195    return m_SensitivePageRange;
196}
197
198void
199DumbPrintView::selectAllPagesRangeOption ()
200{
201    m_AllPagesRangeOptionSelected = TRUE;
202}
203
204void
205DumbPrintView::selectCustomPagesRangeOption ()
206{
207    m_AllPagesRangeOptionSelected = FALSE;
208}
209
210void
211DumbPrintView::setNumberOfCopies (unsigned int copies)
212{
213    m_NumberOfCopies = copies;
214}
Note: See TracBrowser for help on using the browser.