com.aspose.words
Class SwfViewerControlIdentifier
java.lang.Object
com.aspose.words.SwfViewerControlIdentifier
public class SwfViewerControlIdentifier
- extends java.lang.Object
Utility class containing constants.
Identifies each control in the Aspose.Words SWF Document Viewer.
Example:
Shows how to change the the tooltips used in the embedded document viewer.
// We create an instance of SwfSaveOptions to specify our custom tooltips.
SwfSaveOptions options = new SwfSaveOptions();
// By default, all tooltips are in English. You can specify font used for each tooltip.
// Please note that font specified should contain proper glyphs normally used in tooltips.
options.setToolTipsFontName("Times New Roman");
// The following code will set the tooltip used for each control. In our case we will change the tooltips from English
// to Russian.
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_ACTUAL_SIZE_BUTTON, "Оригинальный размер");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_FIT_TO_HEIGHT_BUTTON, "По высоте страницы");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_FIT_TO_WIDTH_BUTTON, "По ширине страницы");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_ZOOM_OUT_BUTTON, "Увеличить");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_ZOOM_OUT_BUTTON, "Уменшить");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_SELECTION_MODE_BUTTON, "Режим выделения текста");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_DRAG_MODE_BUTTON,"Режим перетаскивания");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_SINGLE_PAGE_SCROLL_LAYOUT_BUTTON, "Одностнаничный скролинг");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_SINGLE_PAGE_LAYOUT_BUTTON, "Одностраничный режим");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_TWO_PAGE_SCROLL_LAYOUT_BUTTON, "Двустраничный скролинг");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_TWO_PAGE_LAYOUT_BUTTON, "Двустраничный режим");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_TWO_PAGE_LAYOUT_BUTTON, "Полноэкранный режим");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_PREVIOUS_PAGE_BUTTON, "Предыдущая старница");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_PAGE_FIELD, "Введите номер страницы");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_NEXT_PAGE_BUTTON, "Следующая страница");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_SEARCH_FIELD, "Введите искомый текст");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.TOP_PANE_SEARCH_BUTTON, "Искать");
// Left panel.
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.LEFT_PANE_DOCUMENT_MAP_BUTTON, "Карта документа");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.LEFT_PANE_PAGE_PREVIEW_PANE_BUTTON, "Предварительный просмотр страниц");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.LEFT_PANE_ABOUT_BUTTON, "О приложении");
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.LEFT_PANE_COLLAPSE_PANEL_BUTTON, "Свернуть панель");
// Bottom panel.
options.getToolTips().setBySwfViewerControlIdentifier(SwfViewerControlIdentifier.BOTTOM_PANE_SHOW_HIDE_BOTTOM_PANE_BUTTON, "Показать/Скрыть панель");
TOP_PANE_ACTUAL_SIZE_BUTTON = 0 | |
public static final int TOP_PANE_ACTUAL_SIZE_BUTTON |
-
The button that changes the zoom to display the page in actual size.
TOP_PANE_FIT_TO_HEIGHT_BUTTON = 1 | |
public static final int TOP_PANE_FIT_TO_HEIGHT_BUTTON |
-
The button that changes the zoom to fit the page into the window height.
TOP_PANE_FIT_TO_WIDTH_BUTTON = 2 | |
public static final int TOP_PANE_FIT_TO_WIDTH_BUTTON |
-
The button that changes the zoom to fit the page into the window width.
TOP_PANE_ZOOM_OUT_BUTTON = 3 | |
public static final int TOP_PANE_ZOOM_OUT_BUTTON |
-
The bottom that decreases the zoom.
TOP_PANE_ZOOM_IN_BUTTON = 4 | |
public static final int TOP_PANE_ZOOM_IN_BUTTON |
-
The button that increases the zoom.
TOP_PANE_SELECTION_MODE_BUTTON = 5 | |
public static final int TOP_PANE_SELECTION_MODE_BUTTON |
-
The button that changes the viewing mode into the text selection mode.
TOP_PANE_DRAG_MODE_BUTTON = 6 | |
public static final int TOP_PANE_DRAG_MODE_BUTTON |
-
The button that changes the viewing mode into hand dragging mode.
TOP_PANE_SINGLE_PAGE_SCROLL_LAYOUT_BUTTON = 7 | |
public static final int TOP_PANE_SINGLE_PAGE_SCROLL_LAYOUT_BUTTON |
-
The button that switches into the single page scrolling view mode.
TOP_PANE_SINGLE_PAGE_LAYOUT_BUTTON = 8 | |
public static final int TOP_PANE_SINGLE_PAGE_LAYOUT_BUTTON |
-
The button that switches into the single page non-scrolling view mode.
TOP_PANE_TWO_PAGE_SCROLL_LAYOUT_BUTTON = 9 | |
public static final int TOP_PANE_TWO_PAGE_SCROLL_LAYOUT_BUTTON |
-
The button that switches into the two pages scrolling view mode.
TOP_PANE_TWO_PAGE_LAYOUT_BUTTON = 10 | |
public static final int TOP_PANE_TWO_PAGE_LAYOUT_BUTTON |
-
The button that switches into the two pages non-scrolling view mode.
TOP_PANE_READ_MODE_BUTTON = 11 | |
public static final int TOP_PANE_READ_MODE_BUTTON |
-
The button that switches into the read mode.
TOP_PANE_FULL_SCREEN_MODE_BUTTON = 12 | |
public static final int TOP_PANE_FULL_SCREEN_MODE_BUTTON |
-
The button that switches into the full screen viewing mode.
TOP_PANE_SEARCH_BUTTON = 13 | |
public static final int TOP_PANE_SEARCH_BUTTON |
-
The search button.
TOP_PANE_NEXT_PAGE_BUTTON = 14 | |
public static final int TOP_PANE_NEXT_PAGE_BUTTON |
-
The next page button.
TOP_PANE_PREVIOUS_PAGE_BUTTON = 15 | |
public static final int TOP_PANE_PREVIOUS_PAGE_BUTTON |
-
The previous page button.
TOP_PANE_SEARCH_FIELD = 16 | |
public static final int TOP_PANE_SEARCH_FIELD |
-
The search field.
TOP_PANE_PAGE_FIELD = 17 | |
public static final int TOP_PANE_PAGE_FIELD |
-
The page number field.
TOP_PANE_COLLAPSED_DROP_DOWN = 18 | |
public static final int TOP_PANE_COLLAPSED_DROP_DOWN |
-
The button that is displayed when the window size is too small to display all buttons.
LEFT_PANE_ABOUT_BUTTON = 19 | |
public static final int LEFT_PANE_ABOUT_BUTTON |
-
The about button.
LEFT_PANE_COLLAPSE_PANEL_BUTTON = 20 | |
public static final int LEFT_PANE_COLLAPSE_PANEL_BUTTON |
-
The button that closes the left navigation pane.
LEFT_PANE_PAGE_PREVIEW_PANE_BUTTON = 21 | |
public static final int LEFT_PANE_PAGE_PREVIEW_PANE_BUTTON |
-
The button that displays the page preview pane.
LEFT_PANE_DOCUMENT_MAP_BUTTON = 22 | |
public static final int LEFT_PANE_DOCUMENT_MAP_BUTTON |
-
The button that displays the navigation pane.
BOTTOM_PANE_SHOW_HIDE_BOTTOM_PANE_BUTTON = 23 | |
public static final int BOTTOM_PANE_SHOW_HIDE_BOTTOM_PANE_BUTTON |
-
The button that shows the system info pane.
READ_MODE_PANE_CLOSE_BUTTON = 24 | |
public static final int READ_MODE_PANE_CLOSE_BUTTON |
-
Exit read mode button on read mode pane.
DIALOGS_HELP_WINDOW_CLOSE_BUTTON = 25 | |
public static final int DIALOGS_HELP_WINDOW_CLOSE_BUTTON |
-
Close help window button on read mode pane.
DIALOGS_HELP_WINDOW = 26 | |
public static final int DIALOGS_HELP_WINDOW |
-
Help window.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.