Chapter 2. Tutorial
Prev |  | Next

## Chapter 2. Tutorial

What follows is a description of the customization we want to do:

1. Change the (desktop) title and icon of XMLmind XML Editor.

2. Change the dialog box displayed by Help → About.

3. Add to the status bar a small tool which allows to count the words of a document.

4. Extend the dialog box displayed by Options → Preferences by adding a custom ``preferences sheet''. This preferences sheet is needed to parametrize the above word count tool.

5. Move iconic buttons which are specific to a given document type (i.e. DocBook buttons, XHTML buttons, etc) from their normal place, the standard tool bar, to a tool bar of their own. This new tool bar will be vertical and will be found at the left of the document views.

6. Replace by a contextual action the action taken when File → Print is selected. If the document being edited is a DocBook or XHTML one, the contextual action will convert the document to PDF using a method which is specific to its document type. Otherwise, the document will be printed normally.

7. Add a custom Characters menu after standard Edit menu. This Characters menu will allow to quickly insert special characters (Greek letters, arrows) in the document being edited.

To do this, we need not only to change the specification of the GUI of XXE, but also to develop custom parts in the Java™ language. These custom parts are:

- an action displaying the custom About dialog box;

- a word count tool;

- a preferences sheet for the above word count tool.

All this is explained in Chapter 11, Extending the GUI of XMLmind XML Editor in <ttl>XMLmind XML Editor - Developer's Guide</ttl> and the custom parts are found in ``XXE_install_dir`/doc/gui/tutorial/custom_parts.jar` with the other files of this tutorial. This being said, we can now focus on the specification of the user interface of XMLmind XML Editor.

Prev |  | Next
Chapter 1. Introduction | Home | 1. Changing the title and icon