]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutFile.h
this we don't need anymore
[lyx.git] / src / LayoutFile.h
index ed38f0ccad38b1f3c9d7609251defbdce110dd9e..fd95c04e91ffab735187cfff1372cf3ad3a3904f 100644 (file)
@@ -72,6 +72,7 @@ class LayoutFileList {
 public:
        ///
        LayoutFileList() {}
+       ~LayoutFileList();
        /// \return The sole instance of this class.
        static LayoutFileList & get();
        ///
@@ -86,15 +87,24 @@ public:
        bool read();
        /// Clears the textclass so as to force it to be reloaded
        void reset(LayoutFileIndex const & tc);
+
+       enum Layout_Type {
+               System,
+               Local,
+               Embedded
+       };
+       
        /// add a textclass from user local directory.
        /// \return the identifier for the loaded file, or else an
        /// empty string if no file was loaded.
        LayoutFileIndex
-               addLayoutFile(std::string const & textclass, std::string const & path);
+               addLayoutFile(std::string const & textclass, std::string const & path,
+                       Layout_Type type);
        /// a list of the available classes
        std::vector<LayoutFileIndex> classList() const;
        /// 
        static std::string const localPrefix;
+       static std::string const embeddedPrefix;
 private:
        ///
        typedef std::map<std::string, LayoutFile *> ClassMap;