]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlTexinfo.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlTexinfo.h
index 82080f43f3a368ca0cef05c050433538be83919e..0b000e197a9ea3f84db15e767e884edae59454c1 100644 (file)
@@ -16,6 +16,9 @@
 #include "Dialog.h"
 #include "tex_helpers.h"
 
+namespace lyx {
+namespace frontend {
+
 /** A controller for Texinfo dialogs. */
 
 class ControlTexinfo : public Dialog::Controller {
@@ -23,7 +26,7 @@ public:
        ///
        ControlTexinfo(Dialog &);
        /// Nothing to initialise in this case.
-       virtual bool initialiseParams(string const &) { return true; }
+       virtual bool initialiseParams(std::string const &) { return true; }
        ///
        virtual void clearParams() {}
        ///
@@ -35,9 +38,11 @@ public:
        /// the file extensions
        enum texFileSuffix {cls, sty, bst};
        /// show contents af a file
-       void viewFile(string const & filename) const;
+       void viewFile(std::string const & filename) const;
        /// show all classoptions
-       string const getClassOptions(string const & filename) const;
+       std::string const getClassOptions(std::string const & filename) const;
+       /// return file type as string
+       std::string const getFileType(ControlTexinfo::texFileSuffix type) const;
 private:
        ///
        virtual void apply() {}
@@ -48,6 +53,9 @@ private:
  *  Each entry in the file list is returned as a pair<name_with_path, name_only>
  */
 void getTexFileList(ControlTexinfo::texFileSuffix type,
-                   std::vector<string> & contents);
+                   std::vector<std::string> & contents, bool withPath);
+
+} // namespace frontend
+} // namespace lyx
 
 #endif // CONTROLTEXINFO_H