Warning, file /office/calligra/filters/libmsooxml/MsooXmlRelationships.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 
0002 /*
0003  * This file is part of Office 2007 Filters for Calligra
0004  *
0005  * Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
0006  *
0007  * Contact: Suresh Chande suresh.chande@nokia.com
0008  *
0009  * This library is free software; you can redistribute it and/or
0010  * modify it under the terms of the GNU Lesser General Public License
0011  * version 2.1 as published by the Free Software Foundation.
0012  *
0013  * This library is distributed in the hope that it will be useful, but
0014  * WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0016  * Lesser General Public License for more details.
0017  *
0018  * You should have received a copy of the GNU Lesser General Public
0019  * License along with this library; if not, write to the Free Software
0020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
0021  * 02110-1301 USA
0022  *
0023  */
0024 
0025 #ifndef MSOOXMLRELATIONSHIPS_H
0026 #define MSOOXMLRELATIONSHIPS_H
0027 
0028 #include "komsooxml_export.h"
0029 
0030 struct KoOdfWriters;
0031 class QString;
0032 
0033 namespace MSOOXML
0034 {
0035 class MsooXmlImport;
0036 
0037 //! Global document relationships handler.
0038 /*! It supports delayed loading of any *.xml.rels file. */
0039 //! @todo add write methods and saving support
0040 class KOMSOOXML_EXPORT MsooXmlRelationships
0041 {
0042 public:
0043     explicit MsooXmlRelationships(MsooXmlImport& importer, KoOdfWriters *writers, QString& errorMessage);
0044 
0045     ~MsooXmlRelationships();
0046 
0047     QString target(const QString& path, const QString& file, const QString& id);
0048 
0049     QString targetForType(const QString& path, const QString& file, const QString& relType);
0050 
0051     unsigned targetCountWithWord(const QString& searchTerm);
0052 
0053 private:
0054     class Private;
0055     Private* const d;
0056 };
0057 
0058 namespace Relationships {
0059     static const char comments[] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
0060     static const char commentAuthors[] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors";
0061     static const char tableStyles[] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles";
0062 }
0063 
0064 }
0065 
0066 #endif //MSOOXMLRELATIONSHIPSREADER_H