Commit graph

398082 commits

Author SHA1 Message Date
Armin Le Grand
ed646dc595 profilesafe: Initial creation of BackupFileHelper
Added helper class to allow easy creation/deployment
of backups of a file (here: registrymodifications). It
works like a 'stack' of backups, supports easy push/pop
of backed-up versions.

Change-Id: Ie19e1209534f23a3dbd6106a5ca13b24b8fefe4d
2016-10-11 13:56:22 +02:00
Tomaž Vajngerl
9c9f184138 vcl: put in anonymous namespace
Change-Id: Ib24a8dd044003f8d667d97e989fbbf640d4eacdf
2016-10-11 12:59:00 +02:00
Caolán McNamara
7dbe627ca8 Updated core
Project: help  b223bd2e0ccf3c09d69b0cbf4da063f15ca453ef

update helpids for writer navigator .ui conversion

Change-Id: Ib25355ffe0d58a50eaad7e5aaeb1d10efc101404
2016-10-11 10:34:03 +00:00
Miklos Vajna
3906d25a2e tdf#103001 DOCX export: fix RelId cache when switching streams
RelIds are used to refer to external streams, e.g. images. A RelId cache
tries to avoid storing the same image more than once in the export
result. RelIds are relative to an XML stream, so caching them across
stream switches is problematic. There was code already to notify the
cache after a header or footer was written, but:

1) It was only done after a switch, not before and

2) It cleared the whole cache, instead of stashing it away, and
restoring it when the write of the special stream is done.

Regression from commit b484e9814c
(tdf#83227 oox: reuse RelId in DML/VML export for the same graphic,
2015-09-07), this existing problem became more visible when caching
started to include draw images, not just writer ones.

Fix both problems by turning the cache into a stack that is
pushed/popped around stream changes.

Change-Id: If9ec168823eea5e272197e28f6125ba626605550
Reviewed-on: https://gerrit.libreoffice.org/29684
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-10-11 10:26:58 +00:00
Caolán McNamara
4ee81e595a Updated core
Project: help  b5b5879c9ed7b8c120c21f9b700247a1442d2a47

drop unused HID_NAVIGATION_PI

Change-Id: I453cd425ee8b79ad9caf47a791ac8ef4a3676bf4
2016-10-11 09:34:49 +00:00
Jochen Nitschke
4624e2d11c cppcheck: uninitMemberVar
Change-Id: I4ff6d15941bf561ed67d84e4bda532131c8c7a43
Reviewed-on: https://gerrit.libreoffice.org/29622
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-11 09:21:21 +00:00
Caolán McNamara
99a4ab06a9 parent will definitely exist at ctor time
Change-Id: I3d30b17e4105a98ad6ab378cee7128cac23f1dc0
2016-10-11 10:08:27 +01:00
Caolán McNamara
6c220995aa Resolves: tdf#103032 a11y crash on listbox dispose in toolbar dropdown
Change-Id: I70bce310ba9b46efdbdfdec8d2c6689d0ba2e655
2016-10-11 10:06:03 +01:00
Noel Grandin
d0304a8f57 remove some conversion operator methods
which, in these cases, only serve to make the code harder to read

Change-Id: Ic9bcf42545b4fcfd60a535fb63956092d392f469
Reviewed-on: https://gerrit.libreoffice.org/29685
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-11 08:43:33 +00:00
Noel Grandin
52dfb06b19 loplugin:unnecessaryoverride in sfx2
Change-Id: I9097a5cfb861e6659a5d9ae10f9c45f2edcae2ec
Reviewed-on: https://gerrit.libreoffice.org/29686
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-11 08:42:49 +00:00
Caolán McNamara
411c04c402 repurpose count dialogs
Change-Id: Id19d514f7ccbc69bf5ad0ca63181e2815f067178
2016-10-11 09:09:22 +01:00
Stephan Bergmann
5ab5779bf4 external/nss: Adapt ASan/UBSan-specific patches to nss 3.27
Change-Id: Ic96a57a1f43f7aae4e0733d2e65edd843b827a54
2016-10-11 09:39:21 +02:00
Francisco Adrián Sánchez
74b8ae360a Fix language on Abstract* templates
Changed the default language from German to English (US)
Corrected also the area and line style of background objects

