You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
339 lines
7.4 KiB
339 lines
7.4 KiB
//
|
|
// Copyright 2005 Jim Bublitz <jbublitz@nwinternet.com>
|
|
// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson
|
|
// may also apply
|
|
|
|
|
|
// Generated by preSip
|
|
// module tdeprint 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 TQString& get (const TQString&) const;
|
|
void set (const TQString&, const TQString&);
|
|
bool has (const TQString&) const;
|
|
const TQString& name () const;
|
|
void setName (const TQString&);
|
|
bool conflict () const;
|
|
void setConflict (bool);
|
|
virtual TQString valueText ();
|
|
virtual TQString prettyText ();
|
|
virtual void setValueText (const TQString&);
|
|
//ig virtual DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0);
|
|
virtual void setOptions (const TQMap<TQString,TQString>&);
|
|
virtual void getOptions (TQMap<TQString,TQString>&, 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 TQString&);
|
|
void removeGroup (DrGroup*);
|
|
bool isEmpty ();
|
|
//ig virtual DriverItem* createItem (DriverItem* /Transfer/, DriverItem* = 0);
|
|
//ig DrBase* findOption (const TQString&, DrGroup** = 0);
|
|
//ig DrGroup* findGroup (DrGroup*, DrGroup** = 0);
|
|
void setOptions (const TQMap<TQString,TQString>&);
|
|
void getOptions (TQMap<TQString,TQString>&, bool = 0);
|
|
DrBase* clone ();
|
|
//ig const TQPtrList<DrGroup>& groups ();
|
|
//ig const TQPtrList<DrBase>& options ();
|
|
|
|
%If ( KDE_3_2_0 - )
|
|
static TQString groupForOption (const TQString&);
|
|
%End
|
|
|
|
|
|
protected:
|
|
//ig void createTree (DriverItem* /Transfer/);
|
|
//ig void flattenGroup (TQMap<TQString,DrBase*>&, int&);
|
|
|
|
protected:
|
|
|
|
}; // class DrGroup
|
|
|
|
%End
|
|
|
|
|
|
%If ( KDE_3_1_0 - )
|
|
|
|
class DrMain : DrGroup
|
|
{
|
|
%TypeHeaderCode
|
|
#include <driver.h>
|
|
%End
|
|
|
|
|
|
public:
|
|
DrMain ();
|
|
//ig DriverItem* createTreeView (TQListView* /Transfer/);
|
|
void addConstraint (DrConstraint*);
|
|
int checkConstraints ();
|
|
DrPageSize* findPageSize (const TQString&);
|
|
void addPageSize (DrPageSize*);
|
|
void removeOptionGlobally (const TQString&);
|
|
void removeGroupGlobally (DrGroup*);
|
|
//ig TQMap<TQString,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 TQString valueText ();
|
|
virtual void setValueText (const TQString&);
|
|
|
|
protected:
|
|
|
|
}; // class DrStringOption
|
|
|
|
%End
|
|
|
|
|
|
%If ( KDE_3_1_0 - )
|
|
|
|
class DrIntegerOption : DrBase
|
|
{
|
|
%TypeHeaderCode
|
|
#include <driver.h>
|
|
%End
|
|
|
|
|
|
public:
|
|
DrIntegerOption ();
|
|
virtual TQString valueText ();
|
|
virtual void setValueText (const TQString&);
|
|
TQString fixedVal ();
|
|
|
|
protected:
|
|
|
|
}; // class DrIntegerOption
|
|
|
|
%End
|
|
|
|
|
|
%If ( KDE_3_1_0 - )
|
|
|
|
class DrFloatOption : DrBase
|
|
{
|
|
%TypeHeaderCode
|
|
#include <driver.h>
|
|
%End
|
|
|
|
|
|
public:
|
|
DrFloatOption ();
|
|
virtual TQString valueText ();
|
|
virtual void setValueText (const TQString&);
|
|
TQString fixedVal ();
|
|
|
|
protected:
|
|
|
|
}; // class DrFloatOption
|
|
|
|
%End
|
|
|
|
|
|
%If ( KDE_3_1_0 - )
|
|
|
|
class DrListOption : DrBase
|
|
{
|
|
%TypeHeaderCode
|
|
#include <driver.h>
|
|
%End
|
|
|
|
|
|
public:
|
|
DrListOption ();
|
|
void addChoice (DrBase*);
|
|
//ig TQPtrList<DrBase>* choices ();
|
|
DrBase* currentChoice () const;
|
|
DrBase* findChoice (const TQString&);
|
|
void setChoice (int);
|
|
virtual TQString valueText ();
|
|
virtual TQString prettyText ();
|
|
virtual void setValueText (const TQString&);
|
|
void setOptions (const TQMap<TQString,TQString>&);
|
|
void getOptions (TQMap<TQString,TQString>&, 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 TQString&, const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::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 TQString&, 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;
|
|
TQString pageName () const;
|
|
%End
|
|
|
|
TQSize pageSize () const;
|
|
TQRect pageRect () const;
|
|
TQSize margins () const;
|
|
|
|
protected:
|
|
|
|
public:
|
|
|
|
%If ( - KDE_3_2_0 )
|
|
TQString name () const;
|
|
%End
|
|
|
|
|
|
}; // class DrPageSize
|
|
|
|
%End
|
|
|