X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FExternalTemplate.h;h=e5b6755059700b009b756ea12edea6b70cc19a47;hb=b73879691f816b0874d9dec0c09e2db7889c4e8e;hp=23f1f78802ffb9d98d7977ac36a10fce38e41ad1;hpb=4a1be58591ea5a7431d9426abb27d8b946c634cb;p=lyx.git diff --git a/src/insets/ExternalTemplate.h b/src/insets/ExternalTemplate.h index 23f1f78802..e5b6755059 100644 --- a/src/insets/ExternalTemplate.h +++ b/src/insets/ExternalTemplate.h @@ -15,7 +15,7 @@ #include "ExternalTransforms.h" -#include +#include namespace lyx { @@ -53,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. */ @@ -105,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(); @@ -124,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;