1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
/*
* This file is part of Office 2007 Filters for Calligra
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
*
* Contact: Suresh Chande suresh.chande@nokia.com
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef VMLDRAWINGREADER_H
#define VMLDRAWINGREADER_H
#include <MsooXmlCommonReader.h>
#include <MsooXmlImport.h>
class KOMSOOXML_EXPORT VmlDrawingReaderContext : public MSOOXML::MsooXmlReaderContext
{
public:
//! Creates the context object.
VmlDrawingReaderContext(MSOOXML::MsooXmlImport& _import,
const QString& _path, const QString& _file,
MSOOXML::MsooXmlRelationships& _relationships);
MSOOXML::MsooXmlImport* import;
const QString path;
const QString file;
};
//! A class reading headers
class KOMSOOXML_EXPORT VmlDrawingReader : public MSOOXML::MsooXmlCommonReader
{
public:
explicit VmlDrawingReader(KoOdfWriters *writers);
virtual ~VmlDrawingReader();
virtual KoFilter::ConversionStatus read(MSOOXML::MsooXmlReaderContext* context = 0);
QMap<QString, QString> content();
QMap<QString, QString> frames();
#include <MsooXmlVmlReaderMethods.h>
protected:
KoFilter::ConversionStatus read_xml();
VmlDrawingReaderContext* m_context;
private:
void init();
class Private;
Private* const d;
// List of draw:images meant to be used as object replacements
QMap<QString, QString> m_content;
// List of beginning draw:frames meant to be used if the position is unknown otherwise
// Note that the ending draw:frame still needs to be added by the calling program
QMap<QString, QString> m_frames;
};
#endif //DOCXXMLHEADERREADER_H
|