# Chapter 9. Menu entries

# 9.1. File

New Document

  Creates a new empty document named `"Untitled n"`, where `"n"` is a number used to identify this document in case there are more than one untitled documents open.

Open

  Opens the document the user has chosen from a file dialog box. If a document is already open, then this document gets hidden (but not closed) and the new is displayed.

Insert

  Opens the document the user has chosen from a file dialog box and inserts it into the current document (if any) starting from the cursor position.

Open Recent

  This submenu stores the five most recent used documents. This list is remembered from one session to the next.

Reload

  Reloads the current displayed document. A warning message becomes visible if the document contains unsaved changes.

Save

  Writes the document data to disk. If the document is untitled, then the user must specify a valid name. If backup creation has been enabled (see Customize) the original file on disk will be renamed first.

Save as

  Renames the current document name and writes data to disk. The original file on disk is left untouched.

Close Document

  Closes active document. If it contains unsaved changes, the user will be prompted to save data first.

Print Document

  Opens the print dialog box.

Export

  Opens the export dialog box. This dialog allows the user to export the data as shown in the editor. At the moment data can be exported as formatted text and as HTML tables.

Cancel Operation

  Stops a lengthy operation (eg., printing). The operation is not stopped immediately. The user has to confirm the action in a dialog box first.

Permissions

  This submenu contains options (Read only and Allow resize) that sets the read-write state of the document and the ability to resize a document.

New Window

  Opens a new editor window.

Close Window

  Closes this editor window. If there is only one window open, then KHexEdit is terminated.

Quit

  Closes KHexEdit. The user will be prompted to save unsaved documents first.