umbrello/umbrello
textblock.h
Go to the documentation of this file.
virtual QString unformatText(const QString &text, const QString &indent="")
UnFormat a long text string.
Definition: textblock.cpp:253
class ClassifierCodeDocument A CodeDocument which represents a UMLClassifier (e.g.
Definition: classifiercodedocument.h:33
void setText(const QString &text)
Set the value of m_text The actual text of this code block.
Definition: textblock.cpp:80
int getIndentationLevel() const
Get how many times to indent this text block.
Definition: textblock.cpp:163
static QString getNewLineEndingChars()
Get the new line chars which ends the line.
Definition: textblock.cpp:172
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Set attributes of the node that represents this class in the XMI document.
Definition: textblock.cpp:322
virtual void saveToXMI(QDomDocument &doc, QDomElement &root)=0
Save the XMI representation of this object.
void setWriteOutText(bool write)
Set the value of m_writeOutText Whether or not to include the text of this TextBlock into a file...
Definition: textblock.cpp:131
virtual void setAttributesFromNode(QDomElement &root)
Set the class attributes of this object from the passed element node.
Definition: textblock.cpp:359
This abstract class is for code generator objects which 'own' text blocks.
Definition: codegenobjectwithtextblocks.h:31
bool canDelete() const
Determine if its OK to delete this textblock from the document.
Definition: textblock.cpp:61
The fundemental unit of text within an output file containing code.
Definition: textblock.h:24
virtual void loadFromXMI(QDomElement &root)=0
Load params from the appropriate XMI element node.
friend QDebug operator<<(QDebug os, const TextBlock &obj)
Operator '<<' for TextBlock.
Definition: textblock.cpp:419
static QString formatMultiLineText(const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true)
Format a long text string to be more readable.
Definition: textblock.cpp:288
QString getIndentationString(int level=0) const
Get the actual amount of indentation for a given level of indentation.
Definition: textblock.cpp:193
static QString decodeText(const QString &text, const QString &endLine)
Decode text from XML storage.
Definition: textblock.cpp:392
bool getWriteOutText() const
Get the value of m_writeOutText Whether or not to include the text of this TextBlock into a file...
Definition: textblock.cpp:141
void setIndentationLevel(int level)
Set how many times to indent this text block.
Definition: textblock.cpp:152
virtual void setAttributesFromObject(TextBlock *obj)
Set the class attributes from a passed object.
Definition: textblock.cpp:345
static QString encodeText(const QString &text, const QString &endLine)
Encode text for XML storage.
Definition: textblock.cpp:378
QString getText() const
Get the value of m_text The actual text of this code block.
Definition: textblock.cpp:99
static QString getIndentation()
Get how much a single "level" of indentation will actually indent.
Definition: textblock.cpp:182
virtual void release()
Causes the text block to release all of its connections and any other text blocks that it 'owns'...
Definition: textblock.cpp:275
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.