From koffice-devel Mon Mar 25 20:14:02 2002 From: Bo Thorsen Date: Mon, 25 Mar 2002 20:14:02 +0000 To: koffice-devel Subject: Re: Startup dialog in KPlato X-MARC-Message: https://marc.info/?l=koffice-devel&m=101708719606255 On Monday 25 March 2002 19:51, David Faure wrote: > On Monday 25 March 2002 16:57, Bo Thorsen wrote: > > Hi all, > > > > I'm can't figure out how to get the initial dialog that kword/kspread and > > others present, where one can start a new project (perhaps based on a > > template) or open one of the recent ones. I'm trying to make this work > > for KPlato and this is the first thing I haven't been able to figure out. > > > > I have added a template and an icon for this and added the template > > resource dir. Now I just need the last step so I can get the dialog. > > You need to reimplement bool KoDocument::initDoc(), and call > KoTemplateChooseDia::choose() from there. See e.g. KWDocument::initDoc(). Thanks, I just committed this :-) Now I just have to implement (de-)serialization of the model so it can load a template. Bo. -- Bo Thorsen | Praestevejen 4 Free software developer | 5290 Marslev SuSE Labs | Denmark _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel