umbrello API Documentation

xmlcodecomment.cpp

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2004-2007                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 /*  This code generated by:
00013  *      Author : thomas
00014  *      Date   : Mon Sep 26 2003
00015  */
00016 
00017 #include "xmlcodecomment.h"
00018 
00019 #include <kdebug.h>
00020 
00021 // Constructors/Destructors
00022 //
00023 
00024 XMLCodeComment::XMLCodeComment ( CodeDocument * doc, const QString & text )
00025         : CodeComment (doc, text)
00026 {
00027 
00028 }
00029 
00030 XMLCodeComment::~XMLCodeComment ( ) { }
00031 
00032 //
00033 // Methods
00034 //
00035 
00036 
00037 // Accessor methods
00038 //
00039 
00040 // Other methods
00041 //
00042 
00046 QString XMLCodeComment::toString ( )
00047 {
00048 
00049     QString output = "";
00050 
00051     // simple output method
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"
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:03 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003