Commit graph

4238 commits

Author SHA1 Message Date
Stephan Bergmann
b247950eee Properly check cmdline args in oosplash
...so that e.g. --headless (starting with a "h") is not also mistaken as -h and
disables pagein and javaldx.

Change-Id: I8a7b2b0373d96ec586975e07e17e7eabe201dcd0
2012-09-21 13:35:32 +02:00
Stephan Bergmann
03a9f139bd ComponentContext::getUnoContext -> getComponentContext simplification
...and some further clean-up.

Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
2012-09-19 13:16:38 +02:00
Stephan Bergmann
cccc6bcfa0 Don't access broken service mgr during bootstrap failure
...so that displaying a (non-translated) error box upon BE_UNO_SERVICEMANAGER
works after all.  Augment the error text with an exception message where
appropriate.  This allows to revert fdfb7a3c4b
"Related fdo#51252: Report uncaught exceptions with MessageBox on Windows" as
that was to catch and display failures from instantiating the service mgr.

Change-Id: I049a38e95342634796eb0e940e2ee8e55193c9d3
2012-09-18 15:08:56 +02:00
Norbert Thiebaud
b854de954f deprecate oustringostreaminserter.hxx
the intent of this header has canged over time. now it is already
systematically included with ustring.hxx and the operator overload it
provide fit nicely there...

Just to be safe, since that include as been added to the api during the
3.5 timeframe and therefore is already in 'production'
the header remain and simply attempt to include ustring.hxx
but a warning is issued indicating that this header should not be used
anymore... in a couple of major release we will thenr emove it completely

All internal users of that header are converted.

Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad
Reviewed-on: https://gerrit.libreoffice.org/634
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-18 10:10:06 +00:00
Noel Grandin
900d60b3cd fdo#46808, Adapt bridge::BridgeFactory UNO service to new style
Create a merged XBridgeFactory2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Change-Id: I7309f4d30f0e772bc203c701eb3407b920ffafcc
2012-09-17 14:28:22 +02:00
Andras Timar
eaa81cc2f0 move help compiler/linker/indexer to a new module
we may want to use syntax highlighter class from svtools later,
which is not available for l10ntools

Change-Id: I5a06b77cb6935e3ef68015fb608aa26ac7c53fac
2012-09-16 20:41:26 +02: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
Riccardo Magliocchetti
ad050e40f1 headless build: build oosplash again
It looks like we want it so revert:
dae66b7b1d
4d408cc2f0
64a530cfa8

Change-Id: I7cd410861b28a0556de3375a0865a7baef52bd78
2012-09-10 21:26:15 +02:00
Riccardo Magliocchetti
bf8f009cdb desktop: enable --invisible by default when built with --enable-headless
Change-Id: I560759b91c5d37079a2b0d748cff5acf0a81ae4f
2012-09-07 21:53:59 +02:00
Riccardo Magliocchetti
dae66b7b1d desktop: use soffice.bin instead of oosplash if build with --enable-headless
Change-Id: I2e4742a6893267ea8d4ec2048dd0686fd309a7db
2012-09-07 20:13:51 +02:00
Noel Grandin
bf4352084b Java cleanup, remove unnecessary imports
Change-Id: Iacfcb2e16cb0e3c25a4cd0678a374fe5111284f7
2012-09-06 17:13:58 +02:00
Stephan Bergmann
5c804dce94 deb#681185: wait for InternalIPC::ProcessingDone in oosplash
Change-Id: I9606ec34ad0d8d24dca71d060bf5e1d37152903c
2012-09-06 12:44:17 +02:00
Michael Stahl
6a1c29d7ef offapi: move css.ui.UICommandDescription to css.frame.UICommandDescription:
The service implementation used "com.sun.star.frame.UICommandDescription"
since forever, so the IDL file was essentially wrong documentation.
But since 7a464263cc converted the service
to new-style, it cannot be instantated any more and e.g. clicking on
Tools->Customize crashes.
(Adapting the implementation instead would be an incompatible change.)

