xmlcodecomment.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "xmlcodecomment.h"
00018
00019 #include <kdebug.h>
00020
00021
00022
00023
00024 XMLCodeComment::XMLCodeComment ( CodeDocument * doc, const QString & text )
00025 : CodeComment (doc, text)
00026 {
00027
00028 }
00029
00030 XMLCodeComment::~XMLCodeComment ( ) { }
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00046 QString XMLCodeComment::toString ( )
00047 {
00048
00049 QString output = "";
00050
00051
00052 if(getWriteOutText())
00053 {
00054 QString indent = getIndentationString();
00055 QString endLine = getNewLineEndingChars();
00056 QString body = getText();
00057 output.append(indent+"<!-- ");
00058 if(!body.isEmpty())
00059 output.append(formatMultiLineText (body, indent, endLine));
00060 output.append(indent+"-->"+endLine);
00061 }
00062
00063 return output;
00064 }
00065
00066
00067 #include "xmlcodecomment.moc"
This file is part of the documentation for umbrello Version 3.1.0.