Storing FO processor configuration inside framework

Hi, I'm developing custom framework. Part of this framework is XEP FO engine with custom configuration (fonts, hyphenation, ...) -- this allows easy installation for users -- together with framework also XEP is installed and available. However there is one problem -- this XEP stored inside framework must be configured as an additional FO Processor using Preferences dialog box. This means that after adding framework into oXygen manual steps must be done (or alternatively XEP configuration can be stored in project file that must be opened). Is there some way to store FO Processor configuration into framework? Or invoke some code after framework is added to programatically update application preferences? Many thanks in advance, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

Dear Jirka, There are two possibilities to solve this: 1. Use ant based transformation scenarios As part of your framework define transformation scenarios based on ant scripts and those scripts can use the framework provided xep for example using a relative reference to its location. 2. Use a plugin that will update the options and will contribute also the framework If you create a plugin then you should be able to modify oXygen's options and one of the plugin extension points allows it to contribute a framework: https://www.oxygenxml.com/doc/versions/20.0/ug-editor/topics/additional-fram... One issue with this approach is that you cannot directly read the existing option value through the API, so you can only set the external FO processors to some value, which may not be ideal, as users may loose existing settings... Of course your plugin may show a dialog explaining that they gave the option to set that manually or accept the automatic setting which will overwrite the custom FO processors to that provided XEP only. Taking into account this issue I would recommend option 1. If you want to explore the second option more, let us know. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 10/05/18 12:07, Jirka Kosek wrote:
Hi,
I'm developing custom framework. Part of this framework is XEP FO engine with custom configuration (fonts, hyphenation, ...) -- this allows easy installation for users -- together with framework also XEP is installed and available.
However there is one problem -- this XEP stored inside framework must be configured as an additional FO Processor using Preferences dialog box. This means that after adding framework into oXygen manual steps must be done (or alternatively XEP configuration can be stored in project file that must be opened).
Is there some way to store FO Processor configuration into framework? Or invoke some code after framework is added to programatically update application preferences?
Many thanks in advance,
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
George Bina
-
Jirka Kosek