QString KoDocumentInfo::creator() const { KoDocumentInfoAuthor * authorPage = static_cast<KoDocumentInfoAuthor *>(page( "author" )); if ( !authorPage ) { kdWarning() << "'Author' page not found in documentInfo !" << endl; return QString::null; } else return authorPage->fullName(); }
void KPrWebPresentation::init() { KoDocumentInfo * info = doc->documentInfo(); KoDocumentInfoAuthor * authorPage = static_cast<KoDocumentInfoAuthor *>(info->page( "author" )); if ( !authorPage ) kdWarning() << "Author information not found in documentInfo !" << endl; else { author = authorPage->fullName(); email = authorPage->email(); } title = i18n("Slideshow"); kdDebug(33001) << "KPrWebPresentation::init : " << doc->getPageNums() << " pages." << endl; for ( unsigned int i = 0; i < doc->getPageNums(); i++ ) { if ( doc->isSlideSelected( i ) ) { SlideInfo info; info.pageNumber = i; info.slideTitle = doc->pageList().at(i)->pageTitle(); slideInfos.append( info ); } } if ( slideInfos.isEmpty() ) kdWarning() << "No slides selected!" << endl; backColor = Qt::white; textColor = Qt::black; titleColor = Qt::red; path = KGlobalSettings::documentPath() + "www"; zoom = 100; timeBetweenSlides = 0; m_encoding = QTextCodec::codecForLocale()->name(); }