5. View menu

Redraw

Rebuilds the view of the whole document, no matter which text or nodes are selected.

Updating the references contained in a modular document

This command has also the side-effect of automatically updating all the references contained in a modular document (see Copy as Reference). However for a reference to be updated, the referenced document must not have been modified in XXE and not yet saved to disk.

Example: document book.xml references chap1.xml, chap2.xml and chap2.xml. File chap1.xml, currently opened in XXE, has been modified then saved to disk. File chap2.xml is not currently opened in XXE. File chap3.xml, currently opened in XXE, has been modified but not yet saved to disk. Using this command will update what has been included from chap1.xml and chap2.xml, but not from chap3.xml, before rebuilding the view of book.xml.

Multiple Views

XXE allows to edit a document using several views at the same time, for example, the styled view, a TOC view and a tree view. Except for the XML source view, these views are “synchronized in real-time” (that is, reflect the same document content in real-time).

Add

Displays a dialog box which may be used to add a new view to current document tab. A document tab can contain up to 5 views: default central view, but also top, right, bottom, left views. A view is specified by selecting a CSS stylesheet among the available ones or, on the contrary, by selecting no stylesheet at all, which implies to use a tree view.

Close

Closes active view. Central view, which is supposed to be the main view, cannot be closed.

The active view is the view having the keyboard focus: the caret blinks in this view, and not in the other views of the document. To make a view the active one, simply click anywhere in it.

Use Current Views as Default

Displays a dialog box which may be used to save the current layout of views as the default for all documents having a given document type (e.g. all DocBook documents) or as the default for just the document being edited. The later feature is useful for example when you want the default views of a given large, monolithic, DocBook document to be the styled view and below it a small TOC view, but don't want all DocBook documents to be displayed this way.

Text Size

The items of this menu make it easy changing the base font size of the active document view, whether styled or not.

Tip

Use your mouse wheel while pressing the Ctrl key (Cmd key on the Mac) rather than use the Larger and Smaller menu items.

Larger

Use a base font size larger by 2pt for the active document view. The largest possible base font size is 24pt.

Smaller

Use a base font size smaller by 2pt for the active document view. The smallest possible base font size is 8pt.

Normal

Use the ``normal'', default, base font size (e.g. 12pt).

Use as Default

If the active document view is a tree view, apply the current font size to all the opened tree views and from now, use it as a default. If the active document view is a styled view, apply the current font size to all the opened styled views and from now, use it as a default.

This is a handy alternative to specifying the default base font size in the Preferences dialog box. The default base font size is specified in the Preferences dialog box by "Default font size" for the styled view and by "Base font size" for the tree view.

Display Images

You may need to enable this submenu by checking "Enable the View|Display Images Submenu" in OptionsPreferences, General|Features section.

Specifies how images are displayed in the active styled document view.

Normally

Display the image normally, that is, possibly scaled if this has been specified using attributes such as width and height.

as Thumbnails

Show the bounding box of the (possibly scaled) image and, if there is enough room in this rectangle, also show a thumbnail (at most 128x128 pixels large).

as Bounding Boxes

Show the bounding box of the (possibly scaled) image.

Use as Default

Apply the current display mode to all styled document views and from now, use it as a default.

This is a handy alternative to specifying the default display mode in the Preferences dialog box.

Note

  • Options "as thumbnails" and "as bounding boxes" have no effect on images having an intrinsic size smaller than 32x32 pixels. Such small images are always displayed normally.

  • If the bounding box is sufficiently large, it is used to display the thumbnail (when option "as thumbnails" has been selected) and useful information about the image (file size, image size, etc).

    However, when the bounding box is small, some information may be elided. Therefore do not be surprised if you have selected option "as thumbnails" and that for some images, you don't see any thumbnail. Also do not be surprised if some bounding boxes contain useful information about the image and other (smaller) bounding boxes are completely empty.

Show Tags

Allows to show, or on the contrary hide, element tags in the current styled view.

This setting may be specified once for all using the Preferences dialog box.

CSS stylesheet menu items

Below the above menu item, a menu item is added for each CSS stylesheet available for current document. Selecting the name of a stylesheet causes the document view to use this stylesheet. If a document view already uses the selected stylesheet, the stylesheet is reloaded from its file (which is very handy when developing a new CSS stylesheet).

Among these CSS stylesheet menu items, you may find an item called "XML source". This menu item behaves slightly differently from the other items. See below.