Change-Id: I564bddaf3836827f5b72360a2bde19d6158b7ba5
2012-09-06 11:13:42 +02:00
Riccardo Magliocchetti
64a530cfa8 desktop: i swear we don't need oosplash with --enable-headless
Change-Id: I7d03590fc2a0942757b7214c15be78e8bc626e9c
2012-09-03 20:00:31 +02:00
Stephan Bergmann
756352698d More places that require a prefixed "system"
Change-Id: I49cf1f02faf70a5a92ab45e7678253ba4e5f68d0
2012-09-03 18:34:24 +02:00
Noel Grandin
bc00717bb7 fdo#46808, Adapt system::SystemShellExecute UNO service to new style
Change-Id: Ib298b3219c3e89dd35bce0974846ed4888ed941e
2012-09-03 15:55:05 +02:00
Noel Grandin
278379697d fdo#46808, Adapt io::Pipe UNO service to new style
Create a merged XPipe interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Change-Id: I682633c6252aab503eb2469c9bd2ba771f10bc4b
2012-09-03 15:55:04 +02:00
Noel Grandin
9b07288138 fdo#46808, Adapt xml::dom::DocumentBuilder UNO service to new style
Change-Id: I577fbc7f990be9ec1f7b7eea53218b7daaccb2a1
2012-09-03 15:55:04 +02:00
Stephan Bergmann
687256fcb2 -Werror=shadow
Change-Id: Ibb4dea2bd4b13058895913fa37b7f0b4488cc417
2012-09-03 15:55:03 +02:00
Noel Grandin
7a464263cc fdo#46808, Adapt UICommandDescription UNO service to new style
Change-Id: Ibca112904f137ff981ae9be3e5bd56aa11aec352
2012-09-03 15:55:03 +02:00
Noel Grandin
10362695c2 fdo#46808, Adapt ModuleUIConfigurationManagerSupplier UNO service to new style
Change-Id: I58b17349474b974edd24aa17ec08ffa848a92ae9
2012-09-03 15:55:03 +02:00
Stephan Bergmann
0afa53428e -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I70840eba399c4b4f2b0f5330399dae6f1928c0bc
2012-08-31 09:04:17 +02:00
Stephan Bergmann
2198fc2711 Typo
Change-Id: Iac9a2715b8a0a517f502c56ef0652e316bd76f52
2012-08-24 19:09:35 +02:00
Stephan Bergmann
21ebc2b32d Unused members
Change-Id: I4f3e6f2c07d1ef55464646a5ab313c305f4a22e8
2012-08-24 19:09:30 +02:00
Stephan Bergmann
1b40fbe414 fdo#53968 etc.: Fix more "doesn't start after upgrade" problems
* fdo#53968 revealed that multiple soffice.bin instances can run removeTree in
  parallel.  Therefore, demoted failures from exceptions to SAL_WARNs.  (And
  keeping fingers crossed.)

* a8cdce148c "fdo#53655: Ignore failure to remove
  directories (as happens on Windows XP)" was due to a forgotten
  osl::Directory::close before calling osl::Directory::remove after all.

