A variety of actions are available in the DITA framework that can be added to the
DITA menu, the Author Custom Actions toolbar,
the contextual menu, and the Content Completion Assistant.
DITA Menu Actions
In addition to the
DITA toolbar
actions, the following default actions are available in the
DITA menu when editing in
Author mode:
Reuse
Content
-
This action provides a mechanism for reusing content fragments. It opens the Reuse Content dialog box that allows you to insert
several types of references to reusable content at the cursor position. The types of
references that you can insert using this dialog box include content references (conref), content key references (conkeyref), or key references to metadata (keyref).
- Push Current Element
- Opens the Push current element dialog box that allows content
from a source topic to be inserted into another topic without any special coding in the
topic where the content will be re-used.
- Insert/Edit Content Reference
- Opens the Insert/Edit Content Reference dialog box that allows
you to select/change the source location (or key) and source element of a content
reference (or content key reference), and the reference details
(conref/conkeyref and conrefend
attributes). See the Reuse Content Dialog Box
topic for more information.
- Replace Reference with content
- Replaces the referenced fragment (conref or
conkeyref) at the cursor position with its content. This action is
useful if you want to make changes to the content in the currently edited document
without changing the referenced fragment in its source location.
- Remove Content Reference
- Removes the content reference (conref or conkeyref)
inside the element at the cursor position.
- Create Reusable Component
- Creates a reusable component from the selected fragment of text. For more information,
see Creating a Reusable Content Component.
- Insert Reusable Component
- Inserts a reusable component at cursor location. For more information, see Inserting a Reusable Content Component.
Paste special
submenu
- This submenu includes the following special paste actions that are specific to the
DITA framework:
- Paste as content reference
- Inserts a content reference (a DITA element with a conref
attribute) to the DITA XML element from the clipboard. An entire DITA XML element
with an ID attribute must be present in the clipboard when the action is invoked.
The conref attribute will point to this ID value.
- Paste as content key reference
- Allows you to indirectly reference content using the conkeyref
attribute. When the DITA content is processed, the key references are resolved
using key definitions from DITA maps. To use this action, do the following:
- Set the id attribute of the element holding the content you
want to reference.
- Open the DITA map in the DITA Maps Manager view and
make sure that the Root map combo box points to the
correct map that stores the keys.
- Right click the topic that holds the content you want to reference, select
Edit Properties, and enter a value in the
Keys field.
- Paste as link
- Inserts a link element or an xref (depending
on the location of the paste operation) that points to the DITA XML element from
the clipboard. An entire DITA XML element with an ID attribute must be present in
the clipboard when the action is invoked. The href attribute of
link/href will point to this ID value.
- Paste as link (keyref)
- Inserts a link to the element that you want to reference. To use this action, do
the following:
- Set the id attribute of the element that you want to
reference.
- Open the DITA map in the DITA Maps Manager view and
make sure that the Root map combo box points to the
correct map that stores the keys.
- Right click the topic that holds the content you want to reference, select
Edit Properties, and enter a value in the
Keys field.
- Table submenu
- In addition to the table actions available on the toolbar, the following actions are
available in this submenu:
Insert Row
Above
- Inserts a new table row with empty cells above the current row. This action is
available when the cursor is positioned inside a table.
- Insert Rows
- Opens a dialog box that allows you to insert any number of rows and specify the
position where they will be inserted (Above or
Below the current row).
Insert Column
Before
- Inserts a column before the current one.
- Insert Columns
- Opens a dialog box that allows you to insert any number of columns and specify the
position where they will be inserted (Above or
Below the current column).
- Opens the XML Fragment Editor that allows you to insert and
edit MathML notations.
- ID Options
- Opens the ID Options dialog box that allows you to configure
options for generating IDs in Author mode. The dialog box
includes the following:
- ID Pattern
- The pattern for the ID values that will be generated. This text field can be
customized using constant strings and most of the supported Editor Variables.
- Element name or class value to generate ID for
- The elements for which ID values will be generated, specified using class
attribute values. To customize the list, use the Add,
Edit, or Remove buttons.
- Auto generate IDs for elements
- If enabled, Oxygen XML Editor will automatically generate unique IDs for
the elements listed in this dialog box when they are created in
Author mode.
- Remove IDs when copying content in the same document
- Allows you to control whether or not pasted elements that are listed in this
dialog box should retain their existing IDs when copying content in the same
document. To retain the element IDs, disable this option.
- Generate IDs
-
Oxygen XML Editor generates unique IDs for the current element (or elements),
depending on how the action is invoked:
- When invoked on a single selection, an ID is generated for the selected element
at the cursor position.
- When invoked on a block of selected content, IDs are generated for all top-level
elements and elements from the list in the ID Options
dialog box that are found in the current selection.
Note: The
Generate IDs action does
not overwrite existing ID values. It only affects elements that do not already have
an
id attribute.
- Style Guide
- Opens the DITA Style Guide Best Practices for Authors in your browser and
displays a topic that is relevant to the element at the cursor position. When editing
DITA documents, this action is available in the contextual menu of the editing area
(under the About Element sub-menu), in the
DITA menu, and in some of the documentation tips that are
displayed by the Content Completion Assistant.
Refresh
References
- You can use this action to manually trigger a refresh and update of all referenced
resources.
- Tags display mode Submenu
Full Tags with
Attributes - Displays full tag names with attributes for both block level
and in-line level elements.
Full Tags - Displays
full tag names without attributes for both block level and in-line level elements.
Block Tags - Displays
full tag names for block level elements and simple tags without names for in-line level
elements.
Inline Tags -
Displays full tag names for inline level elements, while block level elements are not
displayed.
Partial Tags -
Displays simple tags without names for in-line level elements, while block level
elements are not displayed.
No Tags - No tags are
displayed. This is the most compact mode and is as close as possible to a word-processor
view.
- Profiling/Conditional Text Submenu
- Edit Profiling Attributes - Allows you to configure the profiling attributes and their values.
- Show Profiling Colors and Styles - Select this option to turn
on conditional styling.
- Show Profiling Attributes - Select this option to turn on
conditional text markers. They are displayed at the end of conditional text blocks, as a
list of attribute name and their currently set values.
- Show Excluded Content - When this option is enabled, the
content filtered by the currently applied condition set is greyed-out. To show only the
content that matches the currently applied condition set, disable this option.
- List of all profiling condition sets that match the current document type - You
can click a listed condition set to activate it.
Profiling Settings -
Opens the profiling options preferences page, where you can manage profiling attributes
and profiling conditions sets. You can also configure the profiling styles and colors
options from the colors/styles preferences page and the attributes rendering preferences page.
DITA Contextual Menu Actions
In addition to many of the
DITA toolbar
actions and the
general
Author mode contextual menu actions, the following DITA
framework-specific actions are also available in the contextual menu when editing in
Author mode:
Paste special
submenu
- This submenu includes the following special paste actions that are specific to the
DITA framework:
- Paste as content reference
- Inserts a content reference (a DITA element with a conref
attribute) to the DITA XML element from the clipboard. An entire DITA XML element
with an ID attribute must be present in the clipboard when the action is invoked.
The conref attribute will point to this ID value.
- Paste as content key reference
- Allows you to indirectly reference content using the conkeyref
attribute. When the DITA content is processed, the key references are resolved
using key definitions from DITA maps. To use this action, do the following:
- Set the id attribute of the element holding the content you
want to reference.
- Open the DITA map in the DITA Maps Manager view and
make sure that the Root map combo box points to the
correct map that stores the keys.
- Right click the topic that holds the content you want to reference, select
Edit Properties, and enter a value in the
Keys field.
- Paste as link
- Inserts a link element or an xref (depending
on the location of the paste operation) that points to the DITA XML element from
the clipboard. An entire DITA XML element with an ID attribute must be present in
the clipboard when the action is invoked. The href attribute of
link/href will point to this ID value.
- Paste as link (keyref)
- Inserts a link to the element that you want to reference. To use this action, do
the following:
- Set the id attribute of the element that you want to
reference.
- Open the DITA map in the DITA Maps Manager view and
make sure that the Root map combo box points to the
correct map that stores the keys.
- Right click the topic that holds the content you want to reference, select
Edit Properties, and enter a value in the
Keys field.
- Table submenu
- In addition to the table actions available on the toolbar, the following actions are
available in this submenu when the contextual menu is invoked on a table:
Insert Row
Above
- Inserts a new table row with empty cells above the current row. This action is
available when the cursor is positioned inside a table.
- Insert Rows
- Opens a dialog box that allows you to insert any number of rows and specify the
position where they will be inserted (Above or
Below the current row).
Insert Column
Before
- Inserts a column before the current one.
- Insert Columns
- Opens a dialog box that allows you to insert any number of columns and specify the
position where they will be inserted (Above or
Below the current column).
- Opens the XML Fragment Editor that allows you to insert and
edit MathML notations.
- Generate IDs
-
Oxygen XML Editor generates unique IDs for the current element (or elements),
depending on how the action is invoked:
- When invoked on a single selection, an ID is generated for the selected element
at the cursor position.
- When invoked on a block of selected content, IDs are generated for all top-level
elements and elements from the list in the ID Options
dialog box that are found in the current selection.
Note: The
Generate IDs action does
not overwrite existing ID values. It only affects elements that do not already have
an
id attribute.
- Reuse submenu
- This submenu includes the following actions in regards to reusing content in DITA:
- Push Current Element
- Opens the Push current element dialog box that allows content
from a source topic to be inserted into another topic without any special coding in the
topic where the content will be re-used.
- Insert/Edit Content Reference
- Opens the Insert/Edit Content Reference dialog box that allows
you to select/change the source location (or key) and source element of a content
reference (or content key reference), and the reference details
(conref/conkeyref and conrefend
attributes). See the Reuse Content Dialog Box
topic for more information.
- Replace Reference with content
- Replaces the referenced fragment (conref or
conkeyref) at the cursor position with its content. This action is
useful if you want to make changes to the content in the currently edited document
without changing the referenced fragment in its source location.
- Remove Content Reference
- Removes the content reference (conref or conkeyref)
inside the element at the cursor position.
- Create Reusable Component
- Creates a reusable component from the selected fragment of text. For more information,
see Creating a Reusable Content Component.
- Insert Reusable Component
- Inserts a reusable component at cursor location. For more information, see Inserting a Reusable Content Component.
Search
References
- Finds the references to the id attribute value of the selected
element in all the topics from the current DITA map (opened in the DITA Maps
Manager view). The default shortcut of the action is Ctrl Shift
G and can be changed in the
DITA Topic document type.
- About Element submenu
- This submenu includes the following actions:
- Style Guide
- Opens the DITA Style Guide Best Practices for Authors in your browser and
displays a topic that is relevant to the element at the cursor position. When
editing DITA documents, this action is available in the contextual menu of the
editing area (under the About Element sub-menu), in the
DITA menu, and in some of the documentation tips that are
displayed by the Content Completion Assistant.
Browse reference manual
- Opens a reference to the documentation of the XML element closest to the cursor
position in a web browser.
Show
Definition
- Moves the cursor to the definition of the current element.
DITA Drag/Drop Actions
Dragging a file from the
Project view or DITA Maps Manager view and dropping it into a
DITA document that is edited in Author mode, creates a link to the
dragged file (the xref DITA element with the href
attribute) at the drop location. Dragging an image file from the default file system
application (Windows Explorer on Windows or Finder on Mac OS X, for example) and dropping it
into a DITA document inserts an image element (the image DITA element with
the href attribute) at the drop location.