umbrello  2.31.70
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
xhtmlgenerator.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2006 Gael de Chalendar (aka Kleag) kleag@free.fr *
8  * copyright (C) 2006-2020 *
9  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10  ***************************************************************************/
11 
12 #ifndef XHTMLGENERATOR_H
13 #define XHTMLGENERATOR_H
14 
15 #include "basictypes.h"
16 
17 #if QT_VERSION < 0x050000
18 #include <kurl.h>
19 #endif
20 
21 #include <QObject>
22 #if QT_VERSION >= 0x050000
23 #include <QUrl>
24 #endif
25 
26 class UMLDoc;
27 
29 
41 class XhtmlGenerator : public QObject
42 {
43  Q_OBJECT
44 public:
45 
47  virtual ~XhtmlGenerator();
48 
50 #if QT_VERSION >= 0x050000
51  bool generateXhtmlForProjectInto(const QUrl& destDir);
52 #else
53  bool generateXhtmlForProjectInto(const KUrl& destDir);
54 #endif
55  static QString customXslFile();
56 
57 signals:
58  void finished(bool status);
59 
60 protected slots:
61 
62  void slotDocbookToXhtml(bool status);
63  void slotHtmlGenerated(const QString& tmpFileName);
64 
65  void threadFinished();
66 
67 private:
68 
70 
71  bool m_pStatus;
73 
74 #if QT_VERSION >= 0x050000
75  QUrl m_destDir;
76 #else
77  KUrl m_destDir;
78 #endif
80 };
81 
82 #endif // XHTMLGENERATOR_H
bool m_pStatus
Definition: xhtmlgenerator.h:71
void threadFinished()
Definition: xhtmlgenerator.cpp:227
bool generateXhtmlForProject()
Definition: xhtmlgenerator.cpp:67
void slotDocbookToXhtml(bool status)
Definition: xhtmlgenerator.cpp:113
UMLDoc * m_umlDoc
Definition: xhtmlgenerator.h:79
Definition: xhtmlgenerator.h:41
virtual ~XhtmlGenerator()
Definition: xhtmlgenerator.cpp:54
bool generateXhtmlForProjectInto(const KUrl &destDir)
Definition: xhtmlgenerator.cpp:95
void finished(bool status)
Definition: moc_xhtmlgenerator.cpp:148
KUrl m_destDir
Destination directory where the final documentation will be written.
Definition: xhtmlgenerator.h:77
XhtmlGenerator()
Definition: xhtmlgenerator.cpp:43
Generates XHtml from Docbook.
Definition: docbook2xhtmlgeneratorjob.h:31
bool m_pThreadFinished
Definition: xhtmlgenerator.h:72
void slotHtmlGenerated(const QString &tmpFileName)
Definition: xhtmlgenerator.cpp:150
Docbook2XhtmlGeneratorJob * m_d2xg
Definition: xhtmlgenerator.h:69
static QString customXslFile()
Definition: xhtmlgenerator.cpp:239
Definition: umldoc.h:74