]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalTemplate.h
File format change caused by 34eadf5d4.
[lyx.git] / src / insets / ExternalTemplate.h
index cb3f8f93b3595aeb7bbd6f8f136259c9a9a44128..18d9835f28fd4e0dbfc30237272e29fc935a4599 100644 (file)
@@ -15,7 +15,9 @@
 
 #include "ExternalTransforms.h"
 
-#include <boost/utility.hpp>
+#include <boost/noncopyable.hpp>
+
+#include <vector>
 
 namespace lyx {
 
@@ -23,6 +25,12 @@ namespace support { class FileName; }
 
 class Lexer;
 
+enum PreviewMode {
+       PREVIEW_OFF = 0,
+       PREVIEW_GRAPHICS,
+       PREVIEW_INSTANT
+};
+
 namespace external {
 
 class Template {
@@ -56,6 +64,8 @@ public:
        std::string fileRegExp;
        /// Should we do automatic production of the output?
        bool automaticProduction;
+       /// How should we preview the data in LyX?
+       PreviewMode preview_mode;
        /// A collection of transforms that we can use to transform the data.
        std::vector<TransformID> transformIds;
 
@@ -97,7 +107,7 @@ 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<std::string, Template> Templates;
@@ -119,6 +129,10 @@ public:
        std::string const getPreambleDefByName(std::string const & name) const;
 private:
        TemplateManager();
+       /// noncopyable
+       TemplateManager(TemplateManager const &);
+       void operator=(TemplateManager const &);
+
        void readTemplates(support::FileName const & path);
        void dumpTemplates(std::ostream &) const;
        void dumpPreambleDefs(std::ostream &) const;