Scribus
Open source desktop publishing at your fingertips
impositionplugin.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 /***************************************************************************
8  begin : Jun 2007
9  copyright : (C) 2007 by Mateusz Haligowski
10  email : halish@kofeina.org
11  ***************************************************************************/
12 
13 /***************************************************************************
14  * *
15  * This program is free software; you can redistribute it and/or modify *
16  * it under the terms of the GNU General Public License as published by *
17  * the Free Software Foundation; either version 2 of the License, or *
18  * (at your option) any later version. *
19  * *
20  ***************************************************************************/
21 #ifndef IMPOSITION_H
22 #define IMPOSITION_H
23 
24 #include "pluginapi.h"
25 #include "scplugin.h"
26 
27 class ScribusDoc;
28 
29 class PLUGIN_API ImpositionPlugin : public ScActionPlugin
30 {
31  Q_OBJECT
32 
33  public:
35  virtual ~ImpositionPlugin();
36 
37  virtual bool run(QWidget* parent, ScribusDoc* doc, QString target = QString::null);
38  virtual bool run(ScribusDoc* doc, QString target = QString::null);
39  virtual void languageChange();
40  virtual const QString fullTrName() const;
41  virtual const AboutData* getAboutData() const;
42  virtual void deleteAboutData(const AboutData* about) const;
44 };
45 
46 extern "C" PLUGIN_API int imposition_getPluginAPIVersion();
47 extern "C" PLUGIN_API ScPlugin* imposition_getPlugin();
48 extern "C" PLUGIN_API void imposition_freePlugin(ScPlugin* plugin);
49 
50 
51 
52 #endif
53 
A plug-in that performs a single action.
Definition: scplugin.h:248
virtual const QString fullTrName() const =0
Plug-in's human-readable, translated name.
Abstract super class for all Scribus plug-ins.
Definition: scplugin.h:90
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
virtual bool run(ScribusDoc *doc, QString target=QString::null)=0
Run the plug-in's main action.
virtual void languageChange()=0
Update all user-visible text to reflect current UI language.
the Document Class
Definition: scribusdoc.h:90
ScPlugin provides an interface to ask plugins for information about themselves.
Definition: scplugin.h:103
virtual const AboutData * getAboutData() const =0
Return descriptive information about the plug-in.
virtual void addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition: impositionplugin.h:43
Definition: impositionplugin.h:29