com.aspose.words
Class WebExtensionStoreType

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

public class WebExtensionStoreType 
extends java.lang.Object

Utility class containing constants. Enumerates available types of a web extension store.

Example:

Shows how to create add-ins inside the document.
Document doc = new Document();

// Create taskpane with "MyScript" add-in which will be used by the document
TaskPane myScriptTaskPane = new TaskPane();
doc.getWebExtensionTaskPanes().add(myScriptTaskPane);

// Define task pane location when the document opens
myScriptTaskPane.setDockState(TaskPaneDockState.RIGHT);
myScriptTaskPane.isVisible(true);
myScriptTaskPane.setWidth(300.0);
myScriptTaskPane.isLocked(true);
// Use this option if you have several task panes
myScriptTaskPane.setRow(1);

// Add "MyScript Math Sample" add-in which will be displayed inside task pane
WebExtension webExtension = myScriptTaskPane.getWebExtension();

// Application Id from store
webExtension.getReference().setId("WA104380646");
// The current version of the application used
webExtension.getReference().setVersion("1.0.0.0");
// Type of marketplace
webExtension.getReference().setStoreType(WebExtensionStoreType.OMEX);
// Marketplace based on your locale
webExtension.getReference().setStore(Locale.getDefault().getDisplayName());

webExtension.getProperties().add(new WebExtensionProperty("MyScript", "MyScript Math Sample"));
webExtension.getBindings().add(new WebExtensionBinding("MyScript", WebExtensionBindingType.TEXT, "104380646"));

// Use this option if you need to block web extension from any action
webExtension.isFrozen(false);

doc.save(getArtifactsDir() + "Document.WebExtension.docx");

Field Summary
static final intSP_CATALOG = 0
           Specifies that the store type is SharePoint corporate catalog.
static final intOMEX = 1
           Specifies that the store type is Office.com.
static final intSP_APP = 2
           Specifies that the store type is a SharePoint web application.
static final intEXCHANGE = 3
           Specifies that the store type is an Exchange server.
static final intFILE_SYSTEM = 4
           Specifies that the store type is a file system share.
static final intREGISTRY = 5
           Specifies that the store type is the system registry.
static final intEX_CATALOG = 6
           Specifies that the store type is Centralized Deployment via Exchange.
static final intDEFAULT = 0
           Default value.
 

Field Detail

SP_CATALOG = 0

public static final int SP_CATALOG
Specifies that the store type is SharePoint corporate catalog.

OMEX = 1

public static final int OMEX
Specifies that the store type is Office.com.

SP_APP = 2

public static final int SP_APP
Specifies that the store type is a SharePoint web application.

EXCHANGE = 3

public static final int EXCHANGE
Specifies that the store type is an Exchange server.

FILE_SYSTEM = 4

public static final int FILE_SYSTEM
Specifies that the store type is a file system share.

REGISTRY = 5

public static final int REGISTRY
Specifies that the store type is the system registry.

EX_CATALOG = 6

public static final int EX_CATALOG
Specifies that the store type is Centralized Deployment via Exchange.

DEFAULT = 0

public static final int DEFAULT
Default value.

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