diff options
| author | Ted Gould <ted@gould.cx> | 2007-07-03 03:48:19 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2007-07-03 03:48:19 +0000 |
| commit | 6cd6982e425027336976fb27d20803e2e866bf84 (patch) | |
| tree | ffbfdb6e6530464b7c17f5b996dce2ef3f7911be /src/extension/implementation/plugin.h | |
| parent | r15704@tres: ted | 2007-07-02 16:03:34 -0700 (diff) | |
| download | inkscape-6cd6982e425027336976fb27d20803e2e866bf84.tar.gz inkscape-6cd6982e425027336976fb27d20803e2e866bf84.zip | |
r15705@tres: ted | 2007-07-02 20:15:46 -0700
Removing some dead code.
(bzr r3164)
Diffstat (limited to 'src/extension/implementation/plugin.h')
| -rw-r--r-- | src/extension/implementation/plugin.h | 121 |
1 files changed, 0 insertions, 121 deletions
diff --git a/src/extension/implementation/plugin.h b/src/extension/implementation/plugin.h deleted file mode 100644 index 88658e954..000000000 --- a/src/extension/implementation/plugin.h +++ /dev/null @@ -1,121 +0,0 @@ -/** \file - * Inkscape::Extension::Implementation::Plugin - * - * Author: Ted Gould <ted@gould.cx> - * Copyright (c) 2004-2005 - * - * This code is licensed under the GNU GPL. See COPYING for details. - */ -#ifndef __INKSCAPE_EXTENSION_IMPLEMENTATION_PLUGIN_H__ -#define __INKSCAPE_EXTENSION_IMPLEMENTATION_PLUGIN_H__ - -#include <extension/implementation/implementation.h> -#include <glibmm/module.h> -#include "plugin-link.h" - -namespace Inkscape { -namespace Extension { -namespace Implementation { - -/** \brief For the most part this is a direct steal from \c implementation.h - in that all the functions have the same prototypes. The two - added things are a pointer to the loaded module and a pointer - to the symbol table in that. */ -class Plugin : public Implementation { - /** \brief A pointer to the module created when loading the plugin. */ - Glib::Module * _module; - /** \brief The symbol table that is in the plugin. It is pulled out - here so that it doesn't have to be grabbed as often. */ - inkscape_plugin_function_table * _symTable; - -public: - Plugin(void); - - /* ----- Basic functions for all Extension ----- */ - virtual bool load(Inkscape::Extension::Extension *module); - - virtual void unload(Inkscape::Extension::Extension *module); - - /** Verify any dependencies. */ - virtual bool check(Inkscape::Extension::Extension *module); - - - /* ----- Input functions ----- */ - /** Find out information about the file. */ - virtual Gtk::Widget *prefs_input(Inkscape::Extension::Input *module, - gchar const *filename); - - virtual SPDocument *open(Inkscape::Extension::Input *module, - gchar const *filename); - - /* ----- Output functions ----- */ - /** Find out information about the file. */ - virtual Gtk::Widget *prefs_output(Inkscape::Extension::Output *module); - virtual void save(Inkscape::Extension::Output *module, SPDocument *doc, gchar const *filename); - - /* ----- Effect functions ----- */ - /** Find out information about the file. */ - virtual Gtk::Widget * prefs_effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View * view); - /* TODO: need to figure out what we need here */ - - virtual void effect(Inkscape::Extension::Effect *module, - Inkscape::UI::View::View *document); - - /* ----- Print functions ----- */ - virtual unsigned setup(Inkscape::Extension::Print *module); - virtual unsigned set_preview(Inkscape::Extension::Print *module); - - virtual unsigned begin(Inkscape::Extension::Print *module, - SPDocument *doc); - virtual unsigned finish(Inkscape::Extension::Print *module); - virtual bool textToPath(Inkscape::Extension::Print *ext); - - /* ----- Rendering methods ----- */ - virtual unsigned bind(Inkscape::Extension::Print *module, - NRMatrix const *transform, - float opacity); - virtual unsigned release(Inkscape::Extension::Print *module); - virtual unsigned comment(Inkscape::Extension::Print *module, const char * comment); - virtual unsigned fill(Inkscape::Extension::Print *module, - NRBPath const *bpath, - NRMatrix const *ctm, - SPStyle const *style, - NRRect const *pbox, - NRRect const *dbox, - NRRect const *bbox); - virtual unsigned stroke(Inkscape::Extension::Print *module, - NRBPath const *bpath, - NRMatrix const *transform, - SPStyle const *style, - NRRect const *pbox, - NRRect const *dbox, - NRRect const *bbox); - virtual unsigned image(Inkscape::Extension::Print *module, - unsigned char *px, - unsigned int w, - unsigned int h, - unsigned int rs, - NRMatrix const *transform, - SPStyle const *style); - virtual unsigned text(Inkscape::Extension::Print *module, - char const *text, - NR::Point p, - SPStyle const *style); -}; - -} /* namespace Implementation */ -} /* namespace Extension */ -} /* namespace Inkscape */ - -#endif /* __INKSCAPE_EXTENSION_IMPLEMENTATION_PLUGIN_H__ */ - -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 : |
