X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FExternalTemplate.h;h=e5b6755059700b009b756ea12edea6b70cc19a47;hb=9762ba5d388e8a81a6e58c464b635ca4cf48cbfa;hp=4392870057d3969c20d8729edf336b205575d312;hpb=6056db3212555ce5b7c599a350e95e9a4b5d1853;p=lyx.git diff --git a/src/insets/ExternalTemplate.h b/src/insets/ExternalTemplate.h index 4392870057..e5b6755059 100644 --- a/src/insets/ExternalTemplate.h +++ b/src/insets/ExternalTemplate.h @@ -15,8 +15,6 @@ #include "ExternalTransforms.h" -#include - #include namespace lyx { @@ -55,7 +53,7 @@ public: /// What will the button in the GUI say? std::string guiName; /// A short help text - std::string helpText; + docstring helpText; /** The format of the input file. Can be "*", in which case we try and * ascertain the format from the contents of the file. */ @@ -107,14 +105,14 @@ public: /** * A singleton class that manages the external inset templates */ -class TemplateManager : boost::noncopyable { +class TemplateManager { public: /// Map from the LyX name of the template to the template structure typedef std::map Templates; /** Map from the LyX name of the preamble definition to the preamble * definition itself. */ - typedef std::map PreambleDefs; + typedef std::map PreambleDefs; static TemplateManager & get(); @@ -126,9 +124,13 @@ public: /** return the preamble definition by LyX name. * If it isn't found, return an empty std::string. */ - std::string const getPreambleDefByName(std::string const & name) const; + docstring getPreambleDefByName(std::string const & name) const; + /// noncopyable + TemplateManager(TemplateManager const &) = delete; + void operator=(TemplateManager const &) = delete; private: TemplateManager(); + void readTemplates(support::FileName const & path); void dumpTemplates(std::ostream &) const; void dumpPreambleDefs(std::ostream &) const;