]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalTemplate.h
reformatting and remove using delc
[lyx.git] / src / insets / ExternalTemplate.h
index d643f5d4837b9645861d3bdc301ad4a7347c024e..505365d2244790a963b5af6fbab598da040d6f0e 100644 (file)
@@ -72,14 +72,16 @@ struct ExternalTemplate {
 /**
    A singleton class that manages the external inset templates
 */
-class ExternalTemplateManager : public noncopyable {
+class ExternalTemplateManager : public boost::noncopyable {
 public:
        /// Map from the LyX name of the template to the template structure
        typedef std::map<string, ExternalTemplate> Templates;
-       
+
        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
-