com.aspose.slides
Class LoadOptions

java.lang.Object
  extended by com.aspose.slides.LoadOptions

public class LoadOptions
extends java.lang.Object

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 of sets an object which receives warnings and decides whether loading process will continue or will be aborted.
 void setDefaultAsianFont(java.lang.String value)
           
 void setDefaultRegularFont(java.lang.String value)
           
 void setDefaultSymbolFont(java.lang.String value)
           
 void setLoadFormat(int value)
           
 void setOnlyLoadDocumentProperties(boolean value)
           
 void setPassword(java.lang.String value)
           
 void setWarningCallback(IWarningCallback value)
           
 
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.


setLoadFormat

public void setLoadFormat(int value)

getDefaultRegularFont

public java.lang.String getDefaultRegularFont()

Returns or sets Regular font used in case source font is not found.


setDefaultRegularFont

public void setDefaultRegularFont(java.lang.String value)

getDefaultSymbolFont

public java.lang.String getDefaultSymbolFont()

Returns or sets Symbol font used in case source font is not found.


setDefaultSymbolFont

public void setDefaultSymbolFont(java.lang.String value)

getDefaultAsianFont

public java.lang.String getDefaultAsianFont()

Returns or sets Asian font used in case source font is not found.


setDefaultAsianFont

public void setDefaultAsianFont(java.lang.String value)

getPassword

public java.lang.String getPassword()

Gets or sets the password.

Value: The password.


setPassword

public void setPassword(java.lang.String value)

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.


setOnlyLoadDocumentProperties

public void setOnlyLoadDocumentProperties(boolean value)

getWarningCallback

public IWarningCallback getWarningCallback()

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


setWarningCallback

public void setWarningCallback(IWarningCallback value)