File indexing completed on 2024-05-05 13:08:57
0001 /* This file is part of the KDE project 0002 * Copyright (C) 2001-2007 by OpenMFG, LLC (info@openmfg.com) 0003 * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk) 0004 * 0005 * This library is free software; you can redistribute it and/or 0006 * modify it under the terms of the GNU Lesser General Public 0007 * License as published by the Free Software Foundation; either 0008 * version 2.1 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 * Lesser General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU Lesser General Public 0016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 0017 */ 0018 0019 #ifndef __LABELSIZEINFO_H__ 0020 #define __LABELSIZEINFO_H__ 0021 0022 #include <QStringList> 0023 0024 class KReportLabelSizeInfo 0025 { 0026 public: 0027 KReportLabelSizeInfo(const char *n, const char *p, int c, int r, int w, int h, int sx, int sy, int xg, int yg); 0028 KReportLabelSizeInfo(); 0029 virtual ~KReportLabelSizeInfo(); 0030 0031 QString name() const; 0032 QString paper() const; 0033 0034 int columns() const; 0035 int rows() const; 0036 0037 int width() const; 0038 int height() const; 0039 0040 int startX() const; 0041 int startY() const; 0042 0043 int xGap() const; 0044 int yGap() const; 0045 0046 bool isNull() const; 0047 0048 static KReportLabelSizeInfo find(const QString &); 0049 static QStringList labelNames(); 0050 0051 protected: 0052 QString m_name; 0053 QString m_paper; 0054 0055 int m_columns; 0056 int m_rows; 0057 0058 int m_width; 0059 int m_height; 0060 0061 int m_startx; 0062 int m_starty; 0063 0064 int m_xgap; 0065 int m_ygap; 0066 0067 bool m_null; 0068 }; 0069 0070 #endif