2003-02-25 14:51:38 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-04-25 01:24:38 +00:00
|
|
|
* \file MailInset.h
|
2003-02-25 14:51:38 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Angus Leeming
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-02-25 14:51:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MAILINSET_H
|
|
|
|
#define MAILINSET_H
|
|
|
|
|
2003-10-06 15:43:21 +00:00
|
|
|
#include <string>
|
2003-02-25 14:51:38 +00:00
|
|
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
2007-04-29 13:39:47 +00:00
|
|
|
class Inset;
|
2003-07-23 09:54:21 +00:00
|
|
|
class Buffer;
|
2003-03-10 22:12:07 +00:00
|
|
|
class BufferView;
|
2003-02-25 14:51:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MailInset {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
virtual ~MailInset() {};
|
|
|
|
///
|
2003-03-10 22:12:07 +00:00
|
|
|
void showDialog(BufferView *) const;
|
2003-02-25 14:51:38 +00:00
|
|
|
///
|
2003-03-10 22:12:07 +00:00
|
|
|
void updateDialog(BufferView *) const;
|
2003-02-25 14:51:38 +00:00
|
|
|
///
|
|
|
|
void hideDialog() const;
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual std::string const inset2string(Buffer const &) const = 0;
|
2003-02-25 14:51:38 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
///
|
2007-04-29 13:39:47 +00:00
|
|
|
virtual Inset & inset() const = 0;
|
2003-02-25 14:51:38 +00:00
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual std::string const & name() const = 0;
|
2003-02-25 14:51:38 +00:00
|
|
|
};
|
|
|
|
|
2003-12-11 15:23:15 +00:00
|
|
|
void print_mailer_error(std::string const & class_name,
|
|
|
|
std::string const & data,
|
|
|
|
int arg_id, std::string const & arg);
|
|
|
|
|
2003-02-25 14:51:38 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2003-02-25 14:51:38 +00:00
|
|
|
#endif // MAILINSET_H
|