Commit Graph

124 Commits

Author SHA1 Message Date
b3843321e9 desktop: fix includes
Change-Id: Ia51cd6fcdb84c049907b0aeda20774558198b575
2014-06-04 10:59:07 +02:00
cd11bc699a C string usage improvment
Change-Id: I5c59f0d2d1b911ffa1ee251e0f1355d137616493
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-20 09:47:54 +02:00
f5051821bc Clean up function declarations and some unused functions
Change-Id: Ie35d71a03d2f89cd72836db21fac8746a9e85b09
2014-04-13 23:26:48 +02:00
35836f3508 fixincludeguards.sh: desktop
Change-Id: Iaeba85d313af1840f925fd0536d11ac83545a118
2013-10-28 15:16:18 +01:00
5d4558da5f fdo#58982 Center the splash screen in dual-monitor setup
The problem was that the position of the screen was not considered.

Change-Id: I1b2feb916952a4175bfff0675a884477407a702c
Reviewed-on: https://gerrit.libreoffice.org/6119
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-17 18:44:05 +00:00
c4bfd42c3c Be less verbose in a plain debug build
Change-Id: Ieffdf077372f56016fa735ce0266c9e6e6a1fe1d
2013-09-09 17:25:04 +03:00
08452f1208 Rename SOLAR_JAVA to ENABLE_JAVA and HAVE_FEATURE_JAVA
Change-Id: Ib451bdb3c1c2ca42347abfde44651d5cf5eef4f3
2013-08-19 10:29:04 +03:00
1f2a635ae1 clean executables in Repository.mk
..so that no executable in gb_Helper_register_executables,NONE is installed
(except cppunittester from scp2/source/smoketest/)
and all others are installed.
Also remove unused officeloader executable.

Change-Id: I1726afc4d9d6848bca7fa07ebce3acd340777e8a
2013-06-15 21:32:37 +02:00
e5b2edfb93 coverity#982969 Resource leak
Change-Id: Iabf637be4b704de4165c5cefb6a19687a1b5637a
Reviewed-on: https://gerrit.libreoffice.org/3902
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-05-14 13:37:36 +00:00
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
1c2862e8d1 Remove residue of undocumented "edition" feature
...whereby some branding could be orverridden with information from a program/edition/
directory.

Change-Id: I7f9324678b09bc8069775dfcbda97be8e0618a91
2013-04-29 10:27:29 +02:00
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
0ac88c0bbc WaE: macro is not used: USE_LIBPNG
Change-Id: I900d4957d964332ef97cb389d17206438f94743c
2013-03-27 13:07:17 +02:00
71907bb06a -Wunused-macros
Change-Id: Ia147a72a4bbd5cec45a2a74b721a81ff8c4340c2
2013-03-27 11:49:57 +01:00
5bb4a2ba1d further OUString cleanup
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19 14:18:10 +01:00
8b27d78b4a automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
Done with a perl regex:

s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms

Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec
Reviewed-on: https://gerrit.libreoffice.org/2832
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 09:00:26 +00:00
28b0168b42 No namespace desktop visible or needed in this source file any more
Change-Id: Id8174bd2bd50afa510ff60dcca63d8c560769f61
2013-03-12 14:31:38 +02:00
221b845d01 Need relative path to where exithelper.h is
Change-Id: If503e364700428ec3eac3d6f86e0388860cec10d
2013-03-12 14:03:09 +02:00
ecdd44e8f5 Use symbolic names instead of magic literal constants
We use tons of plain C-style #defines to give symbolic names to constants all
over the place already, in headers used from C++ code only. So why in this
rare case where the symbolic names for some constants actually would be needed
from a C source file, too, here then we define them inside a C++ class?

