Commit Graph

406095 Commits

Author SHA1 Message Date
Stephan Bergmann
26909d9de4 tdf#106792: Fix "Geometry" property of changed-to-bezier SvxShapePolyPolygon
After "Convert to Curve" as described in the issue, the shape apparently is
still an SvxShapePolyPolygon shape but with getShapeKind() of OBJ_PATHLINE
instead of OBJ_PLIN (and same for OBJ_PATHFILL).  That causes
XMLShapeExport::ImpExportPolygonShape (xmloff/source/draw/shapeexport.cxx) to
determine bBezier == true and thus expect the obtained "Geometry" property to be
of type css::drawing::PolyPolygonBezierCoords, not merely
css::drawing::PointSequenceSequence.

Smells like this issue had always been present, and would have caused bad memory
access when accessing the non-css::drawing::PolyPolygonBezierCoords object in
XMLShapeExport::ImpExportPolygonShape, and only now throws an exception since
0d7c582312 "New o3tl::try/doGet to obtain value
from Any".

Change-Id: Ica31a114e5beac97bac2a1c509eb1a85f8354d5e
Reviewed-on: https://gerrit.libreoffice.org/35825
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-03-29 08:11:20 +00:00
Michael Meeks
d93b8268da Attempted fix for mirrored geometry crasher.
Only plausible cause is pWindow->GetParent() being null, while
we have a pParent which has to be valid.

http://crashreport.libreoffice.org/stats/crash_details/6161398d-17b6-4a93-aa70-a559efa07868

Code was initially introduced in this form:
	commit 4716735ba7
	Author: Stephan Schäfer <ssa@openoffice.org>
	Date:   Thu Sep 19 15:46:19 2002 +0000

	#103362# improve positioning and resizing of system windows

No public report, sadly.  And modified by

commit fba46c6efd
Author: Chris Sherlock <chris.sherlock79@gmail.com>
Date:   Mon Feb 3 16:46:04 2014 +1100

    fdo#74424 Use Window::GetOutDev() to access ImplReMirrored()

    Part of the decoupling of Window from OutputDevice. We now get
    he Window's OutputDevice instance and manipulate this. Do not rely
    on the inherited function.

where the GetParent()/pWindow->GetParent() problem surfaces

Change-Id: Ia261028a4719525135e3fe4b00074427c1d9df6c
Reviewed-on: https://gerrit.libreoffice.org/35796
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2017-03-29 07:57:22 +00:00
Noel Grandin
5a725d1fde loplugin:singlevalfields
Change-Id: I7f05903aaab9b0b274358243d680d0c30694ae61
Reviewed-on: https://gerrit.libreoffice.org/35804
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-29 06:42:30 +00:00
Tor Lillqvist
2729994bc5 Add note that the xmlMissing thing is not implemented
Customer was not interested after all, so dropping the attempt for
now.

Change-Id: I9a0afb6add66efbd43ee67ba0a8d0b1f79c5a7be
2017-03-29 09:22:48 +03:00
Andrea Gelmini
834da9c476 Fix typos
Change-Id: I379c3f8ca971e6180744fb7270dde9164ebcec1a
Reviewed-on: https://gerrit.libreoffice.org/35814
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-03-29 05:10:01 +00:00
Markus Mohrhard
8681bd32d7 Close already calls unlockFile
Change-Id: I2c9cc94de1b43555b3bdfbed9a476802e1c97733
Reviewed-on: https://gerrit.libreoffice.org/35818
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-03-29 02:52:32 +00:00
kerem
cc020cc261 tdf#90290 use custom asserter in shared_test_impl.hxx
Change-Id: I00bbd0fb3f63f5641fea75ce0cb797e5f2252fa2
Reviewed-on: https://gerrit.libreoffice.org/35669
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-28 20:52:01 +00:00
Andras Timar
1a2e07d52c typo: Didn't found -> Didn't find
Change-Id: Idbaca4fe90cb943124cded56d8b031a66e488c1b
Reviewed-on: https://gerrit.libreoffice.org/35776
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-28 20:49:37 +00:00
kerem
837bf336cb tdf#90290 use custom asserter in ucalc_sharedformula.cxx
Change-Id: Ica0e0aed177c47e402e573d53df54ab6ea4ad15d
Reviewed-on: https://gerrit.libreoffice.org/35727
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-28 20:46:50 +00:00
Andrea Gelmini
fd34499464 Fix typos
Change-Id: Ibef75de246fb31884153437fe8c05e299fe5962f
Reviewed-on: https://gerrit.libreoffice.org/35782
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-28 20:43:04 +00:00
Khaled Hosny
55ddbfc610 tdf#106755: Fix script type for combining marks
We are classifying characters in the “Combining Diacritical Marks”
Unicode block with ScriptType::LATIN, but these are combining marks and
can combine with any script and should have been ScriptType::WEAK. Just
removing them from the range in scriptList does the trick as we will
fallback to getting the script classification based on the Unicode
script property.

