Marcin Floryan wrote:
On Wed, Apr 23, 2008 at 02:59:16PM +0100, Richard Henwood wrote:
Is it possible for me to invoke 'save as' from an extension?
In my extension, I would like to be able to turn off all text, then save file as pdf, then turn all text back on again
I suppose the answer is - that depends on the implementation. Most extensions are currently implemented as python scripts - and in that case the interface is rather simple and would not allow to execute Inkscape functionality when an extension is being run. Therefore an 'internal' implementation in C++ would probably be required to achieve this goal (if I understand your question correctly - hope I do).
Ted mentioned something about plugins but I have no idea what infrastructure / implementation was meant there.
I suppose one could think about creating an interface between Inkscape and the running external Extension via a simple messaging system using D-Bus architecture (especially that it already provides binding for Python among others). That would fit neatly with the plans to use D-Bus for Inkscape anyway.
Thanks for your thoughts on this. In my case, the extension is python; so as I thought, it is limited to walking/modifying the xml represenatation of the document.
I have added the namespace link to my inx file but the popularity of my extension suggests that it is not worth spending any more time working on a method to get my desired functionality.
thanks again, r