Change-Id: I45726fe42687779724c45a1e2b118cc7a1debcf1
2013-03-12 13:47:33 +02:00
4f4e4e40f5 loplugin: improve indentation
Change-Id: Idb847766d93dc222d6c55889616da21eeac212ee
2013-02-25 17:59:40 +01:00
fcf3758c92 Fix typo "fuction" -> "function"
Change-Id: I369da2262d42fbc7cc3cfeeef4920606522237cd
2013-02-23 16:47:15 +01:00
5fa05c96d6 added comment about language tags
Change-Id: If5a64f7e2b3ad0ad62733ea7e1a0c958ef6a7cd1
2013-02-18 20:07:05 +01:00
2fcba16dc4 Never pass -env: arguments across OfficeIPC connection
Change-Id: I1874ad0542bc8dcbe9ec588599a054030fd5d7d8
2013-01-18 16:55:04 +01:00
0dce7eae55 startup: more reliable startup of multiple instances
Until now, when a new soffice instance (S2) started and tried to
connect to an existing soffice process (S1), S2 may have failed to
boostrap due to race condition in communication over the shared pipe.

S1 can be shutdown after S2 connected to it but _before_ S1 handled its
arguments (code run after 'accept' method in OfficeIPCThread).
This patch introduces a new message, sent by the main soffice after it
has called accept if and only if it's not shutting down (see mbDowning
 member).
The other soffice waits for this message before enabling going in
 PIPE_CONNECTED mode. If soffice fails to receive this message, pipe mode is
left unchanged and after a quick pause, it will try again.

Change-Id: I2e099a5804e1e8dd535cfd31ef454cffa44efa62
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2012-12-13 11:16:12 +01:00
c2500a004d -Werror=unused-parameter
Change-Id: If1aad98965a90ac6b2e5488f21fe0d84c9b4af47
2012-12-03 13:33:52 +01:00
3f2f4f15e2 loplugin: fixed busted indent
Change-Id: I47180d899701de5436e518bebcf82620f4ce9669
2012-11-20 16:47:32 +00:00
daeed90f45 re-base on ALv2 code. Includes:
Patch contributed by: Jurgen Schmidt
    remove onlineregistration with dependencies
    http://svn.apache.org/viewvc?view=revision&revision=1240245
    imported patch package_eventlistener.patch
    http://svn.apache.org/viewvc?view=revision&revision=1172103

    Patch contributed by Pedro Giffuni
    Accept Google Chrome OS fonts as equivalent to MS fonts.
    http://svn.apache.org/viewvc?view=revision&revision=1233155
    http://svn.apache.org/viewvc?view=revision&revision=1233408

    Patch contributed by Andre Fischer
    Do not add targets for junit tests when junit is disabled.
    http://svn.apache.org/viewvc?view=revision&revision=1241508

    Patches contributed by Mathias Bauer (and others)
    gnumake4 work variously
    http://svn.apache.org/viewvc?view=revision&revision=1394707
    http://svn.apache.org/viewvc?view=revision&revision=1394326
    cws mba34issues01: #i114600#: remove forbidden characters
    from list of unencoded characters
    http://svn.apache.org/viewvc?view=revision&revision=1172370

    Patches contributed by Oliver Rainer-Wittman
    some clean up in JPEGReader due to memory constraints
    http://svn.apache.org/viewvc?view=revision&revision=1299729
    119114 - method <UpdateDialog::addSpecificError(..)> - create
    entry with correct type
    http://svn.apache.org/viewvc?view=revision&revision=1305265

    Patches contributed by Ariel Constenla-Haile
    i118707 - make toolbar control's popup window grab focus
    http://svn.apache.org/viewvc?view=revision&revision=1225846

    Patches contributed by Herbert Duerr
    #i118662# remove usage of BerkeleyDB in desktop module
    http://svn.apache.org/viewvc?view=revision&revision=1213171
    minor cleanups in dp_persmap.*
    http://svn.apache.org/viewvc?view=revision&revision=1215064
    flush early to prevent problem with extension manager not
    cleaning up its objects
    http://svn.apache.org/viewvc?view=revision&revision=1228147
    i118726 do not flush *pmap file while reading it
    http://svn.apache.org/viewvc?view=revision&revision=1230614
    #i119048# migrate BDB extension entries using a simple heuristic
    http://svn.apache.org/viewvc?view=revision&revision=1300972
    #i119048# handle edge cases when importing BDB hash files
    http://svn.apache.org/viewvc?view=revision&revision=1301428
    #i119113# fix of-by-one when importing BDB files
    http://svn.apache.org/viewvc?view=revision&revision=1305420

