Class: WirisPlugin::ConfigurationKeys

Inherits:
Object
  • Object
show all
Includes:
Wiris
Defined in:
lib/com/wiris/plugin/api/ConfigurationKeys.rb

Constant Summary collapse

DEBUG =
"wirisdebug"
FORMULA_FOLDER =
"wirisformuladirectory"
CACHE_FOLDER =
"wiriscachedirectory"
INTEGRATION_PATH =
"wirisintegrationpath"
EDITOR_PARAMETERS_LIST =
"wiriseditorparameterslist"
STORAGE_CLASS =
"wirisstorageclass"
CONFIGURATION_CLASS =
"wirisconfigurationclass"
CONFIGURATION_PATH =
"wirisconfigurationpath"
ACCESSPROVIDER_CLASS =
"wirisaccessproviderclass"
CONTEXT_PATH =
"wiriscontextpath"
SERVICE_PROTOCOL =
"wirisimageserviceprotocol"
SERVICE_PORT =
"wirisimageserviceport"
SERVICE_HOST =
"wirisimageservicehost"
SERVICE_PATH =
"wirisimageservicepath"
CAS_LANGUAGES =
"wiriscaslanguages"
CAS_CODEBASE =
"wiriscascodebase"
CAS_ARCHIVE =
"wiriscasarchive"
CAS_CLASS =
"wiriscasclass"
CAS_WIDTH =
"wiriscaswidth"
CAS_HEIGHT =
"wiriscasheight"
SHOWIMAGE_PATH =
"wirishowimagepath"
SHOWCASIMAGE_PATH =
"wirishowcasimagepath"
CLEAN_CACHE_PATH =
"wiriscleancachepath"
RESOURCE_PATH =
"wirisresourcespath"
LATEX_TO_MATHML_URL =
"wirislatextomathmlurl"
SAVE_MODE =
"wiriseditorsavemode"
EDITOR_TOOLBAR =
"wiriseditortoolbar"
HOST_PLATFORM =
"wirishostplatform"
VERSION_PLATFORM =
"wirisversionplatform"
WIRIS_DPI =
"wirisimagedpi"
FONT_FAMILY =
"wirisfontfamily"
FILTER_OUTPUT_MATHML =
"wirisfilteroutputmathml"
SAVE_MATHML_SEMANTICS =
"wirissavehandtraces"
EDITOR_MATHML_ATTRIBUTE =
"wiriseditormathmlattribute"
EDITOR_PARAMS =
"wiriseditorparameters"
EDITOR_PARAMETERS_DEFAULT_LIST =
"mml,color,centerbaseline,zoom,dpi,fontSize,fontFamily,defaultStretchy,backgroundColor,format,saveLatex"
EDITOR_PARAMETERS_NOTRENDER_LIST =
"toolbar, toolbarHidden, reservedWords, autoformat, mml, language, rtlLanguages, ltrLanguages, arabicIndicLanguages, easternArabicIndicLanguages, europeanLanguages"
HTTPPROXY =
"wirisproxy"
HTTPPROXY_HOST =
"wirisproxy_host"
HTTPPROXY_PORT =
"wirisproxy_port"
HTTPPROXY_USER =
"wirisproxy_user"
HTTPPROXY_PASS =
"wirisproxy_password"
REFERER =
"wirisreferer"
IMAGE_FORMAT =
"wirisimageformat"
EXTERNAL_PLUGIN =
"wirisexternalplugin"
EXTERNAL_REFERER =
"wirisexternalreferer"
IMPROVE_PERFORMANCE =
"wirispluginperformance"
EDITOR_KEY =
"wiriseditorkey"
CLEAN_CACHE_TOKEN =
"wiriscleancachetoken"
CLEAN_CACHE_GUI =
"wiriscleancachegui"
SERVICES_PARAMETERS_LIST =
"mml,lang,service,latex,mode"
@@imageConfigProperties =
Hash.new()
@@imageConfigPropertiesInv =
ConfigurationKeys.computeInverse(@@imageConfigProperties)

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfigurationKeys

Returns a new instance of ConfigurationKeys.



6
7
8
# File 'lib/com/wiris/plugin/api/ConfigurationKeys.rb', line 6

def initialize()
    super()
end

Class Method Details

.computeInverse(dict) ⇒ Object



72
73
74
75
76
77
78
79
80
# File 'lib/com/wiris/plugin/api/ConfigurationKeys.rb', line 72

def self.computeInverse(dict)
    keys = dict::keys()
    outDict = Hash.new()
    while keys::hasNext()
        key = keys::next()
        outDict::set(dict::get(key),key)
    end
    return outDict
end

.imageConfigPropertiesObject



59
60
61
# File 'lib/com/wiris/plugin/api/ConfigurationKeys.rb', line 59

def self.imageConfigProperties
    @@imageConfigProperties
end

.imageConfigProperties=(imageConfigProperties) ⇒ Object



62
63
64
# File 'lib/com/wiris/plugin/api/ConfigurationKeys.rb', line 62

def self.imageConfigProperties=(imageConfigProperties)
    @@imageConfigProperties = imageConfigProperties
end

.imageConfigPropertiesInvObject



65
66
67
# File 'lib/com/wiris/plugin/api/ConfigurationKeys.rb', line 65

def self.imageConfigPropertiesInv
    @@imageConfigPropertiesInv
end

.imageConfigPropertiesInv=(imageConfigPropertiesInv) ⇒ Object



68
69
70
# File 'lib/com/wiris/plugin/api/ConfigurationKeys.rb', line 68

def self.imageConfigPropertiesInv=(imageConfigPropertiesInv)
    @@imageConfigPropertiesInv = imageConfigPropertiesInv
end