[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: Re: New document problems
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2005-06-27 10:23:49
Message-ID: 200506271223.49347.boud () valdyas ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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 = myMainWindow->createDoc(); // or duplicate the
> 3 lines there KoMainWindow *win = new KoMainWindow( newdoc->instance() );
> win->show();
> win->setRootDocument( newdoc );
>
> (The view stuff happens in setRootDocument automatically, you only need to
> care about document and mainwindow).
That looks doable -- but doesn't createDoc() call the template dialog and all
that?
--
Boudewijn Rempt
http://www.valdyas.org/fading/index.cgi
[Attachment #5 (application/pgp-signature)]
____________________________________
koffice mailing list
koffice@kde.org
To unsubscribe please visit:
https://mail.kde.org/mailman/listinfo/koffice
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic