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 * 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:331
UmbrelloSettings::loadlast
static bool loadlast()
Definition: umbrellosettings.h:395
UMLApp::openDocumentFile
void openDocumentFile(const KUrl &url=KUrl())
Definition: uml.cpp:1047
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
XhtmlGenerator::generateXhtmlForProjectInto
bool generateXhtmlForProjectInto(const KUrl &destDir)
Definition: xhtmlgenerator.cpp:95
DocbookGenerator::generateDocbookForProjectInto
void generateDocbookForProjectInto(const KUrl &destDir)
Definition: docbookgenerator.cpp:92
umlviewimageexportermodel.h
UmbrelloSettings::rightToLeftUI
static bool rightToLeftUI()
Definition: umbrellosettings.h:787
Uml::ProgrammingLanguage::Reserved
@ Reserved
Definition: basictypes.h:292
Uml::ProgrammingLanguage::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:975
UniqueID::init
void init()
Definition: uniqueid.cpp:37
XhtmlGenerator::m_destDir
KUrl m_destDir
Destination directory where the final documentation will be written.
Definition: xhtmlgenerator.h:77
umbrellosettings.h
Uml::ProgrammingLanguage::ActionScript
@ ActionScript
Definition: basictypes.h:272
initDocument
void initDocument(KCmdLineArgs *args, Uml::ProgrammingLanguage::Enum progLang)
Definition: main.cpp:68
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
Uml::ProgrammingLanguage::toString
QString toString(Enum item)
Definition: basictypes.cpp:873
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:1208
basictypes.h
uDebug
#define uDebug()
Definition: debug_utils.h:122
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: uml.cpp:2514
Docbook2XhtmlGeneratorJob
Generates XHtml from Docbook.
Definition: docbook2xhtmlgeneratorjob.h:32
UmbrelloSettings::lastFile
static QString lastFile()
Definition: umbrellosettings.h:479
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
DOCGENERATORS_DIR
#define DOCGENERATORS_DIR
Definition: moc_predefs.h:338
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:93
docbookgenerator.h
cmdlineexportallviewsevent.h
xmlLoadExtDtdDefaultValue
int xmlLoadExtDtdDefaultValue
uml.h
getFiles
void getFiles(QStringList &files, const QString &path, QStringList &filters)
getFiles
Definition: uml.cpp:2743
debug_utils.h
Uml::ProgrammingLanguage::toExtensions
QStringList toExtensions(Enum item)
Definition: basictypes.cpp:985
XhtmlGenerator::finished
void finished(bool status)
Definition: moc_xhtmlgenerator.cpp:148
UMLApp::newDocument
void newDocument()
Definition: uml.cpp:3050
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:1064
umldoc.h
XhtmlGenerator
Definition: xhtmlgenerator.h:42
xhtmlgenerator.h
description
static const char description[]
Definition: main.cpp:37