com.aspose.slides
Class LoadOptions

java.lang.Object
  extended by com.aspose.slides.LoadOptions
All Implemented Interfaces:
ILoadOptions

public class LoadOptions
extends java.lang.Object
implements ILoadOptions

Allows to specify additional options (such as format or default font) when loading a presentation.


Constructor Summary
LoadOptions()
           Creates new default load options.
LoadOptions(int loadFormat)
           Creates new load options.
 
Method Summary
 java.lang.String getDefaultAsianFont()
           Returns or sets Asian font used in case source font is not found.
 java.lang.String getDefaultRegularFont()
           Returns or sets Regular font used in case source font is not found.
 java.lang.String getDefaultSymbolFont()
           Returns or sets Symbol font used in case source font is not found.
 int getLoadFormat()
           Returns or sets format of a presentation to load.
 boolean getOnlyLoadDocumentProperties()
           This property makes sense, if presentation file is password protected.
 java.lang.String getPassword()
           Gets or sets the password.
 IWarningCallback getWarningCallback()
           Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted.
 void setDefaultAsianFont(java.lang.String value)
           Returns or sets Asian font used in case source font is not found.
 void setDefaultRegularFont(java.lang.String value)
           Returns or sets Regular font used in case source font is not found.
 void setDefaultSymbolFont(java.lang.String value)
           Returns or sets Symbol font used in case source font is not found.
 void setLoadFormat(int value)
           Returns or sets format of a presentation to load.
 void setOnlyLoadDocumentProperties(boolean value)
           This property makes sense, if presentation file is password protected.
 void setPassword(java.lang.String value)
           Gets or sets the password.
 void setWarningCallback(IWarningCallback value)
           Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadOptions

public LoadOptions()

Creates new default load options.


LoadOptions

public LoadOptions(int loadFormat)

Creates new load options.

Parameters:
loadFormat - Format of a presentation to load.
Method Detail

getLoadFormat

public int getLoadFormat()

Returns or sets format of a presentation to load. Read/write LoadFormat.

Specified by:
getLoadFormat in interface ILoadOptions

setLoadFormat

public void setLoadFormat(int value)

Returns or sets format of a presentation to load. Read/write LoadFormat.

Specified by:
setLoadFormat in interface ILoadOptions

getDefaultRegularFont

public java.lang.String getDefaultRegularFont()

Returns or sets Regular font used in case source font is not found. Read/write String.

Specified by:
getDefaultRegularFont in interface ILoadOptions

setDefaultRegularFont

public void setDefaultRegularFont(java.lang.String value)

Returns or sets Regular font used in case source font is not found. Read/write String.

Specified by:
setDefaultRegularFont in interface ILoadOptions

getDefaultSymbolFont

public java.lang.String getDefaultSymbolFont()

Returns or sets Symbol font used in case source font is not found. Read/write String.

Specified by:
getDefaultSymbolFont in interface ILoadOptions

setDefaultSymbolFont

public void setDefaultSymbolFont(java.lang.String value)

Returns or sets Symbol font used in case source font is not found. Read/write String.

Specified by:
setDefaultSymbolFont in interface ILoadOptions

getDefaultAsianFont

public java.lang.String getDefaultAsianFont()

Returns or sets Asian font used in case source font is not found. Read/write String.

Specified by:
getDefaultAsianFont in interface ILoadOptions

setDefaultAsianFont

public void setDefaultAsianFont(java.lang.String value)

Returns or sets Asian font used in case source font is not found. Read/write String.

Specified by:
setDefaultAsianFont in interface ILoadOptions

getPassword

public java.lang.String getPassword()

Gets or sets the password. Read/write String.

Value: The password.

Specified by:
getPassword in interface ILoadOptions

setPassword

public void setPassword(java.lang.String value)

Gets or sets the password. Read/write String.

Value: The password.

Specified by:
setPassword in interface ILoadOptions

getOnlyLoadDocumentProperties

public boolean getOnlyLoadDocumentProperties()

This property makes sense, if presentation file is password protected. Value of true means that only document properties must be loaded from an encrypted presentation file and password must be ignored. Value of false means that entire encrypted presentation must be loaded with use of right password. If presentation isn't encrypted then property value is always ignored. If document properties of an encrypted file aren't public and property value is true then document properties cannot be loaded and exception will be thrown. Read/write boolean.

Specified by:
getOnlyLoadDocumentProperties in interface ILoadOptions

setOnlyLoadDocumentProperties

public void setOnlyLoadDocumentProperties(boolean value)

This property makes sense, if presentation file is password protected. Value of true means that only document properties must be loaded from an encrypted presentation file and password must be ignored. Value of false means that entire encrypted presentation must be loaded with use of right password. If presentation isn't encrypted then property value is always ignored. If document properties of an encrypted file aren't public and property value is true then document properties cannot be loaded and exception will be thrown. Read/write boolean.

Specified by:
setOnlyLoadDocumentProperties in interface ILoadOptions

getWarningCallback

public IWarningCallback getWarningCallback()

Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write IWarningCallback.

Specified by:
getWarningCallback in interface ILoadOptions

setWarningCallback

public void setWarningCallback(IWarningCallback value)

Returns or sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write IWarningCallback.

Specified by:
setWarningCallback in interface ILoadOptions


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.