1.6. Tools menu
Prev | 1. Menus | Next

### 1.6. Tools menu

Declare Namespace

  Displays Declare Namespace dialog box.

  This command is disabled if current document uses a DTD as its grammar. See Namespace support in XXE.

Edit Attribute

  Displays Attributes tool.

Check Validity

  Displays Validity tool, unless no validity errors are found in current document, in which case an OK message is displayed in the status bar.

  This command is disabled if current document is not constrained by a grammar.

  ### Tip

  Current document validity is automatically checked each time the document is saved, therefore unless you are fixing an invalid document you don't really need to explicitly use this command.

Check Spelling

  Displays Spell tool, unless no spelling errors are found in current document (starting from caret position), in which case an OK message is displayed in the status bar.

Automatic Spell Checker

  Toggle used to activate and deactivate the automatic (AKA on-the-fly) spell checker. See also option "Activate if this is specified in the configuration file".

  This menu item is present only in XMLmind XML Editor Professional Edition.

Execute Command

  For advanced users only. Displays a dialog box which allows to choose a command by name. This is needed when a command is not bound to a keystroke, menu item or tool bar button. Example: command `convertCase` (see Section 11, “convertCase” in XMLmind XML Editor - Commands). This facility is especially useful when recording a macro-command.

#### 1.6.1. Spreadsheet menu

This menu is present only in XMLmind XML Editor Professional Edition.

Show Table Labels, Hide Table Labels

  Makes tables look like spreadsheets by adding A1-style labels to their columns and to their rows. This is very useful when you want to type cell references such as A1:C3 in a formula.

Insert/Edit Formula

  If a formula (`xxe-formula` processing instruction) is explicitly selected, a specialized formula editor is opened to allow the user to modify the formula.

  Otherwise, a specialized formula editor is opened to allow the user to insert a new formula at caret position. Inserting a new formula in an empty element works too: simply explicitly select this empty element and use this menu item.

Disable Selected Formulas, Enable Selected Formulas

  Disables/enables all the formulas (`xxe-formula` processing instruction) found in the explicit node selection or in the text selection.

  Disabling a formula means passivating it. That is, it is no longer used to update the document. In some cases, this is a handy alternative to removing it.

  ### Tip

  In the styled view, formulas are represented by a small F icon. Clicking on this icon with the middle button of the mouse allows to switch the state of the formula from enabled to disabled and vice-versa.

Remove Selected Formulas

  Remove all the formulas (`xxe-formula` processing instruction) found in the explicit node selection or in the text selection.

Clear External Document Cache

  Clears the cache of external documents accessed by formulas.

  Formulas can access external documents using XPath escapes (example: ``document("tutorial/VATrates.html#france_vat",.)``). Such access is generally slow and therefore, documents need to be cached the first time they are loaded.

  However, the cache is not very smart and will often not be able to detect changes in the external document. This problem will happen if the change happens in a module included by the document or if the document is stored on a remote HTTP or FTP server. In this is case, disabling the cache and also disabling the auto-update mode are recommended.

  See also Spreadsheet options.

Auto-update Mode

  This toggle may be used to switch from auto-update mode to manual update mode.

  In manual update mode, only newly inserted formulas are computed. To force a full calculation, the user has to explicitly use the Update command below.

  In auto-update mode, a full calculation is automatically performed, if needed to, when the editing context changes. For example: type some text in a paragraph, then click in (or tab to) another paragraph to trigger a spreadsheet calculation.

  Note that in both modes, a full calculation is automatically performed, if needed to, before validating or saving the document.

  Using manual update mode is recommended if you have a slow computer or if you have inserted a lot of formulas in your document or if your formulas access many external documents.

  See also Spreadsheet options.

Update

  Forces a full calculation of the spreadsheet.

#### 1.6.2. "Record Macro" menu

This menu allows to record a sequence of commands and to replay the recorded sequence at will.

This menu is present only in XMLmind XML Editor Professional Edition.

This facility used in conjunction with Select|Find Element facility or with the Search tool may be seen as an advanced, versatile, yet simple to use, form of search/replace.

Start

  Starts recording a sequence of commands.

Stop

  Stops recording the sequence of commands.

Cancel

  Cancels the recording of a sequence of commands.

View

  Displays a dialog box containing recorded macro in XML form. Very handy to paste it in an XXE configuration file (see Section 2, “command” in XMLmind XML Editor - Configuration and Deployment).

Replay

  Replays recorded sequence of commands.

Procedure 1. Procedure for recording a sequence of commands

1. Use the Start menu item.

2. Invoke commands as usual: use key bindings, menu items and tool bar buttons.

   Typing some text is of course supported. ``Tabbing'' from a text node to another is supported too.

   The following tools can also be used during a recording: Edit, Attributes, Search, Characters.

   If you use the Search tool during a recording, just use the search part; do not use the replace part. And after the searched string is found and selected, click on the Stop button of the Search tool to give keyboard focus back to the document view. This will allow you to continue adding more commands to the recorded sequence.

3. Use the Stop menu item.

Only editing commands can be recorded. That is, commands that modify the contents and/or the selection marks of the document being edited. Actions such as File|Open or Style|Both Tree and Styled Views cannot be recorded.

At most 20 commands can be recorded. Typing contiguous characters, no matter how many, counts as a single command.

Attempting to record the following commands will automatically cause macro recording to be canceled:

- any command triggered by a mouse click,

- Undo, Redo, Repeat,

- any command which fails (example: searching a string and this string is not found),

- any command which cannot be executed given current editing context (example: pasting some text to a place where the schema forbids to do so).

Recording interactive command such as Insert After works as expected: it is the command along with the element interactively chosen by the user which is recorded, and not the interactive invocation of Edit|Insert After (i.e. which activates the Edit tool or which displays the equivalent dialog box).

Recording command Execute Command is fully supported and works as expected: it is the command executed by Tools|Execute Command which is recorded, and not the invocation of Tools|Execute Command.

Prev | Up | Next
1.5. View menu | Home | 1.7. XML menu