umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

docbookgenerator.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 DOCBOOKGENERATOR_H
13 #define DOCBOOKGENERATOR_H
14
15 #include <QtGlobal>
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 class DocbookGeneratorJob;
28
39 class DocbookGenerator : public QObject
40 {
41 Q_OBJECT
42 public:
43
44 DocbookGenerator();
45 virtual ~DocbookGenerator();
46
47 bool generateDocbookForProject();
48 #if QT_VERSION >= 0x050000
49 void generateDocbookForProjectInto(const QUrl& destDir);
50 #else
51 void generateDocbookForProjectInto(const KUrl& destDir);
52 #endif
53 static QString customXslFile();
54
55 signals:
56 void finished(bool status);
57
58 private slots:
59
60 void slotDocbookGenerationFinished(const QString&);
61
62 void threadFinished();
63
64 private:
65
66 DocbookGeneratorJob* docbookGeneratorJob;
67
68 bool m_pStatus;
69 bool m_pThreadFinished;
70 #if QT_VERSION >= 0x050000
71 QUrl m_destDir;
72 #else
73 KUrl m_destDir;
74 #endif
75 UMLDoc* umlDoc;
76 };
77
78 #endif // DOCBOOKGENERATOR_H
UMLDoc::url
const KUrl & url() const
Definition: umldoc.cpp:331
DocbookGenerator::generateDocbookForProjectInto
void generateDocbookForProjectInto(const KUrl &destDir)
Definition: docbookgenerator.cpp:92
DocbookGenerator::m_pThreadFinished
bool m_pThreadFinished
Definition: docbookgenerator.h:69
umlviewimageexportermodel.h
UMLViewImageExporterModel
Definition: umlviewimageexportermodel.h:34
DocbookGenerator::threadFinished
void threadFinished()
Definition: docbookgenerator.cpp:155
DocbookGenerator::finished
void finished(bool status)
Definition: moc_docbookgenerator.cpp:143
DocbookGenerator::slotDocbookGenerationFinished
void slotDocbookGenerationFinished(const QString &)
Definition: docbookgenerator.cpp:115
DocbookGenerator::docbookGeneratorJob
DocbookGeneratorJob * docbookGeneratorJob
Definition: docbookgenerator.h:66
DocbookGenerator::customXslFile
static QString customXslFile()
Definition: docbookgenerator.cpp:167
DocbookGenerator::DocbookGenerator
DocbookGenerator()
Definition: docbookgenerator.cpp:39
UMLViewImageExporterModel::mimeTypeToImageType
static QString mimeTypeToImageType(const QString &mimeType)
Definition: umlviewimageexportermodel.cpp:152
i18n
#define i18n
Definition: main.cpp:39
DocbookGenerator::m_pStatus
bool m_pStatus
Definition: docbookgenerator.h:68
UMLDoc::writeToStatusBar
void writeToStatusBar(const QString &text)
Definition: umldoc.cpp:1208
uDebug
#define uDebug()
Definition: debug_utils.h:122
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
UMLViewImageExporterModel::exportViews
QStringList exportViews(const UMLViewList &views, const QString &imageType, const QUrl &directory, bool useFolders) const
Definition: umlviewimageexportermodel.cpp:214
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
DOCGENERATORS_DIR
#define DOCGENERATORS_DIR
Definition: moc_predefs.h:338
UMLDoc
Definition: umldoc.h:75
DocbookGenerator::umlDoc
UMLDoc * umlDoc
Definition: docbookgenerator.h:75
DocbookGenerator
Definition: docbookgenerator.h:40
docbookgenerator.h
uml.h
docbookgeneratorjob.h
debug_utils.h
DocbookGenerator::generateDocbookForProject
bool generateDocbookForProject()
Definition: docbookgenerator.cpp:63
DocbookGenerator::~DocbookGenerator
virtual ~DocbookGenerator()
Definition: docbookgenerator.cpp:50
DocbookGeneratorJob
Generates DocBook from the Document.
Definition: docbookgeneratorjob.h:26
UMLDoc::viewIterator
UMLViewList viewIterator()
Definition: umldoc.cpp:3105
UMLViewList
QList< QPointer< UMLView > > UMLViewList
Definition: umlviewlist.h:26
DocbookGenerator::m_destDir
KUrl m_destDir
Definition: docbookgenerator.h:73
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h