2
* This file is part of Office 2007 Filters for KOffice
4
* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
6
* Contact: Suresh Chande suresh.chande@nokia.com
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public License
10
* version 2.1 as published by the Free Software Foundation.
12
* This library is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24
#ifndef DOCXXMLFONTTABLEREADER_H
25
#define DOCXXMLFONTTABLEREADER_H
27
#include <KoFontFace.h>
28
#include <MsooXmlReader.h>
32
//! A context structure for DocxXmlFontTableReader
33
class DocxXmlFontTableReaderContext : public MSOOXML::MsooXmlReaderContext
36
DocxXmlFontTableReaderContext(KoGenStyles& _styles);
40
//! A class reading MSOOXML DOCX markup - fontTable.xml part.
41
/*! Information about the fonts used in the document.
42
See ECMA-376, 17.8 Fonts.
44
class DocxXmlFontTableReader : public MSOOXML::MsooXmlReader
47
DocxXmlFontTableReader(KoOdfWriters *writers);
49
DocxXmlFontTableReader(QIODevice* io, KoOdfWriters *writers);
51
virtual ~DocxXmlFontTableReader();
53
//! Reads/parses the file. The output goes mainly to KoGenStyles* KoOdfWriters::mainStyles
54
virtual KoFilter::ConversionStatus read(MSOOXML::MsooXmlReaderContext* context = 0);
57
KoFilter::ConversionStatus read_fonts();
58
KoFilter::ConversionStatus read_font();
59
KoFilter::ConversionStatus read_family();
60
KoFilter::ConversionStatus read_pitch();
62
DocxXmlFontTableReaderContext* m_context;
64
KoFontFace m_currentFontFace;