]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutFile.h
Fix the rest of bug 5010.
[lyx.git] / src / LayoutFile.h
index e23d214bd0cec33d5d88a4ec4f9d596334b44ede..65feadb36fe05fc1d8d32121abd8c700482ad8d0 100644 (file)
@@ -45,8 +45,18 @@ private:
 };
 
 /// This class amounts to little more than a `strong typedef'.
+/// 
 /// A LayoutFile represents the layout information that is 
 /// contained in a *.layout file.
+/// 
+/// No document- (that is, Buffer-) specific information should 
+/// be placed in these objects. They are used as the basis for 
+/// constructing DocumentClass objects, which are what represent
+/// the layout information associated with a Buffer. (This is also 
+/// a subclass of TextClass, implemented in TextClass.{h,cpp}.)
+/// Buffer-specific information should therefore be placed in a
+/// DocumentClass object.
+/// 
 class LayoutFile : public TextClass, boost::noncopyable {
 public:
        /// check whether the TeX class is available
@@ -72,6 +82,7 @@ class LayoutFileList {
 public:
        ///
        LayoutFileList() {}
+       ~LayoutFileList();
        /// \return The sole instance of this class.
        static LayoutFileList & get();
        ///
@@ -89,8 +100,7 @@ public:
 
        enum Layout_Type {
                System,
-               Local,
-               Embedded
+               Local
        };
        
        /// add a textclass from user local directory.
@@ -103,7 +113,6 @@ public:
        std::vector<LayoutFileIndex> classList() const;
        /// 
        static std::string const localPrefix;
-       static std::string const embeddedPrefix;
 private:
        ///
        typedef std::map<std::string, LayoutFile *> ClassMap;