Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions
myplugin.cpp File Reference
#include "myplugin.h"
#include "mypluginimpl.h"

Go to the source code of this file.

Functions

int myplugin_getPluginAPIVersion ()
ScPlugin * myplugin_getPlugin ()
void myplugin_freePlugin (ScPlugin *plugin)

Function Documentation

void myplugin_freePlugin ( ScPlugin *  plugin)

Definition at line 83 of file myplugin.cpp.

{
       MyPlugin* plug = dynamic_cast<MyPlugin*>(plugin);
       Q_ASSERT(plug);
       delete plug;
}
ScPlugin* myplugin_getPlugin ( )

Definition at line 76 of file myplugin.cpp.

{
       MyPlugin* plug = new MyPlugin();
       Q_CHECK_PTR(plug);
       return plug;
}

Definition at line 71 of file myplugin.cpp.

{
       return PLUGIN_API_VERSION;
}