2001-08-27 01:19:32 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QExternal.h
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-08-27 01:19:32 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author John Levon
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-08-27 01:19:32 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QEXTERNAL_H
|
|
|
|
#define QEXTERNAL_H
|
|
|
|
|
2003-03-05 11:30:35 +00:00
|
|
|
#include "QDialogView.h"
|
2003-10-07 22:59:58 +00:00
|
|
|
#include <map>
|
2003-03-05 11:30:35 +00:00
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
2001-08-27 01:19:32 +00:00
|
|
|
|
|
|
|
class ControlExternal;
|
|
|
|
class QExternalDialog;
|
|
|
|
|
2003-03-05 11:30:35 +00:00
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
class QExternal
|
2003-03-05 11:30:35 +00:00
|
|
|
: public QController<ControlExternal, QView<QExternalDialog> >
|
2001-08-27 01:19:32 +00:00
|
|
|
{
|
2002-10-20 01:48:28 +00:00
|
|
|
public:
|
2001-08-27 01:19:32 +00:00
|
|
|
friend class QExternalDialog;
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2003-03-05 11:30:35 +00:00
|
|
|
QExternal(Dialog &);
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2003-12-05 02:49:22 +00:00
|
|
|
typedef std::map<std::string, QString> MapType;
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
private:
|
2001-08-27 01:19:32 +00:00
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2003-10-07 22:59:58 +00:00
|
|
|
/// Helper function called when the template is changed.
|
|
|
|
void updateTemplate();
|
2003-12-05 02:49:22 +00:00
|
|
|
/// get bounding box from file
|
|
|
|
void getBB();
|
2003-10-07 22:59:58 +00:00
|
|
|
|
2003-12-05 02:49:22 +00:00
|
|
|
MapType extra_;
|
2001-08-27 01:19:32 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2001-08-27 01:19:32 +00:00
|
|
|
#endif // QEXTERNAL_H
|