]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
fix reading the author field.
[lyx.git] / src / buffer.h
index 50b1cc2427baf88813310232f8826c6c77b70dfd..20dd748ef0de91d9f57c17cd7f68fd775b3b927b 100644 (file)
@@ -39,7 +39,7 @@ class LyXText;
 class LyXVC;
 class LaTeXFeatures;
 class Language;
-class Messages;
+class MacroData;
 class OutputParams;
 class ParagraphList;
 class ParConstIterator;
@@ -95,7 +95,7 @@ public:
            \param par if != 0 insert the file.
            \return \c false if file is not completely read.
        */
-       bool readBody(LyXLex &);
+       bool readDocument(LyXLex &);
 
        ///
        void insertStringAsLines(ParagraphList & plist,
@@ -308,6 +308,18 @@ public:
        ///
        InsetBase & inset() const;
 
+       //
+       // Macro handling
+       //
+       ///
+       void buildMacros();
+       ///
+       bool hasMacro(std::string const & name) const;
+       ///
+       MacroData const & getMacro(std::string const & name) const;
+       ///
+       void insertMacro(std::string const & name, MacroData const & data);
+
 private:
        /** Inserts a file into a document
            \param par if != 0 insert the file.