Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
nftemplate.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 MYPLUGIN_H
8
#define MYPLUGIN_H
9
10
#include "pluginapi.h"
11
#include "scplugin.h"
12
13
class
ScrAction
;
14
class
ScribusDoc
;
15
16
class
PLUGIN_API
NewFromTemplatePlugin
:
public
ScActionPlugin
17
{
18
Q_OBJECT
19
20
public
:
21
// Standard plugin implementation
22
NewFromTemplatePlugin
();
23
virtual
~
NewFromTemplatePlugin
();
25
virtual
bool
run
(
ScribusDoc
* doc, QString target = QString::null);
26
virtual
const
QString
fullTrName
()
const
;
27
virtual
const
AboutData
*
getAboutData
()
const
;
28
virtual
void
deleteAboutData(
const
AboutData
* about)
const
;
29
virtual
void
languageChange
();
30
virtual
void
addToMainWindowMenu
(
ScribusMainWindow
*) {};
31
32
// Special features (none)
33
};
34
35
extern
"C"
PLUGIN_API
int
newfromtemplateplugin_getPluginAPIVersion();
36
extern
"C"
PLUGIN_API
ScPlugin
* newfromtemplateplugin_getPlugin();
37
extern
"C"
PLUGIN_API
void
newfromtemplateplugin_freePlugin(
ScPlugin
* plugin);
38
39
class
MenuNFT
:
public
QObject
40
{
41
Q_OBJECT
42
43
public
:
44
MenuNFT
() {};
45
~
MenuNFT
() {};
46
47
public
slots:
48
void
RunNFTPlug(
ScribusDoc
*);
49
};
50
51
static
MenuNFT
* Nft;
52
53
#endif
NewFromTemplatePlugin::addToMainWindowMenu
virtual void addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition:
nftemplate.h:30
ScActionPlugin
A plug-in that performs a single action.
Definition:
scplugin.h:248
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
ScribusMainWindow
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition:
scribus.h:123
ScActionPlugin::run
virtual bool run(ScribusDoc *doc, QString target=QString::null)=0
Run the plug-in's main action.
ScPlugin::languageChange
virtual void languageChange()=0
Update all user-visible text to reflect current UI language.
ScribusDoc
the Document Class
Definition:
scribusdoc.h:90
NewFromTemplatePlugin
Definition:
nftemplate.h:16
MenuNFT
Definition:
nftemplate.h:39
ScPlugin::AboutData
ScPlugin provides an interface to ask plugins for information about themselves.
Definition:
scplugin.h:103
ScrAction
Definition:
scraction.h:33
ScPlugin::getAboutData
virtual const AboutData * getAboutData() const =0
Return descriptive information about the plug-in.
scribus
plugins
newfromtemplateplugin
nftemplate.h
Generated on Tue Sep 29 2015 09:15:06 for Scribus by
1.8.9.1