• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeaccessibility API Reference
  • KDE Home
  • Contact Us
 

jovie

  • sources
  • kde-4.12
  • kdeaccessibility
  • jovie
  • filters
  • xhtml2ssml
xhtml2ssml.h
Go to the documentation of this file.
1 
2 /****************************************************************************
3  XHTMLToSSMLParser class
4 
5  Parses a piece of XHTML markup and converts into SSML.
6  -------------------
7  Copyright 2004 by Paul Giannaros <ceruleanblaze@gmail.com>
8  -------------------
9  Original author: Paul Giannaros <ceruleanblaze@gmail.com>
10 
11  This program is free software; you can redistribute it and/or modify
12  it under the terms of the GNU General Public License as published by
13  the Free Software Foundation; either version 2 of the License, or
14  (at your option) version 3.
15 
16  This program is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24  ***************************************************************************/
25 
26 #ifndef XHTML2SSML_H
27 #define XHTML2SSML_H
28 
29 #include <QtXml/QXmlAttributes>
30 #include <QtCore/QMap>
31 
32 typedef QMap<QString, QString> QStringMap;
33 class QString;
34 
35 class XHTMLToSSMLParser : public QXmlDefaultHandler {
36 
37 public:
40  bool startDocument();
42  bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts);
44  bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName);
46  bool characters(const QString &);
47 
50  QString convertedText();
51 
56  bool readFileConfigEntry(const QString &line);
57 
58 private:
60  QStringMap m_xhtml2ssml;
62  QString m_output;
63 };
64 
65 #endif //XHTML2SSML_H
XHTMLToSSMLParser
Definition: xhtml2ssml.h:35
XHTMLToSSMLParser::startElement
bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
start of an element encountered ()
Definition: xhtml2ssml.cpp:57
XHTMLToSSMLParser::characters
bool characters(const QString &)
text encountered (blah bah blah)
Definition: xhtml2ssml.cpp:81
XHTMLToSSMLParser::startDocument
bool startDocument()
No need to reimplement constructor.
Definition: xhtml2ssml.cpp:36
QStringMap
QMap< QString, QString > QStringMap
Definition: xhtml2ssml.h:32
QXmlDefaultHandler
XHTMLToSSMLParser::convertedText
QString convertedText()
Get the output text that was generated during the parsing.
Definition: xhtml2ssml.cpp:87
XHTMLToSSMLParser::endElement
bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
end of an element encountered ()
Definition: xhtml2ssml.cpp:73
XHTMLToSSMLParser::readFileConfigEntry
bool readFileConfigEntry(const QString &line)
Parse a line from the configuration file which maps xhtml : ssml equivalent.
Definition: xhtml2ssml.cpp:95
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

jovie

Skip menu "jovie"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeaccessibility API Reference

Skip menu "kdeaccessibility API Reference"
  • jovie

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal