X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTexRow.h;h=a4edc6c544113b8ab6a4cf3f1c5969d20eba2ae5;hb=4e69b9bac5e970572b9cf9169e3db9060c47e3b6;hp=d3aa500c0434465dd5ee43fe679f8598513b8b36;hpb=6b87801d096c2e462b8202af22b0adea24bceff9;p=lyx.git diff --git a/src/TexRow.h b/src/TexRow.h index d3aa500c04..a4edc6c544 100644 --- a/src/TexRow.h +++ b/src/TexRow.h @@ -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. @@ -21,12 +21,12 @@ namespace lyx { /// Represents the correspondence between paragraphs and the generated -//LaTeX file +/// LaTeX file 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; };