implementation.h revision ce476a1fb346f635574c285a4815b8de8a6cdb68
/*
Author: Ted Gould <ted@gould.cx>
Copyright (c) 2003-2005,2007
This code is licensed under the GNU GPL. See COPYING for details.
This file is the backend to the extensions system. These are
the parts of the system that most users will never see, but are
important for implementing the extensions themselves. This file
contains the base class for all of that.
*/
} // namespace View
} // namespace UI
/** \brief A cache for the document and this implementation */
/** \brief The document that this instance is working on */
{
return;
};
virtual ~ImplementationDocumentCache ( ) { return; };
};
/**
* Base class for all implementations of modules. This is whether they are done systematically by
* having something like the scripting system, or they are implemented internally they all derive
* from this class.
*/
/* ----- Constructor / destructor ----- */
Implementation() {}
virtual ~Implementation() {}
/* ----- Basic functions for all Extension ----- */
/** \brief Create a new document cache object
* This function just returns \c NULL. Subclasses are likely
* to reimplement it to do something useful.
* \param ext The extension that is referencing us
* \param doc The document to create the cache of
* \return A new document cache that is valid as long as the document
* is not changed. */
virtual ImplementationDocumentCache * newDocCache (Inkscape::Extension::Extension * ext, Inkscape::UI::View::View * doc) { return NULL; }
/** Verify any dependencies. */
virtual bool cancelProcessing () { return true; }
virtual void commitDocument () {}
/* ----- Input functions ----- */
/** Find out information about the file. */
/* ----- Output functions ----- */
/** Find out information about the file. */
/* ----- Effect functions ----- */
/** Find out information about the file. */
/* ----- Print functions ----- */
SPDocument *doc) { return 0; }
/** \brief Tell the printing engine whether text should be text or path
* Default value is false because most printing engines will support
* paths more than they'll support text. (at least they do today)
* \retval true Render the text as a path
* \retval false Render text using the text function (above) */
/** \brief Get "fontEmbedded" param, i.e. tell the printing engine whether fonts should be embedded
* Only available for Adobe Type 1 fonts in EPS output as of now
* \retval true Fonts have to be embedded in the output so that the user might not need
* to install fonts to have the interpreter read the document correctly
* \retval false Do not embed fonts */
/* ----- Rendering methods ----- */
float opacity) { return 0; }
unsigned char *px,
unsigned int w,
unsigned int h,
unsigned int rs,
char const *text,
};
} /* namespace Implementation */
} /* namespace Extension */
} /* namespace Inkscape */
#endif /* __INKSCAPE_EXTENSION_IMPLEMENTATION_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 :