summaryrefslogtreecommitdiff
path: root/scripting
AgeCommit message (Collapse)AuthorFilesLines
2012-11-05fdo#49517: Revert "fdo#46102: Load Java scripts with class loaders [...]"Stephan Bergmann6-54/+9
This reverts commit dd6c4f4db1d62268d73e09ae52d23f760a967dcc "fdo#46102: Load Java scripts with class loaders that actually find them." That commit broke support for macros embedded in documents (as new java.net.URL("vnd.sun.star.tdoc:...") throws a MalformedURLExcetpion), and it looks like that commit was not necessary after all -- or rather that what it tried to work around must have been some other problem that has been fixed meanwhile. "It is unclear to me how the Java script provider shall ever have found the script jars in the past" indicates that something must have been fishy, and what I failed to notice back then is that createURL creates java.net.URL instances with a UCBStreamHandler that does allow to obtain content from weird-looking URLs. Anyway, with that reverted, all three following scenarios work on both current master (towards LO 3.7) and libreoffice-3-6 (towards LO 3.6.4); I haven't yet come around to test on libreoffice-3-5: 1 Stock macros, "Tools - Macros - Run Macro... - LibreOffice Macros - HelloWorld", running all of the four "helloworld.bsh", "helloworld.js", "HelloWorldPyhton", and "org.libreoffice.example.java_scripts.HelloWorld.printHW". 2 Per-document macros, loading test.odt attached to fdo#49517, then "Tools - Macros - Run Macro... - test.odt - HelloWorld", running "org.libreoffice.example.java_scripts.HelloWorld.printHW". 3 Extension macros, installing ScriptDispatch.oxt attached to fdo#46012 as shared extension, then loading StartScriptDispatch.odt attached to fdo#46012 and pressing the "Start Java via ScriptProvider" button. Change-Id: I31cd16b3720ffeb1058722d4d1fdffb773f8a067 (cherry picked from commit 7ea7fb009ddcfb0723e88ba0c5778b5fdbe2b553) Reviewed-on: https://gerrit.libreoffice.org/922 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-06-19typo: paramters, paramaters -> parametersAndras Timar6-6/+6
Change-Id: If58683331c50f2a95204e8e2dea11edbef3ccb63
2012-06-02targeted string re-workNorbert Thiebaud16-277/+264
Change-Id: I37e225902bf7f3a6e007e7641b2b9898b044a45b
2012-05-29targetted SAL_N_ELEMENTS reversion.Michael Meeks1-1/+1
Change-Id: I30be93ccaeb1f9fd17cbe9e3ed3165e094810b2e
2012-05-17removed unused const rtl::OUStringTakeshi Abe1-1/+0
Change-Id: I7c3409ac39e690fcf2f7e4085bf6857e6bd182fb
2012-05-06Allow usage of system rhino wrt fdo#42977Tomas Chvatal2-8/+10
It is done the same way the beanshell is handled. Currently it can't be enabled by default as internal version has patched-in debug interface. We can choose two paths, rewrite the code to the new rhino debug interface or just strip the current one out. Change-Id: I48af18c635816db8269f13a649b62e9c454ee1e6
2012-05-05Do not check for beanshell if not neededTomas Chvatal1-1/+1
Do not install the benashell/javascript stuff if they are not actually bult. Build rhino only when required by javascript extension. Change-Id: Icc378524008389af35631c64a1a0288eb4f271be
2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen1-1/+0
this removes dmake completely out of the build for migrated modules build.pl now assumes modules to be gbuild, unless there is a prj/dmake file Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-26Change implementation names of script providers...Stephan Bergmann4-10/+10
...that are no longer bundled extensions. Otherwise, old user data where these were still recorded as bundled extensions could cause execeptions at start up about duplicate implementations.
2012-04-26Typo in service nameStephan Bergmann1-1/+1
...detected now that the default service manager XContentEnumerationAccess no creates its own XServiceInfo instances.
2012-04-26Bump extension version after changing to passive registrationStephan Bergmann1-1/+1
...otherwise, if it is bundled, its per-user data is not regenerated, leading to inconsistencies.
2012-04-21Replace css macro with namespace for nicer namespacingThomas Arnhold14-29/+28
2012-04-18Fix another extra parenthesisJulien Nabet1-1/+1
2012-04-12use gb_Helper_make_url hereMatúš Kukan1-2/+1
2012-04-08Replaced a few equal calls with ==Szabolcs Dezsi3-5/+5
2012-04-08gbuild: "use" vs. "add":Michael Stahl13-19/+19
Naming convention for gbuild methods: - "add" is used for stuff that is logically a part of the target (i.e. not registered at the Module, but defined in the target's makefile) - "use" is used for stuff that is logically a different target (i.e. it is registered at the Module, has it's own makefile, may be in a different module than the target)
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi2-2/+2
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi2-3/+3
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi1-1/+1
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-03-23.html files don't need executable bitsMichael Stahl5-0/+0
2012-03-23README files don't need executable bitsMichael Stahl1-0/+0
2012-03-23.csv files don't need executable bitsMichael Stahl13-0/+0
2012-03-23.component files don't need executable bitsMichael Stahl9-0/+0
2012-03-23.gif files don't need executable bitsMichael Stahl10-0/+0
2012-03-23.hrc files don't need executable bitsMichael Stahl1-0/+0
2012-03-23Improve error reportingStephan Bergmann1-9/+23
2012-03-23Java new cannot return nullStephan Bergmann1-13/+1
2012-03-23Improve error reportingStephan Bergmann1-34/+61
2012-03-23fdo#46102: Fix Java script examples after gbuild'ificationStephan Bergmann23-5/+41
...they contained no class files anymore, due to missing gb_Jar_set_packageroot calls. However, those calls only work for subdirectories, i.e., the example .java files need to be put into a package (I chose org.libreoffice.example.java_scripts) for all of them). This in turn required adaption of the parcel-descriptor.xml files; not sure what the logicalname entries there are good for if anything -- the macro names at "Tools - Macros - Run Macro..." now unfortunately(?) contain the fully qualified paths for the HelloWorld, HighlightText, and MemoryUpdate examples. There are additional examples at scripting/examples/java/ that apparently do not get packaged (but I adapted them anyway).
2012-03-23fdo#46102: Load Java scripts with class loaders that actually find themStephan Bergmann6-9/+54
ScriptMetaData.createURL produces weird URLs (ending in "/ucb/", and potentially still containing vnd.sun.star.expand: prefix) that are apparently good for loading documents for editing via UCBStreamHandler, but cannot meaningfully be passed to a URLClassLoader. It is unclear to me how the Java script provider shall ever have found the script jars in the past.
2012-03-23scripting: don't need x bits for theseMichael Stahl170-0/+0
2012-03-22fdo#46102: Fix scripting jar manifests after gbuild'ificationStephan Bergmann6-3/+14
2012-03-21chmod -xTor Lillqvist4-0/+0
2012-03-10gbuild: get rid of realpath in gb_Foo_set_includeMatúš Kukan6-6/+6
2012-02-28Avoid temporary rtl::OUStringTakeshi Abe2-3/+3
in scripting / sdext / starmath / stoc / svtools / svx
2012-02-27s/interpreters/scripting/Tor Lillqvist1-1/+1
2012-02-27Decouple disabling of scripting (BASIC &co) from OS being iOSTor Lillqvist1-1/+1
2012-02-21expand and remove dcsssf macroThomas Arnhold6-22/+17
2012-02-21Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))Takeshi Abe1-2/+2
to equalsIgnoreAsciiCaseAscii("...")
2012-02-08Added READMEs for modules which used to be in libs-coreJosh Heidenreich1-7/+8
2012-02-05switch to include-based build rather than sourced-based buildNorbert Thiebaud1-35/+2
2012-01-27Bypass building BASIC and scripting related modules for iOSTor Lillqvist1-0/+4
Any LO-based app distributed through the App Store can't have scripting or extendability anyway. Sure, this will break the build elsewhere because of missing headers. No big deal, I will take care of that eventually. It isn't as if there would anybody else building for iOS anyway, as far as I know. If there is, please make yourself heard.
2012-01-26Code cleanup: ( () ) replaced by (())Alexander Bergmann10-29/+29
2012-01-11fix prefix of command line switches (-- instead of -)Andras Timar3-5/+5
2012-01-05Fix for fdo43460 Part XXIX getLength() to isEmpty()Olivier Hallot7-18/+18
Part XXIX Modules sax, scaddins, sccomp, scripting
2011-12-25catch exception by constant referenceTakeshi Abe8-51/+47
2011-12-15Removed extra semicolonsJesse1-1/+1
2011-12-08childs -> childrenMichael T. Whiteley2-11/+11
2011-12-07in modules, when we have a env we are in stage gbuildBjoern Michaelsen1-0/+1
2011-11-29move reconfigure into gbuildBjoern Michaelsen1-1/+1