public class OfficeTools extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OfficeTools.DocumentType |
static class |
OfficeTools.OfficeProductInfo |
static class |
OfficeTools.RemoteCheck |
Constructor and Description |
---|
OfficeTools() |
Modifier and Type | Method and Description |
---|---|
static boolean |
dispatchCmd(String cmd,
com.sun.star.beans.PropertyValue[] props,
com.sun.star.uno.XComponentContext xContext)
Dispatch a internal LO/OO command
|
static boolean |
dispatchCmd(String cmd,
com.sun.star.uno.XComponentContext xContext)
dispatch an internal LO/OO command
|
static boolean |
dispatchUnoCmd(String cmd,
com.sun.star.uno.XComponentContext xContext)
dispatch an internal LO/OO command
cmd does not include the ".uno:" substring; e.g. pass "Zoom" not ".uno:Zoom"
|
static boolean |
getBooleanValue(Object o)
Get a boolean value from an Object
|
static File |
getCacheDir()
Returns directory to saves caches
|
static File |
getCacheDir(com.sun.star.uno.XComponentContext xContext) |
static com.sun.star.lang.XComponent |
getCurrentComponent(com.sun.star.uno.XComponentContext xContext)
Returns the current XComponent
Returns null if it fails
|
static double |
getCurrentHeapRatio() |
static String |
getJavaInformation()
Get information about Java as String
|
static File |
getLOConfigDir()
Returns directory to store every information for LT office extension
|
static File |
getLOConfigDir(com.sun.star.uno.XComponentContext xContext) |
static String |
getLogFilePath()
Returns log file
|
static String |
getLogFilePath(com.sun.star.uno.XComponentContext xContext) |
static Image |
getLtImage()
Get LanguageTool Image
|
static ImageIcon |
getLtImageIcon(boolean big)
Get LanguageTool Image
|
static String |
getLtInformation()
Get information about LanguageTool
|
static OfficeTools.OfficeProductInfo |
getOfficeProductInfo(com.sun.star.uno.XComponentContext xContext)
get information of LO/OO office product
|
static File |
getOldConfigFile()
Returns old configuration file
|
static String |
getStatisticalConfigFilePath()
Returns statistical analyzes configuration file
|
static boolean |
hasStatisticalStyleRules(Language lang) |
static boolean |
isHeapLimitReached() |
static void |
waitForLO()
timestamp for last key release
|
static void |
waitForLtDictionary() |
public static final String EXTENSION_MAINTAINER
public static final String LT_SERVICE_NAME
public static final int PROOFINFO_UNKNOWN
public static final int PROOFINFO_GET_PROOFRESULT
public static final int PROOFINFO_MARK_PARAGRAPH
public static final String END_OF_PARAGRAPH
public static final int NUMBER_PARAGRAPH_CHARS
public static final String SINGLE_END_OF_PARAGRAPH
public static final String MANUAL_LINEBREAK
public static final String ZERO_WIDTH_SPACE
public static final char ZERO_WIDTH_SPACE_CHAR
public static final String IGNORE_LANGUAGE
public static final String LOG_LINE_BREAK
public static final int MAX_SUGGESTIONS
public static final int NUMBER_TEXTLEVEL_CACHE
public static final String MULTILINGUAL_LABEL
public static final int CHECK_MULTIPLIKATOR
public static final int CHECK_SHAPES_TIME
public static int TIME_TOLERANCE
public static int DEBUG_MODE_SD
public static int DEBUG_MODE_SC
public static int DEBUG_MODE_CR
public static boolean DEBUG_MODE_MD
public static boolean DEBUG_MODE_DC
public static boolean DEBUG_MODE_FP
public static boolean DEBUG_MODE_LM
public static boolean DEBUG_MODE_TQ
public static boolean DEBUG_MODE_LD
public static boolean DEBUG_MODE_CD
public static boolean DEBUG_MODE_IO
public static boolean DEBUG_MODE_SR
public static boolean DEBUG_MODE_TM
public static boolean DEVELOP_MODE_ST
public static boolean DEVELOP_MODE
public static final String CONFIG_FILE
public static final String OOO_CONFIG_FILE
public static final String STATISTICAL_ANALYZES_CONFIG_FILE
@Nullable public static com.sun.star.lang.XComponent getCurrentComponent(com.sun.star.uno.XComponentContext xContext)
public static boolean dispatchCmd(String cmd, com.sun.star.uno.XComponentContext xContext)
public static boolean dispatchUnoCmd(String cmd, com.sun.star.uno.XComponentContext xContext)
public static boolean dispatchCmd(String cmd, com.sun.star.beans.PropertyValue[] props, com.sun.star.uno.XComponentContext xContext)
public static File getOldConfigFile()
public static File getLOConfigDir()
public static File getLOConfigDir(com.sun.star.uno.XComponentContext xContext)
public static String getLogFilePath()
public static String getLogFilePath(com.sun.star.uno.XComponentContext xContext)
public static String getStatisticalConfigFilePath()
public static File getCacheDir()
public static File getCacheDir(com.sun.star.uno.XComponentContext xContext)
public static double getCurrentHeapRatio()
public static boolean isHeapLimitReached()
public static String getJavaInformation()
public static String getLtInformation()
public static Image getLtImage()
public static ImageIcon getLtImageIcon(boolean big)
public static OfficeTools.OfficeProductInfo getOfficeProductInfo(com.sun.star.uno.XComponentContext xContext)
public static boolean getBooleanValue(Object o)
public static void waitForLO()
public static void waitForLtDictionary()
public static boolean hasStatisticalStyleRules(Language lang)