From koffice-devel Sat Aug 19 21:12:13 2006 From: "Benjamin K. Stuhl" Date: Sat, 19 Aug 2006 21:12:13 +0000 To: koffice-devel Subject: PATCH: kword2: put the templates back in the startup screen Message-Id: <200608191512.16452.bks24 () cornell ! edu> X-MARC-Message: https://marc.info/?l=koffice-devel&m=115602293927039 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2078917632==" --===============2078917632== Content-Type: multipart/signed; boundary="nextPart2006293.TC0DKn1knW"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2006293.TC0DKn1knW Content-Type: multipart/mixed; boundary="Boundary-01=_v635EP1R3yi0m2E" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_v635EP1R3yi0m2E Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Here's a patch to start fixing the startup screen in kword2; the setInstanc= e()=20 isn't strictly needed yet, since there are probably lots of other things=20 needed to be a proper KPart, but it's a good practice nonetheless. =2D- BKS --Boundary-01=_v635EP1R3yi0m2E Content-Type: text/x-diff; charset="us-ascii"; name="kword2-startup-templates-are-nice.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="kword2-startup-templates-are-nice.patch" Index: koffice/kword/part/KWDocument.cpp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-- koffice/kword/part/KWDocument.cpp (revision 574681) +++ koffice/kword/part/KWDocument.cpp (working copy) @@ -20,6 +20,7 @@ =20 // kword includes #include "KWDocument.h" +#include "KWFactory.h" #include "KWView.h" #include "KWCanvas.h" #include "KWPageManager.h" @@ -59,6 +60,9 @@ m_styleManager =3D new KoStyleManager(this); m_zoomMode =3D KoZoomMode::ZOOM_WIDTH; =20 + setInstance( KWFactory::instance(), false ); + setTemplateType( "kword_template" ); + connect (&m_frameLayout, SIGNAL(newFrameSet(KWFrameSet*)), this, SLOT(= addFrameSet(KWFrameSet*))); =20 // Init shape Factories with our frame based configuration panels. --Boundary-01=_v635EP1R3yi0m2E-- --nextPart2006293.TC0DKn1knW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) iD8DBQBE536w5i0b/eJRajwRAr4uAKCWpK48BXmsRsRNa7emv9hY2XUqMwCfcPW7 JV91GBkg76iosUUnBO0fzeY= =Ww9Z -----END PGP SIGNATURE----- --nextPart2006293.TC0DKn1knW-- --===============2078917632== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel --===============2078917632==--