Skip to main content
Visual Components are implemented in FRE for Windows.
MenuItemEnum enumeration constants describe different commands available in the Image Viewer, Zoom Viewer, Text Editor, or Document Viewer components. For more information about the components, in which the this or that command can be used, see the description of the corresponding constant. See also the list of available commands and the ways these commands can be used in each component:
typedef enum {
 MI_Separator,
 MI_SubMenu,
 // Changing block type
 MI_BlockType_RecognitionArea,
 MI_BlockType_Text,
 MI_BlockType_Table,
 MI_BlockType_Picture,
 MI_BlockType_Barcode,
 MI_BlockType_BackgroundPicture,
 // Image preprocessing
 MI_RotateClockwise,
 MI_RotateCounterClockwise,
 MI_RotateUpsideDown,
 MI_FlipHorizontal,
 MI_FlipVertical,
 MI_InvertImage,
 MI_StraightenTextLines,
 MI_DeskewImage,
 MI_CorrectResolution,
 MI_RemoveMotionBlur,
 MI_ReduceISONoise,
 MI_CorrectPerspective,
 MI_AutosplitImage
 MI_SplitImage,
 MI_CropImage,
 // Tool selection
 MI_ChooseTool_DrawRecognitionArea,
 MI_ChooseTool_DrawTextBlock,
 MI_ChooseTool_DrawTableBlock,
 MI_ChooseTool_DrawPictureBlock,
 MI_ChooseTool_DrawBackgroundPictureBlock,
 MI_ChooseTool_DrawBarcodeBlock,
 MI_ChooseTool_SelectObject,
 MI_ChooseTool_AddBlockPart,
 MI_ChooseTool_CutBlockPart,
 MI_ChooseTool_RenumberBlocks,
 MI_ChooseTool_DeleteBlock,
 MI_ChooseTool_AddVertSeparator,
 MI_ChooseTool_AddHorizSeparator,
 MI_ChooseTool_DeleteSeparator,
 MI_ChooseTool_Eraser,
 // Scaling
 MI_Scale_ZoomIn,
 MI_Scale_ZoomOut,
 MI_Scale_800,
 MI_Scale_600,
 MI_Scale_400,
 MI_Scale_300,
 MI_Scale_200,
 MI_Scale_175,
 MI_Scale_150,
 MI_Scale_125,
 MI_Scale_100,
 MI_Scale_75,
 MI_Scale_50,
 MI_Scale_25,
 MI_Scale_FitToWidth,
 MI_Scale_FitToHeight,
 MI_Scale_BestFit,
 MI_Scale_ZoomToSelBlocks,
 MI_Scale_PixelToPixel,
 // Processing
 MI_Read,
 MI_ReadBlock,
 MI_AnalyzeLayout,
 MI_AnalyzeLayoutInBlock,
 MI_AnalyzeTableStructure,
 // Printing
 MI_PrintImage,
 MI_PrintText,
 MI_Properties,
 // Editing
 MI_Undo,
 MI_Redo,
 MI_Cut,
 MI_Copy,
 MI_Paste,
 MI_SelectAll,
 MI_SplitTableCells,
 MI_MergeTableCells,
 MI_FontBold,
 MI_FontItalic,
 MI_FontUnderlined,
 MI_FontSubscript,
 MI_FontSuperscript,
 MI_AlignParagraphsLeft,
 MI_CenterParagraphs,
 MI_AlignParagraphsRight,
 MI_JustifyParagraphs,
 MI_ShowSpecials,
 MI_ShowUncertain,
 MI_HyperlinkEdit,
 MI_HyperlinkOpen,
 MI_HyperlinkRemove,
 MI_DeletePicture,
 MI_EditFontStyles,
 // Layout editing
 MI_BlockDelete,
 MI_LayoutClear,
 // Batch processing
 MI_RenumberPages,
 MI_DeletePage,
 MI_NextPage,
 MI_PrevPage,
 MI_GotoPage,
 MI_DocumentViewThumbnails,
 MI_DocumentViewDetails,
 // Languages and dictionaries
 MI_Options,
 MI_LanguageEditor,
 MI_ViewDictionaries,
 // Find and replace
 MI_Find,
 MI_FindNext,
 MI_Replace,
 // Spelling
 MI_CheckSpelling,
 MI_PrevError,
 MI_NextError,
 // Text orientation
 MI_TextNormal,
 MI_TextRotatedLeft,
 MI_TextRotatedRight,
 MI_TextUpsideDown,
 // Text direction
 MI_TextDirectionAuto,
 MI_TextDirectionHorizontal,
 MI_TextDirectionVertical,
 // Text role
 MI_TextRoleUnknown,
 MI_TextRoleMainText,
 MI_TextRoleRunningTitle,
 MI_TextRoleIncutText,
 MI_TextRoleCaption,
 MI_TextRoleLineNumbers,
 MI_TextRoleArtefact,
 // Save as
 MI_SaveAsRtf,
 MI_SaveAsDocX,
 MI_SaveAsXls,
 MI_SaveAsXlsX,
 MI_SaveAsPdf,
 MI_SaveAsPdfA,
 MI_SaveAsPptX,
 MI_SaveAsHtm,
 MI_SaveAsTxt,
 MI_SaveAsCsv,
 MI_SaveAsOdt,
 MI_SaveAsFb2,
 MI_SaveAsEpub,
 // Send to
 MI_SendToMSWord,
 MI_SendToMSExcel,
 MI_SendToPowerPoint,
 MI_SendToWordPro,
 MI_SendToWordPerfect,
 MI_SendToOpenOffice,
 MI_SendToWebBrowser,
 MI_SendToClipboard,
 MI_SendToAcrobat,
 // User commands
 MI_CustomCommand1,
 MI_CustomCommand2,
 MI_CustomCommand3,
 MI_CustomCommand4,
 MI_CustomCommand5,
 MI_CustomCommand6,
 MI_CustomCommand7,
 MI_CustomCommand8,
 MI_CustomCommand9,
 MI_CustomCommand10
 // Other
 MI_ShowRunningTitles,
 MI_ShowPictures,
 MI_AdjustPage,
 MI_IgnoreAll,
 MI_AddToDictionary,
 MI_SetLanguage
} MenuItemEnum;

