1995-05-16 09:35:12 +00:00
|
|
|
#ifndef __GOLEM_H
|
|
|
|
#define __GOLEM_H
|
|
|
|
|
1995-06-19 08:13:19 +00:00
|
|
|
#ifndef __WINDOW_H
|
|
|
|
#include <window.h>
|
1995-05-16 09:35:12 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
class TConfig;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __RELATION_H
|
|
|
|
class TRelation;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Generic Object Linking & Embedding Mechanism
|
|
|
|
|
|
|
|
class TGolem : public TSortable
|
|
|
|
{
|
|
|
|
static long _count;
|
|
|
|
static TConfig* _config;
|
|
|
|
static TFilename* _path;
|
|
|
|
static TRelation* _golem;
|
|
|
|
|
|
|
|
TString16 _class;
|
|
|
|
long _id;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
const TFilename& path(bool test = FALSE) const;
|
|
|
|
const char* ext() const;
|
|
|
|
TConfig& config() const;
|
|
|
|
long new_id() const;
|
|
|
|
|
|
|
|
protected:// TSortable
|
|
|
|
virtual int compare(const TSortable& o) const;
|
|
|
|
|
|
|
|
public: // TObject
|
|
|
|
virtual const char* class_name() const;
|
|
|
|
virtual word class_id() const;
|
|
|
|
virtual bool ok() const;
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual short icon() const;
|
|
|
|
virtual bool edit();
|
|
|
|
virtual bool import();
|
|
|
|
|
|
|
|
long id() const { return _id; }
|
|
|
|
|
|
|
|
TGolem(const char* cls, long id);
|
|
|
|
virtual ~TGolem();
|
|
|
|
};
|
|
|
|
|
1995-06-19 08:13:19 +00:00
|
|
|
|
|
|
|
class TDDE : public TWindow
|
|
|
|
{
|
|
|
|
word _hwnd;
|
|
|
|
word _server;
|
|
|
|
long _old_hook;
|
|
|
|
|
|
|
|
public:
|
|
|
|
void set_server(word s) { _server = s; }
|
|
|
|
bool initiate(const char* app, const char* topic);
|
|
|
|
bool execute(const char* cmd) const;
|
|
|
|
void terminate();
|
|
|
|
|
|
|
|
TDDE();
|
|
|
|
virtual ~TDDE();
|
|
|
|
};
|
|
|
|
|
1995-05-16 09:35:12 +00:00
|
|
|
#endif
|