]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalTemplate.h
fix compilation pb ; update eu.po
[lyx.git] / src / insets / ExternalTemplate.h
index a0dfcbd7f9a5d79ef14c38ef116130ee4717dac2..97670011b170886126019e74641fc19cb4953288 100644 (file)
@@ -19,7 +19,7 @@
 #include <iosfwd>
 #include <map>
 #include "LString.h"
-#include "support/utility.hpp"
+#include <boost/utility.hpp>
 
 class LyXLex;
 
@@ -72,7 +72,7 @@ struct ExternalTemplate {
 /**
    A singleton class that manages the external inset templates
 */
-class ExternalTemplateManager : public noncopyable {
+class ExternalTemplateManager : boost::noncopyable {
 public:
        /// Map from the LyX name of the template to the template structure
        typedef std::map<string, ExternalTemplate> Templates;
@@ -80,6 +80,8 @@ public:
        static ExternalTemplateManager & get();
        Templates & getTemplates();
        Templates const & getTemplates() const;
+       /// return the template by LyX name 
+       ExternalTemplate const & getTemplateByName(const string & name);
 private:
        ExternalTemplateManager();
        void readTemplates(string const & path);
@@ -88,4 +90,3 @@ private:
 };
 
 #endif
-