File indexing completed on 2025-02-16 13:49:56
0001 /* 0002 ** 0003 ** Copyright (C) 2002 Robert JACOLIN 0004 ** 0005 ** This library is free software; you can redistribute it and/or 0006 ** modify it under the terms of the GNU Library General Public 0007 ** License as published by the Free Software Foundation; either 0008 ** version 2 of the License, or (at your option) any later version. 0009 ** 0010 ** This library is distributed in the hope that it will be useful, 0011 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0013 ** Library General Public License for more details. 0014 ** 0015 ** To receive a copy of the GNU Library General Public License, write to the 0016 ** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301, USA. 0018 ** 0019 */ 0020 0021 #ifndef __CALLIGRA_SHEETS_LATEX_COLUMN_H__ 0022 #define __CALLIGRA_SHEETS_LATEX_COLUMN_H__ 0023 0024 #include <QString> 0025 #include <QTextStream> 0026 0027 #include "config.h" 0028 #include "format.h" 0029 #include "xmlparser.h" 0030 0031 /***********************************************************************/ 0032 /* Class: Column */ 0033 /***********************************************************************/ 0034 0035 /** 0036 * This class hold a column. 0037 */ 0038 class Column: public Format 0039 { 0040 0041 /* USEFUL DATA */ 0042 long _col; 0043 double _width; 0044 0045 public: 0046 /** 0047 * Constructors 0048 * 0049 */ 0050 0051 /** 0052 * Creates a new instance of Column. 0053 */ 0054 Column(); 0055 0056 /* 0057 * Destructor 0058 * 0059 * The destructor must remove the list of frames. 0060 */ 0061 0062 ~Column() override; 0063 0064 /** 0065 * getters 0066 */ 0067 0068 long getCol() const { 0069 return _col; 0070 } 0071 double getWidth() const { 0072 return _width; 0073 } 0074 0075 /** 0076 * setters 0077 */ 0078 void setCol(int c) { 0079 _col = c; 0080 } 0081 void setWidth(double w) { 0082 _width = w; 0083 } 0084 0085 /** 0086 * Helpful functions 0087 */ 0088 void analyze(const QDomNode) override; 0089 void generate(QTextStream&); 0090 0091 private: 0092 0093 }; 0094 0095 #endif /* __CALLIGRA_SHEETS_LATEX_COLUMN_H__ */ 0096