summaryrefslogtreecommitdiffstats
path: root/python/pykde/sip/kdeprint/driver.sip
blob: c787b230b2c39c78d1c895d8ca56bd953e7a1ad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
//
//     Copyright 2005 Jim Bublitz <jbublitz@nwinternet.com>
//     Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson
//     may also apply


//                 Generated by preSip
//            module kdeprint  version KDE_3_4_0


// This software is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of
// the License, or (at your option) any later version.
//
// This software is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this library; see the file COPYING.
// If not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


%If ( KDE_3_1_0 -  )

class DrBase
{
%TypeHeaderCode
#include <driver.h>
%End


public:

    enum Type
    {
        Base, 
        Main, 
        ChoiceGroup, 
        Group, 
        String, 
        Integer, 
        Float, 
        List, 
        Boolean
    };

                         DrBase ();
    DrBase::Type         type () const;
    bool                 isOption () const;
    const QString&       get (const QString&) const;
    void                 set (const QString&, const QString&);
    bool                 has (const QString&) const;
    const QString&       name () const;
    void                 setName (const QString&);
    bool                 conflict () const;
    void                 setConflict (bool);
    virtual QString      valueText ();
    virtual QString      prettyText ();
    virtual void         setValueText (const QString&);
//ig     virtual DriverItem*  createItem (DriverItem* /Transfer/, DriverItem* = 0);
    virtual void         setOptions (const QMap<QString,QString>&);
    virtual void         getOptions (QMap<QString,QString>&, bool = 0);
    virtual DrBase*      clone ();

protected:

};  // class DrBase

%End


%If ( KDE_3_1_0 -  )

class DrGroup : DrBase
{
%TypeHeaderCode
#include <driver.h>
%End


public:
                         DrGroup ();
    void                 addOption (DrBase*);
    void                 addGroup (DrGroup*);
    void                 addObject (DrBase*);
    void                 clearConflict ();
    void                 removeOption (const QString&);
    void                 removeGroup (DrGroup*);
    bool                 isEmpty ();
//ig     virtual DriverItem*  createItem (DriverItem* /Transfer/, DriverItem* = 0);
//ig     DrBase*              findOption (const QString&, DrGroup** = 0);
//ig     DrGroup*             findGroup (DrGroup*, DrGroup** = 0);
    void                 setOptions (const QMap<QString,QString>&);
    void                 getOptions (QMap<QString,QString>&, bool = 0);
    DrBase*              clone ();
//ig     const QPtrList<DrGroup>& groups ();
//ig     const QPtrList<DrBase>& options ();

%If ( KDE_3_2_0 -  )
    static QString       groupForOption (const QString&);
%End


protected:
//ig     void                 createTree (DriverItem* /Transfer/);
//ig     void                 flattenGroup (QMap<QString,DrBase*>&, int&);

protected:

};  // class DrGroup

%End


%If ( KDE_3_1_0 -  )

class DrMain : DrGroup
{
%TypeHeaderCode
#include <driver.h>
%End


public:
                         DrMain ();
//ig     DriverItem*          createTreeView (QListView* /Transfer/);
    void                 addConstraint (DrConstraint*);
    int                  checkConstraints ();
    DrPageSize*          findPageSize (const QString&);
    void                 addPageSize (DrPageSize*);
    void                 removeOptionGlobally (const QString&);
    void                 removeGroupGlobally (DrGroup*);
//ig     QMap<QString,DrBase*> flatten ();
    DrMain*              cloneDriver ();

protected:

};  // class DrMain

%End


%If ( KDE_3_1_0 -  )

class DrChoiceGroup : DrGroup
{
%TypeHeaderCode
#include <driver.h>
%End


public:
                         DrChoiceGroup ();
//ig     DriverItem*          createItem (DriverItem* /Transfer/, DriverItem* = 0);

};  // class DrChoiceGroup

%End


%If ( KDE_3_1_0 -  )

class DrStringOption : DrBase
{
%TypeHeaderCode
#include <driver.h>
%End


public:
                         DrStringOption ();
    virtual QString      valueText ();
    virtual void         setValueText (const QString&);

protected:

};  // class DrStringOption

%End


%If ( KDE_3_1_0 -  )

class DrIntegerOption : DrBase
{
%TypeHeaderCode
#include <driver.h>
%End


public:
                         DrIntegerOption ();
    virtual QString      valueText ();
    virtual void         setValueText (const QString&);
    QString              fixedVal ();

protected:

};  // class DrIntegerOption

%End


%If ( KDE_3_1_0 -  )

class DrFloatOption : DrBase
{
%TypeHeaderCode
#include <driver.h>
%End


public:
                         DrFloatOption ();
    virtual QString      valueText ();
    virtual void         setValueText (const QString&);
    QString              fixedVal ();

protected:

};  // class DrFloatOption

%End


%If ( KDE_3_1_0 -  )

class DrListOption : DrBase
{
%TypeHeaderCode
#include <driver.h>
%End


public:
                         DrListOption ();
    void                 addChoice (DrBase*);
//ig     QPtrList<DrBase>*    choices ();
    DrBase*              currentChoice () const;
    DrBase*              findChoice (const QString&);
    void                 setChoice (int);
    virtual QString      valueText ();
    virtual QString      prettyText ();
    virtual void         setValueText (const QString&);
    void                 setOptions (const QMap<QString,QString>&);
    void                 getOptions (QMap<QString,QString>&, bool = 0);
//ig     DriverItem*          createItem (DriverItem* /Transfer/, DriverItem* = 0);
    DrBase*              clone ();

protected:

};  // class DrListOption

%End


%If ( KDE_3_1_0 -  )

class DrBooleanOption : DrListOption
{
%TypeHeaderCode
#include <driver.h>
%End


public:
                         DrBooleanOption ();

};  // class DrBooleanOption

%End


%If ( KDE_3_1_0 -  )

class DrConstraint
{
%TypeHeaderCode
#include <driver.h>
%End


public:
                         DrConstraint (const QString&, const QString&, const QString& = QString ::null , const QString& = QString ::null );
                         DrConstraint (const DrConstraint&);
    bool                 check (DrMain*);

protected:

};  // class DrConstraint

%End


%If ( KDE_3_1_0 -  )

class DrPageSize
{
%TypeHeaderCode
#include <driver.h>
%End


public:
                         DrPageSize (const QString&, int, int, int, int, int, int);
                         DrPageSize (const DrPageSize&);

%If ( KDE_3_2_0 -  )
    float                pageWidth () const;
    float                pageHeight () const;
    float                leftMargin () const;
    float                rightMargin () const;
    float                topMargin () const;
    float                bottomMargin () const;
    QString              pageName () const;
%End

    QSize                pageSize () const;
    QRect                pageRect () const;
    QSize                margins () const;

protected:

public:

%If (  - KDE_3_2_0 )
    QString              name () const;
%End


};  // class DrPageSize

%End