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 "qt_helpers.h"
27 class GuiTexInfo : public GuiDialog, public Ui::TexinfoUi
33 GuiTexInfo(GuiView & lv);
34 /// the file extensions. order matters in GuiTexInfo::fileType()
35 enum TexFileType { ClsType, StyType, BstType };
43 void change_adaptor();
53 void updateStyles(TexFileType);
59 TexFileType activeStyle;
60 /// Nothing to initialise in this case.
61 bool initialiseParams(std::string const &) { return true; }
65 void dispatchParams() {}
67 bool isBufferDependent() const { return false; }
71 /// show contents af a file
72 void viewFile(std::string const & filename) const;
73 /// show all classoptions
74 std::string classOptions(std::string const & filename) const;
75 /// return file type as string
76 std::string fileType(TexFileType type) const;
78 typedef std::vector<std::string> ContentsType;
79 std::map<TexFileType, ContentsType> texdata_;
83 } // namespace frontend
86 #endif // GUITEXINFO_H