]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.h
* src/LyXRC.{cpp,h}:
[lyx.git] / src / Paragraph.h
index 9de84bf057361b1fdfc5964afb08a18ddc2cc429..30c033b4875be3516646fe6dac79048e8be69c04 100644 (file)
 
 #include "insets/InsetCode.h"
 
-#include "support/docstring.h"
-// FIXME: would be nice to forward declare odocstream instead of
-// including this:
-#include "support/docstream.h"
+#include "support/strfwd.h"
+#include "support/types.h"
 
 namespace lyx {
 
@@ -346,6 +344,15 @@ public:
        /// was previously past that position. Return 0 otherwise.
        int checkBiblio(bool track_changes);
 
+       /// To resolve macros properly the paragraphs are numbered.
+       /// Every macro definition is stored with its paragraph number
+       /// as well. Only those macros with a smaller number become 
+       /// visible in a paragraph (plus those in the same paragraph, but
+       /// in an earlier inset.
+       unsigned int macrocontextPosition() const;
+       ///
+       void setMacrocontextPosition(unsigned int pos);
+
        /// For each author, set 'used' to true if there is a change
        /// by this author in the paragraph.
        void checkAuthors(AuthorList const & authorList);