KD Reports 1.4
|
00001 /**************************************************************************** 00002 ** Copyright (C) 2011 Klaralvdalens Datakonsult AB. All rights reserved. 00003 ** 00004 ** This file is part of the KD Reports library. 00005 ** 00006 ** Licensees holding valid commercial KD Reports licenses may use this file in 00007 ** accordance with the KD Reports Commercial License Agreement provided with 00008 ** the Software. 00009 ** 00010 ** 00011 ** This file may be distributed and/or modified under the terms of the 00012 ** GNU General Public License version 2 and version 3 as published by the 00013 ** Free Software Foundation and appearing in the file LICENSE.GPL included. 00014 ** 00015 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00016 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00017 ** 00018 ** Contact info@kdab.com if any conditions of this licensing are not 00019 ** clear to you. 00020 ** 00021 **********************************************************************/ 00022 00023 #ifndef KDREPORTSXMLELEMENTHANDLERV2_H 00024 #define KDREPORTSXMLELEMENTHANDLERV2_H 00025 00026 #include "KDReportsXmlElementHandler.h" 00027 #include "KDReportsVariableType.h" 00028 #include <QTextOption> 00029 00030 namespace KDReports { 00031 00032 class HLineElement; 00033 00039 class KDREPORTS_EXPORT XmlElementHandlerV2 : public XmlElementHandler 00040 { 00041 public: 00042 XmlElementHandlerV2(); 00043 virtual ~XmlElementHandlerV2(); 00044 00048 virtual bool variable( KDReports::VariableType &type, QDomElement& xmlElement ); 00049 00055 virtual bool vspace( int &size, QDomElement& xmlElement ); 00056 00062 virtual bool hLineElement( KDReports::HLineElement& hLineElement, QDomElement& xmlElement ); 00063 00068 virtual bool paragraphMargin( qreal &left, qreal &top, qreal &right, qreal &bottom, const QDomElement& xmlElement ); 00069 00074 virtual bool tabs(QList<QTextOption::Tab> &tabs, const QDomElement& xmlElement ); 00075 }; 00076 00077 } 00078 00079 #endif // KDREPORTSXMLELEMENTHANDLERV2_H