Warning, file /office/calligra/braindump/src/SectionShapeContainerModel.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) 2006-2007 Thomas Zander <zander@kde.org>
0003  *  Copyright (c) 2009 Cyrille Berger <cberger@cberger.net>
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;
0008  * either version 2, or (at your option) any later version of the License.
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 License
0016  * along with this library; see the file COPYING.  If not, write to
0017  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0018  * Boston, MA 02110-1301, USA.
0019  */
0020 #ifndef SECTIONSHAPECONTAINERMODEL_H
0021 #define SECTIONSHAPECONTAINERMODEL_H
0022 
0023 #include "KoShapeContainerModel.h"
0024 
0025 #include <Section.h>
0026 
0027 class SectionShapeContainerModel: public KoShapeContainerModel
0028 {
0029 public:
0030     explicit SectionShapeContainerModel(Section* _section);
0031     ~SectionShapeContainerModel();
0032     void add(KoShape *child);
0033     void setClipped(const KoShape *, bool);
0034     bool isClipped(const KoShape *) const;
0035     void setInheritsTransform(const KoShape *, bool);
0036     bool inheritsTransform(const KoShape *) const;
0037     void remove(KoShape *child);
0038     int count() const;
0039     QList<KoShape*> shapes() const;
0040     void containerChanged(KoShapeContainer *, KoShape::ChangeType type);
0041     void childChanged(KoShape *, KoShape::ChangeType);
0042     bool isChildLocked(const KoShape *child) const;
0043 public:
0044     /**
0045      * Determine whether to update or not the layout.
0046      */
0047     void setUpdateLayout(bool v);
0048 
0049 private: // members
0050     QList <KoShape *> m_members;
0051     Section* m_section;
0052     bool m_updateLayout;
0053 };
0054 
0055 #endif