Change-Id: I632b922c0e48ea578a5290015ddc499ba2af0781
2016-10-11 08:55:08 +02:00
Samuel Mehrbrodt
5daafc88ca Allow entering safemode after crash
Change-Id: Id12d3c10714b7ce5722c2270e9e897db63bedcf2
2016-10-11 08:55:08 +02:00
Stephan Bergmann
6cded5c853 Demonstrate that SvRef ==/!= are acceptable as member functions
Change-Id: I30771393bc16f2320cd89f018ff93c756913b70d
2016-10-11 08:52:41 +02:00
Noel Grandin
5c84f40ea2 loplugin:constantfunction
update the plugin similarly to
    commit 3ee3b36ae0
    Author: Stephan Bergmann <sbergman@redhat.com>
    Date:   Fri Oct 7 12:05:49 2016 +0200
    loplugin:staticmethods: Don't be fooled by decls starting with macros

Change-Id: I98ac3216d5acf89a49a26feb089ae2fd34e6e510
Reviewed-on: https://gerrit.libreoffice.org/29665
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-11 06:15:21 +00:00
Noel Grandin
fe82f6fc5c loplugin:unnnecessaryoverride in xmloff
Change-Id: Iad519bd61ce1d1bf4ef4e12543b0d485249db36b
Reviewed-on: https://gerrit.libreoffice.org/29672
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-11 06:12:39 +00:00
Noel Grandin
90a0e59737 loplugin:unnnecessaryoverride in svtools
Change-Id: I49773d9054205c223744495768e1cb05dd7b087d
Reviewed-on: https://gerrit.libreoffice.org/29671
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-11 06:08:29 +00:00
Giuseppe Castagno
16df731a30 tdf#102499 (5): Deal with HTTP unofficial response status codes
A reference can be found here:
<https://en.wikipedia.org/wiki/List_of_HTTP_status_codes>
(retrieved 2016-09-13).

Changes done:
Add set of 'HEAD method not available' before using fall back GET method.
Add new method in OPTIONS cache.
Add response status code if fall-back GET didn't succeeded.
Add copy-assignement operator to DAVOptions.
Fix behaviour of GET fall back when HEAD missing.

Change-Id: I6aad0e22bb444abf37b90186588f64f79b03cc3d
Reviewed-on: https://gerrit.libreoffice.org/29680
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
2016-10-11 06:06:12 +00:00
Justin Luth
0865503132 move round-tripables to ooxmlexport
This serves two purposes. It helps to prevent regressions
and it allows focus on features that still don't export properly.

The standard .mk file had trouble on the Mac, so I ended up copying
ooxmlimport.mk instead of trying to tweak the export template.

The huge section of tests excluded from Win32 testing is still
excluded here.

The ole-anchor test works as export in the import code, but didn't
work from the ooxmlexport directory, so left that one as import only.

Change-Id: I9d72202c577940ba94855096c5a11d4dec4790a5
Reviewed-on: https://gerrit.libreoffice.org/29588
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
2016-10-11 05:09:49 +00:00
Norbert Thiebaud
91d406f5af check-elf whitelist libxml2 not libxml
Change-Id: If0179726861c867f9c25c13f9eb0b61faaee9524
2016-10-10 23:11:55 -05:00
Norbert Thiebaud
4189551d56 Support parallelism for check-elf-dynamic-objects
using that and restricting the tests to the content of
instdir/program bring the runtime on out slave builder from
4 minutes+ to just above one second

