Commit Graph

1614 Commits

Author SHA1 Message Date
Caolán McNamara
b6b71d74fd squeeze all Exceptions through RuntimeException for exception sig
Change-Id: I50377a12c2baadf48767e1d4c265417d3c8ab765
2012-10-30 11:32:49 +00:00
Stephan Bergmann
7ea7fb009d fdo#49517: Revert "fdo#46102: Load Java scripts with class loaders [...]"
This reverts commit dd6c4f4db1 "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-26 18:28:26 +02:00
Noel Grandin
33a0f8ce65 fdo#46808, Adapt awt::Toolkit UNO service to new style
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-24 16:49:49 +02:00
Michael Stahl
10f4e767f0 gbuild: let ExtensionTarget expect manifest below META-INF
Change-Id: Ia07d3fd856578ab6976c02f8a0ec96273db19a2c
2012-10-23 19:42:37 +02:00
Noel Grandin
b30ee83058 fdo#46808, use service constructor for beans::Introspection
Change-Id: Ieb49277020d31779979d8eb508391d6f8b97bf94
2012-10-23 13:06:14 +02:00
Noel Grandin
5aa2cd1d3f fdo#46808, use service constructor for uri::UriReferenceFactory
Change-Id: I4e72bf5880fa28cb96d93ede7730a63220af7fa6
2012-10-23 11:45:47 +02:00
Matúš Kukan
8c6276a312 drop rdbmaker completely
Change-Id: I313afb391562adae4f91c55480a036c228e0b540
2012-10-22 22:52:14 +02:00
Caolán McNamara
77cb1ca382 Fix "Content is not allowed in prolog" warning
One of the javascript examples parcel-descriptor.xml ended up with a c++
comment instead of a xml comment

Change-Id: Ie63a30e19de2caae08e9a489b6592e1046037416
2012-10-10 10:02:45 +01:00
Noel Grandin
f649c5acd4 sal_Bool->bool in scripting
Change-Id: Ibb61dc696c4341a0b58d8fd7c2fdfb4c5b991596
2012-10-04 21:29:34 +02:00
Stephan Bergmann
7501beafa6 Dead code
Change-Id: Id851bacb21bbe289cebd635853f4d2028aed9f78
2012-10-03 18:22:21 +02:00
Tor Lillqvist
1b075ea2cb Use prefix
Change-Id: I0323e3eb9446c4f2b18f84f5ed33909a877163c8
2012-10-02 11:46:16 +03:00
Stephan Bergmann
c2ca6fabd1 Use comphelper::getComponentContext
...and some further clean up.

Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-29 18:18:28 +02:00
Michael Stahl
5032dc0fc3 gbuild: invert handling of standard system libraries:
Always link in gb_STDLIBS, except when the library explicitly opts out
with gb_LinkTarget_disable_standard_system_libs.

Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
2012-09-28 16:49:08 +02:00
Michael Stahl
b85c349783 gbuild: replace direct gb_STDLIBS use with ...
... new gb_LinkTarget_add_standard_system_libs

Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
2012-09-28 16:49:06 +02:00
Michael Stahl
2e677c3981 gbuild: split uwinapi out of gb_STDLIBS
Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
2012-09-28 16:49:05 +02:00
Marcos Paulo de Souza
6595e392eb fdo#51304: Remove the author of some java source files
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-26 09:45:00 +01:00
Norbert Thiebaud
750fc20611 replace remaining InterlockedCount() with inlined version
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-25 01:55:38 +00:00
Stephan Bergmann
9ac86f484b Improvement on previous commit, UCB clean up
* 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-14 18:24:49 +02:00
Noel Power
4597483e00 targetted VBA re-work. 2012-09-12 12:49:49 +01:00
Noel Grandin
4c9e62c6e3 Java cleanup, convert ArrayList and Vector to use generics
Change-Id: Ic668b46872ee0bfd259ca335aed9d68fb545c3a4
2012-09-10 23:43:39 +02:00
Noel Grandin
6bf09ecf1d Java cleanup, remove unnecessary imports
I guess I missed some last time :-)

