Warning, file /office/calligra/libs/odf/KoTableProperties.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * Copyright (c) 2010 Carlos Licea <carlos@kdab.com> 0003 * 0004 * This library is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU Lesser General Public License as published 0006 * by the Free Software Foundation; either version 2.1 of the License, or 0007 * (at your option) any later version. 0008 * 0009 * This library is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU Lesser General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU Lesser General Public License 0015 * along with this program; if not, write to the Free Software 0016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #ifndef KOTABLEPROPERTIES_H 0020 #define KOTABLEPROPERTIES_H 0021 0022 #include "KoTblStyle.h" 0023 0024 class KoTableTemplate; 0025 0026 class TableProperties 0027 { 0028 public: 0029 TableStyle* tableStyle(); 0030 void setTableStyle(TableStyle* style); 0031 0032 TableTemplate* tableTemplate(); 0033 void setTableTemplate(KoTableTemplate* tableTemplate); 0034 TableTemplateFlags templateFlags(); 0035 void setTemplateFlags(TableTemplateFlags templateFlags); 0036 0037 bool printable() const; 0038 void setPrintable(bool printable); 0039 0040 void setPrintRange(CellRange cellRange); 0041 CellRange printRange() const; 0042 0043 void setName(QString name); 0044 QString name() const; 0045 0046 void setProtected(bool isProtected); 0047 bool isPprotected() const; 0048 void setPlainPassword(QString password, QString uri = "http://www.w3.org/2000/09/xmldsig#sha1"); 0049 0050 private: 0051 void saveOdf(KoXmlWriter* writer, KoGenStyles* styles); 0052 0053 TableStyle* m_style; 0054 TableTemplate* m_template; 0055 TableTemplateFlags m_templateFlags; 0056 0057 bool m_printable; 0058 CellRange m_printRange; 0059 QString m_name; 0060 0061 bool m_protected; 0062 QString m_password; 0063 }; 0064 0065 #endif