From koffice Mon Jun 27 10:27:52 2005 From: Boudewijn Rempt Date: Mon, 27 Jun 2005 10:27:52 +0000 To: koffice Subject: Re: New document problems Message-Id: <200506271227.52514.boud () valdyas ! org> X-MARC-Message: https://marc.info/?l=koffice&m=111986807202684 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0981351374==" --===============0981351374== Content-Type: multipart/signed; boundary="nextPart1395347.YBYytcVOXn"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1395347.YBYytcVOXn Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 27 June 2005 12:26, David Faure wrote: > On Monday 27 June 2005 12:23, Boudewijn Rempt wrote: > > On Monday 27 June 2005 12:20, David Faure wrote: > > > This is a new requirement for kofficecore indeed, but I'm sure we can > > > put together a method to do this. Do you want the new document to be = in > > > a new KoMainWindow ? > > > > Yes, I think so. Just like when you choose New in the file menu. > > > > > AFAICS all you need is > > > > > > KoDocument* newdoc =3D myMainWindow->createDoc(); // or dupli= cate > > > the 3 lines there KoMainWindow *win =3D new KoMainWindow( > > > newdoc->instance() ); win->show(); > > > win->setRootDocument( newdoc ); > > > > > > (The view stuff happens in setRootDocument automatically, you only ne= ed > > > to care about document and mainwindow). > > > > That looks doable -- but doesn't createDoc() call the template dialog a= nd > > all that? > > No, that's initDoc(), which the above doesn't call. You'll have to > initialize the document yourself, of course. Okay, thanks! =2D-=20 Boudewijn Rempt=20 http://www.valdyas.org/fading/index.cgi --nextPart1395347.YBYytcVOXn Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBCv9SodaCcgCmN5d8RAkPfAJ4hGboczaRzOfHCRBGEK80KuR6C/QCg23eC bXvj3m+MdrgCNWyS82CR4GQ= =ziCY -----END PGP SIGNATURE----- --nextPart1395347.YBYytcVOXn-- --===============0981351374== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ____________________________________ koffice mailing list koffice@kde.org To unsubscribe please visit: https://mail.kde.org/mailman/listinfo/koffice --===============0981351374==--