File indexing completed on 2024-05-12 16:41:07

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 TABULARCELL_H
0017 #define TABULARCELL_H
0018 
0019 #include <QTableWidgetItem>
0020 
0021 namespace KileDocument {
0022 class LatexCommands;
0023 }
0024 
0025 namespace KileDialog {
0026 
0027 class TabularProperties;
0028 
0029 class TabularCell : public QTableWidgetItem {
0030 public:
0031     enum { None = 0, Left = 1, Top = 2, Right = 4, Bottom = 8 };
0032 
0033     TabularCell();
0034     explicit TabularCell(const QString &text);
0035 
0036     void setBorder(int border);
0037     int border() const;
0038 
0039     QString toLaTeX( TabularProperties &properties ) const;
0040 
0041 private:
0042     int m_Border;
0043 };
0044 
0045 }
0046 
0047 #endif