Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scripter.h
1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
#ifndef SCRIPTER_H
8
#define SCRIPTER_H
9
10
#include "pluginapi.h"
11
#include "scplugin.h"
12
#include <scripterimpl.h>
13
14
15
class
PLUGIN_API
Scripter
:
public
ScPersistentPlugin
16
{
17
Q_OBJECT
18
19
public
:
20
Scripter
();
21
virtual
~
Scripter
();
22
virtual
bool
initPlugin
();
23
virtual
bool
cleanupPlugin
();
24
virtual
const
QString
fullTrName
()
const
;
25
virtual
const
AboutData
*
getAboutData
()
const
;
26
virtual
void
deleteAboutData(
const
AboutData
* about)
const
;
27
virtual
void
languageChange
();
28
virtual
void
addToMainWindowMenu
(
ScribusMainWindow
*);
29
30
private
:
31
ScripterImpl
*scripterImpl;
32
};
33
34
extern
"C"
PLUGIN_API
int
scripter_getPluginAPIVersion();
35
extern
"C"
PLUGIN_API
ScPlugin
* scripter_getPlugin();
36
extern
"C"
PLUGIN_API
void
scripter_freePlugin(
ScPlugin
* plugin);
37
38
#endif
ScPersistentPlugin::cleanupPlugin
virtual bool cleanupPlugin()=0
Deactivates the plugin for unloading / program quit.
ScPlugin::fullTrName
virtual const QString fullTrName() const =0
Plug-in's human-readable, translated name.
ScPlugin
Abstract super class for all Scribus plug-ins.
Definition:
scplugin.h:90
ScPlugin::addToMainWindowMenu
virtual void addToMainWindowMenu(ScribusMainWindow *)=0
Allow plugins to add to a main menu.
ScribusMainWindow
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition:
scribus.h:123
ScPlugin::languageChange
virtual void languageChange()=0
Update all user-visible text to reflect current UI language.
Scripter
Definition:
scripter.h:15
ScPersistentPlugin::initPlugin
virtual bool initPlugin()=0
Initialize the plugin.
ScPlugin::AboutData
ScPlugin provides an interface to ask plugins for information about themselves.
Definition:
scplugin.h:103
ScPersistentPlugin
A plug-in that is resident for the lifetime of the app.
Definition:
scplugin.h:454
ScPlugin::getAboutData
virtual const AboutData * getAboutData() const =0
Return descriptive information about the plug-in.
ScripterImpl
Definition:
scripterimpl.h:38
scribus
plugins
scripter
scripter.h
Generated on Tue Sep 29 2015 09:15:07 for Scribus by
1.8.9.1