This is a multi-part message in MIME format. --------------A6E008E03A236A5ECF4E0823 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! The handling of KPresenter's autoforms was messy. It only saved absolute paths (which broke on other machines, of course)! Therefore I fixed saving and added a workaround for loading. Another thing is that the navigation pixmaps for web- presentations was missing. I decided that it's the best to add a resource dir instead of concattenating paths ;) Cristian: This also fixes the Autoforms bug in your old presentations. I'm still working on the pixmap stuff, because this is a bit tricky ;) -- Werner Trobin - wtrobin@mandrakesoft.com --------------A6E008E03A236A5ECF4E0823 Content-Type: text/plain; charset=us-ascii; name="kpresenter.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="kpresenter.diff" Index: kpautoformobject.cc =================================================================== RCS file: /home/kde/koffice/kpresenter/kpautoformobject.cc,v retrieving revision 1.29 diff -b -u -p -r1.29 kpautoformobject.cc --- kpautoformobject.cc 2000/08/26 18:14:56 1.29 +++ kpautoformobject.cc 2000/08/30 10:11:07 @@ -20,6 +20,7 @@ #include "kpautoformobject.h" #include "kpresenter_utils.h" #include "kpgradient.h" +#include #include #include @@ -162,10 +163,15 @@ void KPAutoformObject::save( QTextStream out << indent << "" << endl; out << indent << "" << endl; - QString afDir = locate( "autoforms", "" ); - int len = afDir.length(); - QString str = filename; - str = str.remove( 0, len ); + QStringList afDirs = KPresenterFactory::global()->dirs()->resourceDirs("autoforms"); + QValueList::ConstIterator it=afDirs.begin(); + QString str; + for( ; it!=afDirs.end(); ++it) { + if(filename.startsWith(*it)) { + str=filename.mid((*it).length()); + break; + } + } out << indent << "" << endl; out << indent << "( fillType ) << "\"/>" << endl; out << indent << "dirs()->addResourceType("autoforms", KStandardDirs::kde_default("data") + "kpresenter/autoforms/"); + s_global->dirs()->addResourceType("slideshow", + KStandardDirs::kde_default("data") + "kpresenter/slideshow/"); // Tell the iconloader about share/apps/koffice/icons s_global->iconLoader()->addAppDir("koffice"); } Index: webpresentation.cc =================================================================== RCS file: /home/kde/koffice/kpresenter/webpresentation.cc,v retrieving revision 1.33 diff -b -u -p -r1.33 webpresentation.cc --- webpresentation.cc 2000/08/06 14:34:07 1.33 +++ webpresentation.cc 2000/08/30 10:11:12 @@ -175,9 +175,9 @@ void KPWebPresentation::initCreation( KP while ( pics[ index ] ) { filename = pics[index] + format; - system( QString( "cp %1 %2/pics/%3" ). - arg( locate( "appdata", "slideshow/" + filename ) ). - arg( path ).arg( filename ).latin1() ); + system( QFile::encodeName( QString( "cp %1 %2/pics/%3" ). + arg( locate( "slideshow", filename, KPresenterFactory::global() ) ). + arg( path ).arg( filename ) ) ); p = progressBar->value(); progressBar->setValue( ++p ); kapp->processEvents(); @@ -284,7 +284,7 @@ void KPWebPresentation::createSlidesHTML if ( !email.isEmpty() ) html += ""; - html += " - created with KPresenter\n"; + html += " - created with KPresenter\n"; html += "
\n"; html += "\n"; --------------A6E008E03A236A5ECF4E0823--