Back to index

scribus-ng  1.3.4.dfsg+svn20071115
mypluginimpl.cpp
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #include "mypluginimpl.h"
00008 #include "scribusdoc.h"
00009 
00010 #include <qstring.h>
00011 #include <qmessagebox.h>
00012 
00013 // Initialize members here, if any
00014 MyPluginImpl::MyPluginImpl() : QObject(0, "MyPluginImpl")
00015 {
00016 }
00017 
00018 bool MyPluginImpl::run(const QString & target, ScribusDoc* doc)
00019 {
00020        // Do the bulk of your work here
00021        QMessageBox::information(
00022                      (QWidget*)doc->scMW(),
00023                      tr("Scribus - My Plugin"),
00024                      tr("The plugin worked!"),
00025                      QMessageBox::Ok|QMessageBox::Default|QMessageBox::Escape,
00026                      QMessageBox::NoButton);
00027        return true;
00028 }