On Friday 23 May 2003 22:27, Dirk Schönberger wrote: > > class KCanvasElement : public QObject {}; > > class KShapeCanvasElement : public KCanvasElement > > { > > KShape *shape; > > }; > > class KOpalCanvasElement : public KCanvasElement > > { > > OPAL::Morph *morph; > > }; > > > > or something roughly like that. i don't think there needs to be any > > tighter > > > coupling between the two objects. KCanvasElement can define all the base > > signals and slots that each object should respond too or emit. users can > > further specialize these to provide additional stuff. > > But how do you want to implement rendering? YourVeryOwnRenderingVisitor v.visit( *morph ); Bye Lenny _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel