21#ifndef _SERIALLETTER_INTERFACE_H_
22#define _SERIALLETTER_INTERFACE_H_
25#include <tdeinstance.h>
28#include <dcopobject.h>
29#include <koffice_export.h>
30typedef TQMap<TQString,TQString> DbRecord;
31#define KWSLUnspecified 0
35#define KWSLMergePreview 4
36#define KWSLMergeDocument 5
38#define KWSLCreate_text "create"
39#define KWSLOpen_text "open"
46class KWORD_EXPORT KWMailMergeDataSource: public TQObject, public DCOPObject
52 KWMailMergeDataSource(TDEInstance* inst,TQObject *parent);
53 virtual ~KWMailMergeDataSource(){;}
54 virtual class TQString getValue( const class TQString &name, int record = -1 ) const=0;
56 const TQMap< TQString, TQString > &getRecordEntries() const;
58 TDEInstance *KWInstance(){ return m_instance;}
59 virtual bool showConfigDialog( class TQWidget*, int) =0;
61 virtual void save(TQDomDocument&, TQDomElement&)=0;
62 virtual void load( class TQDomElement& elem )=0;
64 virtual void refresh( bool force)=0;
67 DbRecord sampleRecord;
69 TDEInstance *m_instance;
71 virtual int getNumRecords() const =0;
|