2001-08-28 01:27:35 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QInclude.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-28 01:27:35 +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-28 01:27:35 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QINCLUDE_H
|
|
|
|
#define QINCLUDE_H
|
|
|
|
|
|
|
|
|
2003-03-05 14:59:37 +00:00
|
|
|
#include "QDialogView.h"
|
|
|
|
|
2001-08-28 01:27:35 +00:00
|
|
|
|
|
|
|
class ControlInclude;
|
|
|
|
class QIncludeDialog;
|
|
|
|
|
|
|
|
///
|
2003-03-05 14:59:37 +00:00
|
|
|
class QInclude : public QController<ControlInclude, QView<QIncludeDialog> >
|
2001-08-28 01:27:35 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
friend class QIncludeDialog;
|
|
|
|
///
|
2003-03-05 14:59:37 +00:00
|
|
|
QInclude(Dialog &);
|
2001-08-28 01:27:35 +00:00
|
|
|
protected:
|
|
|
|
virtual bool isValid();
|
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
|
|
|
/// load the file
|
2002-03-21 21:21:28 +00:00
|
|
|
void load();
|
2001-08-28 01:27:35 +00:00
|
|
|
|
|
|
|
/// browse for a file
|
2002-03-21 21:21:28 +00:00
|
|
|
void browse();
|
2001-08-28 01:27:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QINCLUDE_H
|