com.aspose.words
Class SwfTopPaneControlFlags

java.lang.Object
    extended by com.aspose.words.SwfTopPaneControlFlags

public class SwfTopPaneControlFlags 
extends java.lang.Object

Utility class containing constants. Specifies what buttons are displayed on the top panel of SWF viewer.

Example:

Shows how to choose which controls to display in the embedded document viewer.
Document doc = new Document(getMyDir() + "Document.doc");

// Create an instance of SwfSaveOptions and set some buttons as hidden.
SwfSaveOptions options = new SwfSaveOptions();
// Hide all the buttons with the exception of the page control buttons. Similar flags can be used for the left control pane as well.
options.setTopPaneControlFlags(SwfTopPaneControlFlags.HIDE_ALL | SwfTopPaneControlFlags.SHOW_ACTUAL_SIZE |
        SwfTopPaneControlFlags.SHOW_FIT_TO_WIDTH | SwfTopPaneControlFlags.SHOW_FIT_TO_HEIGHT |
        SwfTopPaneControlFlags.SHOW_ZOOM_IN | SwfTopPaneControlFlags.SHOW_ZOOM_OUT);

// You can also choose to show or hide the main elements of the viewer. Hide the search control.
options.setShowSearch(false);

Field Summary
static final intHIDE_ALL = 0
           Hide all buttons on the top panel of SWF viewer.
static final intSHOW_ALL = 4095
           Show all buttons on the top panel of SWF viewer. This is the default value.
static final intSHOW_ACTUAL_SIZE = 1
           Show "Actual size" button on the top panel of SWF viewer.
static final intSHOW_FIT_TO_HEIGHT = 2
           Show "Fit to height" button on the top panel of SWF viewer.
static final intSHOW_FIT_TO_WIDTH = 4
           Show "Fit to width" button on the top panel of SWF viewer.
static final intSHOW_ZOOM_OUT = 8
           Show "Zoom out" button on the top panel of SWF viewer.
static final intSHOW_ZOOM_IN = 16
           Show "Zoom in" button on the top panel of SWF viewer.
static final intSHOW_TEXT_SELECTION_MODE = 32
           Show "Text section mode" button on the top panel of SWF viewer.
static final intSHOW_PAGE_DRAG_MODE = 64
           Show "Page drag mode" button on the top panel of SWF viewer.
static final intSHOW_SINGLE_PAGE_SCROLL = 128
           Show "Single page scroll" button on the top panel of SWF viewer.
static final intSHOW_SINGLE_PAGE = 256
           Show "Single page" button on the top panel of SWF viewer.
static final intSHOW_TWO_PAGES_SCROLL = 512
           Show "Two pages scroll" button on the top panel of SWF viewer.
static final intSHOW_TWO_PAGES = 1024
           Show "Two pages" button on the top panel of SWF viewer.
static final intSHOW_READ_MODE_BUTTON = 2048
           Show "Read Mode" button on top panel of SWF viewer.
 

Field Detail

HIDE_ALL = 0

public static final int HIDE_ALL
Hide all buttons on the top panel of SWF viewer.

SHOW_ALL = 4095

public static final int SHOW_ALL
Show all buttons on the top panel of SWF viewer. This is the default value.

SHOW_ACTUAL_SIZE = 1

public static final int SHOW_ACTUAL_SIZE
Show "Actual size" button on the top panel of SWF viewer.

SHOW_FIT_TO_HEIGHT = 2

public static final int SHOW_FIT_TO_HEIGHT
Show "Fit to height" button on the top panel of SWF viewer.

SHOW_FIT_TO_WIDTH = 4

public static final int SHOW_FIT_TO_WIDTH
Show "Fit to width" button on the top panel of SWF viewer.

SHOW_ZOOM_OUT = 8

public static final int SHOW_ZOOM_OUT
Show "Zoom out" button on the top panel of SWF viewer.

SHOW_ZOOM_IN = 16

public static final int SHOW_ZOOM_IN
Show "Zoom in" button on the top panel of SWF viewer.

SHOW_TEXT_SELECTION_MODE = 32

public static final int SHOW_TEXT_SELECTION_MODE
Show "Text section mode" button on the top panel of SWF viewer.

SHOW_PAGE_DRAG_MODE = 64

public static final int SHOW_PAGE_DRAG_MODE
Show "Page drag mode" button on the top panel of SWF viewer.

SHOW_SINGLE_PAGE_SCROLL = 128

public static final int SHOW_SINGLE_PAGE_SCROLL
Show "Single page scroll" button on the top panel of SWF viewer.

SHOW_SINGLE_PAGE = 256

public static final int SHOW_SINGLE_PAGE
Show "Single page" button on the top panel of SWF viewer.

SHOW_TWO_PAGES_SCROLL = 512

public static final int SHOW_TWO_PAGES_SCROLL
Show "Two pages scroll" button on the top panel of SWF viewer.

SHOW_TWO_PAGES = 1024

public static final int SHOW_TWO_PAGES
Show "Two pages" button on the top panel of SWF viewer.

SHOW_READ_MODE_BUTTON = 2048

public static final int SHOW_READ_MODE_BUTTON
Show "Read Mode" button on top panel of SWF viewer.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.