summaryrefslogtreecommitdiff
path: root/scripting
AgeCommit message (Collapse)AuthorFilesLines
2012-11-08scripting: warning C4804 usafe use of type boolMichael Stahl1-1/+1
Change-Id: I2db644a3c18658b07834fe6653b17713fd8201a7
2012-11-03basic: String -> OUString in basicmanagerNorbert Thiebaud1-15/+25
Change-Id: I6607bfe8b6bf4d29ffd01cd88a19af5e53d616b5
2012-10-30squeeze all Exceptions through RuntimeException for exception sigCaolán McNamara1-1/+1
Change-Id: I50377a12c2baadf48767e1d4c265417d3c8ab765
2012-10-26fdo#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
2012-10-24fdo#46808, Adapt awt::Toolkit UNO service to new styleNoel Grandin1-4/+3
Create a merged XToolkit2 interface for this service to implement. Which is backwards-compatible, but does not require creating a new service. Also mark sub-interfaces as non-optional. Change-Id: I278d0288e92be277033013302267cf93f7d70480
2012-10-23gbuild: let ExtensionTarget expect manifest below META-INFMichael Stahl1-0/+0
Change-Id: Ia07d3fd856578ab6976c02f8a0ec96273db19a2c
2012-10-23fdo#46808, use service constructor for beans::IntrospectionNoel Grandin2-56/+30
Change-Id: Ieb49277020d31779979d8eb508391d6f8b97bf94
2012-10-23fdo#46808, use service constructor for uri::UriReferenceFactoryNoel Grandin5-90/+36
Change-Id: I4e72bf5880fa28cb96d93ede7730a63220af7fa6
2012-10-22drop rdbmaker completelyMatúš Kukan1-1/+1
Change-Id: I313afb391562adae4f91c55480a036c228e0b540
2012-10-10Fix "Content is not allowed in prolog" warningCaolán McNamara1-2/+2
One of the javascript examples parcel-descriptor.xml ended up with a c++ comment instead of a xml comment Change-Id: Ie63a30e19de2caae08e9a489b6592e1046037416
2012-10-04sal_Bool->bool in scriptingNoel Grandin3-5/+5
Change-Id: Ibb61dc696c4341a0b58d8fd7c2fdfb4c5b991596
2012-10-03Dead codeStephan Bergmann13-1788/+0
Change-Id: Id851bacb21bbe289cebd635853f4d2028aed9f78
2012-10-02Use prefixTor Lillqvist12-12/+12
Change-Id: I0323e3eb9446c4f2b18f84f5ed33909a877163c8
2012-09-29Use comphelper::getComponentContextStephan Bergmann3-15/+7
...and some further clean up. Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-28gbuild: invert handling of standard system libraries:Michael Stahl6-12/+0
Always link in gb_STDLIBS, except when the library explicitly opts out with gb_LinkTarget_disable_standard_system_libs. Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
2012-09-28gbuild: replace direct gb_STDLIBS use with ...Michael Stahl6-6/+12
... new gb_LinkTarget_add_standard_system_libs Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
2012-09-28gbuild: split uwinapi out of gb_STDLIBSMichael Stahl6-0/+6
Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
2012-09-26fdo#51304: Remove the author of some java source filesMarcos Paulo de Souza40-126/+1
This patch remove some '@author' for Java souce files, and removes some commented code founded when removing the '@author'. Change-Id: I7bff1507212e967069f3d18e6c1040f69501694a Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2012-09-25replace remaining InterlockedCount() with inlined versionNorbert Thiebaud1-4/+4
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c Reviewed-on: https://gerrit.libreoffice.org/671 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-14Improvement on previous commit, UCB clean upStephan Bergmann2-18/+7
* As UCB is only ever initialized with "Local"/"Office", remove this configuration vector completely. The "create" ctor creates an instance internally initialized with those "Local"/"Office" keys. Special (test) code can still instantiate an uninitialized one via plain createInstance. And for backwards compatilibity process startup still ensures to create an initialized instance early, in case there is still code out there (in extensions) that later calls plain createInstance and expects to get the already-initialized (single) instance. * XInitialization is an "implementation detail" of the UniversalContentBroker service, do not expose in XUniversalContentBroker. * ucbhelper/configurationkeys.hxx is no longer needed and is removed. * ucbhelper/contentbroker.hxx is an empty wrapper and is removed; however, that requires ucbhelper::Content constructors to take explicit XComponentContext arguments now. * The only remaining code in ucbhelper/source/client/contentbroker.cxx is Android-only InitUCBHelper. Is that relevant still? Change-Id: I3f7bddd0456bffbcd13590c66d9011915c760f28
2012-09-12targetted VBA re-work.Noel Power2-144/+11
2012-09-10Java cleanup, convert ArrayList and Vector to use genericsNoel Grandin10-44/+44
Change-Id: Ic668b46872ee0bfd259ca335aed9d68fb545c3a4
2012-09-10Java cleanup, remove unnecessary importsNoel Grandin22-93/+0
I guess I missed some last time :-) Change-Id: I164a8baa07850f783b8cdf2e7f3eeaac53a3d29b
2012-09-10Java5 update, Convert ArrayList and Vector code to use genericsNoel Grandin9-32/+34
Change-Id: I6cf6fa8e55005ffdc1d173aeee1e374efbb214fd
2012-09-06Java cleanup, remove unnecessary importsNoel Grandin11-26/+0
Change-Id: Iacfcb2e16cb0e3c25a4cd0678a374fe5111284f7
2012-09-05Java cleanup, fix compile errorsNoel Grandin6-6/+7
Change-Id: Ia16a54432291935125d53de9d7cc010917b8373d
2012-09-05Java cleanup, fix compile errorsNoel Grandin6-12/+12
Change-Id: I2620ccf17a24572b4bd6a79f2410c4b746164b9a
2012-09-05Java cleanup, make the package name match the folder nameNoel Grandin11-15/+11
Note that the code doesn't compile after this change, it is still very out of date with respect to changes in the UNO framework Change-Id: I5a001002a3fcf20496bba4367b9f2da4ceba9f88
2012-09-05Java cleanup, fix a couple of compile errorsNoel Grandin1-2/+2
Change-Id: I83a51dc7a68413d9fea16c8cafdb82e665940775
2012-08-28Java cleanup - remove unused importsNoel Grandin2-2/+0
Change-Id: I7eb24b2d552ec5da752b58ba790ed58fb88728b0
2012-08-28Java cleanup - remove unnecessary semi-colonsNoel Grandin1-1/+1
Change-Id: I20a79d3d8f71dc48fc2662563f9c890dd3d94aac
2012-08-27fdo#46808, Adapt TempFile UNO service to new styleNoel Grandin1-15/+10
Change-Id: Ia448d6d74201e2be487c6d8317f94be3745808aa
2012-08-27fdo#46808, Use factory methods for frame::DispatchHelper instancesNoel Grandin1-19/+15
Change-Id: I7bdf16fc6d042e5ecd404c604a8b7c31c1ac7bc1
2012-08-20Java5 updates - convert to genericsNoel Grandin22-173/+144
Change-Id: I039e51958865a7ea000034e7bf765f64d49689cd
2012-08-20Java update - fix various javadoc issuesNoel Grandin5-15/+8
Along the way, remove some javadoc comments that are completely incorrect. Change-Id: I02f96b6cbe665d2c10bd6ee245a7d8e2eef0f755
2012-08-17gbuild: register all jarsMichael Stahl7-31/+31
Change-Id: I9f49970e5e06d1afd3fc066a20d1671c93e262fc
2012-08-15gbuild: remove most uses of gb_Jar_set_jarclasspath:Michael Stahl3-13/+0
With gb_Jar_add_jar and gb_Jar_add_system_jar adding to the manifest classpath automatically it is no longer necessary to call gb_Jar_set_jarclasspath manually except for the URE jars, which are apparently not supposed to be added automatically. Change-Id: I1e743e7ecb9cb5651e02005aa09e127bea1b0a29
2012-08-11Remove unused local varsJulien Nabet1-1/+0
Change-Id: I80bd0329e15cb365091ea6f5c7e1ef3559d681fc
2012-08-09create these rdbs directly in scriptingMatúš Kukan3-4/+40
Change-Id: I8a44de06f9a16308a5ff82ad77d059e5dde544f9
2012-08-07remove bogus date informationThomas Arnhold8-10/+0
Change-Id: I2789153ee35f4ec10e760f9412eb7d379de031bf
2012-08-06There is not need to allocate memory just for getting the 'indexOf'Christophe JAILLET1-1/+1
a literal within a OUString. Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
2012-08-06Static method sleep from Thread should be accessed in a static wayJulien Nabet1-1/+1
Change-Id: I7d875dd74f8eff05f7a291100841779abbf5fd1c
2012-07-16There is not need to allocate memory just for getting the 'indexOf'Christophe JAILLET2-2/+2
a literal within a OUString. Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7
2012-07-15Prefer prefix ++/-- operators for non-primitive typesJulien Nabet1-13/+13
Change-Id: Iedb58cade2bc7cdbce2e8d40b0e3502bf3df4fa9
2012-07-14Revert "Some cppcheck cleaning"Bjoern Michaelsen1-13/+13
This reverts commit b21661ce4200fd8040a213770a3f9e63a4b9f137. this breaks with ../framework/source/lomenubar/MenuItemInfo.hxx:49:12: error: expected ‘;’ at end of member declaration
2012-07-09targetted rename xcr -> xmlscript to match includes and module nameMichael Meeks2-2/+2
2012-07-06re-base on ALv2 code. Includes:Michael Meeks128-1303/+2029
remove onlineregistration with dependencies Patch contributed by Juergen Schmidt http://svn.apache.org/viewvc?view=revision&revision=1249245
2012-07-06os141: add missing componentOcke.Janssen2-1/+4
Conflicts: scripting/source/dlgprov/dlgprov.cxx
2012-07-02targetted improvement of UNO API includes / usageMichael Meeks4-16/+4
2012-07-02removed unnecessary forward declarations of classTakeshi Abe2-2/+0
this also moved necessary ones to right headers Change-Id: Idda93aeaa1fdfeda602b14e3b233ffd1cf27c0cf