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