ownedcodeblock.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef OWNEDCODEBLOCK_H
00018 #define OWNEDCODEBLOCK_H
00019
00020 #include <qdom.h>
00021 #include <qstring.h>
00022 #include <qobject.h>
00023
00024 class TextBlock;
00025 class CodeDocument;
00026
00027 class UMLObject;
00028
00035 class OwnedCodeBlock : virtual public QObject
00036 {
00037 Q_OBJECT
00038 public:
00039
00040
00041
00042
00046 OwnedCodeBlock ( UMLObject * parent );
00047
00051 virtual ~OwnedCodeBlock ( );
00052
00056 UMLObject * getParentObject ( );
00057
00058
00059 virtual CodeDocument * getParentDocument ( ) = 0;
00060
00061 protected:
00062
00067 virtual void release ();
00068
00072 virtual void setAttributesOnNode ( QDomDocument & doc, QDomElement & blockElement);
00073
00077 virtual void setAttributesFromNode ( QDomElement & element);
00078
00081 virtual void setAttributesFromObject (TextBlock * obj);
00082
00086 virtual void updateContent ( ) = 0;
00087
00088 private:
00089
00090 void initFields ( UMLObject * parent );
00091
00092 UMLObject * m_parentObject;
00093
00094 public slots:
00095
00096 virtual void syncToParent ( );
00097
00098 };
00099
00100 #endif // OWNEDCODEBLOCK_H
This file is part of the documentation for umbrello Version 3.1.0.