]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalTemplate.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / ExternalTemplate.h
index e7ad1521451c1997ca95d07d05cdaf0d5262c6b1..314ca06e6e94dbcd69fc70b518a5c84f1400ebb4 100644 (file)
 
 #include <boost/utility.hpp>
 
+namespace lyx {
+
+namespace support { class FileName; }
+
 class LyXLex;
 
-namespace lyx {
 namespace external {
 
 class Template {
@@ -70,7 +73,7 @@ public:
                /// The format of this file.
                std::string updateFormat;
                /// What features does this external inset require?
-               std::string requirement;
+               std::vector<std::string> requirements;
                /// A collection of preamble snippets identified by name.
                std::vector<std::string> preambleNames;
                /// A list of options to the basic command.
@@ -81,7 +84,7 @@ public:
                std::map<TransformID, TransformStore> option_transformers;
 
                typedef std::map<std::string,
-                                std::vector<std::string> > FileMap;
+                                std::vector<std::string> > FileMap;
                /// Referenced files for some formats
                FileMap referencedFiles;
        };
@@ -116,7 +119,7 @@ public:
        std::string const getPreambleDefByName(std::string const & name) const;
 private:
        TemplateManager();
-       void readTemplates(std::string const & path);
+       void readTemplates(support::FileName const & path);
        void dumpTemplates(std::ostream &) const;
        void dumpPreambleDefs(std::ostream &) const;