4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
16 #include "GuiDialog.h"
17 #include "ui_TexinfoUi.h"
18 #include "frontend_helpers.h"
27 class GuiTexInfo : public GuiDialog, public Ui::TexinfoUi, public Controller
33 GuiTexInfo(LyXView & lv);
34 /// the file extensions. order matters in GuiTexInfo::fileType()
35 enum TexFileType {ClsType, StyType, BstType};
43 void change_adaptor();
53 void closeEvent(QCloseEvent * e);
55 Controller & controller() { return *this; }
57 void updateStyles(TexFileType);
63 TexFileType activeStyle;
64 /// Nothing to initialise in this case.
65 bool initialiseParams(std::string const &) { return true; }
69 void dispatchParams() {}
71 bool isBufferDependent() const { return false; }
75 /// show contents af a file
76 void viewFile(std::string const & filename) const;
77 /// show all classoptions
78 std::string classOptions(std::string const & filename) const;
79 /// return file type as string
80 std::string fileType(TexFileType type) const;
82 typedef std::vector<std::string> ContentsType;
83 std::map<TexFileType, ContentsType> texdata_;
87 } // namespace frontend
90 #endif // GUITEXINFO_H