added -d <path> to override INSTDIR
added -p to indicate parallelism (no limit for now, so be cautious
with the -d you point too

Change-Id: I14c140f54bea329b82960843a6db44bfaf6c7108
2016-10-10 22:24:26 -05:00
Markus Mohrhard
49b5072088 make it easier to read the logs
Not yet perfect but already better.

Change-Id: I5309947333aa2cce6526335b603ef316226e490c
2016-10-11 04:16:20 +02:00
Markus Mohrhard
74bf4ca9f3 avoid infinite loop if the instance stopped already
Change-Id: I03f78e592f3f182f34ea05829131357cabcc4c7b
2016-10-11 04:16:20 +02:00
Markus Mohrhard
f662494421 pathlib is only in python 3.4+
We still use 3.3 on windows.

Change-Id: I32adabe1eb12d8803d61458fcb1a228b3ff045e0
2016-10-11 04:16:20 +02:00
Markus Mohrhard
0ab45be62b catch the exception to prevent broken charts, tdf#98690
Change-Id: I5958c87ca793c19d5c78dc829eb0ff0a1e04dffa
2016-10-11 04:16:20 +02:00
Markus Mohrhard
c3cc9429d1 avoid crashes on broken charts, related tdf#98690
Change-Id: If81f963babc15fc549d9daa904fd9836ea02ecef
2016-10-11 04:16:20 +02:00
Gulsah Kose
e2f6c7f0d0 tdf#101390 Add "Dimesion Line" command to the writer arrowsbox.
Change-Id: I238bc37871c029d547b21ce7c8ef3cb0c0ff95b8
Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/29669
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2016-10-10 23:07:35 +00:00
Laurent Balland-Poirier
aa4e560822 tdf#36038 Import extended LCID from Excel
Extended LCID were only supported for Thai.
This commit import also for some other numerals and calendars.

Change-Id: Id92a0ee2a32c5722e9674fe0ac5ff7028c84bca6
Reviewed-on: https://gerrit.libreoffice.org/28809
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-10-10 21:21:18 +00:00
Laurent Balland-Poirier
e991b42190 tdf#36038 Export to Excel extended LCID
Number format: extend export to Excel of long LCID for other languages
and calendars than only Thai and Buddhist

Change-Id: I826347302d14caa5b4463d28cd25f2c36ebfef5d
Reviewed-on: https://gerrit.libreoffice.org/28666
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2016-10-10 21:19:43 +00:00
Maxim Monastirsky
b197a47889 Height and Width seem to be swapped here
when height takes left-right borders, and width top-bottom.
And also - Why do we calculate the borders twice - as the call
to CalcWindowSize does this again?

Change-Id: I63a66939bd526a225ccac9bdd6262feba48da5c2
2016-10-11 00:07:44 +03:00
Maxim Monastirsky
9079d599ba Merge SystemWindow and FloatingWindow setPosSizeOnContainee methods
This reverts commit 95942b16f4
("Resolves: tdf#90481 fix cropped buttons"), and changes the
code in a way that seems to not crop buttons anymore. Tested
under gtk3 with File > Digital Signatures... and the toolbar
underline dropdown.

Change-Id: Idcb680c82f594f630b1dd7c76c42912e6b5a093a
2016-10-11 00:07:12 +03:00
Maxim Monastirsky
e48d1086d7 The key event is not needed for the non-ToolBox case
Change-Id: I8d593665f1c2bcafa583eca311cd86ab618dec3d
2016-10-11 00:06:43 +03:00
Jookia
8e8afc358b Search for old style dictionaries in DICPATH
When searching in system directories for old style dictionaries, also
look in the DICPATH environment variable much like the Hunspell
application does. This gives a lot more flexibility for users and
packagers in finding dictionaries at runtime.

The patch is simple, it just moves a block of code from
GetOldStyleDics that handles searching a directory to a new function,
GetOldStyleDicsInDir. Then if DICPATH is set, its directories are
passed to the new function. Original system directories are also
passed so dictionaries in system-wide directories are found.

Change-Id: I56ac66539495f03f41376b533ca19c6c8d615ec3
Reviewed-on: https://gerrit.libreoffice.org/29543
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-10-10 20:09:41 +00:00
Caolán McNamara
e0d442b199 try enabling password tests on mac and windows
Change-Id: I4054a3c285828f8c5a7d2c4b6e2716fd79c5fdf7
Reviewed-on: https://gerrit.libreoffice.org/29666
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-10-10 19:47:02 +00:00
Samuel Mehrbrodt
ae94c223e2 safemode: Add uno command and menu entry
Change-Id: I1843767160b79041c42e506eff0cf39399c74f26
Reviewed-on: https://gerrit.libreoffice.org/29668
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-10-10 18:30:57 +00:00
Michael Stahl
7433ba52d3 check-elf-dynamic-objects: file is far too slow
... so use readelf itself to check if it's an ELF file.

Also just skip the SDK documentation which is 2/3 of all files.

Change-Id: Icfd3023dd5b2ccc4f4e94fbb05cdd4eb05051f86
2016-10-10 17:50:00 +02:00
Caolán McNamara
6ee2f1b681 these navigator menu items should be radio checks
Change-Id: Id8fe9cecb5d49728ab8b3b86589204a1ca4a8ecb
2016-10-10 16:35:16 +01:00
Caolán McNamara
95a88a478e these navigator menu items should be radio checks
Change-Id: Ib785ce929ea33250b275969187d63c528fbafe6f
2016-10-10 16:11:37 +01:00
Michael Stahl
69dcc7adae configure: avoid linking against libgcrypt for libexslt
There are at least 2 different versions libgcrypt.so.20 and
libgcrypt.so.11 in use, and it's a private dependency of libexslt
anyway, so filter this out of LIBEXSLTLIBS.

Change-Id: Iafc33ef5ead2a86bedb4d5e485f6a16eb0544686
2016-10-10 16:52:43 +02:00
Caolán McNamara
6fd363af34 SwHelpToolBox doesn't do anything now
Change-Id: I5b8865218d3cd8492d148af8d69389c256bbb27f
2016-10-10 15:51:30 +01:00
Caolán McNamara
ca7915037c dropping document into these toolbars does nothing already
so might as well drop that support here. Dropping into the
main panel works (for master documents its quite sensible)

Change-Id: Ic7a088d7ff7054430d55032158a186d610f10da1
2016-10-10 15:51:30 +01:00
Michael Stahl
4b4d5a8585 check-elf-dynamic-objects: add libxml/libxslt to global whitelist
Change-Id: Ida6495171f900edf4abe5f6ceba3a6dc2de7c2de
2016-10-10 16:26:37 +02:00
Caolán McNamara
d1e02bd3c6 de-src another standalone PushButton
Change-Id: I5e38e8877d70efd3b6413a14c0c121a8babb44f8
2016-10-10 15:26:57 +01:00
Caolán McNamara
e8393d4d91 de-src standalong PushButton
Change-Id: I6f062e04377fc74ec2fea3ea4390943b715e06d1
2016-10-10 15:23:53 +01:00
Caolán McNamara
9f7f5b5f91 no numericfield, spinfield or spinbutton loaded from .src now
Change-Id: I90e4390d1fadcbb18036861dc9b9d39fa8a73551
2016-10-10 14:56:58 +01:00
Noel Grandin
666787c4bc reduce indentation
Change-Id: I9645e083ea61347fa323f84a271937e98d4f8eb3
2016-10-10 15:44:13 +02:00
Caolán McNamara
08f0a16469 de-src solo NumericField
Change-Id: Idfdf54015f150d48a5b9af0ed8301ca6e7748f19
2016-10-10 14:15:12 +01:00
Caolán McNamara
f3fff04ddd bump nss to 3.27
Notable changes in NSS 3.24:
  * Add a shared library (libfreeblpriv3) on Linux platforms that define FREEBL_LOWHASH

Change-Id: If99ee77bea40796cc56944724291a83068ff8198
Reviewed-on: https://gerrit.libreoffice.org/27304
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-10-10 11:13:03 +00:00
Stephan Bergmann
1dac51334b Handle loplugin:fpcomparison false positives by whitelist
Change-Id: I58e2beb0695a27922856bd8f8988d9e4508aceb6
2016-10-10 13:10:48 +02:00