Elements

NameDescriptionAvailable in
MI\_AddToDictionaryAdds the selected word to a spelling dictionary.TextEditor
MI\_AdjustPageOpens the Image Editor dialog box, which allows you to perform different transformations on images.ImageViewer
MI\_AlignParagraphsLeftAligns the selected paragraphs with the left margin.TextEditor
MI\_AlignParagraphsRightAligns the selected paragraphs with the right margin.TextEditor
MI\_AnalyzeLayoutAnalyzes layout of the active image page or selected image pages automatically.ImageViewer ZoomViewer DocumentViewer
MI\_AnalyzeLayoutInBlockAnalyzes layout in the active area automatically.ImageViewer ZoomViewer
MI\_AnalyzeTableStructureDraws rows and columns in the selected table automatically.ImageViewer ZoomViewer
MI\_AutosplitImageFinds the positions of splitting images on pages and splits the images.ImageViewer
MI\_BlockDeleteDeletes selected blocks.ImageViewer ZoomViewer
MI\_BlockType\_BackgroundPictureChanges the type of the selected block to Background Picture.ImageViewer ZoomViewer
MI\_BlockType\_BarcodeChanges the type of the selected block to Barcode.ImageViewer ZoomViewer
MI\_BlockType\_PictureChanges the type of the selected block to Picture.ImageViewer ZoomViewer
MI\_BlockType\_RecognitionAreaChanges the type of the selected block to Recognition Area.ImageViewer ZoomViewer
MI\_BlockType\_TableChanges the type of the selected block to Table.ImageViewer ZoomViewer
MI\_BlockType\_TextChanges the type of the selected block to Text.ImageViewer ZoomViewer
MI\_CenterParagraphsCenters the selected paragraphs.TextEditor
MI\_CheckSpellingOpens the Check Spelling dialog box (the Text Validator component), which allows you to verify recognized text.TextEditor
MI\_ChooseTool\_AddBlockPartSelects the tool which allows you to add block part.ImageViewer
MI\_ChooseTool\_AddHorizSeparatorSelects the tool which allows you to add horizontal separator to a table block.ImageViewer
MI\_ChooseTool\_AddVertSeparatorSelects the tool which allows you to add vertical separator to a table block.ImageViewer
MI\_ChooseTool\_CutBlockPartSelects the tool which allows you to cut block part.ImageViewer
MI\_ChooseTool\_DeleteBlockSelects the tool which allows you to delete block.ImageViewer
MI\_ChooseTool\_DeleteSeparatorSelects the tool which allows you to remove separator from a table block.ImageViewer
MI\_ChooseTool\_DrawBackgroundPictureBlockSelects the tool which allows you to draw a background picture block.ImageViewer
MI\_ChooseTool\_DrawBarcodeBlockSelects the tool which allows you to draw a barcode block.ImageViewer
MI\_ChooseTool\_DrawPictureBlockSelects the tool which allows you to draw a picture block.ImageViewer
MI\_ChooseTool\_DrawRecognitionAreaSelects the tool which allows you to draw a recognition area.ImageViewer
MI\_ChooseTool\_DrawTableBlockSelects the tool which allows you to draw a table block.ImageViewer
MI\_ChooseTool\_DrawTextBlockSelects the tool which allows you to draw a text block.ImageViewer
MI\_ChooseTool\_EraserSelects the eraser tool.ImageViewer
MI\_ChooseTool\_RenumberBlocksSelects the tool which allows you to renumber blocks.ImageViewer
MI\_ChooseTool\_SelectObjectSelects the selection tool.ImageViewer
MI\_CopyCopies the selected text to the Clipboard.TextEditor
MI\_CorrectPerspectiveCorrects trapezium perspective distortions on an image.ImageViewer
MI\_CorrectResolutionOpens the Image Resolution dialog box, which allows you to correct image resolution.ImageViewer
MI\_CropImageCrops an image.ImageViewer
MI\_CutDeletes the selected text and copies it to the Clipboard.TextEditor
MI\_DeletePageDeletes page.DocumentViewer
MI\_DeletePictureDeletes selected picture.TextEditor
MI\_DeskewImageCorrects image skew.ImageViewer
MI\_DocumentViewDetailsSelects the Details document view.DocumentViewer
MI\_DocumentViewThumbnailsSelects the Thumbnails document view.DocumentViewer
MI\_EditFontStylesOpens the Style Editor dialog box, which allows you to edit font style and formatting.TextEditor
MI\_FindOpens the Find dialog box, which allows you to find the text line in the recognized text.TextEditor
MI\_FindNextFinds the next occurrence of the specified text.TextEditor
MI\_FlipHorizontalFlips the image horizontally.ImageViewer DocumentViewer
MI\_FlipVerticalFlips the image vertically.ImageViewer DocumentViewer
MI\_FontBoldMakes the selection bold.TextEditor
MI\_FontItalicMakes the selection italic.TextEditor
MI\_FontSubscriptMakes the selection subscript reducing its font size.TextEditor
MI\_FontSuperscriptMakes the selection superscript reducing its font size.TextEditor
MI\_FontUnderlinedUnderlines the selection with a single line.TextEditor
MI\_GotoPageGoes to the specified page.DocumentViewer
MI\_HyperlinkEditAllows you to edit hyperlinks.TextEditor
MI\_HyperlinkOpenFollows the hyperlink.TextEditor
MI\_HyperlinkRemoveRemoves the hyperlink.TextEditor
MI\_IgnoreAllIgnores all the occurrences of the word during spell checking.TextEditor
MI\_InvertImageInverts the image. Useful for inverted images (white characters against black background).ImageViewer
MI\_JustifyParagraphsAligns the selected paragraphs to both the left and right margins or indents.TextEditor
MI\_LanguageEditorOpens the Language Editor dialog box, which allows you to select and edit recognition languages.ImageViewer ZoomViewer DocumentViewer
MI\_LayoutClearDeletes all blocks on the page.ImageViewer ZoomViewer
MI\_MergeTableCellsMerges the selected table cells into one.ImageViewer ZoomViewer TextEditor
MI\_NextErrorMoves the cursor position to the next uncertainly recognized character or word in the text.TextEditor
MI\_NextPageShows next page.ImageViewer TextEditor DocumentViewer
MI\_OptionsShows the Options dialog box, which allows you to specify different viewing and saving options.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_PasteInserts the text copied to the Clipboard at the insertion point.TextEditor
MI\_PrevErrorMoves the cursor position to the previous uncertainly recognized character or word in the text.TextEditor
MI\_PrevPageShows previous page.ImageViewer TextEditor DocumentViewer
MI\_PrintImagePrints the image.ImageViewer
MI\_PrintTextPrints the recognized text.TextEditor
MI\_PropertiesShows the properties of the selected element (e.g., image, block, character, page).ImageViewer TextEditor DocumentViewer
MI\_ReadRecognizes the active page or selected pages.ImageViewer ZoomViewer DocumentViewer
MI\_ReadBlockRecognizes the selected block.ImageViewer ZoomViewer
MI\_RedoCancels the latest undone action.ImageViewer ZoomViewer TextEditor
MI\_ReduceISONoiseReduces ISO noise on the image.ImageViewer
MI\_RemoveMotionBlurRemoves motion blur from the image.ImageViewer
MI\_RenumberPagesAllows you to renumber pages.DocumentViewer
MI\_ReplaceOpens the Replace dialog box, which allows you to replace the text line in the recognized text with another text line.TextEditor
MI\_RotateClockwiseRotates the image 90° clockwise.ImageViewer DocumentViewer
MI\_RotateCounterClockwiseRotates the image 90° counter-clockwise.ImageViewer DocumentViewer
MI\_RotateUpsideDownRotates the image upside down (180°).ImageViewer DocumentViewer
MI\_SaveAsCsvSaves the recognized text in CSV format.DocumentViewer
MI\_SaveAsDocXSaves the recognized text in DOCX format.DocumentViewer
MI\_SaveAsEpubSaves the recognized text in EPUB format.DocumentViewer
MI\_SaveAsFb2Saves the recognized text in FB2 format.DocumentViewer
MI\_SaveAsHtmSaves the recognized text in HTML format.DocumentViewer
MI\_SaveAsOdtSaves the recognized text in ODT format.DocumentViewer
MI\_SaveAsPdfSaves the recognized text in PDF format.DocumentViewer
MI\_SaveAsPdfASaves the recognized text in PDF/A format.DocumentViewer
MI\_SaveAsPptXSaves the recognized text in PPTX format.DocumentViewer
MI\_SaveAsRtfSaves the recognized text in RTF format.DocumentViewer
MI\_SaveAsTxtSaves the recognized text in TXT format.DocumentViewer
MI\_SaveAsXlsSaves the recognized text in XLS format.DocumentViewer
MI\_SaveAsXlsXSaves the recognized text in XLSX format.DocumentViewer
MI\_Scale\_100Selects 100% scale value for an image (text).ImageViewer ZoomViewer TextEditor
MI\_Scale\_125Selects 125% scale value for a text.TextEditor
MI\_Scale\_150Selects 150% scale value for a text.TextEditor
MI\_Scale\_175Selects 175% scale value for a text.TextEditor
MI\_Scale\_200Selects 200% scale value for an image (text).ImageViewer ZoomViewer TextEditor
MI\_Scale\_25Selects 25% scale value for an image.ImageViewer
MI\_Scale\_300Selects 300% scale value for an image.ZoomViewer
MI\_Scale\_400Selects 400% scale value for an image.ZoomViewer
MI\_Scale\_50Selects 50% scale value for an image (text).ImageViewer ZoomViewer TextEditor
MI\_Scale\_600Selects 600% scale value for an image.ZoomViewer
MI\_Scale\_75Selects 75% scale value for a text.TextEditor
MI\_Scale\_800Selects 800% scale value for an image.ZoomViewer
MI\_Scale\_BestFitSelects the best view for the image (text).ImageViewer TextEditor
MI\_Scale\_FitToHeightFits image (text) view to height.ImageViewer TextEditor
MI\_Scale\_FitToWidthFits image (text) view to width.ImageViewer ZoomViewer TextEditor
MI\_Scale\_PixelToPixelDisplays image in its actual size in pixels.ZoomViewer
MI\_Scale\_ZoomInZooms into the image or text.ImageViewer ZoomViewer TextEditor
MI\_Scale\_ZoomOutZooms out of the image or text.ImageViewer ZoomViewer TextEditor
MI\_Scale\_ZoomToSelBlocksMaximizes the selected blocks.ImageViewer ZoomViewer
MI\_SelectAllSelects all elements (blocks, text, pages) in the component.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_SendToAcrobatOpens a recognized text in Adobe Acrobat or Adobe Reader.DocumentViewer
MI\_SendToClipboardPastes a recognized text to Clipboard.DocumentViewer
MI\_SendToMSExcelOpens a recognized text in Microsoft Excel.DocumentViewer
MI\_SendToMSWordOpens a recognized text in Microsoft Word.DocumentViewer
MI\_SendToOpenOfficeOpens a recognized text in OpenOffice.org.DocumentViewer
MI\_SendToPowerPointOpens a recognized text in Microsoft PowerPoint.DocumentViewer
MI\_SendToWebBrowserOpens a recognized text in the Internet browser.DocumentViewer
MI\_SendToWordPerfectOpens a recognized text in Corel WordPerfect.DocumentViewer
MI\_SendToWordProOpens a recognized text in Lotus Word Pro.DocumentViewer
MI\_SeparatorAdds a separator to the toolbar or context menu.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_SetLanguageOpens the Select Language dialog box, which allows you to change recognition language for uncertainly recognized words.TextEditor
MI\_ShowPicturesShows or hides pictures.TextEditor
MI\_ShowRunningTitlesShows or hides running titles.TextEditor
MI\_ShowSpecialsDisplays non-printable characters.TextEditor
MI\_ShowUncertainHighlights uncertainly recognized characters.TextEditor
MI\_SplitImageSplits image into several parts.ImageViewer
MI\_SplitTableCellsSplits the previously merged cells.ImageViewer ZoomViewer TextEditor
MI\_StraightenTextLinesRemoves text line distortions.ImageViewer
MI\_SubMenuAdds submenu to the context menu.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_TextDirectionAutoSpecifies that CJK text direction should be automatically detected.ImageViewer ZoomViewer
MI\_TextDirectionHorizontalSpecifies that CJK text has horizontal writing direction.ImageViewer ZoomViewer
MI\_TextDirectionVerticalSpecifies that CJK text has vertical writing direction.ImageViewer ZoomViewer
MI\_TextNormalSpecifies that the text in the block has normal orientation.ImageViewer ZoomViewer
MI\_TextRoleArtefactSpecifies that the text in the block has some other role, not listed below.ImageViewer ZoomViewer
MI\_TextRoleCaptionSpecifies that the text in the block is a caption.ImageViewer ZoomViewer
MI\_TextRoleIncutTextSpecifies that the text in the block is a boxed text.ImageViewer ZoomViewer
MI\_TextRoleLineNumbersSpecifies that the text in the block is line numbers.ImageViewer ZoomViewer
MI\_TextRoleMainTextSpecifies that the text in the block is a body text.ImageViewer ZoomViewer
MI\_TextRoleRunningTitleSpecifies that the text in the block is a header or footer.ImageViewer ZoomViewer
MI\_TextRoleUnknownSpecifies that the role of the text in the block is undefined.ImageViewer ZoomViewer
MI\_TextRotatedLeftSpecifies that the text in the block is rotated left.ImageViewer ZoomViewer
MI\_TextRotatedRightSpecifies that the text in the block is rotated right.ImageViewer ZoomViewer
MI\_TextUpsideDownSpecifies that the text in the block is rotated upside down.ImageViewer ZoomViewer
MI\_UndoCancels the latest action.ImageViewer ZoomViewer TextEditor
MI\_ViewDictionariesOpens the Select Dictionary dialog box, which allows you to view and edit dictionary properties.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_CustomCommand1Allows you to define a custom command.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_CustomCommand2Allows you to define a custom command.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_CustomCommand3Allows you to define a custom command.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_CustomCommand4Allows you to define a custom command.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_CustomCommand5Allows you to define a custom command.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_CustomCommand6Allows you to define a custom command.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_CustomCommand7Allows you to define a custom command.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_CustomCommand8Allows you to define a custom command.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_CustomCommand9Allows you to define a custom command.ImageViewer ZoomViewer TextEditor DocumentViewer
MI\_CustomCommand10Allows you to define a custom command.ImageViewer ZoomViewer TextEditor DocumentViewer

Used in

ICommands::Element ICommands::DisableCommand ICommands::DoCommand ICommands::EnableCommand ICommands::RegisterUserCommand ICommands::UnregisterUserCommand IToolbar::Element IToolbar::Item IToolbar::InsertAt IToolbar::Delete IPopupMenu::Element IPopupMenu::Item IPopupMenu::Has IPopupMenu::InsertAt IPopupMenu::Delete ICommandEvent::OnCommand IDocumentViewerEvents::OnEditImages IImageViewerEvents::OnEditImages

See also

Customizing the Context Menu and Toolbar of a Visual Component