Change-Id: I3577f4b03360a1c8e094a207f01b6bbb6abbaf30
Reviewed-on: https://gerrit.libreoffice.org/35811
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-03-28 20:02:56 +00:00
Jochen Nitschke
799824565b fix too small loop var
Change-Id: Icaa64ac579a55f53fb1397e5eeee6dcc4c9d37cc
Reviewed-on: https://gerrit.libreoffice.org/35802
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-03-28 20:00:01 +00:00
Bjoern Michaelsen
539470ebd5 it makes no sense for CC to leak resources when its unaware of model
- if the UNO_QUERY_THROW cast throws, this skips all of the disposing
  (and thus leaks)
- the whole try-catch-ignore case has been there since early c6b95527
- even in that commit message, no sane justification has been given
- apparently the try-block was Java-style "catch exceptions until it
  runs" cargo-cult
- this change is still the more conservative change: probably the whole
  try-catch framing should be removed

Change-Id: Ie3a71e48eb056afd8a844e19898dc1555de4297e
Reviewed-on: https://gerrit.libreoffice.org/35690
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2017-03-28 19:59:51 +00:00
Caolán McNamara
5d87c15ef0 ofz#954 out of memory
Change-Id: Ib27f2dfe0d0837544910208f38a1bc11a35e3cb4
Reviewed-on: https://gerrit.libreoffice.org/35794
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-03-28 19:58:48 +00:00
Miklos Vajna
f86c3fd8e9 vcl PDF export, norefxobj: have the list of keys to copy at one place
To avoid repeting ourselves.

Change-Id: I39667620b9cf391251327c8f66ad8b9649ead36f
Reviewed-on: https://gerrit.libreoffice.org/35810
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-03-28 19:02:03 +00:00
Tor Lillqvist
6152bf9ee9 Turn XclSupbookType into scoped enum and add operator<< for SAL_INFO etc
Part of preparatory work for handling xlExternalLinkPath/xlPathMissing.

Change-Id: I29b77bb2680e4dbf293ab65bda5401afee132f11
2017-03-28 19:22:04 +03:00
Tor Lillqvist
c9260836b5 Bin an unused and a used-once typedef
Change-Id: I3f93378889d2c8eb0476dba4a4ea5aca31647f5c
2017-03-28 18:59:38 +03:00
Miklos Vajna
30608c6637 tdf#106693 vcl PDF export, norefxobj: handle multiple refs in copied arrays
Also fix confusion about dictionaries in arrays and arrays in
dictionaries.

Change-Id: I0d71d5796b1eb4f89e3fd9a5b1f807d2a7340a35
Reviewed-on: https://gerrit.libreoffice.org/35806
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-03-28 15:52:49 +00:00
Tor Lillqvist
b566f0d688 First steps to round-trip xlExternalLinkPath/xlPathMissing things
Links to broken or missing external workbooks in .xlsx have the
relationship type
http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing
. Ideally we should round-trip those (save identically back to .xlsx).
Currently we don't save them at all, and Excel doesn't like formulas
that refer to such external (but not mentioned in externalLinks)
workbooks.

Just a start, does not actually produce anything useful yet.

Change-Id: Ic5a481c91864134f1caf66c56a4aef685d3018a7
2017-03-28 18:44:44 +03:00
Caolán McNamara
b3545786da Resolves: tdf#106748 infinite dashed line from annotations to FAR_AWAY things
we (very irritatingly) create dashed lines by creating a sequence
of dash drawing layer objects, so if its hugely long we create a hugely
long sequence

Change-Id: I38a0c6052cf058d5e02ebef7dd6a90e27f6e5454
Reviewed-on: https://gerrit.libreoffice.org/35781
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-28 15:38:01 +00:00
Caolán McNamara
16b67b4bd3 std::unique_ptr<sal_uInt16[]> -> std::vector
Change-Id: I708e1f24e14bc21f40cf4d5a2d3e6f849b6f7762
2017-03-28 16:26:07 +01:00
Caolán McNamara
1a99e32f6f move inlines into the class
Change-Id: If185834c35c9aa7d48e3305cfee3fde47826180f
2017-03-28 15:16:30 +01:00
Caolán McNamara
b7152aff51 valgrind: use of uninitialized values
Change-Id: I5b8c6d4d4576fd88dbffdfc710cbd9b2e9429942
2017-03-28 14:45:00 +01:00
Caolán McNamara
b012e83e1c Resolves: tdf#106155 avoid opengl for toplevel X window icons
because an opengl context requires a toplevel window so it recurses to death.

