2002-01-19 13:48:05 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QTexinfo.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.
|
2002-01-19 13:48:05 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author Edwin Leuven
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-01-19 13:48:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QTEXINFO_H
|
|
|
|
#define QTEXINFO_H
|
|
|
|
|
|
|
|
|
2003-06-19 17:16:12 +00:00
|
|
|
#include "QDialogView.h"
|
2002-01-19 13:48:05 +00:00
|
|
|
#include "ControlTexinfo.h"
|
|
|
|
|
2003-06-20 14:03:49 +00:00
|
|
|
#include <map>
|
2002-10-20 01:48:28 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2002-01-19 13:48:05 +00:00
|
|
|
class QTexinfoDialog;
|
|
|
|
|
|
|
|
///
|
|
|
|
class QTexinfo
|
2003-06-19 17:16:12 +00:00
|
|
|
: public QController<ControlTexinfo, QView<QTexinfoDialog> > {
|
2002-01-19 13:48:05 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
friend class QTexinfoDialog;
|
|
|
|
///
|
2003-06-19 17:16:12 +00:00
|
|
|
QTexinfo(Dialog &);
|
2002-01-19 13:48:05 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
2002-10-20 01:48:28 +00:00
|
|
|
virtual void apply() {}
|
2002-01-19 13:48:05 +00:00
|
|
|
/// update (do we need this?)
|
2002-10-20 01:48:28 +00:00
|
|
|
virtual void update_contents() {}
|
2002-01-19 13:48:05 +00:00
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
///
|
|
|
|
void updateStyles(ControlTexinfo::texFileSuffix);
|
|
|
|
///
|
|
|
|
void updateStyles();
|
|
|
|
///
|
|
|
|
bool warningPosted;
|
|
|
|
///
|
|
|
|
ControlTexinfo::texFileSuffix activeStyle;
|
2002-07-23 13:12:55 +00:00
|
|
|
///
|
2003-06-20 14:03:49 +00:00
|
|
|
typedef std::vector<string> ContentsType;
|
|
|
|
std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
|
2002-01-19 13:48:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QTEXINFO_H
|