Example: Configuring the Insert Table Action for a Framework
This topic describes the procedure for defining the Insert Table action for a custom framework. Suppose that you want to create an action that inserts a table with three rows and three columns into a document and the first row is the table header. As with the insert section action, you will use the InsertFragmentOperation built-in operation.
Place the icon files for the menu item, and for the toolbar, in your custom framework directory ([OXYGEN_INSTALL_DIR]\frameworks\[CUSTOM_FRAMEWORK_DIR]).
- Set ID field to insert_table.
- Set Name field to Insert table.
- Set Menu access key field to t.
- Set Description field to Adds a table element.
- Set Toolbar icon to ${framework} / toolbarIcon.png.
- Set Menu icon to ${framework} / menuIcon.png.
- Set Shortcut key to Ctrl + Shift + T (Command + Shift + T on macOS).
-
Set up the action's functionality: