wirispluginengine 3.62.0.1322

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +34 -0
  3. data/app/assets/javascripts/wirispluginengine/WIRISplugins.js +2833 -0
  4. data/app/controllers/wirispluginengine/application_controller.rb +75 -0
  5. data/app/helpers/wirispluginengine/application_helper.rb +4 -0
  6. data/config/routes.rb +4 -0
  7. data/configuration.ini.dist +104 -0
  8. data/lib/com/wiris/common/WInteger.rb +57 -0
  9. data/lib/com/wiris/plugin/api/Cas.rb +8 -0
  10. data/lib/com/wiris/plugin/api/CleanCache.rb +8 -0
  11. data/lib/com/wiris/plugin/api/Configuration.rb +8 -0
  12. data/lib/com/wiris/plugin/api/ConfigurationKeys.rb +96 -0
  13. data/lib/com/wiris/plugin/api/Editor.rb +8 -0
  14. data/lib/com/wiris/plugin/api/Filter.rb +8 -0
  15. data/lib/com/wiris/plugin/api/ImageFormatController.rb +8 -0
  16. data/lib/com/wiris/plugin/api/ParamsProvider.rb +8 -0
  17. data/lib/com/wiris/plugin/api/PluginBuilder.rb +79 -0
  18. data/lib/com/wiris/plugin/api/Render.rb +8 -0
  19. data/lib/com/wiris/plugin/api/ServiceResourceLoader.rb +8 -0
  20. data/lib/com/wiris/plugin/api/Test.rb +8 -0
  21. data/lib/com/wiris/plugin/api/TextService.rb +8 -0
  22. data/lib/com/wiris/plugin/configuration/ConfigurationUpdater.rb +8 -0
  23. data/lib/com/wiris/plugin/impl/CasImpl.rb +146 -0
  24. data/lib/com/wiris/plugin/impl/CleanCacheImpl.rb +111 -0
  25. data/lib/com/wiris/plugin/impl/ConfigurationImpl.rb +176 -0
  26. data/lib/com/wiris/plugin/impl/CustomConfigurationUpdater.rb +38 -0
  27. data/lib/com/wiris/plugin/impl/DefaultConfigurationUpdater.rb +29 -0
  28. data/lib/com/wiris/plugin/impl/EditorImpl.rb +86 -0
  29. data/lib/com/wiris/plugin/impl/FileConfigurationUpdater.rb +34 -0
  30. data/lib/com/wiris/plugin/impl/FileStorageAndCache.rb +59 -0
  31. data/lib/com/wiris/plugin/impl/FolderTreeStorageAndCache.rb +144 -0
  32. data/lib/com/wiris/plugin/impl/GenericParamsProviderImpl.rb +56 -0
  33. data/lib/com/wiris/plugin/impl/HttpImpl.rb +53 -0
  34. data/lib/com/wiris/plugin/impl/HttpListener.rb +8 -0
  35. data/lib/com/wiris/plugin/impl/ImageFormatControllerPng.rb +73 -0
  36. data/lib/com/wiris/plugin/impl/ImageFormatControllerSvg.rb +34 -0
  37. data/lib/com/wiris/plugin/impl/PluginBuilderImpl.rb +253 -0
  38. data/lib/com/wiris/plugin/impl/RenderImpl.rb +280 -0
  39. data/lib/com/wiris/plugin/impl/ServiceResourceLoaderImpl.rb +52 -0
  40. data/lib/com/wiris/plugin/impl/TestImpl.rb +166 -0
  41. data/lib/com/wiris/plugin/impl/TextFilter.rb +211 -0
  42. data/lib/com/wiris/plugin/impl/TextFilterTags.rb +55 -0
  43. data/lib/com/wiris/plugin/impl/TextServiceImpl.rb +118 -0
  44. data/lib/com/wiris/plugin/storage/StorageAndCache.rb +8 -0
  45. data/lib/com/wiris/util/json/JSon.rb +536 -0
  46. data/lib/com/wiris/util/json/JSonIntegerFormat.rb +21 -0
  47. data/lib/com/wiris/util/json/StringParser.rb +61 -0
  48. data/lib/com/wiris/util/sys/HttpConnection.rb +18 -0
  49. data/lib/com/wiris/util/sys/HttpConnectionListener.rb +8 -0
  50. data/lib/com/wiris/util/sys/IniFile.rb +143 -0
  51. data/lib/com/wiris/util/sys/Store.rb +109 -0
  52. data/lib/com/wiris/util/xml/SerializableImpl.rb +20 -0
  53. data/lib/com/wiris/util/xml/WCharacterBase.rb +634 -0
  54. data/lib/com/wiris/util/xml/WEntities.rb +14 -0
  55. data/lib/com/wiris/util/xml/WXmlUtils.rb +515 -0
  56. data/lib/com/wiris/util/xml/XmlSerializer.rb +485 -0
  57. data/lib/com/wiris/util/xml/XmlWriter.rb +279 -0
  58. data/lib/loader.rb +12 -0
  59. data/lib/src-generic/Array.rb +23 -0
  60. data/lib/src-generic/ArrayInt.rb +32 -0
  61. data/lib/src-generic/Base64.rb +15 -0
  62. data/lib/src-generic/BaseCode.rb +94 -0
  63. data/lib/src-generic/Bytes.rb +50 -0
  64. data/lib/src-generic/BytesInput.rb +38 -0
  65. data/lib/src-generic/EReg.rb +56 -0
  66. data/lib/src-generic/File.rb +36 -0
  67. data/lib/src-generic/FileLock.rb +27 -0
  68. data/lib/src-generic/FileSystem.rb +37 -0
  69. data/lib/src-generic/Hash.rb +43 -0
  70. data/lib/src-generic/Http.rb +107 -0
  71. data/lib/src-generic/HttpRequest.rb +25 -0
  72. data/lib/src-generic/HttpResponse.rb +71 -0
  73. data/lib/src-generic/Iterator.rb +20 -0
  74. data/lib/src-generic/Math.rb +15 -0
  75. data/lib/src-generic/Md5.rb +8 -0
  76. data/lib/src-generic/Md5Tools.rb +12 -0
  77. data/lib/src-generic/PropertiesTools.rb +33 -0
  78. data/lib/src-generic/Reflect.rb +17 -0
  79. data/lib/src-generic/RubyConfigurationUpdater.rb +45 -0
  80. data/lib/src-generic/Serializer.rb +85 -0
  81. data/lib/src-generic/Std.rb +74 -0
  82. data/lib/src-generic/Storage.rb +153 -0
  83. data/lib/src-generic/StringBuf.rb +41 -0
  84. data/lib/src-generic/StringTools.rb +46 -0
  85. data/lib/src-generic/Timer.rb +7 -0
  86. data/lib/src-generic/Type.rb +19 -0
  87. data/lib/src-generic/TypeTools.rb +32 -0
  88. data/lib/src-generic/Unserializer.rb +73 -0
  89. data/lib/src-generic/Utf8.rb +27 -0
  90. data/lib/src-generic/Xml.rb +199 -0
  91. data/lib/src-generic/extended/Integer.rb +5 -0
  92. data/lib/src-generic/extended/Math.rb +7 -0
  93. data/lib/src-generic/extended/Properties.rb +12 -0
  94. data/lib/src-generic/extended/String.rb +39 -0
  95. data/lib/src-generic/settings/PlatformSettings.rb +19 -0
  96. data/lib/wirispluginengine.rb +5 -0
  97. data/lib/wirispluginengine/engine.rb +5 -0
  98. data/lib/wirispluginengine/integration/cleancache.rb +8 -0
  99. data/lib/wirispluginengine/integration/configurationjs.rb +16 -0
  100. data/lib/wirispluginengine/integration/configurationjson.rb +7 -0
  101. data/lib/wirispluginengine/integration/createimage.rb +8 -0
  102. data/lib/wirispluginengine/integration/getmathml.rb +18 -0
  103. data/lib/wirispluginengine/integration/resource.rb +8 -0
  104. data/lib/wirispluginengine/integration/service.rb +6 -0
  105. data/lib/wirispluginengine/integration/showimage.rb +21 -0
  106. data/lib/wirispluginengine/integration/test.rb +6 -0
  107. data/lib/wirispluginengine/version.rb +3 -0
  108. data/resources/VERSION +1 -0
  109. data/resources/default-configuration.ini +45 -0
  110. data/resources/tech.txt +1 -0
  111. data/resources/wirisplugin.css +43 -0
  112. metadata +182 -0
@@ -0,0 +1,75 @@
1
+ require_dependency "wirispluginengine/integration/configurationjs"
2
+ require_dependency "wirispluginengine/integration/createimage"
3
+ require_dependency "wirispluginengine/integration/showimage"
4
+ require_dependency "wirispluginengine/integration/service"
5
+ require_dependency "wirispluginengine/integration/getmathml"
6
+ require_dependency "wirispluginengine/integration/test"
7
+ require_dependency "wirispluginengine/integration/cleancache"
8
+ require_dependency "wirispluginengine/integration/resource"
9
+ require_dependency "wirispluginengine/integration/configurationjson"
10
+ require_dependency "com/wiris/plugin/api/PluginBuilder"
11
+
12
+
13
+ module Wirispluginengine
14
+ class ApplicationController < ActionController::Base
15
+ include Wiris
16
+ include WirisPlugin
17
+ def integration
18
+ #Loading resources for WirisPlugin (gem/resources dir).
19
+ spec = Gem::Specification.find_by_name("wirispluginengine")
20
+ gem_root = spec.gem_dir
21
+ Storage.resourcesDir = gem_root.to_s + '/resources'
22
+
23
+ wirishash = Hash.new()
24
+ params.each do |key, value|
25
+ wirishash[key] = value
26
+ end
27
+ propertiesparams = PropertiesTools.toProperties(wirishash)
28
+ rcu = RubyConfigurationUpdater.new()
29
+ rcu.request = request
30
+ pb = PluginBuilderImpl.getInstance()
31
+ pb.addConfigurationUpdater(rcu)
32
+ provider = GenericParamsProviderImpl.new(propertiesparams)
33
+ case self.params[:script].inspect.gsub('"', '')
34
+ when 'configurationjs'
35
+ configurationjs = Configurationjs.new
36
+ render :js => configurationjs.dispatch(request, response, pb)
37
+ when 'createimage'
38
+ createimage = CreateImage.new
39
+ render :text => createimage.dispatch(request, response, provider, pb)
40
+ when 'showimage'
41
+ showimage = ShowImage.new
42
+ image = showimage.dispatch(request, response, provider, pb)
43
+ if (pb.getConfiguration().getProperty('wirispluginperformance', 'false') == 'true')
44
+ expires_in 60.minutes
45
+ render :text => image
46
+ else
47
+ send_data image.pack("C*"), :type => response.content_type, :disposition => 'inline'
48
+ end
49
+ when 'service'
50
+ service = Service.new()
51
+ render :text => service.dispatch(request, response, provider, pb)
52
+ when 'getmathml'
53
+ getmathml = GetMathMLDispatcher.new()
54
+ render :text => getmathml.dispatch(request, response, provider, pb)
55
+ when 'test'
56
+ #test variable changed to wiristest
57
+ #in order to avoid conflict with rails production console
58
+ wiristest = WirisTest.new()
59
+ render :text => wiristest.dispatch(request, pb)
60
+ when 'cleancache'
61
+ wiriscleancache = CleanCache.new()
62
+ render :text => wiriscleancache.dispatch(request, response, provider, pb)
63
+ when 'resource'
64
+ wirisresource = Resource.new()
65
+ render :text => wirisresource.dispatch(response, provider, pb)
66
+ when 'configurationjson'
67
+ wirisconfiguration = ConfigurationJson.new()
68
+ render :json => wirisconfiguration.dispatch(request, response, provider, pb)
69
+ else
70
+ render plain:"Method no exists"
71
+ end
72
+ Storage.resourcesDir = nil
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,4 @@
1
+ module Wirispluginengine
2
+ module ApplicationHelper
3
+ end
4
+ end
data/config/routes.rb ADDED
@@ -0,0 +1,4 @@
1
+ Wirispluginengine::Engine.routes.draw do
2
+ get 'integration/:script' => 'application#integration'
3
+ post 'integration/:script' => 'application#integration'
4
+ end
@@ -0,0 +1,104 @@
1
+ #
2
+ # This is a sample configuration file
3
+ # You can uncomment any line and rename this file to configuration.ini
4
+ #
5
+
6
+ #wirisdebug = false
7
+ #wirisimageserviceversion = 3.0
8
+
9
+ #
10
+ # Connection properties
11
+ #
12
+ #wirisimageservicehost = www.wiris.net
13
+ #wirisimageservicepath = /demo/editor/render
14
+ #wirisimageserviceport = 80
15
+ #wirisimageserviceprotocol = http
16
+ # Proxy configuration
17
+ #wirisproxy = false
18
+ #wirisproxy_host =
19
+ #wirisproxy_port =
20
+ # Basic authentication proxy configuration
21
+ #wirisproxy_user =
22
+ #wirisproxy_password =
23
+
24
+ #
25
+ # Folder properties
26
+ #
27
+ # Place to store the cached images.
28
+ #wiriscachedirectory = /var/cache
29
+ # Place to store the formulas.
30
+ #wirisformuladirectory = /var/formulas
31
+
32
+ #
33
+ # Class overridables
34
+ #
35
+ #wirisstorageclass = com.wiris.plugin.storage.FileStorageAndCache
36
+ #wirisconfigurationclass =
37
+ #wirisconfigurationrefreshtime = 10000
38
+
39
+ #
40
+ # Editor behaviour
41
+ #
42
+ #wiriseditorenabled = true
43
+ #wiriseditormathmlattribute = data-mathml
44
+ #wiriseditorsavemode = xml
45
+ #wiriseditoreditmode = default
46
+ #wiriseditorparselatex = true
47
+ #wiriseditorparsexml = false
48
+ #wiriseditorwindowattributes = width=570, height=450, scroll=no, resizable=yes
49
+ #wiriseditorsetsize = false
50
+ #wiriseditormodalwindow = false
51
+ #wirischemeditorenabled = true
52
+ #wirisimageformat = png
53
+
54
+ #
55
+ # Editor inherit parameters
56
+ #
57
+ #wiriseditorparameters = {}
58
+
59
+ #
60
+ # Accessibility
61
+ #
62
+ #wirisaccessibilityenabled = true
63
+
64
+ #
65
+ # WIRIS cas
66
+ #
67
+ #wiriscascodebase = http://www.wiris.net/demo/wiris/wiris-codebase
68
+ #wiriscasarchive = wrs_net_%LANG.jar
69
+ #wiriscasclass = WirisApplet_net_%LANG
70
+ #wiriscaslanguages = en, es, fr, it, nl, et, ca, eu, pt, de
71
+ #CAS_width = 450
72
+ #CAS_height = 400
73
+
74
+ #
75
+ # External plugin
76
+ #
77
+ #wirisexternalplugin = false
78
+
79
+ #
80
+ # Experimental settings.
81
+ #
82
+ #wirispluginperformance = false
83
+
84
+ #
85
+ # Deprecated. Editor parameters should be parsed as a Json on wiriseditorparameters variale.
86
+ #
87
+ #wiristransparency = true
88
+ #wirisfontfamily = Arial
89
+ #wirisimagecolor = #000000
90
+ #wirisimagebackgroundcolor = #ffffff
91
+ #wirisimagefontsize = 16px
92
+ #wirisimagedpi = 96
93
+ #wiriseditortoolbar = quizzes
94
+ #wirisrtllanguages = ar
95
+ #wirisltrlanguages = ar_ma
96
+ #wirisarabicindiclanguages = ar_eg, ar_sd, ar_sa
97
+ #wiriseasternarabicindiclanguages = fa, ps, ur
98
+ #wiriseuropeanlanguages =
99
+
100
+ # Delete cache parameters.
101
+ # wiriscleancachegui = false
102
+ # wiriscleancachetoken = token
103
+
104
+ # End of file
@@ -0,0 +1,57 @@
1
+ module WirisPlugin
2
+ include Wiris
3
+ class WInteger
4
+ include Wiris
5
+
6
+ def initialize()
7
+ super()
8
+ end
9
+ def self.max(x,y)
10
+ if x>y
11
+ return x
12
+ end
13
+ return y
14
+ end
15
+ def self.min(x,y)
16
+ if x<y
17
+ return x
18
+ end
19
+ return y
20
+ end
21
+ def self.toHex(x,digits)
22
+ s = ""
23
+ while (x!=0)&&((digits)>0)
24
+ digits-=1
25
+ d = x&15
26
+ s = Std::fromCharCode(d+(d>=10 ? 55 : 48)).to_s+s
27
+ x = x>>4
28
+ end
29
+ while (digits-=1)>0
30
+ s = "0"+s
31
+ end
32
+ return s
33
+ end
34
+ def self.parseHex(str)
35
+ return Std::parseInt("0x"+str)
36
+ end
37
+ def self.isInteger(str)
38
+ str = StringTools::trim(str)
39
+ i = 0
40
+ n = str::length()
41
+ if str::startsWith("-")
42
+ i+=1
43
+ end
44
+ if str::startsWith("+")
45
+ i+=1
46
+ end
47
+ while i<n
48
+ c = Std::charCodeAt(str,i)
49
+ if (c<48)||(c>57)
50
+ return false
51
+ end
52
+ i+=1
53
+ end
54
+ return true
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,8 @@
1
+ module WirisPlugin
2
+ include Wiris
3
+ module CasInterface
4
+ def Cas
5
+ return true
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module WirisPlugin
2
+ include Wiris
3
+ module CleanCacheInterface
4
+ def CleanCache
5
+ return true
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module WirisPlugin
2
+ include Wiris
3
+ module ConfigurationInterface
4
+ def Configuration
5
+ return true
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,96 @@
1
+ module WirisPlugin
2
+ include Wiris
3
+ class ConfigurationKeys
4
+ include Wiris
5
+
6
+ def initialize()
7
+ super()
8
+ end
9
+ DEBUG = "wirisdebug"
10
+ FORMULA_FOLDER = "wirisformuladirectory"
11
+ CACHE_FOLDER = "wiriscachedirectory"
12
+ INTEGRATION_PATH = "wirisintegrationpath"
13
+ EDITOR_PARAMETERS_LIST = "wiriseditorparameterslist"
14
+ STORAGE_CLASS = "wirisstorageclass"
15
+ CONFIGURATION_CLASS = "wirisconfigurationclass"
16
+ CONFIGURATION_PATH = "wirisconfigurationpath"
17
+ CONTEXT_PATH = "wiriscontextpath"
18
+ SERVICE_PROTOCOL = "wirisimageserviceprotocol"
19
+ SERVICE_PORT = "wirisimageserviceport"
20
+ SERVICE_HOST = "wirisimageservicehost"
21
+ SERVICE_PATH = "wirisimageservicepath"
22
+ CAS_LANGUAGES = "wiriscaslanguages"
23
+ CAS_CODEBASE = "wiriscascodebase"
24
+ CAS_ARCHIVE = "wiriscasarchive"
25
+ CAS_CLASS = "wiriscasclass"
26
+ CAS_WIDTH = "wiriscaswidth"
27
+ CAS_HEIGHT = "wiriscasheight"
28
+ SHOWIMAGE_PATH = "wirishowimagepath"
29
+ SHOWCASIMAGE_PATH = "wirishowcasimagepath"
30
+ CLEAN_CACHE_PATH = "wiriscleancachepath"
31
+ RESOURCE_PATH = "wirisresourcespath"
32
+ LATEX_TO_MATHML_URL = "wirislatextomathmlurl"
33
+ SAVE_MODE = "wiriseditorsavemode"
34
+ EDITOR_TOOLBAR = "wiriseditortoolbar"
35
+ HOST_PLATFORM = "wirishostplatform"
36
+ VERSION_PLATFORM = "wirisversionplatform"
37
+ WIRIS_DPI = "wirisimagedpi"
38
+ FONT_FAMILY = "wirisfontfamily"
39
+ FILTER_OUTPUT_MATHML = "wirisfilteroutputmathml"
40
+ EDITOR_MATHML_ATTRIBUTE = "wiriseditormathmlattribute"
41
+ EDITOR_PARAMS = "wiriseditorparameters"
42
+ EDITOR_PARAMETERS_DEFAULT_LIST = "mml,color,centerbaseline,zoom,dpi,fontSize,fontFamily,defaultStretchy,backgroundColor,format"
43
+ EDITOR_PARAMETERS_NOTRENDER_LIST = "toolbar, toolbarHidden, reservedWords, autoformat, mml, language, rtlLanguages, ltrLanguages, arabicIndicLanguages, easternArabicIndicLanguages, europeanLanguages"
44
+ HTTPPROXY = "wirisproxy"
45
+ HTTPPROXY_HOST = "wirisproxy_host"
46
+ HTTPPROXY_PORT = "wirisproxy_port"
47
+ HTTPPROXY_USER = "wirisproxy_user"
48
+ HTTPPROXY_PASS = "wirisproxy_password"
49
+ REFERER = "wirisreferer"
50
+ IMAGE_FORMAT = "wirisimageformat"
51
+ EXTERNAL_PLUGIN = "wirisexternalplugin"
52
+ EXTERNAL_REFERER = "wirisexternalreferer"
53
+ IMPROVE_PERFORMANCE = "wirispluginperformance"
54
+ EDITOR_KEY = "wiriseditorkey"
55
+ CLEAN_CACHE_TOKEN = "wiriscleancachetoken"
56
+ CLEAN_CACHE_GUI = "wiriscleancachegui"
57
+ def self.imageConfigProperties
58
+ @@imageConfigProperties
59
+ end
60
+ def self.imageConfigProperties=(imageConfigProperties)
61
+ @@imageConfigProperties = imageConfigProperties
62
+ end
63
+ def self.imageConfigPropertiesInv
64
+ @@imageConfigPropertiesInv
65
+ end
66
+ def self.imageConfigPropertiesInv=(imageConfigPropertiesInv)
67
+ @@imageConfigPropertiesInv = imageConfigPropertiesInv
68
+ end
69
+ SERVICES_PARAMETERS_LIST = "mml,lang,service,latex"
70
+ def self.computeInverse(dict)
71
+ keys = dict::keys()
72
+ outDict = Hash.new()
73
+ while keys::hasNext()
74
+ key = keys::next()
75
+ outDict::set(dict::get(key),key)
76
+ end
77
+ return outDict
78
+ end
79
+ @@imageConfigProperties = Hash.new()
80
+ @@imageConfigProperties::set("backgroundColor","wirisimagebackgroundcolor")
81
+ @@imageConfigProperties::set("transparency","wiristransparency")
82
+ @@imageConfigProperties::set("fontSize","wirisimagefontsize")
83
+ @@imageConfigProperties::set("version","wirisimageserviceversion")
84
+ @@imageConfigProperties::set("color","wirisimagecolor")
85
+ @@imageConfigProperties::set("dpi","wirisimagedpi")
86
+ @@imageConfigProperties::set("fontFamily",ConfigurationKeys::FONT_FAMILY)
87
+ @@imageConfigProperties::set("rtlLanguages","wirisrtllanguages")
88
+ @@imageConfigProperties::set("ltrLanguages","wirisltrlanguages")
89
+ @@imageConfigProperties::set("arabicIndicLanguages","wirisarabicindiclanguages")
90
+ @@imageConfigProperties::set("easternArabicIndicLanguages","wiriseasternarabicindiclanguages")
91
+ @@imageConfigProperties::set("europeanLanguages","wiriseuropeanlanguages")
92
+ @@imageConfigProperties::set("defaultStretchy","wirisimagedefaultstretchy")
93
+ @@imageConfigProperties::set("parseMemoryLimit","wirisparsememorylimit")
94
+ @@imageConfigPropertiesInv = computeInverse(@@imageConfigProperties)
95
+ end
96
+ end
@@ -0,0 +1,8 @@
1
+ module WirisPlugin
2
+ include Wiris
3
+ module EditorInterface
4
+ def Editor
5
+ return true
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module WirisPlugin
2
+ include Wiris
3
+ module FilterInterface
4
+ def Filter
5
+ return true
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module WirisPlugin
2
+ include Wiris
3
+ module ImageFormatControllerInterface
4
+ def ImageFormatController
5
+ return true
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module WirisPlugin
2
+ include Wiris
3
+ module ParamsProviderInterface
4
+ def ParamsProvider
5
+ return true
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,79 @@
1
+ module WirisPlugin
2
+ include Wiris
3
+ require('com/wiris/plugin/impl/PluginBuilderImpl.rb')
4
+ class PluginBuilder
5
+ include Wiris
6
+
7
+ @@pb = nil
8
+ def self.pb
9
+ @@pb
10
+ end
11
+ def self.pb=(pb)
12
+ @@pb = pb
13
+ end
14
+ def initialize()
15
+ super()
16
+ end
17
+ def self.getInstance()
18
+ if PluginBuilder::pb==nil
19
+ PluginBuilder::pb = PluginBuilderImpl.new()
20
+ end
21
+ return PluginBuilder::pb
22
+ end
23
+ def addConfigurationUpdater(conf)
24
+ end
25
+ def setStorageAndCache(store)
26
+ end
27
+ def newRender()
28
+ return nil
29
+ end
30
+ def newAsyncRender()
31
+ return nil
32
+ end
33
+ def newTextService()
34
+ return nil
35
+ end
36
+ def newAsyncTextService()
37
+ return nil
38
+ end
39
+ def getConfiguration()
40
+ return nil
41
+ end
42
+ def getStorageAndCache()
43
+ return nil
44
+ end
45
+ def setStorageAndCacheInitObject(obj)
46
+ end
47
+ def newTest()
48
+ return nil
49
+ end
50
+ def newCas()
51
+ return nil
52
+ end
53
+ def newEditor()
54
+ return nil
55
+ end
56
+ def addCorsHeaders(response,origin)
57
+ end
58
+ def newCleanCache()
59
+ return nil
60
+ end
61
+ def newResourceLoader()
62
+ return nil
63
+ end
64
+ def isEditorLicensed()
65
+ return false
66
+ end
67
+ def getImageFormatController()
68
+ return nil
69
+ end
70
+ def newGenericParamsProvider(properties)
71
+ return nil
72
+ end
73
+ def setCustomParamsProvider(provider)
74
+ end
75
+ def getCustomParamsProvider()
76
+ return nil
77
+ end
78
+ end
79
+ end