]> git.lyx.org Git - lyx.git/blobdiff - src/TexRow.h
lilypond.lyx : Document music fragment options.
[lyx.git] / src / TexRow.h
index 804fbb1cf54154f4e73f8fe285f0e2be6e830c39..a4edc6c544113b8ab6a4cf3f1c5969d20eba2ae5 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Matthias Ettrich
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author John Levon
  *
  * Full author contact details are available in file CREDITS.
@@ -26,7 +26,7 @@ namespace lyx {
 class TexRow {
 public:
        ///
-       TexRow() : lastid(-1), lastpos(-1) {}
+       TexRow() : lastid(-1), lastpos(-1), started(false) {}
 
        /// Clears structure
        void reset();
@@ -37,6 +37,9 @@ public:
        /// Insert node when line is completed
        void newline();
 
+       /// Insert multiple nodes when zero or more lines are completed
+       void newlines(int num_lines);
+
        /**
         * getIdFromRow - find pid and position for a given row
         * @param row row number to find
@@ -87,6 +90,8 @@ private:
        int lastid;
        /// Last position
        int lastpos;
+       /// Is id/pos already registered for current row?
+       bool started;
 };