X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTexRow.h;h=a4edc6c544113b8ab6a4cf3f1c5969d20eba2ae5;hb=dae8555234f0e5c8358b91c307d91b219c664617;hp=da406d08ad20c48a822cc4042390416525029032;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/TexRow.h b/src/TexRow.h index da406d08ad..a4edc6c544 100644 --- a/src/TexRow.h +++ b/src/TexRow.h @@ -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; };