DocBook 5 Author Mode Actions
A variety of actions are available for DocBook 5 documents in the DocBook5 menu, toolbar, contextual menu, and the Content Completion Assistant.
DocBook 5 Toolbar Actions
The following default actions are available on the DocBook toolbar when editing in Author mode (by default, most of them are also available in the DocBook5 menu and in various submenus of the contextual menu):
- Bold
- Emphasizes the selected text by surrounding it with a bold tag. You can use this action on multiple non-contiguous selections.
- Italic
- Emphasizes the selected text by surrounding it with an italic tag. You can use this action on multiple non-contiguous selections.
- Underline
- Emphasizes the selected text by surrounding it with an underline tag. You can use this action on multiple non-contiguous selections.
- Link Actions Drop-Down Menu
-
The following link actions are available from this menu:
- Cross reference (link)
- Opens a dialog box that allows you to select a target to insert as a hypertext link.
- Cross reference (xref)
- Inserts a cross reference to other parts of the document.
- Web Link (ulink)
- Inserts a link that addresses its target with a URL (Universal Resource Locator).
- Insert OLink
-
Opens an OLink dialog box that allows you to insert a link that addresses its target indirectly, using the values of the
@targetdoc
and@targetptr
attributes that are present in a Targetset file.After you choose the Targetset URL, the structure of the target documents is presented. For each target document (
@targetdoc
), its content is displayed allowing you to easily identify the@targetptr
for the<olink>
element that will be inserted. You can also use the search fields to quickly identify a target. If you already know the values for targetdoc and targetptr, you can insert them directly in the corresponding fields. You can also edit an<olink>
using the Edit OLink action that is available on the contextual menu. The last used Targetset URL will be used to identify the edited target.To insert XREF text into the
<olink>
, enter the text in the xreftext field and make sure the Insert xreftext in the OLink option is selected. - Insert URI
- Inserts a URI element. The URI identifies a Uniform Resource Identifier (URI) in content.
- Edit OLink
- Opens a dialog box that allows you edit an existing OLink. See the Insert OLink action for more information.
- Insert Image
- Opens a dialog box that allows you to select the path of an image to insert at the cursor position. Depending on the current location, an image-type element is inserted. If the action is invoked between two block elements (such as paragraphs), the dialog box also allows you to provide a title.
- Insert Media Resource
- Opens a Choose Media dialog box that allows you to select the URL of a media object to be inserted into a document at the cursor position. The result will be that a reference to the specified video, audio, or embedded HTML frame is inserted and rendered in Author mode so that it can be played directly from there.
- Insert XInclude
- Opens a dialog box that allows you to browse and select content to be included and automatically generates the corresponding XInclude instruction.
- Section Drop-Down Menu
-
The following actions are available from this menu:
- Insert Section
- Inserts a new section or subsection in the document, depending on the current
context. For example, if the current context is
<sect1>
, then a<sect2>
is inserted. By default, this action also inserts a<para>
element as a child node. The<para>
element can be deleted if it is not needed. - Promote Section (Ctrl + Alt + LeftArrow (Command + Option + LeftArrow on macOS))
- Promotes the current node as a sibling of the parent node.
- Demote Section (Ctrl + Alt + RightArrow (Command + Option + RightArrow on macOS))
- Demotes the current node a child of the previous node.
- Insert Paragraph
- Insert a new paragraph element at current cursor position.
- Insert Equation
- Opens the XML Fragment Editor that allows you to insert and edit MathML notations.
- Insert List Item
- Inserts a list item in the current list type.
- Insert Ordered List
- Inserts an ordered list at the cursor position. A child list item is also automatically inserted by default. You can also use this action to convert selected paragraphs or other types of lists to an ordered list.
- Insert Itemized List
- Inserts an itemized list at the cursor position. A child list item is also automatically inserted by default. You can also use this action to convert selected paragraphs or other types of lists to an itemized list.
- Insert Variable List
- Inserts a DocBook variable list. A child list item is also inserted automatically by default. You can also use this action to convert selected paragraphs or other types of lists to a variable list.
- Insert Procedure List
- Inserts a DocBook
<procedure>
element. A<step>
child element is also inserted automatically. You can also use this action to convert selected paragraphs or other types of lists to a procedure list. - Sort
- Sorts cells or list items in a table.
- Insert Table
- Opens a dialog box that allows you to configure and insert a table. You can generate a
header and footer, set the number of rows and columns of the table and decide how the
table is framed. You can also use this action to convert selected paragraphs, lists, and
inline content (mixed content, text plus markup, that is rendered inside a block element) into a table,
with the selected content inserted in the first column, starting from the first row
after the header (if a header is inserted).Note: If the selection contains a mixture of elements that cannot be converted, you will receive an error message saying that Only lists, paragraphs, or inline content can be converted to tables.
- Insert Row
- Inserts a new table row with empty cells below the current row. This action is available when the cursor is positioned inside a table.
- Delete Row(s)
- Deletes the table row located at the cursor position or multiple rows in a selection.
- Insert Column
- Inserts a new table column with empty cells after the current column. This action is available when the cursor is positioned inside a table.
- Delete Column(s)
- Deletes the table column located at the cursor position or multiple columns in a selection.
- Table Properties
- Opens the Table properties dialog box that allows you to configure properties of a table (such as frame borders).
- Join Cells
- Joins the content of the selected cells (both horizontally and vertically).
- Split Cell
- Splits the cell at the cursor location. If Oxygen XML Editor detects more than one option to split the cell, a dialog box will be displayed that allows you to select the number of rows or columns to split the cell into.
Floating Contextual Toolbar for DocBook
Oxygen XML Editor includes a dynamic feature where certain editing contexts will trigger a floating toolbar with common actions that are available in the current editing context.
- When a
<para>
or<listitem>
element has a selection inside, the floating toolbar includes actions such as Bold, Italic, Underline, Subscript, and Superscript. - When an
<imagedata>
or<videodata>
element is selected, the floating toolbar includes a URL chooser where you can select the appropriate target. - When an
<olink>
element is selected, the floating toolbar includes an Edit OLink action. - When a
<link>
or<include>
element is selected, the floating toolbar includes a URL chooser where you can select the appropriate target. - When a
<programlisting>
element is selected, the floating toolbar includes a drop-down control where you can select the value of the@language
attribute. - When an
<itemizedlist>
,<orderdlist>
,<variablelist>
, or<procedure>
element is selected, the floating toolbar includes actions for converting it to a different type of list or sorting the list. - When a
<listitem>
,<varlistentry>
, or<step>
element is selected, the floating toolbar includes actions for moving the item up or down in the list/procedure. - When a
<row>
or<tr>
element is selected in a table, the floating toolbar includes various table-related actions (such as actions for editing table properties, inserting rows, or deleting rows). - When an
<entry>
or<td>
element is selected in a table, the floating toolbar includes various table-related actions (such as actions for editing table properties, inserting/deleting rows, or inserting/deleting columns). - When a
<table>
element is selected, the floating toolbar includes actions for editing table properties or sorting the table.
DocBook 5 Drag/Drop (or Copy/Paste) Actions
Dragging a file from the Project view and dropping it
into a DocBook 5 document that is edited in Author mode, creates a
link to the dragged file (the <link>
DocBook element) at the drop
location. Copy and paste actions work the same.
You can also drag images or media files from your system explorer or the Project view and drop them
into a DocBook 5 document (or copy and paste). This will insert the appropriate element at
the drop or paste location (for example, dropping/pasting an image will insert the
<imageobject>
DocBook element with an <imagedata>
child
element and a @fileref
attribute).