Commit graph

397896 commits

Author SHA1 Message Date
Stephan Bergmann
51e5e4970b Replace OLEString operators with proper functions, for clarity
Change-Id: I1fa309d034e1ec94f38d07ede07e691f1484a4f5
Reviewed-on: https://gerrit.libreoffice.org/29697
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-11 14:19:28 +00:00
Stephan Bergmann
afd9bf19ae loplugin:refcounting
Change-Id: Ia7ec56c754d6eafcd4c6d981a0d8ca03af23a18e
2016-10-11 16:17:55 +02:00
Khaled Hosny
f48cbaac0a tdf#103103: Many Arabic fonts dont render correctly
Revert the remaining bits of 1da9b4c24e,
the rest was reverted in 6323e66286.

This break many assumptions made by GenericSalLayout::ApplyDXArray().

Change-Id: I25fbafe06032ab1e8860df6c5932a7157575aa32
2016-10-11 15:56:47 +02:00
Khaled Hosny
faddf2aefd Revert "Hack to make Arabic subtending marks work"
This reverts commit 983e03a7d8.

Fixes part of tdf#103103.

Change-Id: Ib9026044b19b353e8156bc039a4a84fdeb1ec415
2016-10-11 15:56:47 +02:00
Muhammet Kara
b193f28345 tdf#102004 Do not open options for extensions without options
Also fix similar issue for "Disable/Enable" and "Remove" buttons

Change-Id: I383e64a9c6133ff2ebc991747c5c47c033a91174
Reviewed-on: https://gerrit.libreoffice.org/29600
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-10-11 13:50:47 +00:00
Eike Rathke
351164ea2c Resolves: tdf#101691 re-intern strings of external formula results
If the external cell referenced is a formula result of type string that
string needs to be re-interned for the reference cache as well.

Change-Id: Iea3c3d777dede2ad6ba0b084533af964da991ca6
2016-10-11 15:24:05 +02:00
Noel Grandin
e588aa4d34 convert PageKind to scoped enum
Change-Id: I7f90cf2e96b72031bcfff558794e6cb42ea408e8
2016-10-11 14:32:40 +02:00
Noel Grandin
4caacff9f2 convert EditMode to scoped enum
Change-Id: I7c48978f3e2c173a2ec53eb6559745deeee9b93b
2016-10-11 14:32:40 +02:00
Noel Grandin
d58c604eb3 convert DocumentType to scoped enum
Change-Id: I5a66d71db075df4680c54676dd1420e94c1a90b2
2016-10-11 14:32:40 +02:00
Adolfo Jayme Barrientos
1ddbbe3e0a tdf#100352 Provide Catalan classification file
Change-Id: If0bccf16fb83deaf5b13ab5f45d1aaec9ed48bda
2016-10-11 07:31:01 -05:00
Armin Le Grand
35ec8253ad profilesafe: Add values for SecureUserConfig
Added default values for SecureUserConfig values
to soffice.ini/rc which enable the mechanism,
enable by default and set a maximum of three backups
file in packed form. Added more handy flag for easy
decision to add compressed/uncompressed.

Change-Id: I5a624c09fec4e4278314e13fc5f693ac085d5e61
2016-10-11 13:56:22 +02:00
Armin Le Grand
2da3bb5c36 profilesafe: Added zip deflate/inflate
Stack of files can now deflate/inflate using zip
library, unfortunately have to use direct due to
Deflater/Inflater not being available, had to add
linking against zip.lib. Checked compressed and
uncompressed creation/usage of backup stack. Also
warnings and clang errors corrected.

Change-Id: Ieb059baeea323bb48ec5b1cf6b8df09da97cfb93
2016-10-11 13:56:22 +02:00
Armin Le Grand
7db23b6346 profilesafe: Collect copies in single *.pack file
Enhanced helper classes for BackupFileHelper to
allow writing a stack of rescued last valid
configuration files to a single file package.
Added configuration values for enabling this and
defining the number of entries, added max entry
limitation. Using FileSize and CRC32 now to dectect
if config file did change. To make this work I added
sorting to writing the configuration so that with no
change the same configuration file is written.
Use std::vector for better mem performance for sorting,
defined static const for buffer size of manipulation,
prepare inflate/deflate usages. Fixes to setPos, warnings

Change-Id: Ib286e2a3f25b0085a1e3ae4f50c9ff1ff3a5dcf5
2016-10-11 13:56:22 +02:00
Armin Le Grand
9fa4eff9be profilesafe: Enhancements to BackupFileHelper
Added helper class to allow easy creation/deployment
of backups of a file. It works like a 'stack' of backups,
supports easy add/remove/delete of last entry (LIFO).
Added some work top allow opening dialogs in DeInit
under linux.

Change-Id: Idacec97ec2f097af9bd22a8a67b410c7677d17f1
2016-10-11 13:56:22 +02:00
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