umbrello API Documentation

codecomment.cpp

00001 
00002 /***************************************************************************
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU General Public License as published by  *
00006  *   the Free Software Foundation; either version 2 of the License, or     *
00007  *   (at your option) any later version.                                   *
00008  *                                                                         *
00009  ***************************************************************************/
00010 
00011 /*  This code generated by:
00012  *      Author : thomas
00013  *      Date   : Wed Jun 18 2003
00014  */
00015 
00016 #include "codecomment.h"
00017 #include "codedocument.h"
00018 #include <kdebug.h>
00019 
00020 // Constructors/Destructors
00021 //
00022 
00023 CodeComment::CodeComment (CodeDocument * doc, const QString & comment )
00024         : TextBlock ( doc, comment )
00025 {
00026 
00027 }
00028 
00029 CodeComment::~CodeComment ( ) { }
00030 
00031 //
00032 // Methods
00033 //
00034 
00035 
00036 // Accessor methods
00037 //
00038 
00039 
00040 // Other methods
00041 //
00042 
00046 void CodeComment::saveToXMI ( QDomDocument & doc, QDomElement & root ) {
00047     kDebug() << "CodeComment::saveToXMI is called!" << endl;
00048     QDomElement blockElement = doc.createElement( "codecomment" );
00049     setAttributesOnNode(doc, blockElement); // as we added no additional fields to this class we may
00050     // just use parent TextBlock method
00051     root.appendChild( blockElement );
00052 }
00053 
00057 void CodeComment::loadFromXMI ( QDomElement & root ) {
00058     setAttributesFromNode(root);
00059 }
00060 
00061 
00062 #include "codecomment.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:07:55 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003