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

dcodecomment.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) 2007 Jari-Matti Mäkelä <jmjm@iki.fi> *
8 * copyright (C) 2008-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef DCODECOMMENT_H
13 #define DCODECOMMENT_H
14
15 #include "codecomment.h"
16
17 #include <QString>
18
25 class DCodeComment : virtual public CodeComment
26 {
27 public:
28
32 explicit DCodeComment (CodeDocument * doc, const QString & text = QString());
33
37 virtual ~DCodeComment ();
38
42 virtual void saveToXMI1 (QDomDocument & doc, QDomElement & root);
43
52 QString toString () const;
53
58 virtual QString unformatText (const QString & text, const QString & indent = QString());
59
64 virtual QString getNewEditorLine (int amount);
65 };
66
67 #endif // DCODECOMMENT_H
DCodeComment
Definition: dcodecomment.h:26
TextBlock::getWriteOutText
bool getWriteOutText() const
Definition: textblock.cpp:141
dcodecomment.h
DCodeComment::DCodeComment
DCodeComment(CodeDocument *doc, const QString &text=QString())
Definition: dcodecomment.cpp:18
CodeComment
Definition: codecomment.h:24
TextBlock::getIndentationString
QString getIndentationString(int level=0) const
Definition: textblock.cpp:193
CodeDocument
Definition: codedocument.h:33
DCodeComment::getNewEditorLine
virtual QString getNewEditorLine(int amount)
Definition: dcodecomment.cpp:62
DCodeComment::~DCodeComment
virtual ~DCodeComment()
Definition: dcodecomment.cpp:23
DCodeComment::unformatText
virtual QString unformatText(const QString &text, const QString &indent=QString())
Definition: dcodecomment.cpp:69
TextBlock::unformatText
virtual QString unformatText(const QString &text, const QString &indent=QString())
Definition: textblock.cpp:253
TextBlock::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: textblock.cpp:322
TextBlock::formatMultiLineText
static QString formatMultiLineText(const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true)
Definition: textblock.cpp:288
DCodeComment::toString
QString toString() const
Definition: dcodecomment.cpp:37
DCodeComment::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: dcodecomment.cpp:27
TextBlock::getNewLineEndingChars
static QString getNewLineEndingChars()
Definition: textblock.cpp:172
TextBlock::getText
QString getText() const
Definition: textblock.cpp:99
codecomment.h