2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-10-06 08:47:08 +00:00
|
|
|
* \file GuiTexInfo.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Edwin Leuven
|
2007-10-06 08:47:08 +00:00
|
|
|
* \author Herbert Voß
|
2006-03-05 17:24:44 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
#ifndef GUITEXINFO_H
|
|
|
|
#define GUITEXINFO_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
#include "GuiDialog.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_TexinfoUi.h"
|
2007-04-24 15:10:14 +00:00
|
|
|
|
2007-10-06 08:47:08 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-10-09 19:34:27 +00:00
|
|
|
class GuiTexInfo : public GuiDialog, public Ui::TexinfoUi
|
2007-08-31 22:16:11 +00:00
|
|
|
{
|
2007-04-24 15:10:14 +00:00
|
|
|
Q_OBJECT
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-04-24 15:10:14 +00:00
|
|
|
public:
|
2007-10-06 08:47:08 +00:00
|
|
|
///
|
2007-11-23 09:44:02 +00:00
|
|
|
GuiTexInfo(GuiView & lv);
|
2007-10-06 08:47:08 +00:00
|
|
|
/// the file extensions. order matters in GuiTexInfo::fileType()
|
2017-01-01 10:34:35 +00:00
|
|
|
enum TexFileType {
|
|
|
|
ClsType = 0,
|
|
|
|
StyType,
|
|
|
|
BstType,
|
|
|
|
BibType,
|
|
|
|
BbxType,
|
|
|
|
CbxType,
|
|
|
|
DummyLastType
|
|
|
|
};
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-04-24 15:10:14 +00:00
|
|
|
public Q_SLOTS:
|
2007-10-06 08:47:08 +00:00
|
|
|
///
|
2007-09-05 20:33:29 +00:00
|
|
|
void updateView();
|
2007-04-24 15:10:14 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
private Q_SLOTS:
|
2007-10-06 08:47:08 +00:00
|
|
|
///
|
2007-09-05 20:33:29 +00:00
|
|
|
void change_adaptor();
|
2007-10-06 08:47:08 +00:00
|
|
|
///
|
2007-09-05 20:33:29 +00:00
|
|
|
void rescanClicked();
|
2007-10-06 08:47:08 +00:00
|
|
|
///
|
2007-09-05 20:33:29 +00:00
|
|
|
void viewClicked();
|
2007-10-06 08:47:08 +00:00
|
|
|
///
|
2007-09-05 20:33:29 +00:00
|
|
|
void enableViewPB();
|
2007-04-24 15:10:14 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
private:
|
2007-10-06 08:47:08 +00:00
|
|
|
/// Nothing to initialise in this case.
|
|
|
|
bool initialiseParams(std::string const &) { return true; }
|
2006-03-05 17:24:44 +00:00
|
|
|
///
|
2007-10-06 08:47:08 +00:00
|
|
|
void clearParams() {}
|
|
|
|
///
|
|
|
|
void dispatchParams() {}
|
|
|
|
///
|
|
|
|
bool isBufferDependent() const { return false; }
|
|
|
|
///
|
|
|
|
void apply() {}
|
|
|
|
|
2008-03-08 07:59:47 +00:00
|
|
|
///
|
|
|
|
void updateStyles(TexFileType);
|
|
|
|
///
|
|
|
|
void updateStyles();
|
|
|
|
///
|
|
|
|
bool warningPosted_;
|
|
|
|
///
|
|
|
|
TexFileType activeStyle_;
|
|
|
|
|
2007-10-06 08:47:08 +00:00
|
|
|
/// show contents af a file
|
2008-03-08 07:59:47 +00:00
|
|
|
void viewFile(QString const & filename) const;
|
2007-10-06 08:47:08 +00:00
|
|
|
/// show all classoptions
|
2008-03-08 07:59:47 +00:00
|
|
|
//std::string classOptions(std::string const & filename) const;
|
2007-10-06 08:47:08 +00:00
|
|
|
|
2008-03-08 07:59:47 +00:00
|
|
|
QStringList texdata_[DummyLastType];
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
2007-10-06 08:47:08 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
#endif // GUITEXINFO_H
|