Only the gen/kde4 vclplugs are affected here

Change-Id: If5396d183d90d1872931b170dc90c3a70d8ea6b6
2017-03-28 14:22:13 +01:00
Noel Grandin
946a049114 remove some more unused SID constants and commands
Change-Id: Ibf2bb58ca687c18798328ed86cd549d64f3621b4
Reviewed-on: https://gerrit.libreoffice.org/35792
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-28 12:51:17 +00:00
Miklos Vajna
3ea5e3401e tdf#106693 vcl PDF export, norefxobj: copy nested arrays correctly
When copying an array we're only interested in the start/end position of
the outermost array, otherwise only part of the array is copied.

Change-Id: I9f5cb5e3ed395142fd82db34e1153ddfdf9f0eb3
Reviewed-on: https://gerrit.libreoffice.org/35797
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-03-28 12:49:24 +00:00
Noel Grandin
0cb5435dd3 update results of mergeclasses plugin
Change-Id: I97f67bb7f98d0cf0a835f55e12c24a30ffd4ed3d
2017-03-28 13:42:13 +02:00
Noel Grandin
0d199688fb fixes for some loplugins
ran the ones in store/ just for fun, but didn't find anything useful

Change-Id: I2bb251e8d99b5d88e11b2ca74e99672d75f0a1fd
2017-03-28 13:40:25 +02:00
Thomas Beck
659cb84664 tdf#96505 Get rid of cargo cult "long" integer literals
Removed "long" integer literals where applicable in some files of xmloff module

Change-Id: I96f44c00583a95f8a0ae6acf25f439936433ac08
Reviewed-on: https://gerrit.libreoffice.org/35798
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-28 11:31:30 +00:00
Jens Carl
a70ae479fe tdf#39468 Translate German comments
Translate German comments and terms in basctl/

Change-Id: I9f284af4d92e61b53a3280c151a37b1dcbeed7c4
Reviewed-on: https://gerrit.libreoffice.org/35791
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-03-28 11:30:02 +00:00
Jens Carl
243b3fa9c4 tdf#39468 Translate German comments
Translate German comments and terms in basic/

Change-Id: I8baf76ea866823a155dfa25c74149dac989c841c
Reviewed-on: https://gerrit.libreoffice.org/35793
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-28 11:22:53 +00:00
Noel Grandin
9aee1f80a5 SFX_SLOT macro is unused
Change-Id: I29ef05eda5a6e552d497e42220f36200401a3ef1
Reviewed-on: https://gerrit.libreoffice.org/35795
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-28 10:49:49 +00:00
Thomas Beck
5138170a4a tdf#39468 Comment translation GER-ENG
translated comments in sw/source/filter/ww8par3.cxx

Change-Id: I40b41cecb1c73b9678c51d7e4dc41745a96a243f
Reviewed-on: https://gerrit.libreoffice.org/35765
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-03-28 10:41:09 +00:00
Miklos Vajna
fea174753b tdf#106694 RTF import: fix missing paragraph tab position
The problem here was that while in general paragraph style / direct
formatting deduplication is supposed to happen in the tokenizer,
paragraph tab positions is an exception, and dmapper expects to see the
duplicated tokens.

Fix the problem by introducing a blacklist that contains tokens not to
deduplicate.

Change-Id: I1cca53e99cfdb082df389ff295f3447cc8f9d3b8
Reviewed-on: https://gerrit.libreoffice.org/35790
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-03-28 10:11:03 +00:00
Jorenz Paragas
65aa28cc1c tdf#42949: clean up includes in include/svx/[a-c]* with iwyu
Change-Id: I7768f4dbe9892c4264cb16eed87497894aa7494e
Reviewed-on: https://gerrit.libreoffice.org/26582
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-28 09:12:04 +00:00
Noel Grandin
7097037d5a remove enum slot code from sfx2
since we only used it for the pseudo-slot stuff, which is now gone

Change-Id: I72146090e7741d5b71d581fa0b5c6d43c154445a
Reviewed-on: https://gerrit.libreoffice.org/35759
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-28 08:25:18 +00:00
Noel Grandin
71403558cb remove PseudoSlot support from idl compiler
Since we have removed the last usage with
commit 12c6caa84a
"Kill remaining PseudoSlots usage"

And remove corresponding support from the list-dispatch-commands script.

Also remove the now unused SFX_NEW_SLOT_ENUM macro

Change-Id: Id07c431de4404acf61a8bdd3507e390e5249879a
Reviewed-on: https://gerrit.libreoffice.org/35754
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-28 08:24:51 +00:00
Caolán McNamara
dad9627997 ofz#955 timeout in lwp loading
Change-Id: I3665bd870cd601f2ac7fee59c087034d406ed07c
2017-03-28 08:56:25 +01:00
Jochen Nitschke
157cb70388 sc: include cleanup for --enable_formula_logger
don't include osl/file.hxx everywhere it's only needed
for --enable_formula_logger builds

