Package com.artifex.solib
Class SOLib
java.lang.Object
com.artifex.solib.ArDkLib
com.artifex.solib.SOLib
-
Nested Class Summary
Nested classes/interfaces inherited from class com.artifex.solib.ArDkLib
ArDkLib.EnumeratePdfTocListener -
Field Summary
Fields inherited from class com.artifex.solib.ArDkLib
mDebugTag, SmartOfficeDocErrorType_Aborted, SmartOfficeDocErrorType_EmptyDocument, SmartOfficeDocErrorType_NoError, SmartOfficeDocErrorType_OutOfMemory, SmartOfficeDocErrorType_PasswordRequest, SmartOfficeDocErrorType_UnableToLoadDocument, SmartOfficeDocErrorType_UnsupportedDocumentType, SmartOfficeDocErrorType_UnsupportedEncryption -
Method Summary
Modifier and TypeMethodDescriptioncreateBitmap(int w, int h) protected voidfinalize()Finalizer.voidintget the doc type from file contentsintString[]getFormulae(String category) String[]static SOLibgetLib(android.app.Activity activity) Get a reference to the SOLib, creating one if there is not one already.String[]String[]voidinitSecureFS(SOSecureFS impl) Register/release the SecureFS implementationintinstallFonts(String path) Native function to set the system font path (usually /system/fonts/).booleanbooleanisDocTypeDoc(String path) get the doc type from its extensionbooleanisDocTypeExcel(String path) booleanisDocTypeImage(String path) booleanisDocTypeOther(String path) booleanisDocTypePdf(String path) booleanisDocTypePowerPoint(String path) booleanbooleanopenDocument(String path, SODocLoadListener listener, android.content.Context context, ConfigOptions docCfgOptions) Load a document.voidvoidsetAnimationEnabled(boolean enabled) voidsetPowerpointEmptyPlaceholderText(String placeholder) static voidvoidsetTrackChangesEnabled(boolean enabled) Methods inherited from class com.artifex.solib.ArDkLib
clipboardHasText, enumeratePdfToc, getAppConfigOptions, getClipboardHandler, getClipboardText, getSecureFS, isNightMode, putTextToClipboard, runOnUiThread, setAppConfigOptions, setClipboardHandler, setSecureFS
-
Method Details
-
getLib
Get a reference to the SOLib, creating one if there is not one already. There is only ever one SOLib per activity. Different Activities will get different SOLibs.- Parameters:
activity- The current Activity.
-
initSecureFS
Register/release the SecureFS implementation -
finSecureFS
public void finSecureFS() -
isDocTypeDoc
get the doc type from its extension -
isDocTypeExcel
-
isDocTypePowerPoint
-
isDocTypePdf
-
isDocTypeImage
-
isDocTypeOther
-
getDocTypeFromFileExtension
-
setPptEmptyPlaceholderText
-
getDocTypeFromFileContents
get the doc type from file contents -
openDocument
public ArDkDoc openDocument(String path, SODocLoadListener listener, android.content.Context context, ConfigOptions docCfgOptions) Load a document.- Specified by:
openDocumentin classArDkLib- Parameters:
path- The path to the file to load.listener- SODocLoadListener to monitor progress of doc load.- Returns:
- the loaded document.
-
finalize
Finalizer. We only ever have 1 instance of the Lib. When it's finished, shut down the underlying C lib. -
installFonts
Native function to set the system font path (usually /system/fonts/).- Returns:
- 0 if success, non-zero otherwise.
-
getFormulaeCategories
-
getFormulae
-
getVersionInfo
-
isTrackChangesEnabled
public boolean isTrackChangesEnabled() -
setTrackChangesEnabled
public void setTrackChangesEnabled(boolean enabled) -
isAnimationEnabled
public boolean isAnimationEnabled() -
setAnimationEnabled
public void setAnimationEnabled(boolean enabled) -
isOdtEditingEnabled
public boolean isOdtEditingEnabled() -
getPowerpointEmptyPlaceholderText
-
setPowerpointEmptyPlaceholderText
-
createBitmap
- Specified by:
createBitmapin classArDkLib
-
reclaimMemory
public void reclaimMemory()- Overrides:
reclaimMemoryin classArDkLib
-