umbrello
2.35.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
Go to the documentation of this file.
11 #include <QDomDocument>
12 #include <QDomElement>
14 #include <QXmlStreamWriter>
17 class QXmlStreamWriter;
31 void setText(
const QString & text);
35 void setTag(
const QString & value);
53 const QString & breakStr,
54 bool addBreak =
true,
bool lastLineHasBreak =
true);
56 virtual QString
unformatText(
const QString & text,
const QString & indent = QString());
60 static QString
encodeText(
const QString & text,
const QString & endLine);
61 static QString
decodeText(
const QString & text,
const QString & endLine);
67 virtual void saveToXMI(QXmlStreamWriter& writer) = 0;
106 #endif // TEXTBLOCK_H
bool getWriteOutText() const
Definition: textblock.cpp:137
bool m_canDelete
Definition: textblock.h:99
virtual void setAttributesFromNode(QDomElement &root)
Definition: textblock.cpp:354
virtual QString toString() const
Definition: textblock.cpp:400
virtual void setAttributesFromObject(TextBlock *obj)
Definition: textblock.cpp:340
static QString encodeText(const QString &text, const QString &endLine)
Definition: textblock.cpp:374
void setWriteOutText(bool write)
Definition: textblock.cpp:127
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2459
QString getIndentationString(int level=0) const
Definition: textblock.cpp:189
QString m_tag
Definition: textblock.h:98
static QString getIndentation()
Definition: textblock.cpp:178
void setTag(const QString &value)
Definition: textblock.cpp:117
bool m_writeOutText
Definition: textblock.h:100
Definition: codedocument.h:29
static QString decodeText(const QString &text, const QString &endLine)
Definition: textblock.cpp:388
virtual int lastEditableLine()
Definition: textblock.cpp:219
Definition: classifiercodedocument.h:28
virtual ~TextBlock()
Definition: textblock.cpp:38
QDebug operator<<(QDebug os, const TextBlock &obj)
Definition: textblock.cpp:415
Definition: codegenobjectwithtextblocks.h:28
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or work
Definition: GPL-2.0-only.txt:62
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Library General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: LGPL-2.0-only.txt:368
bool canDelete() const
Definition: textblock.cpp:57
QString getIndentation() const
Definition: codegenerationpolicy.cpp:300
int m_indentationLevel
Definition: textblock.h:101
void setIndentationLevel(int level)
Definition: textblock.cpp:148
Definition: codegenerationpolicy.h:25
virtual QString getNewEditorLine(int amount=0)
Definition: textblock.cpp:236
static UMLApp * app()
Definition: uml.cpp:349
virtual void loadFromXMI(QDomElement &root)=0
virtual QString unformatText(const QString &text, const QString &indent=QString())
Definition: textblock.cpp:249
CodeDocument * m_parentDocument
Definition: textblock.h:102
virtual void release()
Definition: textblock.cpp:271
virtual int firstEditableLine()
Definition: textblock.cpp:211
static QString formatMultiLineText(const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true)
Definition: textblock.cpp:284
void setCanDelete(bool canDelete)
Definition: textblock.cpp:46
virtual void setAttributesOnNode(QXmlStreamWriter &writer)
Definition: textblock.cpp:317
QString getNewLineEndingChars() const
Definition: codegenerationpolicy.cpp:249
static QString getNewLineEndingChars()
Definition: textblock.cpp:168
virtual void saveToXMI(QXmlStreamWriter &writer)=0
CodeDocument * getParentDocument() const
Definition: textblock.cpp:66
friend QDebug operator<<(QDebug os, const TextBlock &obj)
Definition: textblock.cpp:415
QString ID() const
Definition: codedocument.cpp:140
Definition: textblock.h:22
QString m_text
Definition: textblock.h:97
void setText(const QString &text)
Definition: textblock.cpp:76
int getIndentationLevel() const
Definition: textblock.cpp:159
QString getText() const
Definition: textblock.cpp:95
TextBlock(CodeDocument *parent, const QString &text=QString())
Definition: textblock.cpp:24
QString getTag() const
Definition: textblock.cpp:106
void appendText(const QString &text)
Definition: textblock.cpp:85