24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Author</strong> Developer Guide | 1834. Copy the sdf.jar file into the frameworks / sdf folder.5. Add the sdf.jar to the <strong>Author</strong> class path. To do this, open the Options > Preferences > Document TypeAssociation dialog, select SDF and press the Edit button.6. Select the Classpath tab in the lower part of the dialog and press the Add button . In the displayed dialog enterthe location of the jar file, relative to the <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> frameworks folder.7. Let's create now the action which will use the defined operation. Click on the Actions label. Copy the icon files forthe menu item and for the toolbar in the frameworks / sdf folder.8. Define the action's properties:• Set ID to insert_image.• Set Name to Insert image.• Set Menu access key to letter i.• Set Toolbar action to ${frameworks}/sdf/toolbarImage.png.• Set Menu icon to ${frameworks}/sdf/menuImage.png.• Set Shortcut key to Ctrl+Shift+i.9. Now let's set up the operation. You want to add images only if the current element is a section, book or article.• Set the value of XPath expression tolocal-name()='section' or local-name()='book'or local-name()='article'• Set the Invoke operation field to simple.documentation.framework.InsertImageOperation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!