File indexing completed on 2024-05-12 16:41:06
0001 /*************************************************************************** 0002 begin : Sunday Jun 27 2008 0003 copyright : (C) 2008 by Mathias Soeken 0004 email : msoeken@informatik.uni-bremen.de 0005 ***************************************************************************/ 0006 0007 /*************************************************************************** 0008 * * 0009 * This program is free software; you can redistribute it and/or modify * 0010 * it under the terms of the GNU General Public License as published by * 0011 * the Free Software Foundation; either version 2 of the License, or * 0012 * (at your option) any later version. * 0013 * * 0014 ***************************************************************************/ 0015 0016 #ifndef MULTICOLUMNBORDERHELPER_H 0017 #define MULTICOLUMNBORDERHELPER_H 0018 0019 #include <utility> 0020 0021 #include <QString> 0022 #include <QVector> 0023 0024 namespace KileDialog { 0025 0026 /** 0027 * @brief A helper class for managing multi column borders 0028 */ 0029 class MultiColumnBorderHelper { 0030 public: 0031 MultiColumnBorderHelper(); 0032 void addColumn(int column); 0033 void finish(); 0034 QString toLaTeX() const; 0035 0036 private: 0037 QVector<std::pair<int,int> > m_SpanColumns; 0038 int m_FirstNumber; 0039 int m_LastNumber; 0040 }; 0041 0042 } 0043 0044 #endif