Warning, file /office/calligra/libs/flake/KoShapeContainerDefaultModel.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 * Copyright (C) 2006-2007, 2010 Thomas Zander <zander@kde.org> 0003 * Copyright (C) 2009 Thorsten Zachmann <zachmann@kde.org> 0004 * 0005 * This library is free software; you can redistribute it and/or 0006 * modify it under the terms of the GNU Library General Public 0007 * License as published by the Free Software Foundation; either 0008 * version 2 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 * Library General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU Library General Public License 0016 * along with this library; see the file COPYING.LIB. If not, write to 0017 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0018 * Boston, MA 02110-1301, USA. 0019 */ 0020 0021 #ifndef KOSHAPECONTAINERDEFAULTMODEL_H 0022 #define KOSHAPECONTAINERDEFAULTMODEL_H 0023 0024 #include "KoShapeContainerModel.h" 0025 0026 #include "flake_export.h" 0027 0028 /** 0029 * A default implementation of the KoShapeContainerModel. 0030 */ 0031 class FLAKE_EXPORT KoShapeContainerDefaultModel : public KoShapeContainerModel 0032 { 0033 public: 0034 KoShapeContainerDefaultModel(); 0035 ~KoShapeContainerDefaultModel() override; 0036 0037 void add(KoShape *shape) override; 0038 0039 void proposeMove(KoShape *shape, QPointF &move) override; 0040 0041 void setClipped(const KoShape *shape, bool clipping) override; 0042 0043 bool isClipped(const KoShape *shape) const override; 0044 0045 void setInheritsTransform(const KoShape *shape, bool inherit) override; 0046 0047 bool inheritsTransform(const KoShape *shape) const override; 0048 0049 void remove(KoShape *shape) override; 0050 0051 int count() const override; 0052 0053 QList<KoShape*> shapes() const override; 0054 0055 bool isChildLocked(const KoShape *child) const override; 0056 0057 /// empty implementation. 0058 void containerChanged(KoShapeContainer *container, KoShape::ChangeType type) override; 0059 0060 private: 0061 class Private; 0062 Private * const d; 0063 }; 0064 0065 #endif