diff options
Diffstat (limited to 'src/translators/htmlexporter.cpp')
-rw-r--r-- | src/translators/htmlexporter.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/translators/htmlexporter.cpp b/src/translators/htmlexporter.cpp index 6cb38b4..2e006a3 100644 --- a/src/translators/htmlexporter.cpp +++ b/src/translators/htmlexporter.cpp @@ -483,8 +483,8 @@ TQWidget* HTMLExporter::widget(TQWidget* parent_, const char* name_/*=0*/) { return m_widget; } -void HTMLExporter::readOptions(KConfig* config_) { - KConfigGroup exportConfig(config_, TQString::fromLatin1("ExportOptions - %1").arg(formatString())); +void HTMLExporter::readOptions(TDEConfig* config_) { + TDEConfigGroup exportConfig(config_, TQString::fromLatin1("ExportOptions - %1").arg(formatString())); m_printHeaders = exportConfig.readBoolEntry("Print Field Headers", m_printHeaders); m_printGrouped = exportConfig.readBoolEntry("Print Grouped", m_printGrouped); m_exportEntryFiles = exportConfig.readBoolEntry("Export Entry Files", m_exportEntryFiles); @@ -495,8 +495,8 @@ void HTMLExporter::readOptions(KConfig* config_) { + m_entryXSLTFile + TQString::fromLatin1(".xsl")); } -void HTMLExporter::saveOptions(KConfig* config_) { - KConfigGroup cfg(config_, TQString::fromLatin1("ExportOptions - %1").arg(formatString())); +void HTMLExporter::saveOptions(TDEConfig* config_) { + TDEConfigGroup cfg(config_, TQString::fromLatin1("ExportOptions - %1").arg(formatString())); m_printHeaders = m_checkPrintHeaders->isChecked(); cfg.writeEntry("Print Field Headers", m_printHeaders); m_printGrouped = m_checkPrintGrouped->isChecked(); @@ -562,7 +562,7 @@ TQString HTMLExporter::handleLink(const TQString& link_) { // the tmpDir() when exporting entry files from a collection, but those images // don't actually exist, and they get copied in writeImages() instead. // so we only need to keep track of the url if it exists - const bool exists = KIO::NetAccess::exists(u, false, 0); + const bool exists = TDEIO::NetAccess::exists(u, false, 0); if(exists) { m_files.append(u); } @@ -620,10 +620,10 @@ void HTMLExporter::createDir() { myDebug() << "HTMLExporter::createDir() - called on empty URL!" << endl; return; } - if(KIO::NetAccess::exists(dir, false, 0)) { + if(TDEIO::NetAccess::exists(dir, false, 0)) { m_checkCreateDir = false; } else { - m_checkCreateDir = !KIO::NetAccess::mkdir(dir, m_widget); + m_checkCreateDir = !TDEIO::NetAccess::mkdir(dir, m_widget); } } @@ -647,12 +647,12 @@ bool HTMLExporter::copyFiles() { target = fileDir(); } target.setFileName((*it).fileName()); - bool success = KIO::NetAccess::file_copy(*it, target, -1, true /* overwrite */, false /* resume */, m_widget); + bool success = TDEIO::NetAccess::file_copy(*it, target, -1, true /* overwrite */, false /* resume */, m_widget); if(success) { m_copiedFiles.add((*it).url()); } else { kdWarning() << "HTMLExporter::copyFiles() - can't copy " << target << endl; - kdWarning() << KIO::NetAccess::lastErrorString() << endl; + kdWarning() << TDEIO::NetAccess::lastErrorString() << endl; } if(j%stepSize == 0) { if(options() & ExportProgress) { @@ -741,11 +741,11 @@ bool HTMLExporter::writeEntryFiles() { dataDir.setPath(TDEGlobal::dirs()->findResourceDir("appdata", TQString::fromLatin1("pics/tellico.png")) + "pics/"); KURL target = fileDir(); target.addPath(TQString::fromLatin1("pics/")); - KIO::NetAccess::mkdir(target, m_widget); + TDEIO::NetAccess::mkdir(target, m_widget); for(TQStringList::ConstIterator it = dataImages.begin(); it != dataImages.end(); ++it) { dataDir.setFileName(*it); target.setFileName(*it); - KIO::NetAccess::copy(dataDir, target, m_widget); + TDEIO::NetAccess::copy(dataDir, target, m_widget); } return true; |