umbrello/umbrello
codegenobjectwithtextblocks.h
Go to the documentation of this file.
50 virtual HierarchicalCodeBlock * getHierarchicalCodeBlock(const QString &tag, const QString &comment, int indentLevel);
52 virtual CodeBlockWithComments * getCodeBlockWithComments(const QString &tag, const QString &comment, int indentLevel);
54 CodeComment * addOrUpdateTaggedCodeComment(const QString &tag = "", const QString &text = "", int indentationLevel = 0);
virtual HierarchicalCodeBlock * newHierarchicalCodeBlock()=0
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Load text blocks.
Definition: codegenobjectwithtextblocks.cpp:441
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &elem)
Set attributes of the node that represents this class in the XMI document.
Definition: codegenobjectwithtextblocks.cpp:406
void setAttributesFromObject(CodeGenObjectWithTextBlocks *obj)
Empty method.
Definition: codegenobjectwithtextblocks.cpp:390
CodeComment * addOrUpdateTaggedCodeComment(const QString &tag="", const QString &text="", int indentationLevel=0)
Allows the user to add a code comment to the end of the list of text blocks in this document OR...
Definition: codegenobjectwithtextblocks.cpp:246
virtual TextBlock * findCodeClassFieldTextBlockByTag(const QString &tag)=0
Find specific text block belonging to code classfields.
virtual void resetTextBlocks()
Reset/clear the inventory text blocks held by this object.
Definition: codegenobjectwithtextblocks.cpp:333
virtual CodeBlockWithComments * getCodeBlockWithComments(const QString &tag, const QString &comment, int indentLevel)
Will get a codeblockwithcomments from the document with given tag.
Definition: codegenobjectwithtextblocks.cpp:217
virtual bool addTextBlock(TextBlock *add_object)
Add a TextBlock object to the m_textblockVector List.
Definition: codegenobjectwithtextblocks.cpp:57
TextBlockList m_textblockVector
Definition: codegenobjectwithtextblocks.h:96
class CodeBlockWithComments A very common type of text block in any type of code. ...
Definition: codeblockwithcomments.h:24
virtual CodeBlock * newCodeBlock()=0
Virtual methods that return a new code document objects.
virtual CodeBlockWithComments * newCodeBlockWithComments()=0
CodeGenObjectWithTextBlocks * findParentObjectForTaggedTextBlock(const QString &tag)
Find the direct parent for a given textblock.
Definition: codegenobjectwithtextblocks.cpp:146
This abstract class is for code generator objects which 'own' text blocks.
Definition: codegenobjectwithtextblocks.h:31
virtual void setAttributesFromNode(QDomElement &element)
Set the class attributes of this object from the passed element node.
Definition: codegenobjectwithtextblocks.cpp:424
TextBlockList * getTextBlockList() const
Get the list of TextBlock objects held by m_textblockVector.
Definition: codegenobjectwithtextblocks.cpp:46
virtual HierarchicalCodeBlock * getHierarchicalCodeBlock(const QString &tag, const QString &comment, int indentLevel)
Will get a hierarchicalcodeblock from the document with given tag.
Definition: codegenobjectwithtextblocks.cpp:183
Definition: hierarchicalcodeblock.h:22
The fundemental unit of text within an output file containing code.
Definition: textblock.h:24
CodeBlockWithComments * addOrUpdateTaggedCodeBlockWithComments(const QString &tag, const QString &text, const QString &ctext, int indentLevel, bool forceUserBlockUpdate)
Allows the user to either add a code block with comments to the end of the list of text blocks in thi...
Definition: codegenobjectwithtextblocks.cpp:287
virtual QString getUniqueTag(const QString &prefix="")=0
virtual bool removeTextBlock(TextBlock *remove_object)
Remove a TextBlock object from m_textblockVector list.
Definition: codegenobjectwithtextblocks.cpp:95
CodeGenObjectWithTextBlocks(CodeDocument *parent)
Constructor.
Definition: codegenobjectwithtextblocks.cpp:29
virtual bool insertTextBlock(TextBlock *newBlock, TextBlock *existingBlock, bool after)=0
Insert a new text block before/after the existing text block.
TextBlock * findTextBlockByTag(const QString &tag)
Find the text block with a given tag.
Definition: codegenobjectwithtextblocks.cpp:126
QMap< QString, TextBlock * > m_textBlockTagMap
Definition: codegenobjectwithtextblocks.h:95
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 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:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.