Changeset View
Changeset View
Standalone View
Standalone View
src/pluginloader.cpp
Show All 39 Lines | |||||
40 | # include "taglibplugin.h" | 40 | # include "taglibplugin.h" | ||
41 | #endif // HAVE_TAGLIB | 41 | #endif // HAVE_TAGLIB | ||
42 | #if HAVE_EXIV2 | 42 | #if HAVE_EXIV2 | ||
43 | #include "exiv2plugin.h" | 43 | #include "exiv2plugin.h" | ||
44 | #endif // HAVE_EXIV2 | 44 | #endif // HAVE_EXIV2 | ||
45 | #if HAVE_PODOFO | 45 | #if HAVE_PODOFO | ||
46 | # include "podofoplugin.h" | 46 | # include "podofoplugin.h" | ||
47 | #endif // HAVE_PODOFO | 47 | #endif // HAVE_PODOFO | ||
48 | #if HAVE_KARCHIVE | ||||
49 | # include "odfplugin.h" | ||||
50 | #endif // HAVE_KARCHIVE | ||||
48 | #if HAVE_FREETYPE | 51 | #if HAVE_FREETYPE | ||
49 | # include "fontplugin.h" | 52 | # include "fontplugin.h" | ||
50 | #endif // HAVE_FREETYPE | 53 | #endif // HAVE_FREETYPE | ||
51 | 54 | | |||
52 | PluginLoader *PluginLoader::s_instance = nullptr; | 55 | PluginLoader *PluginLoader::s_instance = nullptr; | ||
53 | 56 | | |||
54 | PluginLoader *PluginLoader::Instance() | 57 | PluginLoader *PluginLoader::Instance() | ||
55 | { | 58 | { | ||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 151 | #endif | |||
150 | m_plugins.append(new SystemPlugin(this)); | 153 | m_plugins.append(new SystemPlugin(this)); | ||
151 | 154 | | |||
152 | #if HAVE_TAGLIB | 155 | #if HAVE_TAGLIB | ||
153 | m_plugins.append(new TagLibPlugin(this)); | 156 | m_plugins.append(new TagLibPlugin(this)); | ||
154 | #endif // HAVE_TAGLIB | 157 | #endif // HAVE_TAGLIB | ||
155 | #if HAVE_PODOFO | 158 | #if HAVE_PODOFO | ||
156 | m_plugins.append(new PodofoPlugin(this)); | 159 | m_plugins.append(new PodofoPlugin(this)); | ||
157 | #endif // HAVE_PODOFO | 160 | #endif // HAVE_PODOFO | ||
161 | #if HAVE_KARCHIVE | ||||
162 | m_plugins.append(new OdfPlugin(this)); | ||||
163 | #endif // HAVE_KARCHIVE | ||||
158 | m_plugins.append(new TranslitPlugin(this)); | 164 | m_plugins.append(new TranslitPlugin(this)); | ||
159 | m_plugins.append(new SnumPlugin(this)); | 165 | m_plugins.append(new SnumPlugin(this)); | ||
160 | //this->loadFilePlugins(); | 166 | //this->loadFilePlugins(); | ||
161 | 167 | | |||
162 | // Fill the token map | 168 | // Fill the token map | ||
163 | QList<Plugin *>::iterator it = m_plugins.begin(); | 169 | QList<Plugin *>::iterator it = m_plugins.begin(); | ||
164 | while (it != m_plugins.end()) { | 170 | while (it != m_plugins.end()) { | ||
165 | if (((*it)->type() & ePluginType_Token)) { | 171 | if (((*it)->type() & ePluginType_Token)) { | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |