umbrello  2.37.2
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  SPDX-License-Identifier: GPL-2.0-or-later
3 
4  SPDX-FileCopyrightText: 2006 Gael de Chalendar (aka Kleag) kleag@free.fr
5  SPDX-FileCopyrightText: 2006-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6 */
7 
8 #ifndef XHTMLGENERATOR_H
9 #define XHTMLGENERATOR_H
10 
11 #include "basictypes.h"
12 
13 #if QT_VERSION < 0x050000
14 #include <kurl.h>
15 #endif
16 
17 #include <QObject>
18 #if QT_VERSION >= 0x050000
19 #include <QUrl>
20 #endif
21 
22 class UMLDoc;
23 
25 
37 class XhtmlGenerator : public QObject
38 {
39  Q_OBJECT
40 public:
41 
43  virtual ~XhtmlGenerator();
44 
46 #if QT_VERSION >= 0x050000
47  bool generateXhtmlForProjectInto(const QUrl& destDir);
48 #else
49  bool generateXhtmlForProjectInto(const KUrl& destDir);
50 #endif
51  static QString customXslFile();
52 
53 signals:
54  void finished(bool status);
55 
56 protected slots:
57 
58  void slotDocbookToXhtml(bool status);
59  void slotHtmlGenerated(const QString& tmpFileName);
60 
61  void threadFinished();
62 
63 private:
64 
66 
67  bool m_pStatus;
69 
70 #if QT_VERSION >= 0x050000
71  QUrl m_destDir;
72 #else
73  KUrl m_destDir;
74 #endif
76 };
77 
78 #endif // XHTMLGENERATOR_H
Generates XHtml from Docbook.
Definition: docbook2xhtmlgeneratorjob.h:27
Definition: umldoc.h:70
Definition: xhtmlgenerator.h:38
XhtmlGenerator()
Definition: xhtmlgenerator.cpp:42
void slotHtmlGenerated(const QString &tmpFileName)
Definition: xhtmlgenerator.cpp:149
bool generateXhtmlForProjectInto(const KUrl &destDir)
Definition: xhtmlgenerator.cpp:94
virtual ~XhtmlGenerator()
Definition: xhtmlgenerator.cpp:53
UMLDoc * m_umlDoc
Definition: xhtmlgenerator.h:75
bool generateXhtmlForProject()
Definition: xhtmlgenerator.cpp:66
bool m_pThreadFinished
Definition: xhtmlgenerator.h:68
void finished(bool status)
Definition: moc_xhtmlgenerator.cpp:148
KUrl m_destDir
Destination directory where the final documentation will be written.
Definition: xhtmlgenerator.h:73
void slotDocbookToXhtml(bool status)
Definition: xhtmlgenerator.cpp:112
void threadFinished()
Definition: xhtmlgenerator.cpp:226
static QString customXslFile()
Definition: xhtmlgenerator.cpp:238
bool m_pStatus
Definition: xhtmlgenerator.h:67
Docbook2XhtmlGeneratorJob * m_d2xg
Definition: xhtmlgenerator.h:65