1 /* 2 * Copyright (C) 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 3 * 4 * This file is part of the KD Chart library. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of 9 * the License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <https://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef KCHART_TEXT_AREA_P_H 21 #define KCHART_TEXT_AREA_P_H 22 23 // 24 // W A R N I N G 25 // ------------- 26 // 27 // This file is not part of the KD Chart API. It exists purely as an 28 // implementation detail. This header file may change from version to 29 // version without notice, or even be removed. 30 // 31 // We mean it. 32 // 33 34 /** \file KChartTextArea_p.h 35 * \internal 36 */ 37 38 #include "KChartTextArea.h" 39 #include "KChartAbstractAreaBase_p.h" 40 #include "KChartMath_p.h" 41 42 43 namespace KChart { 44 45 /** 46 * \internal 47 */ 48 class Q_DECL_HIDDEN TextArea::Private : public AbstractAreaBase::Private 49 { 50 friend class TextArea; 51 public: 52 explicit Private(); 53 virtual ~Private(); 54 Private(const Private & rhs)55 Private( const Private& rhs ) : 56 AbstractAreaBase::Private( rhs ) 57 { 58 // Just for consistency 59 } 60 }; 61 62 TextArea(Private * p)63 inline TextArea::TextArea( Private * p ) 64 : QObject(), AbstractAreaBase( p ), TextLayoutItem() 65 { 66 init(); 67 } d_func()68 inline TextArea::Private * TextArea::d_func() 69 { 70 return static_cast<Private*>( AbstractAreaBase::d_func() ); 71 } d_func()72 inline const TextArea::Private * TextArea::d_func() const 73 { 74 return static_cast<const Private*>( AbstractAreaBase::d_func() ); 75 } 76 77 } 78 79 #endif /* KCHART_TEXT_AREA_P_H */ 80 81