Change-Id: I6ba30351b5a7afe975ea859e838930f9d1454c8c
Reviewed-on: https://gerrit.libreoffice.org/35766
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-03-28 07:54:50 +00:00
Jean-Sebastien Bevilacqua
4d5ce76d89 tdf#105975 Add Set field parsing (docx) in LibreOffice Writer
Introduction
------------

In MSWord, you can create a variable with `SET` field and then
reference it later in a formula. When you save your file as `docx`,
this `SET` field is registered in you file. In its current state,
LibreOffice can't parse the `SET` field in `docx` file.

Context of this fix
-------------------

This fix is entirely located in the `DomainMapper_Impl.cxx` file
because it's where the parsing is done.

How this fix works
------------------

First, we add `SET` support by adding it to the `aFields[]` variable.
Next, to handle the `SET` constant, we add a condition (swith case) in
`DomainMapper_Impl::CloseFieldCommand()` to call `handleFieldSet`.
Finally, `handleFieldSet` works like `handleFieldAsk` with small
differences.

Note
----

I have renamed `lcl_ExctractAskVariableAndHint` to
`lcl_ExctractVariableAndHint` because this function is used for both `ASK` and
`SET` fields.

Change-Id: I2bf948e26e8506ac151d1d0bc8556721bbe0392b
Reviewed-on: https://gerrit.libreoffice.org/34333
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-03-28 07:05:30 +00:00
Noel Grandin
b3549aacab remove unused interfaces from sdi files
Change-Id: I69e880e348372b3695b14efd4928f38f29bda37e
Reviewed-on: https://gerrit.libreoffice.org/35747
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-28 06:41:43 +00:00
Noel Grandin
2fc5ef74c5 remove unhandled SID commands from sfx2
Change-Id: I5473dbb1fdc2c3779892610ab4ea5f6146291921
Reviewed-on: https://gerrit.libreoffice.org/35742
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-28 06:41:25 +00:00
Noel Grandin
f5738518a6 remove unhandled SID commands from svx
In this case, also remove those unhandled commands which are present in
a *Commands.xcu file, but not in any other kind of .xcu file.

Change-Id: I8b42df7357349872e28d3ee60ec2c0505358cff6
Reviewed-on: https://gerrit.libreoffice.org/35648
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-28 06:40:51 +00:00
Jean-Baptiste Faure
7c0054f1b7 tdf#105843 : restore Application Start and Stop events
Change-Id: Ifc99fcf84182edb49cac741f7bb10a1b239d5703
Reviewed-on: https://gerrit.libreoffice.org/35779
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-28 06:36:14 +00:00
Takeshi Abe
98b4bea591 starmath: Refrain from skipping an extra token at missing "}"
which is for closing "stack {".

Change-Id: I2161507634fdb33583053168acfcb87754765652
Reviewed-on: https://gerrit.libreoffice.org/35784
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-03-28 04:13:02 +00:00
Jean-Pierre Ledure
648ab6fcab Access2Base Missing parentheses - tdf#106710
Due to more severe Basic interpreter on final parentheses
missing parentheses were revealed
(complement to commit cc16dfb11dfc275317bb535a62b11935c562b670)

Change-Id: I45b43bca4a5ee938e9c4dc0b0f8b2d5856f710da
Reviewed-on: https://gerrit.libreoffice.org/35780
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-03-27 21:13:00 +00:00
Tor Lillqvist
c0b5e7ec71 Use symbolic names for keys from css::awt::Key
Change-Id: Iee2f4540cddeb05fcf0ae2ecadf7de8fbb4e3a0d
2017-03-28 00:00:17 +03:00
Chr. Rossmanith
f900888ba5 tdf#105641: no javascript in svg export for selection of objects
Change-Id: I9150449770b7cef0c424277f87a21e00e123b9ea
Reviewed-on: https://gerrit.libreoffice.org/34432
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-27 20:56:50 +00:00
Gabor Kelemen
66997eb1f8 Updated core
Project: help  16d658196f9963a5eed6071c5c3db5c85520650e

tdf#99967 (related) Drop Web Wizard help pages

Change-Id: Ib2d9b3fc7d06a82492e9c62b96f82d83854d8d9d
Reviewed-on: https://gerrit.libreoffice.org/35110
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-03-27 20:43:21 +00:00
Caolán McNamara
fa4120f270 ofz#948 optimize the edge-case of converting masks to 1bit during dib load
Change-Id: Ibed50b92ab49685a1ac033c93bd52bc7d2ea581c
Reviewed-on: https://gerrit.libreoffice.org/35757
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-03-27 20:21:37 +00:00