File indexing completed on 2024-05-26 16:15:49
0001 /* This file is part of the KDE project 0002 Copyright (C) 2010 KO GmbH <ben.martin@kogmbh.com> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License as published by the Free Software Foundation; either 0007 version 2 of the License, or (at your option) any later version. 0008 0009 This library is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 Library General Public License for more details. 0013 0014 You should have received a copy of the GNU Library General Public License 0015 along with this library; see the file COPYING.LIB. If not, write to 0016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301, USA. 0018 */ 0019 0020 #include "KoDocumentRdfBase.h" 0021 0022 #include <KoDocumentResourceManager.h> 0023 #include <KoText.h> 0024 0025 #ifdef SHOULD_BUILD_RDF 0026 #include <Soprano/Soprano> 0027 #endif 0028 0029 #include "TextDebug.h" 0030 0031 KoDocumentRdfBase::KoDocumentRdfBase(QObject *parent) 0032 : QObject(parent) 0033 { 0034 } 0035 0036 KoDocumentRdfBase::~KoDocumentRdfBase() 0037 { 0038 } 0039 0040 #ifdef SHOULD_BUILD_RDF 0041 QSharedPointer<Soprano::Model> KoDocumentRdfBase::model() const 0042 { 0043 return QSharedPointer<Soprano::Model>(0); 0044 } 0045 #endif 0046 0047 void KoDocumentRdfBase::linkToResourceManager(KoDocumentResourceManager *rm) 0048 { 0049 QVariant variant; 0050 variant.setValue<QObject*>(this); 0051 rm->setResource(KoText::DocumentRdf, variant); 0052 } 0053 0054 void KoDocumentRdfBase::updateInlineRdfStatements(const QTextDocument *qdoc) 0055 { 0056 Q_UNUSED(qdoc); 0057 } 0058 0059 void KoDocumentRdfBase::updateXmlIdReferences(const QMap<QString, QString> &m) 0060 { 0061 Q_UNUSED(m); 0062 } 0063 0064 bool KoDocumentRdfBase::loadOasis(KoStore *store) 0065 { 0066 Q_UNUSED(store); 0067 return true; 0068 } 0069 0070 bool KoDocumentRdfBase::saveOasis(KoStore *store, KoXmlWriter *manifestWriter) 0071 { 0072 Q_UNUSED(store); 0073 Q_UNUSED(manifestWriter); 0074 return true; 0075 } 0076 0077 bool KoDocumentRdfBase::completeLoading(KoStore */*store*/) 0078 { 0079 return false; 0080 } 0081 0082 bool KoDocumentRdfBase::completeSaving(KoStore */*store*/, KoXmlWriter */*manifestWriter*/, KoShapeSavingContext */*context*/) 0083 { 0084 return false; 0085 } 0086 0087 QStringList KoDocumentRdfBase::idrefList() const 0088 { 0089 return QStringList(); 0090 }