• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeprint
 

tdeprint

  • tdeprint
  • lpd
lpdtools.h
1/*
2 * This file is part of the KDE libraries
3 * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License version 2 as published by the Free Software Foundation.
8 *
9 * This library 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 GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 **/
19#ifndef LPDTOOLS_H
20#define LPDTOOLS_H
21
22#include <tqstring.h>
23#include <tqmap.h>
24#include <tqptrlist.h>
25#include <tqtextstream.h>
26
27class KMLpdManager;
28class DrMain;
29class KMPrinter;
30
31class PrintcapEntry
32{
33friend class KMLpdManager;
34public:
35 bool readLine(const TQString& line);
36 void writeEntry(TQTextStream&);
37 KMPrinter* createPrinter();
38 TQString arg(const TQString& key) const { return m_args[key]; }
39 TQString comment(int i);
40private:
41 TQString m_name;
42 TQString m_comment;
43 TQMap<TQString,TQString> m_args;
44};
45
46//*****************************************************************************************************
47
48struct Resolution
49{
50 int xdpi, ydpi;
51 TQString comment;
52};
53
54struct BitsPerPixel
55{
56 TQString bpp;
57 TQString comment;
58};
59
60class PrinttoolEntry
61{
62friend class KMLpdManager;
63public:
64 bool readEntry(TQTextStream& t);
65 DrMain* createDriver();
66private:
67 TQString m_name, m_gsdriver, m_description, m_about;
68 TQPtrList<Resolution> m_resolutions;
69 TQPtrList<BitsPerPixel> m_depths;
70};
71
72//*****************************************************************************************************
73
74TQString getPrintcapLine(TQTextStream& t, TQString *lastcomment = NULL);
75
76#endif // LPDTOOLS_H

tdeprint

Skip menu "tdeprint"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeprint

Skip menu "tdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.9.4
This website is maintained by Timothy Pearson.