| 1 |
// -*- C++ -*- |
| 2 |
// $Id: raster2dymolm.cpp 14880 2011-03-31 16:29:05Z aleksandr $ |
| 3 |
|
| 4 |
// DYMO LabelWriter Drivers |
| 5 |
// Copyright (C) 2008 Sanford L.P. |
| 6 |
|
| 7 |
// This program is free software; you can redistribute it and/or |
| 8 |
// modify it under the terms of the GNU General Public License |
| 9 |
// as published by the Free Software Foundation; either version 2 |
| 10 |
// of the License, or (at your option) any later version. |
| 11 |
|
| 12 |
// This program is distributed in the hope that it will be useful, |
| 13 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
// GNU General Public License for more details. |
| 16 |
|
| 17 |
// You should have received a copy of the GNU General Public License |
| 18 |
// along with this program; if not, write to the Free Software |
| 19 |
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 20 |
|
| 21 |
#include <cups/cups.h> |
| 22 |
#include <cups/raster.h> |
| 23 |
#include <stdlib.h> |
| 24 |
#include <unistd.h> |
| 25 |
#include <string.h> |
| 26 |
#include <fcntl.h> |
| 27 |
#include <memory> |
| 28 |
#include <string.h> |
| 29 |
|
| 30 |
#include "LabelManagerDriver.h" |
| 31 |
#include "LabelManagerLanguageMonitor.h" |
| 32 |
#include "DummyLanguageMonitor.h" |
| 33 |
#include "CupsPrintEnvironment.h" |
| 34 |
#include "CupsFilter.h" |
| 35 |
#include "CupsFilterLabelManager.h" |
| 36 |
|
| 37 |
using namespace DymoPrinterDriver; |
| 38 |
|
| 39 |
static bool |
| 40 |
IsBackchannelSupported() |
| 41 |
{ |
| 42 |
return true; |
| 43 |
} |
| 44 |
|
| 45 |
int |
| 46 |
main(int argc, char* argv[]) |
| 47 |
{ |
| 48 |
fputs("DEBUG: starting (raster2dymolm)\n", stderr); |
| 49 |
|
| 50 |
if (IsBackchannelSupported()) |
| 51 |
{ |
| 52 |
CCupsFilter<CLabelManagerDriver, CDriverInitializerLabelManagerWithLM, CLabelManagerLanguageMonitor> Filter; |
| 53 |
return Filter.Run(argc, argv); |
| 54 |
} |
| 55 |
else |
| 56 |
{ |
| 57 |
CCupsFilter<CLabelManagerDriver, CDriverInitializerLabelManager, CDummyLanguageMonitor> Filter; |
| 58 |
return Filter.Run(argc, argv); |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
/* |
| 63 |
* End of "$Id: raster2dymolm.cpp 14880 2011-03-31 16:29:05Z aleksandr $". |
| 64 |
*/ |