X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftexrow.h;h=674d3c58dc8060a652d04ca353c05d2d5730dc11;hb=9e5bd1d609877e602cb697bc695d410e2ab48e0d;hp=f71bc20507638102be7b39d82da3eb03b77df953;hpb=dfe1bc44b44903faf77ef454c98c4c3e56c1d5e3;p=lyx.git diff --git a/src/texrow.h b/src/texrow.h index f71bc20507..674d3c58dc 100644 --- a/src/texrow.h +++ b/src/texrow.h @@ -1,11 +1,11 @@ // -*- C++ -*- /* This file is part of - * ====================================================== + * ====================================================== * * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1995-1998 The LyX Team + * Copyright 1995-2000 The LyX Team * * ====================================================== */ @@ -16,6 +16,8 @@ #pragma interface #endif +#include + class LyXParagraph; // Controls correspondance between paragraphs and the generated LaTeX file @@ -24,38 +26,32 @@ public: /// TexRow() { count = 0; - next = 0; lastpar = 0; lastpos = -1; } - /// - ~TexRow() { - reset(); - } /// Clears structure void reset(); /// Define what paragraph and position the next row will represent - void start(LyXParagraph *par, int pos); + void start(LyXParagraph * par, int pos); /// Insert node when line is completed void newline(); /// Returns paragraph id and position from a row number - void getIdFromRow(int row, int &id, int &pos); + void getIdFromRow(int row, int & id, int & pos); /// Appends another TexRow - TexRow & operator+=(const TexRow &); + TexRow & operator+= (TexRow const &); private: /// Linked list of items - struct TexRow_Item { + struct RowItem { /// - TexRow_Item() { + RowItem() { id = -1; pos = -1; - next = 0; rownumber = 0; } @@ -65,13 +61,13 @@ private: int pos; /// int rownumber; - /// - TexRow_Item *next; }; /// unsigned int count; /// - TexRow_Item *next; + typedef std::list RowList; + /// + RowList rowlist; /// Last paragraph LyXParagraph * lastpar; /// Last position