diff options
Diffstat (limited to 'parts/documentation/plugins/chm')
-rw-r--r-- | parts/documentation/plugins/chm/docchmplugin.cpp | 15 | ||||
-rw-r--r-- | parts/documentation/plugins/chm/docchmplugin.h | 3 |
2 files changed, 18 insertions, 0 deletions
diff --git a/parts/documentation/plugins/chm/docchmplugin.cpp b/parts/documentation/plugins/chm/docchmplugin.cpp index cbd89a60..cfb0f8c0 100644 --- a/parts/documentation/plugins/chm/docchmplugin.cpp +++ b/parts/documentation/plugins/chm/docchmplugin.cpp @@ -115,6 +115,13 @@ bool DocCHMPlugin::needRefreshIndex(DocumentationCatalogItem* // item void DocCHMPlugin::autoSetupPlugin() { + // Clear groups, to allow for re-autosetup calls + config->deleteGroup("Index"); + config->deleteGroup("Index Settings"); + config->deleteGroup("Locations"); + config->deleteGroup("Search Settings"); + config->deleteGroup("TOC Settings"); + config->sync(); return; } @@ -194,4 +201,12 @@ void DocCHMPlugin::setCatalogURL(DocumentationCatalogItem* item) item->setURL(chmURL); } +ProjectDocumentationPlugin *DocCHMPlugin::projectDocumentationPlugin(ProjectDocType type) +{ + if (type == APIDocs) + return new ProjectDocumentationPlugin(this, type); + return DocumentationPlugin::projectDocumentationPlugin(type); +} + + #include "docchmplugin.moc" diff --git a/parts/documentation/plugins/chm/docchmplugin.h b/parts/documentation/plugins/chm/docchmplugin.h index 4d053333..5ac7d120 100644 --- a/parts/documentation/plugins/chm/docchmplugin.h +++ b/parts/documentation/plugins/chm/docchmplugin.h @@ -44,6 +44,9 @@ public: virtual TQStringList fullTextSearchLocations(); virtual void autoSetupPlugin(); + + virtual ProjectDocumentationPlugin* projectDocumentationPlugin(ProjectDocType type); + protected: TQString getSpecialData(const TQString& name, KURL url); }; |