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

tdeprint

  • tdeprint
util.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
20#ifndef UTIL_H
21#define UTIL_H
22
23#include "kprinter.h"
24#include <tqstring.h>
25#include <kurl.h>
26#include <tdelocale.h>
27
28KURL smbToUrl(const TQString& work, const TQString& server, const TQString& printer);
29void urlToSmb(const KURL& url, TQString& work, TQString& server, TQString& printer);
30// those 2 are only workarounds when the login/password may contain
31// strange characters ('@', '/'). In this case, those chars are not encoded
32// as other SMB tools (smbspool) doesn't seem to support encoding. This
33// utilities allow to continue working KURL class (and encoding) within
34// TDEPrint, but without encoding outside TDEPrint (should fix bug #38733)
35TDEPRINT_EXPORT TQString buildSmbURI( const TQString& work, const TQString& server, const TQString& printer, const TQString& user, const TQString& passwd );
36TDEPRINT_EXPORT bool splitSmbURI( const TQString& uri, TQString& work, TQString& server, TQString& printer, TQString& user, TQString& passwd );
37
38static const struct pagesizestruct
39{
40 const char* text;
41 int ID;
42} page_sizes[] =
43{
44 { "A0", KPrinter::A0 },
45 { "A1", KPrinter::A1 },
46 { "A2", KPrinter::A2 },
47 { "A3", KPrinter::A3 },
48 { "A4", KPrinter::A4 },
49 { "A5", KPrinter::A5 },
50 { "A6", KPrinter::A6 },
51 { "A7", KPrinter::A7 },
52 { "A8", KPrinter::A8 },
53 { "A9", KPrinter::A9 },
54 { "B1", KPrinter::B1 },
55 { "B10", KPrinter::B10 },
56 { "B2", KPrinter::B2 },
57 { "B3", KPrinter::B3 },
58 { "B4", KPrinter::B4 },
59 { "B5", KPrinter::B5 },
60 { "B6", KPrinter::B6 },
61 { "B7", KPrinter::B7 },
62 { "B8", KPrinter::B8 },
63 { "B9", KPrinter::B9 },
64 { I18N_NOOP("Envelope C5"), KPrinter::C5E },
65 { I18N_NOOP("Envelope DL"), KPrinter::DLE },
66 { I18N_NOOP("Envelope US #10"), KPrinter::Comm10E },
67 { I18N_NOOP("Executive"), KPrinter::Executive },
68 { I18N_NOOP("Folio"), KPrinter::Folio },
69 { I18N_NOOP("Ledger"), KPrinter::Ledger },
70 { I18N_NOOP("Tabloid"), KPrinter::Tabloid },
71 { I18N_NOOP("US Legal"), KPrinter::Legal },
72 { I18N_NOOP("US Letter"), KPrinter::Letter }
73};
74int findIndex(int ID);
75
76#endif

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.