389200 Commits

Author SHA1 Message Date
David Tardon
57c439a15e reduce copypasta
Change-Id: I5303caf69128a0a6d28fccfcf2ab63ed466e3853
2016-03-08 06:06:36 +01:00
David Tardon
d72a33c6ae reorder
Change-Id: I8ff9f61475fddb475fe08e867c5446c825abb7dc
2016-03-08 05:57:40 +01:00
Kohei Yoshida
b325b4c286 Update liborcus to 0.11.0.
Markus did half of this, and I simply carried the torch.

Change-Id: Icd3ee1e4b5bd562faee06dfd9dce52a4bed49a71
Reviewed-on: https://gerrit.libreoffice.org/22943
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2016-03-08 04:43:24 +00:00
Michael Stahl
a420a4346e openssl: fix WNT build
For reasons beyond human understanding, the many-tentacled horror that
openssl calls its build system puts headers in "inc32" directory on
Windows and "include" on other platforms in 1.0.2g.

Change-Id: If03c80f5a31bb6e378cd187051b020579af7f7bd
2016-03-07 23:07:46 +01:00
Stephan Bergmann
92dc6a2997 loplugin:defaultparams
Change-Id: Ibc922d84aeaba4e2dbfac3a23f253db76408db45
2016-03-07 22:45:19 +01:00
Aleksas Pantechovskis
123b41c387 tdf#65219 Fix temp files clean up in sw unit tests
Change-Id: I57f4dc90bc2ad8488af8cd42515b195f4320a9d9
Reviewed-on: https://gerrit.libreoffice.org/22939
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-03-07 20:27:03 +00:00
Michael Stahl
c7ca0718f7 RepositoryExternal: missing dependency in openssl_headers
Change-Id: I4a9f6c07204f2784ac6cac28bed9dfa700950c09
2016-03-07 21:20:50 +01:00
Eike Rathke
faa379ffb2 add STR_LONG_ERR_MATRIX_SIZE "Error: Array or matrix size"
Change-Id: I81f7b278ba75abca6db59ab12dd1cf79dda15d20
2016-03-07 20:33:42 +01:00
Eike Rathke
b3253b2bdc remove unused errInterpOverflow
Change-Id: Iaac45af141220f5a7460b7313507d3927a2b2581
2016-03-07 20:33:41 +01:00
Eike Rathke
25d8652796 a few more candidates for errMatrixSize
Change-Id: Ia3ea04d15ce73526e87dfb5670eedff983daa40e
2016-03-07 20:33:41 +01:00
Eike Rathke
36483fde78 introduce a dedicated errMatrixSize
... to distinguish from other errors, and really, errStackOverflow
should mean exactly that.

Change-Id: I3d2bfbd38b056c7d0a346797db560717312de069
2016-03-07 20:33:40 +01:00
Yousuf Philips
a9b8fe5e96 tdf#62437 Hide OneDrive and Alfresco Cloud until they are functional
Change-Id: I0a1426f81e5ece30c4ca416716b5ada2d53a0412
Reviewed-on: https://gerrit.libreoffice.org/22881
Tested-by: Yousuf Philips <philipz85@hotmail.com>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2016-03-07 18:34:57 +00:00
Yousuf Philips
4f40cd8b9d Add tilde shortcuts to keyboard shorctuts
Change-Id: Ib9d0d59845270152c2a8233d81b9cfac96259141
Reviewed-on: https://gerrit.libreoffice.org/22974
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-03-07 18:28:27 +00:00
Eike Rathke
72d710ca5a use ScMatrix::IsSizeAllocatable() instead of GetElementsMax()
... which also prevents a (theoretical?) overflow of size*size.

Change-Id: I11e27718c9750ad1b17f6f16bb1b293aa4a2f574
2016-03-07 19:10:30 +01:00
Xisco Faulí
af46264bcc Revert "tdf#97538: SVGIO: Add unittest"
It fails in Tinderbox Linux-rpm_deb-x86@71-TDF
This reverts commit 3c465c259c617e30b01c5ea25b5203a605cd4269.

Change-Id: I20fc69dd785354cc6567b73251ee9161a811bdf0
Reviewed-on: https://gerrit.libreoffice.org/22987
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <anistenis@gmail.com>
2016-03-07 18:06:53 +00:00
Michael Stahl
a2fb2cfd45 sal: UNX: in oslDoCopy, rename into destination directory ...
... not into the source one as that will likely fail with EXDEV if
source and target are on different mounts => osl_File_E_EXIST.

This broke the xmlsecurity test SigningTest::testOOXMLAppend().

Change-Id: I07ada1d5564fd72a059d588e127a5906a499aca4
2016-03-07 18:56:34 +01:00
Michael Stahl
a95c023142 xmlsecurity: check that osl::File::copy actually succeeds
... which it doesn't, currently.

Change-Id: I0280a11006afb08b95ff643e8b999b4e5a733d2d
2016-03-07 18:56:25 +01:00
Caolán McNamara
47cf950fe8 gtk3: popover positions come pre-computed
i.e. the position provided is the location where the popover is to be drawn,
not the bounds of the thing to be pointed to, so adapt them so gtk will point
to the desired place.

