]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclass.h
do not create invalid .lyx files when importing \i{}, \j{}, \l{} or \L{}.
[lyx.git] / src / lyxtextclass.h
index e2b05c06bcefdd156db00685c50e29db826a1028..c2e36f3ea4a08bf6c0ca6fbf5d985a82e5468c77 100644 (file)
@@ -20,6 +20,8 @@
 
 namespace lyx {
 
+namespace support { class FileName; }
+
 class LyXLex;
 class Counters;
 class FloatList;
@@ -34,7 +36,7 @@ public:
        std::string latexparam;
        LyXFont font;
        LyXFont labelfont;
-       std::string preamble;
+       docstring preamble;
 };
 
 
@@ -65,7 +67,7 @@ public:
        const_iterator end() const { return layoutlist_.end(); }
 
        /// Performs the read of the layout file.
-       bool read(std::string const & filename, bool merge = false);
+       bool read(support::FileName const & filename, bool merge = false);
        ///
        void readOutputType(LyXLex &);
        ///
@@ -122,7 +124,7 @@ public:
        ///
        std::string const & pagestyle() const;
        ///
-       std::string const & preamble() const;
+       docstring const & preamble() const;
 
        /// Packages that are already loaded by the class
        enum Provides {
@@ -205,7 +207,7 @@ private:
        ///
        std::string defaultlayout_;
        /// preamble text to support layout styles
-       std::string preamble_;
+       docstring preamble_;
        /// latex packages loaded by document class.
        Provides provides_;
        ///