File indexing completed on 2025-02-16 13:49:57

0001 /*
0002 **
0003 ** Copyright (C) 2003 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_ROW_H__
0022 #define __CALLIGRA_SHEETS_LATEX_ROW_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: Row                                                          */
0033 /***********************************************************************/
0034 
0035 /**
0036  * This class hold a row.
0037  */
0038 class Row: public Format
0039 {
0040 
0041     /* USEFUL DATA */
0042     long _row;
0043     double _height;
0044 
0045 public:
0046     /**
0047      * Constructors
0048      *
0049      */
0050 
0051     /**
0052      * Creates a new instance of Row.
0053      */
0054     Row();
0055 
0056     /*
0057      * Destructor
0058      *
0059      * The destructor must remove the list of frames.
0060      */
0061 
0062     ~Row() override;
0063 
0064     /**
0065      * getters
0066      */
0067 
0068     long   getRow() const {
0069         return _row;
0070     }
0071     double getHeight() const {
0072         return _height;
0073     }
0074 
0075     /**
0076      * setters
0077      */
0078     void setRow(int r) {
0079         _row = r;
0080     }
0081     void setHeight(double h) {
0082         _height = h;
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_ROW_H__ */
0096