e.g. the slide names/numbers in the presentation slide view sidebar

Change-Id: I8c87d5dba32e27f9e627b3282f34d87a8ee460ca
2016-03-07 16:50:42 +00:00
Caolán McNamara
a3020baeb5 drop unused resource
Change-Id: Ibe52933faa6b13e2d89ab296c1cc15b70f5835af
2016-03-07 16:50:42 +00:00
Caolán McNamara
c26b4bbcdb drop unused headers
Change-Id: I73a673de54c0cff77a00a21f8a4c87766f956256
2016-03-07 16:50:42 +00:00
David Tardon
64b99327d3 drop handling of templates in SrsTarget
Change-Id: I5445837ec4f647e91fe2aeab1251e48628f5e7f1
2016-03-07 17:43:29 +01:00
David Tardon
3c84fd27e8 drop now-needless deps
Change-Id: I2ef0b873a58710de399889cee3abf6b6ecf4fb1e
2016-03-07 17:43:29 +01:00
David Tardon
6ea8411f2a remove remaining uses of gb_SrsTemplateTarget_get_target
Change-Id: I5ddf0ba5fc289a124b39b9c14b7f5fdd3d7b54a4
2016-03-07 17:43:29 +01:00
David Tardon
d795f83695 expand src templates
Change-Id: Id35caa8b8ed0c2f7e4d868f5c87a2a0f331cb352
2016-03-07 17:43:28 +01:00
David Tardon
24905f42b9 expand src templates
Change-Id: I13afaa9d0c7c9b46b3ebaedf299de41bed551e7c
2016-03-07 17:43:28 +01:00
Caolán McNamara
01798050c1 upgrade openssl to 1.0.2g
We can't "break symlinks after extracting tarball" because they populate
that dir during the build now. So instead cripple mklink.pl to
copy instead of link. (Configure no-symlinks simply skips the symlink
step instead of copying, so that appears useless)

Change-Id: Ib30b2c1b8b3de72511d09c478297a7a5a4bc691e
Reviewed-on: https://gerrit.libreoffice.org/21880
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-03-07 16:07:39 +00:00
Douglas Mencken
d676bd620a apple_remote: autorelease --> release in dealloc (destructor)
using autorelease here leads to “just leaking” because there's no autorelease pool for thread
besides, make sure that released fields do not contain used•to•be•a•valid•pointer value

Change-Id: Id6cb37643230f64dbe9f6128f52236f04d0c88e4
Reviewed-on: https://gerrit.libreoffice.org/22981
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-07 16:07:19 +00:00
Douglas Mencken
487ba71c9e apple_remote: fix “variable set but not used” for non-debug builds
Change-Id: I038fd0bee0e983a91557226aaba1dcff56512ccb
Reviewed-on: https://gerrit.libreoffice.org/22856
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-07 15:36:38 +00:00
Caolán McNamara
884151214a this RID_FULLSCREENTOOLBOX resource is unused
Change-Id: I441b27c92db4e406cd3326917c40b0ae0d6c0cad
2016-03-07 15:29:31 +00:00
Caolán McNamara
5ea0d6b10d these ResIds are used solely for their number by now
so cut out the middle-man ResId

Change-Id: Ic83db355cc1a0c7dc70958bca79b466baadaedd0
2016-03-07 15:26:42 +00:00
Caolán McNamara
faba087663 full screen toolbar resource is not used
the full screen toolbars are defined in the fullscreenbar.xml files

Change-Id: I9f83d24b455709cbb8f2f40cfda54fb4a545c4d4
2016-03-07 15:10:17 +00:00
Caolán McNamara
5d58e77317 coverity#1353440 try and refactor to avoid Argument cannot be negative
Change-Id: I3a75e27ba1b721a99e0547b418df883e2c1753b4
2016-03-07 14:43:56 +00:00
Miklos Vajna
3dda6452f1 xmlsecurity: default to OK instead of Cancel in CertificateChooser
Change-Id: I2dd2d2caf772cf5a0e564367acff0c5522b2c286
2016-03-07 15:00:14 +01:00
Miklos Vajna
88b1a72431 CppunitTest_xmlsecurity_signing: add remove all testcase
Fails without the previous commit.

Change-Id: I7606b9a5ef3509077b1a3a6e884f0e2bb4c79614
2016-03-07 15:00:14 +01:00
Miklos Vajna
1a04b1e4f2 xmlsecurity OOXML export: remove signature content types when removing ...
... signatures.

ExportSignatureContentTypes() was already a "remove all, and then re-add
necessary entries" operation, so just make sure we still call it for
zero signatures and it'll do the right thing.

Change-Id: If9182b39ac6d8f2cf66f33a02d9ddcab170ba5ea
2016-03-07 15:00:14 +01:00
Miklos Vajna
7d7cd95840 CppunitTest_xmlsecurity_signing: avoid modifying tracked test document
Without this, running the test modified
xmlsecurity/qa/unit/signing/data/partial.docx.

