]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutFile.h
Some comments.
[lyx.git] / src / LayoutFile.h
index ed38f0ccad38b1f3c9d7609251defbdce110dd9e..0a5ec3472b323b95d284564072c3087100698b4c 100644 (file)
@@ -72,6 +72,7 @@ class LayoutFileList {
 public:
        ///
        LayoutFileList() {}
+       ~LayoutFileList();
        /// \return The sole instance of this class.
        static LayoutFileList & get();
        ///
@@ -86,11 +87,18 @@ public:
        bool read();
        /// Clears the textclass so as to force it to be reloaded
        void reset(LayoutFileIndex const & tc);
+
+       enum Layout_Type {
+               System,
+               Local
+       };
+       
        /// 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;
        ///