7 #ifndef _PLUGIN_MANAGER_
8 #define _PLUGIN_MANAGER_
16 #include "scribusapi.h"
48 static void* loadDLL( QString plugin );
49 static void* resolveSym(
void* plugin,
const char* sym );
50 static void unloadDLL(
void* plugin );
85 bool DLLexists(QString pluginName,
bool includeDisabled =
false)
const;
93 ScPlugin* getPlugin(
const QString & pluginName,
bool includeDisabled)
const;
96 void cleanupPlugins();
99 void savePreferences();
102 static QString platformDllExtension();
105 static int platformDllSearchFlags();
114 const QString getPluginPath(
const QString & pluginName)
const;
118 bool & enableOnStartup(
const QString & pluginName);
121 bool enabled(
const QString & pluginName);
137 QStringList pluginNames(
bool includeDisabled =
false,
138 const char* inherits = 0)
const;
140 virtual void changeEvent(QEvent *e);
144 void languageChange();
172 bool enableOnStartup;
185 int initPlugin(
const QString fileName);
191 static QString getPluginName(QString fileName);
204 QString callDLLForNewLanguage(
const PluginData & pluginData);
A plug-in that performs a single action.
Definition: scplugin.h:248
PrefsContext * prefs
Configuration structure.
Definition: pluginmanager.h:214
Abstract super class for all Scribus plug-ins.
Definition: scplugin.h:90
PluginData is structure for plugin related informations.
Definition: pluginmanager.h:166
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
PluginMap pluginMap
Plugin mapping. Each plugin has its record key() -> PluginData.
Definition: pluginmanager.h:222
QMap< QString, PluginData > PluginMap
Mapping of plugin names to plugin info structures.
Definition: pluginmanager.h:217
Definition: storyeditor.h:377
the Document Class
Definition: scribusdoc.h:90
PluginManager handles plugin loading, unloading, and running.
Definition: pluginmanager.h:35
A plug-in that is resident for the lifetime of the app.
Definition: scplugin.h:454
Definition: prefscontext.h:40