Change-Id: I3dd5cb6c90037fce0c550be9b1c189959b848ebe
2016-03-07 15:00:14 +01:00
Miklos Vajna
e60abe659d xmlsecurity OOXML export: remove signature storage with the last signature
So that no empty _xmlsignatures directory is left around after removing
signatures.

Change-Id: I3af77ba943a483a009a4eebaf40a58404f479e5a
2016-03-07 15:00:14 +01:00
Miklos Vajna
57e6b9f3f4 xmlsecurity OOXML export: remove signature relation with the last signature
The signature relation refers to _xmlsignatures/origin.sigs, but
that's not written when all signatures are removed.

Change-Id: I5ee1c8849962cba4b338e6f43243bcf89aedad36
2016-03-07 15:00:14 +01:00
Miklos Vajna
64f86c7fec xmlsecurity OOXML export: don't write signature relations when all ...
... signatures are removed.

With this, the _xmlsignatures/ sub-storage inside the document is empty
when all signatures are removed.

Change-Id: I391bd1d3b6fdb724952a7158a043b1e602d532a9
2016-03-07 15:00:14 +01:00
Miklos Vajna
170e0e0280 xmlsecurity: extract final signature export logic from DigitalSignaturesDialog
To be able to unit-test this later without creating a vcl dialog.

Change-Id: I4794e212ffefc2efa3bddaf58e6c6bf2a4ea8d9a
2016-03-07 15:00:14 +01:00
Caolán McNamara
e451b03e8c gtktiledviewer needs gtk3 not gtk2
Change-Id: Iede2008139cb570ff65202762e92f6694548a065
2016-03-07 13:23:49 +00:00
Caolán McNamara
a998217202 return early and drop else
Change-Id: I4887f01c94e6d7d716d2a074d503fca505a4aff8
2016-03-07 13:23:49 +00:00
Stephan Bergmann
5f33f600f9 -Werror=unused-but-set-variable
since b2fb84499e1f75735e8fd90bc2eece3fed9af5f6 "loplugin:write only fields"

Change-Id: I610e88373ebca576e5607b224ad648c1d3e47bab
2016-03-07 14:04:45 +01:00
Caolán McNamara
7c5955d858 !(==) -> !=
Change-Id: Ie1c3c61dea2052e85179157e3e0b6c07dd60bb48
2016-03-07 13:01:34 +00:00
Noel Grandin
b2fb84499e loplugin:write only fields
Change-Id: Ia0fb487c5590e096659b81f76c4dc543e184c59c
2016-03-07 14:55:55 +02:00
Noel Grandin
c89f73a603 loplugin:unuseddefaultparams
Change-Id: Id895d61c0bbea99379bb6e9b4e6d6c54da4c98db
2016-03-07 14:55:55 +02:00
Jaskaran
00ecf7899a tdf#97499 Remove some Default arguments in unordered container
Change-Id: Ic008e244b8ae1888fa45379371f5525ee77f6087
Reviewed-on: https://gerrit.libreoffice.org/22887
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-03-07 12:50:15 +00:00
Eike Rathke
088ba465d6 disable means Enable(false), not true.. tdf#98389 related
EnableAdjustHeight(true) lead to the side effect that when clearing the
range of a pivot table during import, formulas in the same rows were
recalculated with then empty data. Through xSheetOp->clearContents() in
PivotTable::finalizeImport() of
sc/source/filter/oox/pivottablebuffer.cxx

In the case of the bugdoc attached to tdf#98389 that lead to all
VLOOKUP() calls resulting in #N/A errors because an empty string was
looked up.

Change-Id: Ie629ce871d255cc871671165c4da974f21041cec
2016-03-07 13:48:37 +01:00
Eike Rathke
9e60bbdb3a Resolves: tdf#98389 check memory requirement of matrix
Attachment 123203 of tdf#98389 has external references of the form
[1]Data!$1:$1048576
which effectively address the entire cell range of sheet Data and
allocating a matrix for a billion cells attempted to allocate 8GB+xGB of
memory which the system said no-no ...

Some brave soul along the road once decided that a check on the number
of elements wasn't needed anymore and dared to remove it during
refactoring.. This change reintroduces the check and adds it also to
other places that try to instanciate or resize a matrix.

When allocation of a matrix for an external range reference fails it is
checked whether the request is for such nasty entire rows or entire
columns ranges and if so tries to shrink the range to the actual data
area used, which at least in this case helps and works.

Additionally it fixes a long standing bug in the cached area to array
mapping which caused the cache to not be hit but instead the matrix was
aquired over and over again for the same range, causing a serious
performance bottle neck specifically for VLOOKUP and related functions
where the same external range is used in a lot of cells.

Change-Id: I35f67b48e665bf1cc8d672325c32b889f2e05c57
2016-03-07 13:48:36 +01:00
Caolán McNamara
727ebae15e Resolves: tdf#96172 crashtesting: avoid crash in layout
sectfrm is riddled with workarounds for "half dead"
section frames. This is yet another one.

Change-Id: Ic03ad8971002d7dce308475f1497d1dda8045d15
2016-03-07 12:32:40 +00:00