]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutFile.h
Fix the rest of bug 5010.
[lyx.git] / src / LayoutFile.h
index fd95c04e91ffab735187cfff1372cf3ad3a3904f..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
@@ -90,8 +100,7 @@ public:
 
        enum Layout_Type {
                System,
-               Local,
-               Embedded
+               Local
        };
        
        /// add a textclass from user local directory.
@@ -104,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;