restore our encryption settings, icon themes, and dictionaries.
removed wrapper hacks, kill obsolete bundled extension blob /
pre-registration handling, remove duplicated quickstart code.
remove OS/2 conditionals.
2012-11-19 17:44:55 +00:00
f4a4ba9ac1 Clean up option processing
* Support --version on non-UNX, too.

* Consistently show the first unknown option and the help blob in the presence
  of any unknown options.

* There is no need to tunnel --help/--version past oosplash in the soffice
  script, as oosplash is prepared to treat them adequately (esp. not pass them
  over any pipe); this only added unnecessary variance to what spellings exactly
  are supported and how mixtures of --help, --version, and unknown options are
  handled.

Change-Id: I617f2e727e2f0eafd34a2de3b85d441c6783ec4f
2012-09-26 11:30:35 +02:00
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
5c804dce94 deb#681185: wait for InternalIPC::ProcessingDone in oosplash
Change-Id: I9606ec34ad0d8d24dca71d060bf5e1d37152903c
2012-09-06 12:44:17 +02:00
0fa47c8614 coverity: ensure the string is null-terminated
Change-Id: Iaaa0e60ca99e2beef7c70d38343917c4549d1eea
2012-07-03 17:47:19 +02:00
278000a28b Remove unused defines
Some of them were commented out for documentation purpose.

Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-07-02 17:46:25 +02:00
f92d22565d oosplash: improve signal handlers:
- global variable should be volatile
- signal is deprecated, use sigaction instead
- exit from the handler
2012-04-19 15:08:12 +02:00
946e7180be oosplash: handle SIGTERM by killing soffice.bin 2012-04-14 21:07:15 +02:00
7b9ea611be Resolves rhbz#804437, do not rtl_uString_release(NULL)
...in case osl_getProcessWorkingDir fails (e.g., if it has been unlinked).
2012-03-20 11:23:55 +01:00
8bbf048085 fdo#46434: Always send command line arguments as UTF-8 2012-02-29 15:08:20 +01:00
cf4416a68f fdo#46434: No need to turn arguments into absolute file URLs when sending
...as the receiving side already takes care of that (using the cwd that is sent first).
2012-02-29 11:47:10 +01:00
60f97f3ceb Typo bInhibitJavaLdx -> bInhibitPagein 2012-02-29 10:43:21 +01:00
ce4c9fa90a WaE: exec_javaldx defined but not used (javaless build) 2012-02-18 21:49:16 +01:00
13b6afe8c8 Resolves: rhbz#788042 skip splashscreen with --quickstart 2012-02-07 13:40:05 +00:00
05c51d5dfb Some cppcheck cleaning 2012-01-10 00:02:01 +01:00
697415eb4e WaE and build errors with OSL_DEBUG_LEVEL == 2 2012-01-05 09:18:15 +00:00
46d40d6419 remove include of pch header in desktop 2011-11-27 13:06:47 -06:00
48efe5ce26 Valgrind: fixed memory leak 2011-11-18 09:29:54 +01:00
4fe54ea11e Instead of returning out of function just skip its calling. 2011-11-15 12:34:35 +01:00
5d4af26ae9 Revert "oosplash - daemonize to help mutt users recover their sanity"
For one, it leaves detached oosplash processes behind (the forked oosplash
instance waits for the soffice.bin child forked from the original oosplash
instance in vain).  For another, it makes unavailable the soffice.bin exit code.

This reverts commits aacf55dbe004ae3cad720002d40dc0e408107fd3 and
62ebb119cfb42adc5e007fb77f68d56b40de2a85.
2011-11-09 13:48:21 +01:00
de90369c31 Properly check sscanf return value. 2011-11-08 20:49:31 +01:00
62ebb119cf don't demonize if we are passed an --accept line for UNO remote control 2011-11-08 17:52:37 +00:00
aacf55dbe0 oosplash - daemonize to help mutt users recover their sanity 2011-11-08 16:03:48 +00:00