umbrello: umbrello/docgenerators/xhtmlgenerator.h Source File

umbrello 2.31.1 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
28 class Docbook2XhtmlGeneratorJob;
29
41 class XhtmlGenerator : public QObject
42 {
43 Q_OBJECT
44 public:
45
46 XhtmlGenerator();
47 virtual ~XhtmlGenerator();
48
49 bool generateXhtmlForProject();
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
69 Docbook2XhtmlGeneratorJob* m_d2xg;
70
71 bool m_pStatus;
72 bool m_pThreadFinished;
73
74 #if QT_VERSION >= 0x050000
75 QUrl m_destDir;
76 #else
77 KUrl m_destDir;
78 #endif
79 UMLDoc* m_umlDoc;
80 };
81
82 #endif // XHTMLGENERATOR_H
main
int main(int argc, char *argv[])
Definition: main.cpp:42
UMLDoc::url
const KUrl & url() const
Definition: umldoc.cpp:330
UMLApp::openDocumentFile
void openDocumentFile(const KUrl &url=KUrl())
Definition: uml.cpp:1038
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:288
XhtmlGenerator::generateXhtmlForProjectInto
bool generateXhtmlForProjectInto(const KUrl &destDir)
Definition: xhtmlgenerator.cpp:95
DocbookGenerator::generateDocbookForProjectInto
void generateDocbookForProjectInto(const KUrl &destDir)
Definition: docbookgenerator.cpp:92
umlviewimageexportermodel.h
Uml::ProgrammingLanguage::Reserved
@ Reserved
Definition: basictypes.h:309
Uml::ProgrammingLanguage::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:992
UniqueID::init
void init()
Definition: uniqueid.cpp:45
XhtmlGenerator::m_destDir
KUrl m_destDir
Destination directory where the final documentation will be written.
Definition: xhtmlgenerator.h:77
Uml::ProgrammingLanguage::ActionScript
@ ActionScript
Definition: basictypes.h:289
XhtmlGenerator::m_pStatus
bool m_pStatus
Definition: xhtmlgenerator.h:71
XhtmlGenerator::m_d2xg
Docbook2XhtmlGeneratorJob * m_d2xg
Definition: xhtmlgenerator.h:69
version.h
UMLViewImageExporterModel::supportedImageTypes
static QStringList supportedImageTypes()
Definition: umlviewimageexportermodel.cpp:68
XhtmlGenerator::~XhtmlGenerator
virtual ~XhtmlGenerator()
Definition: xhtmlgenerator.cpp:54
initDocument
void initDocument(KCmdLineArgs *args)
Definition: main.cpp:68
Uml::ProgrammingLanguage::toString
QString toString(Enum item)
Definition: basictypes.cpp:890
XhtmlGenerator::XhtmlGenerator
XhtmlGenerator()
Definition: xhtmlgenerator.cpp:43
UMLApp
Definition: uml.h:100
XhtmlGenerator::threadFinished
void threadFinished()
Definition: xhtmlgenerator.cpp:227
XhtmlGenerator::slotHtmlGenerated
void slotHtmlGenerated(const QString &tmpFileName)
Definition: xhtmlgenerator.cpp:150
i18n
#define i18n
Definition: main.cpp:39
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition: umldoc.cpp:1206
basictypes.h
uDebug
#define uDebug()
Definition: debug_utils.h:122
Docbook2XhtmlGeneratorJob
Generates XHtml from Docbook.
Definition: docbook2xhtmlgeneratorjob.h:32
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
UMLDoc
Definition: umldoc.h:75
showGUI
bool showGUI(KCmdLineArgs *args)
Definition: main.cpp:52
XhtmlGenerator::m_umlDoc
UMLDoc * m_umlDoc
Definition: xhtmlgenerator.h:79
DocbookGenerator
Definition: docbookgenerator.h:40
XhtmlGenerator::customXslFile
static QString customXslFile()
Definition: xhtmlgenerator.cpp:239
exportAllViews
void exportAllViews(KCmdLineArgs *args, const QStringList &exportOpt)
Definition: main.cpp:91
docbookgenerator.h
cmdlineexportallviewsevent.h
xmlLoadExtDtdDefaultValue
int xmlLoadExtDtdDefaultValue
uml.h
getFiles
void getFiles(QStringList &files, const QString &path, QStringList &filters)
getFiles
Definition: uml.cpp:2729
debug_utils.h
Uml::ProgrammingLanguage::toExtensions
QStringList toExtensions(Enum item)
Definition: basictypes.cpp:1002
XhtmlGenerator::finished
void finished(bool status)
UMLApp::newDocument
void newDocument()
Definition: uml.cpp:3028
XhtmlGenerator::slotDocbookToXhtml
void slotDocbookToXhtml(bool status)
Definition: xhtmlgenerator.cpp:113
docbook2xhtmlgeneratorjob.h
XhtmlGenerator::m_pThreadFinished
bool m_pThreadFinished
Definition: xhtmlgenerator.h:72
umbrelloVersion
QByteArray umbrelloVersion()
Definition: version.h:18
XhtmlGenerator::generateXhtmlForProject
bool generateXhtmlForProject()
Definition: xhtmlgenerator.cpp:67
CmdLineExportAllViewsEvent
Definition: cmdlineexportallviewsevent.h:28
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1055
umldoc.h
XhtmlGenerator
Definition: xhtmlgenerator.h:42
xhtmlgenerator.h
description
static const char description[]
Definition: main.cpp:37