umbrello: umbrello/docgenerators/xhtmlgenerator.h Source File

umbrello 2.32.3 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
22class UMLDoc;
23
24class Docbook2XhtmlGeneratorJob;
25
37 class XhtmlGenerator : public QObject
38{
39 Q_OBJECT
40public:
41
42 XhtmlGenerator();
43 virtual ~XhtmlGenerator();
44
45 bool generateXhtmlForProject();
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
53signals:
54 void finished(bool status);
55
56protected slots:
57
58 void slotDocbookToXhtml(bool status);
59 void slotHtmlGenerated(const QString& tmpFileName);
60
61 void threadFinished();
62
63private:
64
65 Docbook2XhtmlGeneratorJob* m_d2xg;
66
67 bool m_pStatus;
68 bool m_pThreadFinished;
69
70#if QT_VERSION >= 0x050000
71 QUrl m_destDir;
72#else
73 KUrl m_destDir;
74#endif
75 UMLDoc* m_umlDoc;
76};
77
78#endif // XHTMLGENERATOR_H
basictypes.h
Docbook2XhtmlGeneratorJob
Generates XHtml from Docbook.
Definition: docbook2xhtmlgeneratorjob.h:27
UMLDoc
Definition: umldoc.h:70
XhtmlGenerator
Definition: xhtmlgenerator.h:38
XhtmlGenerator::XhtmlGenerator
XhtmlGenerator()
Definition: xhtmlgenerator.cpp:39
XhtmlGenerator::slotHtmlGenerated
void slotHtmlGenerated(const QString &tmpFileName)
Definition: xhtmlgenerator.cpp:146
XhtmlGenerator::generateXhtmlForProjectInto
bool generateXhtmlForProjectInto(const KUrl &destDir)
Definition: xhtmlgenerator.cpp:91
XhtmlGenerator::~XhtmlGenerator
virtual ~XhtmlGenerator()
Definition: xhtmlgenerator.cpp:50
XhtmlGenerator::m_umlDoc
UMLDoc * m_umlDoc
Definition: xhtmlgenerator.h:75
XhtmlGenerator::generateXhtmlForProject
bool generateXhtmlForProject()
Definition: xhtmlgenerator.cpp:63
XhtmlGenerator::m_pThreadFinished
bool m_pThreadFinished
Definition: xhtmlgenerator.h:68
XhtmlGenerator::finished
void finished(bool status)
XhtmlGenerator::m_destDir
KUrl m_destDir
Destination directory where the final documentation will be written.
Definition: xhtmlgenerator.h:73
XhtmlGenerator::slotDocbookToXhtml
void slotDocbookToXhtml(bool status)
Definition: xhtmlgenerator.cpp:109
XhtmlGenerator::threadFinished
void threadFinished()
Definition: xhtmlgenerator.cpp:223
XhtmlGenerator::customXslFile
static QString customXslFile()
Definition: xhtmlgenerator.cpp:235
XhtmlGenerator::m_pStatus
bool m_pStatus
Definition: xhtmlgenerator.h:67
XhtmlGenerator::m_d2xg
Docbook2XhtmlGeneratorJob * m_d2xg
Definition: xhtmlgenerator.h:65