00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef __ktexteditor_printinterface_h__
00021
#define __ktexteditor_printinterface_h__
00022
00023
#include <kdelibs_export.h>
00024
00025
class QCString;
00026
00027
namespace KTextEditor
00028 {
00029
00033 class KTEXTEDITOR_EXPORT PrintInterface
00034 {
00035
friend class PrivatePrintInterface;
00036
00037
public:
00038 PrintInterface ();
00039
virtual ~PrintInterface ();
00040
00041
unsigned int printInterfaceNumber ()
const;
00042
00043
protected:
00044
void setPrintInterfaceDCOPSuffix (
const QCString &suffix);
00045
00046
00047
00048
00049
public:
00050
virtual bool printDialog () = 0;
00051
virtual bool print () = 0;
00052
00053
private:
00054
class PrivatePrintInterface *d;
00055
static unsigned int globalPrintInterfaceNumber;
00056
unsigned int myPrintInterfaceNumber;
00057 };
00058
00059 KTEXTEDITOR_EXPORT PrintInterface *printInterface (
class Document *doc);
00060
00061 }
00062
00063
#endif