Change-Id: I164a8baa07850f783b8cdf2e7f3eeaac53a3d29b
2012-09-10 23:43:38 +02:00
Noel Grandin
a5ff5aad59 Java5 update, Convert ArrayList and Vector code to use generics
Change-Id: I6cf6fa8e55005ffdc1d173aeee1e374efbb214fd
2012-09-10 23:43:37 +02:00
Noel Grandin
bf4352084b Java cleanup, remove unnecessary imports
Change-Id: Iacfcb2e16cb0e3c25a4cd0678a374fe5111284f7
2012-09-06 17:13:58 +02:00
Noel Grandin
bb257014cd Java cleanup, fix compile errors
Change-Id: Ia16a54432291935125d53de9d7cc010917b8373d
2012-09-05 21:01:47 +02:00
Noel Grandin
bc6a9e9b47 Java cleanup, fix compile errors
Change-Id: I2620ccf17a24572b4bd6a79f2410c4b746164b9a
2012-09-05 21:01:47 +02:00
Noel Grandin
44325e03b1 Java cleanup, make the package name match the folder name
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-05 21:01:45 +02:00
Noel Grandin
9d9a9dd7e8 Java cleanup, fix a couple of compile errors
Change-Id: I83a51dc7a68413d9fea16c8cafdb82e665940775
2012-09-05 21:01:45 +02:00
Noel Grandin
ff77676612 Java cleanup - remove unused imports
Change-Id: I7eb24b2d552ec5da752b58ba790ed58fb88728b0
2012-08-28 16:15:42 +02:00
Noel Grandin
2caf5d1937 Java cleanup - remove unnecessary semi-colons
Change-Id: I20a79d3d8f71dc48fc2662563f9c890dd3d94aac
2012-08-28 16:15:42 +02:00
Noel Grandin
206c70eef3 fdo#46808, Adapt TempFile UNO service to new style
Change-Id: Ia448d6d74201e2be487c6d8317f94be3745808aa
2012-08-27 15:40:08 +02:00
Noel Grandin
f789715a41 fdo#46808, Use factory methods for frame::DispatchHelper instances
Change-Id: I7bdf16fc6d042e5ecd404c604a8b7c31c1ac7bc1
2012-08-27 15:40:06 +02:00
Noel Grandin
8bfe47960f Java5 updates - convert to generics
Change-Id: I039e51958865a7ea000034e7bf765f64d49689cd
2012-08-20 19:04:33 +01:00
Noel Grandin
f6a62d9e41 Java update - fix various javadoc issues
Along the way, remove some javadoc comments that are completely incorrect.

Change-Id: I02f96b6cbe665d2c10bd6ee245a7d8e2eef0f755
2012-08-20 12:54:24 +01:00
Michael Stahl
5a4bcd3b75 gbuild: register all jars
Change-Id: I9f49970e5e06d1afd3fc066a20d1671c93e262fc
2012-08-17 12:52:25 +02:00
Michael Stahl
cdbd6957a5 gbuild: remove most uses of gb_Jar_set_jarclasspath:
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-15 21:29:14 +02:00
Julien Nabet
88840a796e Remove unused local vars
Change-Id: I80bd0329e15cb365091ea6f5c7e1ef3559d681fc
2012-08-11 10:25:54 +02:00
Matúš Kukan
772d15fb8c create these rdbs directly in scripting
Change-Id: I8a44de06f9a16308a5ff82ad77d059e5dde544f9
2012-08-09 16:16:50 +02:00
Thomas Arnhold
548a2ffe3a remove bogus date information
Change-Id: I2789153ee35f4ec10e760f9412eb7d379de031bf
2012-08-07 18:08:30 +02:00
Christophe JAILLET
cf239da5c4 There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString.

Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
2012-08-06 12:22:10 +01:00
Julien Nabet
b80b7ba179 Static method sleep from Thread should be accessed in a static way
Change-Id: I7d875dd74f8eff05f7a291100841779abbf5fd1c
2012-08-06 00:13:27 +02:00
Christophe JAILLET
df645a2bd8 There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString.

Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7
2012-07-16 11:33:05 +01:00
Julien Nabet
350de508cf Prefer prefix ++/-- operators for non-primitive types
Change-Id: Iedb58cade2bc7cdbce2e8d40b0e3502bf3df4fa9
2012-07-15 15:21:38 +02:00
Bjoern Michaelsen
d24b518261 Revert "Some cppcheck cleaning"
This reverts commit b21661ce42.

this breaks with ../framework/source/lomenubar/MenuItemInfo.hxx:49:12: error: expected ‘;’ at end of member declaration
2012-07-14 16:07:39 +02:00
Michael Meeks
ae7534f616 targetted rename xcr -> xmlscript to match includes and module name 2012-07-09 14:23:26 +01:00
Michael Meeks
3f281b6f0a re-base on ALv2 code. Includes:
remove onlineregistration with dependencies
Patch contributed by Juergen Schmidt
http://svn.apache.org/viewvc?view=revision&revision=1249245
2012-07-06 20:29:14 +01:00
Ocke.Janssen
efae0d1c5e os141: add missing component
Conflicts:
	scripting/source/dlgprov/dlgprov.cxx
2012-07-06 20:29:14 +01:00
Michael Meeks
fdda178d88 targetted improvement of UNO API includes / usage 2012-07-02 14:43:34 +01:00
Takeshi Abe
d221d4e5a7 removed unnecessary forward declarations of class
this also moved necessary ones to right headers

Change-Id: Idda93aeaa1fdfeda602b14e3b233ffd1cf27c0cf
2012-07-02 22:07:55 +09:00
Noel Grandin
f9fa0dd66b Java5 updates - update code to use generics
This is all of the code I missed in my first set of patches.

Change-Id: I8c7c9e5ac28dc3c2f3ac062c806fbf0787c997bd
2012-06-29 22:03:05 +02:00
Michael Meeks
2005a34318 re-base on ALv2 code. 2012-06-29 15:51:49 +01:00