Warning, file /office/calligra/libs/flake/KoDataCenterBase.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 0003 Copyright (C) 2006 Jan Hambrecht <jaham@gmx.net> 0004 Copyright (C) 2006, 2009 Thomas Zander <zander@kde.org> 0005 Copyright (C) 2008 C. Boemann <cbo@boemann.dk> 0006 Copyright (C) 2008 Thorsten Zachmann <zachmann@kde.org> 0007 0008 This library is free software; you can redistribute it and/or 0009 modify it under the terms of the GNU Library General Public 0010 License as published by the Free Software Foundation; either 0011 version 2 of the License, or (at your option) any later version. 0012 0013 This library is distributed in the hope that it will be useful, 0014 but WITHOUT ANY WARRANTY; without even the implied warranty of 0015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0016 Library General Public License for more details. 0017 0018 You should have received a copy of the GNU Library General Public License 0019 along with this library; see the file COPYING.LIB. If not, write to 0020 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0021 * Boston, MA 02110-1301, USA. 0022 */ 0023 0024 #ifndef KODATACENTER_H 0025 #define KODATACENTER_H 0026 0027 #include <QtGlobal> 0028 #include "flake_export.h" 0029 0030 class KoShapeSavingContext; 0031 class KoStore; 0032 class KoXmlWriter; 0033 0034 /** 0035 * The data center is for now just a sort of void pointer. 0036 * The data centers can be stuff like image collection, or stylemanager. 0037 * This abstraction is done so that shapes can get access to any possible type of data center. 0038 * The KoShapeBasedDocumentBase has a method that returns a map of data centers 0039 */ 0040 class FLAKE_EXPORT KoDataCenterBase 0041 { 0042 public: 0043 KoDataCenterBase(); 0044 virtual ~KoDataCenterBase(); 0045 0046 /** 0047 * Load any remaining binary blobs needed 0048 * @returns false if an error occurred, which typically cancels the load. 0049 */ 0050 virtual bool completeLoading(KoStore *store) = 0; 0051 0052 /** 0053 * Save any remaining binary blobs 0054 * @returns false if an error occurred, which typically cancels the save. 0055 */ 0056 virtual bool completeSaving(KoStore *store, KoXmlWriter *manifestWriter, KoShapeSavingContext *context) = 0; 0057 }; 0058 0059 #endif