* UserInstallations have been seen in the wild where no extensions were
  installed per-user (any longer), but user/uno_packages/cache/registry/
  com.sun.star.comp.deployment.component.PackageRegistryBackend/*.rdb files
  contained data nevertheless.  To reliably clean out any old junk,
  refreshBundledExtensionsDir has been extended to cleanExtensionsCache which in
  tandem with an extended Desktop::SynchronizeExtensionRepositories now cleanly
  re-installs all bundled, shared, and per-user extensions after a LO upgrade.

Change-Id: Ic6b5b6c1945d76eb3a65b6cd4512a657b7a835a0
2012-08-24 17:18:28 +02:00
Stephan Bergmann
1316cfe8a7 Typo
Change-Id: I41fd1463b6432818ee36e7f90e920a5fd98c7106
2012-08-21 18:55:11 +02:00
Stephan Bergmann
a8cdce148c fdo#53655: Ignore failure to remove directories (as happens on Windows XP)
...plus, add error codes to other failure's exception strings, just in case...

Change-Id: Ic21c52e0ab52ed1752745e86bde214aee7c3c208
2012-08-21 18:06:16 +02:00
Stephan Bergmann
e9631f40ee fdo#53006: And detect LO downgrading scenarios...
...that reinstall potentially broken prereg data but do not touch the buildid
file.

Change-Id: I1b02d2c265523dd751d8ef7f2dccb59ed048f568
2012-08-13 17:51:38 +02:00
Julien Nabet
88840a796e Remove unused local vars
Change-Id: I80bd0329e15cb365091ea6f5c7e1ef3559d681fc
2012-08-11 10:25:54 +02:00
Stephan Bergmann
0ab5ce54c4 fdo#53006: Remove directories too, not just plain files
... that was an oversight in 5300f6f711c2167931d45248c1b72dbce3a7df38; thanks
Petr for spotting it.

Change-Id: I4d0179165bc3b29d698cd776f7e1aa51fa73ebe3
2012-08-10 19:36:08 +02:00
Stephan Bergmann
6dcb3d4ef4 Related fdo#51252: No more prereg, no more unopkg sync
Now that 5c47e5f63a "fdo#51252 Disable copying
share/prereg/bundled to avoid startup crashes" removed the use of share/prereg,
there is no longer need to generate it in the first place (by calling "unopkg
sync" at build or installation time), and so no need for the "unopkg sync" sub-
command, either.  This also allows to simplify some of the jvmfwk code that was
only there so that "unopkg sync" (which can require a JVM) can work in "hostile"
environments (during build and installation).

Change-Id: I52657384f4561bf27948ba4f0f88f4498e90987f
2012-08-10 16:03:28 +02:00
Stephan Bergmann
0cfed16626 fdo#42470: Do not show backing window on --nodefault
Change-Id: Id265dc84de454568ea8194703687c68449e9a32b
2012-08-10 09:08:15 +02:00
Stephan Bergmann
5300f6f711 fdo#53006: Remove user/extensions/bundled cache after upgrade
... to clean out all sorts of inconsitencies that can have accrued there over
time apparently due to how the mechanism of copying share/prereg/bundled worked,
and to work around stale $BUNDLED_EXTENSIONS_PREREG references in a better way
than the previous 81fd6b084b "fdo#53006 Force
reinstall of all bundled extensions on upgrade."

See the comment on refreshBundledExtensionsDir for how, at least in theory, that
functionality could be removed again in the future.

This effectively reverts 2d2b19dea1 "Force
ExtensionManager resync when the implementation changes" and
81fd6b084b "fdo#53006 Force reinstall of all
bundled extensions on upgrade" (the latter at least on master; it had never been
cherry-picked to libreoffice-3-6), which it obsoletes.

Change-Id: I8f80c07a06ec9d53b03813338eeff7d7757c9d4d
2012-08-09 14:36:54 +02:00
Stephan Bergmann
6c6358a682 Related fdo#53006: Do not instantiate service manager too early
... in soffice_main calling GetCommandLineArgs, before Desktop::Init takes care
of synchronization of the per-user bundled/shared extension information (as the
latter potentially modifies data that the service manager consumes upon
instantiation; this e.g. lead to bundled extensions not working during first
start after an upgrade).

The only reason GetCommandLineArgs needed ensureProcessServiceFactory appears to
be the ExternalUriReferenceTranslator.  So defer its usage to when the relevant
cmd line args are actually processed (which, luckily, does not yet happen in
soffice_main's usage of GetCommandLineArgs).

Change-Id: I6ebbf0a4ad1c6f64c8fbbe2b0d7628fa42a1afb6
2012-08-09 14:36:53 +02:00
Thomas Arnhold
2beba8f93e reduce ascii noise and useless comments
Change-Id: I317058e3b25cebb7c1d89361636261c5f16a84d4
2012-08-08 13:53:54 +02:00
Matúš Kukan
510576b6d8 tubes: finish efforts to make TeleManager static
Change-Id: I1d25a6074c3465a6e8c1df3127093d30d913b65d
2012-08-08 10:04:17 +02:00
Zolnai Tamás
2854d8b17c fdo#46193 MessBox was made copyable
Part of MultiLineEdit was moved down from stvools to vcl
with name VCLMultiLineEdit. MessBox uses it to display the
message in read-only mode. Some of svtools' classes - which
are necessary to implement VCLMultiLineEdit - were moved to
vcl as a whole, and their includes are rewrite.
Note: ExtTextView and ExtTextEngine classes would be leaved in svtools
if VCLMultiLineEdit is a template class, but two macros: IMPL_LINK
end IMPL_LINK_NOARG make it impossible to use template syntax.

Change-Id: I26543868d8081c225c7125404d23369de3c3afcd
2012-08-07 10:50:23 +02:00
Andrzej J.R. Hunt
b2fd823017 Some minor fixes.
Change-Id: Id405b97440efc7160e76d535bddfd5580923fe24
2012-08-06 10:23:12 +01:00
Andrzej J. R. Hunt
0bb13b5e61 Fixed remote control code to work correctly.
Change-Id: I Ia600ed456fba135056f7a00398030b7c9e873329
2012-08-06 10:22:54 +01:00
Stephan Bergmann
81fd6b084b fdo#53006 Force reinstall of all bundled extensions on upgrade
...as the per-user data about bundled extensions can otherwise contain stale
$BUNDLED_EXTENSIONS_PREREG references if the old installation used
share/prereg/bundled/, the new one does not (cf. the fixing for fdo#51252 "LO
cannot start (reports runtime error with Visual C++ Runtime Library)"), and a
bundled extension did not change version.

It is safe to tie this behavior to the existing "force" parameter of
dp_misc::syncRepositories, as the only place that calls it with force=true is
the call to Desktop::SynchronizeExtensionRepositories(newInst) in Desktop::Main,
where newInst=true is the relevant condition for this behavior, too.

As stated in XExtensionManager.idl, "this [...] can go again once no exisiting
UserInstallation's user/extensions/bundled/ data can contain any
$BUNDLED_EXTENSIONS_PREREG references any longer."

Change-Id: I630dec8f2d20282ee47c65ac61ed2c9b062448e1
2012-08-02 18:26:39 +02:00
Stephan Bergmann
96f28626f0 Check for ComponentPackageImpl::isRegistered_ in the current rdb
...not the old one that does not contain the changes from the current session.
Otherwise, actively registered components in bundled extensions would not
necessarily be re-registered upon start up.  Any old instance would be removed,
but the new instance would not be registered as isRegistered_ would still
return true.

To me it looks like 7a400caaa6 "jl145: #i99257#
Extension Manager prevents running of multiple instances which acces the same
shared data" erroneously introduced a call to getRDB_RO instead of getRDB into
isRegistered_.  That (only) call of getRDB_RO gone allowed some clean up, incl.
renaming remaining variables from ..._RO to ..._orig.

Change-Id: I7eccac699e6fa5799f77b038b15d62e0a9c1ad17
2012-08-02 17:40:36 +02:00
Matúš Kukan
b70c2d352d tubes: avoid unnecessary re-building; move the include into source file
Change-Id: Ib45a5fab8d4dc118ac0ae5282d47f46f9f86edc2
2012-07-26 15:59:21 +02:00
Matúš Kukan
bb9399e2cf tubes: kill double-singletonning of TeleManager
I am not sure why it was introduced in
0dae49a03c
and hope that it's safe to remove it now.

Change-Id: I62f0ac230a83473386eabc45c9fcc387f62631e3
2012-07-26 15:59:19 +02:00
Stephan Bergmann
5c47e5f63a fdo#51252 Disable copying share/prereg/bundled to avoid startup crashes
...see <https://bugs.freedesktop.org/show_bug.cgi?id=51252#c35>, comment 35 to
"LO cannot start (reports runtime error with Visual C++ Runtime Library)" for
all the details.  This commit is intended as a band aid, to be backported to
libreoffice-3-6-0.  It can be cleaned up later on.

Change-Id: I2984cdd7efc279e3ef482a762b614e1d625a697f
2012-07-26 13:25:41 +02:00
Stephan Bergmann
fdfb7a3c4b Related fdo#51252: Report uncaught exceptions with MessageBox on Windows
...as stderr is not generally visible there to the user (and vcl's
Application::ShowNativeErrorBox might not yet be functional during early start
up).

Change-Id: I1b99a77f7add967579d726462aa0a7b83a5d2d0a
2012-07-25 10:31:21 +02:00
Matúš Kukan
b129545319 tubes: init TeleManager in desktop
- register clients when we run --invisible
- create ScDocFuncSend only if we are going to use it

Change-Id: I7e33cd5a2e42e34a055146dc6c2bdac3657d6529
2012-07-24 13:51:10 +02:00
Stephan Bergmann
06f20d73da Fix SAL_LOG area usage
Change-Id: If8acc5e9fee2730796637dfb505e0c514f96f1a3
2012-07-20 11:10:05 +02:00
Thomas Arnhold
3e7832724e Revert hrc string cleanup
This reverts mostly all of my hrc string cleanup commits. As Markus
stated in dc05a825e7 those are erroneous
and mostly untested. And therefore absolutely unsave. I only did test
them by compiling and checking the main screens. Cleaning those files
seems to be much more complicated than I thought.

So to be absolutely save I do this huge revert. Sorry for this.

Revert "hrc cleanup: Further cleanup"
This reverts commit 60212988e1.

Revert "hrc cleanup: Remove unused strings"
This reverts commit 0e2d7550dd.

Revert "hrc cleanup: Remove unused Strings in sfx2/source/doc/doc.hrc"
This reverts commit efb74b5dfd.

Revert "hrc cleanup: Remove unused Strings in cui"
This reverts commit 527e8f6186.

Revert "hrc cleanup: Remove unused Strings in desktop"
This reverts commit ac3800fbb9.

Revert "hrc cleanup: Remove unused cstitem.src"
This reverts commit ae95e31831.

Revert "hrc cleanup: Remove unused strings in wizards"
This reverts commit 20f9a17443.

Revert "hrc cleanup: Remove unused Strings in sfx2"
This reverts commit c26d4d3446.
2012-07-18 23:28:54 +02:00
David Tardon
9aa6170199 move sysui to postprocess
The only thing that sysui exports that is used by another package are
application icons, used in desktop (windows build only). But since
gbuildification of desktop they are included directly from
$(SRCDIR)/sysui/desktop/icons instead of $(OUTDIR)/inc/icons, so the
dependency is no longer necessary.

Change-Id: I6fa3153d3793e785c1ed602c3e67c86cead2bae2
2012-07-17 14:06:52 +02:00
Andras Timar
8d0c180469 remove 2 unused resources
Change-Id: I5b0faac6c47c284fd25f020fdf6dbbed5c643e72
2012-07-15 21:08:41 +02:00