umbrello  2.32.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
cppcodedocumentation.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) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
8  * copyright (C) 2004-2020 *
9  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10  ***************************************************************************/
11 
12 #ifndef CPPCODEDOCUMENTATION_H
13 #define CPPCODEDOCUMENTATION_H
14 
15 #include "codecomment.h"
16 
17 #include <QString>
18 
19 class CodeDocument;
20 
27 class CPPCodeDocumentation : virtual public CodeComment
28 {
29 public:
30 
34  explicit CPPCodeDocumentation (CodeDocument * doc, const QString & text = QString());
35 
39  virtual ~CPPCodeDocumentation ();
40 
44  virtual void saveToXMI1(QXmlStreamWriter& writer);
45 
49  QString toString () const;
50 
54  virtual QString unformatText (const QString & text, const QString & indent = QString());
55 
59  virtual QString getNewEditorLine (int amount);
60 
68  virtual int firstEditableLine();
69  virtual int lastEditableLine();
70 
71 protected:
72 
73 private:
74 
75 };
76 
77 #endif // CPPCODEDOCUMENTATION_H
Definition: cppcodedocumentation.h:28
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: cppcodedocumentation.cpp:36
virtual ~CPPCodeDocumentation()
Definition: cppcodedocumentation.cpp:29
virtual QString unformatText(const QString &text, const QString &indent=QString())
Definition: cppcodedocumentation.cpp:108
virtual QString getNewEditorLine(int amount)
Definition: cppcodedocumentation.cpp:78
CPPCodeDocumentation(CodeDocument *doc, const QString &text=QString())
Definition: cppcodedocumentation.cpp:24
virtual int firstEditableLine()
Definition: cppcodedocumentation.cpp:87
QString toString() const
Definition: cppcodedocumentation.cpp:47
virtual int lastEditableLine()
Definition: cppcodedocumentation.cpp:95
Definition: codecomment.h:24
Definition: codedocument.h:34