403477 Commits

Author SHA1 Message Date
Noel Grandin
3211dbd1b6 loplugin:unusedenumconstants in basctl
drop UNKNOWN constant and convert to scoped enum

Change-Id: Iffeb27193cd0df47c781f2b84144d6f85a6b49e0
Reviewed-on: https://gerrit.libreoffice.org/33888
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-06 05:48:26 +00:00
Noel Grandin
8b2ffb280b loplugin:unusedenumconstants in vcl
- drop TTCR_GLYPHSEQ
- drop ImageType::Invalid
- give preedit_data_t a default constructor, so my plugin spots that the
eState field is being initalised to DontKnow effectively by a memset
- document ToolbarIconSize::Small as unused, but can't remove since
it might be stored in a user-setting somewhere

Change-Id: I94b34bba83a04de16f95e4faec95b4bd29f3c652
Reviewed-on: https://gerrit.libreoffice.org/33887
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-06 05:48:02 +00:00
Noel Grandin
005ef926c6 writerfilter: convert ResourceType to scoped enum
and drop unused constant StreamProperties

Change-Id: I6a358cf7914412231d6c8f926a0d2fbd4bb8009b
Reviewed-on: https://gerrit.libreoffice.org/33885
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-06 05:46:29 +00:00
Jochen Nitschke
b524ace6f5 loplugin:nullptr
seen on tinderbox Linux-F19-x86_64_14-with-check

Change-Id: Ica9c2707b43317f7dd1cf99440c6cdb7fe28e0bc
Reviewed-on: https://gerrit.libreoffice.org/33938
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-06 04:38:48 +00:00
Jochen Nitschke
3f6643b927 default ctor is fine here
this was hiding a Wunused-variable warning

Change-Id: I32bd853846bc6f56c082541109eedfdab2402c3d
Reviewed-on: https://gerrit.libreoffice.org/33942
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-06 04:38:01 +00:00
Pranav Kant
5bafdc99a1 lok: Disable map mode when calculating annotation rectangles
Change-Id: I4803ca9b52ce76ff9f7461253ec78bfcbc26690c
Reviewed-on: https://gerrit.libreoffice.org/33879
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-02-06 03:44:59 +00:00
Pranav Kant
a51faf9ead lok: Emit modify comment callback when anchor changes
Change-Id: Ibe4a66b93768eb446a04cab8cfdd4bdebee13d1f
Reviewed-on: https://gerrit.libreoffice.org/33878
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-02-06 03:43:12 +00:00
Pranav Kant
5596b3f86f lok: comments: emit add callback after layout finishes
Change-Id: Ie6eba244dd5eb78813185f8c7aceed841d05d48b
Reviewed-on: https://gerrit.libreoffice.org/33877
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-02-06 03:42:44 +00:00
Andreas Kainz
a296a69c98 tdf#103677 Windows installer icons
Icons refreshed according Tango style

Change-Id: Ibb86ea0a7153f0ac7331d278b2dcd8f8c64835e7
Reviewed-on: https://gerrit.libreoffice.org/32998
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2017-02-06 00:02:16 +00:00
Matteo Casalin
c6f32df907 sal_uIntPtr to sal_uInt16
Change-Id: If463ae457f53a0a8b12cc0748afbc654f54ae3c3
2017-02-05 21:44:49 +01:00
Maxim Monastirsky
eb0b727b87 .uno:ScriptOrganizer should be menu:menuitem
... so it won't show as an empty submenu in the
customization dialog, and allow accidentally
overwriting it.

Change-Id: I9431e5240485a58f63a2333850a9052e475db63e
2017-02-05 22:08:43 +02:00
Maxim Monastirsky
88a0a17ae4 chart2: Remove empty labels from main menu
Change-Id: I600d5bd2d502ffce7d54a699f390d30874323ca8
2017-02-05 22:08:27 +02:00
Maxim Monastirsky
9421a4c053 tdf#105737 Menu::GetItemType takes position not item id
And get rid of a pointless sal_uInt32-sal_uInt16 casting.

Change-Id: Ia27fd87ceb4d060dab9ea7fffd4803903a1893da
2017-02-05 20:57:01 +02:00
Tamás Zolnai
aeece6f198 tdf#31488: Background fill changes its color when saving a PPTX file to ODP
For a gradient fill we need to generate a name because
ODP export works with this name.
In case of shapes it works because when fill attribute
changes some internal name generation is triggered.
The same thing doesn't work for slide background
so generate this name explicitely in oox code.

Change-Id: Ic6ebf37ef3d66a9c274747ca04653363b1fe6d02
Reviewed-on: https://gerrit.libreoffice.org/33937
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-02-05 18:28:56 +00:00
Pranav Kant
900556a892 Indentation
Change-Id: I723438eb4258f12413a16b5b727f5c8f6eb3083c
Reviewed-on: https://gerrit.libreoffice.org/33876
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-02-05 17:14:02 +00:00
Pranav Kant
6d243a1072 lok: Send complete anchor rectangle
... instead of just sending the X, Y coordinates

Change-Id: Ie87b252ebfd64e806e1e5f66cfc27e77282cbaab
Reviewed-on: https://gerrit.libreoffice.org/33875
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-02-05 17:13:28 +00:00
Gulsah Kose
0b819a1f07 tdf#103258 Add contextual edit footnote endnote command.
Change-Id: I68126d2ec8b8dfb12c45ce577d110be2b94a4e33
Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/33803
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2017-02-05 16:48:49 +00:00
Maxim Monastirsky
1f9b7ccd6e Restore custom tooltip support
This reverts the toolbarmanager.cxx part of
38839ae10cb565ff1977b1839de1c8278eac657b ("Remove the
ability to set tooltips in the toolbar xml files").

It is true that tooltips can't be set in xml files,
but toolbars can also be created/modified via the
UIConfigurationManager and LayoutManager APIs,
e.g. the test doc of i#105626 .

Change-Id: Ida1559e61e7fd9bd6dcdd7b7159bc5efe070c721
2017-02-05 18:19:29 +02:00
Maxim Monastirsky
47e84338e4 Revert "Remove unused toolbar:text define"
This reverts commit 8ce70a7e267bf45aa5eaae203ee26ad3826e91a8.

It is true that toolbar:text shouldn't be used during LO
development, but it's still used by toolbar customization,
and such customized XMLs should still validate against the
dtd.

Change-Id: I95227a22ecc00a27f39591163ee09a78adde3168
2017-02-05 18:18:42 +02:00
Maxim Monastirsky
6296abc143 HelpURL toolbar property is unused
Change-Id: I74b22509f59899b7c15aa791a01c60c8d982221f
2017-02-05 18:17:34 +02:00
Julien Nabet
89b57084a0 Related tdf#105473: Crash in: ScRangeList::operator[]
fixes this bt:
3  0x00002aaaab314ef2 in __GI___assert_fail (assertion=assertion@entry=0x2aaaaf8dc448 "index >= 0 && static_cast<sal_uInt32>(index) < static_cast<sal_uInt32>(getLength())",
    file=file@entry=0x2aaaaf8ac488 "/home/julien/lo/libreoffice/include/rtl/ustring.hxx", line=line@entry=678,
    function=function@entry=0x2aaaaf8dc800 <rtl::OUString::operator[](int) const::__PRETTY_FUNCTION__> "sal_Unicode rtl::OUString::operator[](sal_Int32) const")
    at assert.c:101
4  0x00002aaaaf810383 in rtl::OUString::operator[] (this=this@entry=0x55555d39c9f8, index=index@entry=0) at /home/julien/lo/libreoffice/include/rtl/ustring.hxx:678
5  0x00002aaaaf822f4e in SbiScanner::NextSym (this=0x55555d39c9d0) at /home/julien/lo/libreoffice/basic/source/comp/scanner.cxx:572
6  0x00002aaaaf82771e in SbiTokenizer::Next (this=this@entry=0x55555d39c9d0) at /home/julien/lo/libreoffice/basic/source/comp/token.cxx:339
7  0x00002aaaaf827d23 in SbiTokenizer::Peek (this=0x55555d39c9d0) at /home/julien/lo/libreoffice/basic/source/comp/token.cxx:266
8  0x00002aaaaf8175d0 in SbiExpression::Unary (this=this@entry=0x55555d43cea0) at /home/julien/lo/libreoffice/basic/source/comp/exprtree.cxx:581
9  0x00002aaaaf8178a4 in SbiExpression::Exp (this=this@entry=0x55555d43cea0) at /home/julien/lo/libreoffice/basic/source/comp/exprtree.cxx:633
10 0x00002aaaaf81792c in SbiExpression::MulDiv (this=this@entry=0x55555d43cea0) at /home/julien/lo/libreoffice/basic/source/comp/exprtree.cxx:647
11 0x00002aaaaf8179b6 in SbiExpression::IntDiv (this=this@entry=0x55555d43cea0) at /home/julien/lo/libreoffice/basic/source/comp/exprtree.cxx:666

Change-Id: Ib56063b3106bd077cda215e34ab763bae1f33c33
Reviewed-on: https://gerrit.libreoffice.org/33933
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-05 13:25:13 +00:00
Caolán McNamara
e86a8f5c53 try to fix arm build
Change-Id: I866d741f35925ba00b60b2beeb5d9ee7de8b0d94
2017-02-05 12:10:16 +00:00
Stephan Bergmann
813b9d4eae Fix LD_LIBRARY_PATH resetting
I /think/ a set-but-null LD_LIBRARY_PATH (Linux), DYLD_LIBRARY_PATH (macOS) are
each treated like an unset one.

Change-Id: If60698d6f21a16456dac9c3d4f4e1aa3561e1a65
2017-02-05 10:38:58 +01:00
Caolán McNamara
5a0aabe7b3 circular freetype and harfbuzz dependency
harfbuzz needs freetype, freetype wants harfbuzz but can live
without it

Change-Id: I4b5dbd937ccfc9af46c86be5ae1d3f8eeb14e86b
2017-02-05 08:35:38 +00:00
Caolán McNamara
0d016fc9e7 arm libpng build fix
Change-Id: I904424251a7d6a84a97e61d18c1a731c66866fae
Reviewed-on: https://gerrit.libreoffice.org/33917
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-02-05 08:32:30 +00:00
Zdeněk Crhonek
0a9fcfde6c add IMCOS test case
Change-Id: I9c23dcdc62973de657bf5a3a9a6dad0f0c89ee73
Reviewed-on: https://gerrit.libreoffice.org/33896
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2017-02-05 08:05:41 +00:00
Akshay Deep
a60960272e tdf#98034 fix alignment of delay spinbox
Change-Id: Ifb6609a4315851d4eae2c7017c25f0ad7b833123
Reviewed-on: https://gerrit.libreoffice.org/33916
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
2017-02-05 06:59:14 +00:00
Caolán McNamara
dbc6d0e070 add freeype to cairo's use externals
Change-Id: I408c48ce0b28534b232b5d401ed13f7af76ed2ed
Reviewed-on: https://gerrit.libreoffice.org/33915
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-02-04 17:05:19 +00:00
Stephan Bergmann
7ba0b28cc3 Unbreak soffice.sh
Change-Id: I8c827db4c16a4a169dd710787bf9beb123ddc7b6
2017-02-04 16:34:15 +01:00
Caolán McNamara
fa9c00760b this windows-only quote replacement looks out of date
its there since initial checkin and I rather feel things
have moved on since then

Change-Id: Iea3aa1c5a1637cecdd18539987ef8b84db095e9a
2017-02-04 14:39:37 +00:00
Caolán McNamara
774fa68764 flatten STR_IMPRESS_PRINT_UI_OPTIONS resource
Change-Id: Icef2a5ae31973c09620112dba062525d42bdd227
2017-02-04 14:39:37 +00:00
Jochen Nitschke
d584e2dcc0 simplify SfxWhichIter
only one of 164 calls used the ctor with a restricting range.
handle this special case.
remove nFrom and nTo members.
use operator[] on range pointer to highlight we access lower [0]
and upper [1] range bound.
remove dtor.

Change-Id: I87b28502515e45bb190425eb88aa187ac0b5b2d2
Reviewed-on: https://gerrit.libreoffice.org/33911
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-02-04 11:37:42 +00:00
Jochen Nitschke
f52eb759f6 fix desktop scripts
reverts parts of e6a9dc22a4e58b565894f8cdb6a19755af7b14de
we want globbing here

Change-Id: Ibe4672f41b0fe6a75d1aca898cc55414e138f6ef
Reviewed-on: https://gerrit.libreoffice.org/33913
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-02-04 11:37:13 +00:00
Zdeněk Crhonek
424f9953a2 add OCT2DEC,OCT2HEX test case
Change-Id: I91ab4b1fc347a81d8cbd7914a578a922592f923c
Reviewed-on: https://gerrit.libreoffice.org/33901
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2017-02-04 09:28:22 +00:00
Federico Bassini
99860ffc53 gbuild-to-ide fix the double .cxx in the .filters
double ".ccx" for each source files in the .filters in the
testVS2013Ide.
this patch fix that.

Change-Id: Ic06800c260800f72254038e30119db40fe048037
Reviewed-on: https://gerrit.libreoffice.org/33892
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-02-04 08:50:49 +00:00
Federico Bassini
9fe97c0d6c gbuild-to-ide: new function that generates a vxcproj on testIDE
this function generates a vcxproj, for the reverse engineering
i generate a vcxproj from VS2013 that:
-the compiler works good

i do the code that generates it
the code miss that the link to lib that i left commented

Change-Id: If98eb5645c9e1060a55701abf5b96db85eca6ce5
Reviewed-on: https://gerrit.libreoffice.org/33893
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-02-04 08:50:00 +00:00
Johnny_M
11a4507f8a Following up German translation - fix spelling
Following up on the commit a3a878268f903f3a1a4b6bc80c9c5abe42fd691a

Change-Id: I4f525ecb030044fc9a330ad8964dbeca6ef35ee3
Reviewed-on: https://gerrit.libreoffice.org/33908
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-02-04 08:48:34 +00:00
Regina Henschel
9e8f2afc2e tdf#105656 only delete path if less than 2 points
This prevents the crash. It might be related to
gerrit #/c/33654

Change-Id: I92907c7874964af722b69ed8afd9249e110b3401
Reviewed-on: https://gerrit.libreoffice.org/33907
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-02-04 08:47:15 +00:00
qarkai
e6a9dc22a4 tdf#105204 fix shellcheck warnings in desktop/scripts
Use $(..) instead of `..`,
use && and || instead of -a and -o,
double quote to prevent word splitting,
handle cd failure.

Change-Id: I860891323a81ac4a46c868ab028df1e1f837c115
Reviewed-on: https://gerrit.libreoffice.org/33897
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-02-04 08:46:14 +00:00
Julien Nabet
1bdef25291 Typo: FindIntersetingTableByColumns->FindIntersectingTableByColumns
Change-Id: I74456399bde6075c9b3813d6c0ffe98fe1afbe3a
Reviewed-on: https://gerrit.libreoffice.org/33905
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-04 07:09:51 +00:00
Marco Cecchetti
9ba5eb228d sc rowlimit: Make the cursor better fit the rendering.
Change-Id: If4d02161bd8a37100d7403c05ea0840a3d2d0cf8
2017-02-04 00:50:05 +01:00
Jan Holesovsky
221e83653b sc tiled rendering: We keep increasing the precision here...
... so let's finally do it right, and count in double precision directly.

Change-Id: Ic49cc42d9e61a1b9fa9853bfe93d2681a6be88b2
2017-02-04 00:49:49 +01:00
Michael Stahl
5df348a26a sw: translate german comments
Change-Id: I1f2a4e249274a2dfd74da11553d7bb9fb35b5d53
2017-02-03 23:56:07 +01:00
Julien Nabet
092adc4991 Typos
Change-Id: Ic54695e86b4b462419fa7d5ded7b1ddb19ee8ed5
Reviewed-on: https://gerrit.libreoffice.org/33904
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-03 21:55:50 +00:00
Julien Nabet
ed8f1c5155 Typo: Openofice.org->Openoffice.org
Change-Id: I3efb3630fbb8a605774796fd83514404c1fa35ee
Reviewed-on: https://gerrit.libreoffice.org/33903
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-03 21:44:28 +00:00
Stephan Bergmann
ad2935eee6 loplugin:simplifybool
Change-Id: If9d73319988b9d6ac5fcdee2ec815738320a62a0
2017-02-03 22:36:42 +01:00
Julien Nabet
b4fe924e17 Typo: progess->progress
Change-Id: Ic13529f4bc9ac49059a59067c50d5f2c0f569822
Reviewed-on: https://gerrit.libreoffice.org/33902
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-03 21:10:43 +00:00
Julien Nabet
223f1f2b81 Typos
Change-Id: I36f443c266670bd26aa6b813075e18653f372f52
Reviewed-on: https://gerrit.libreoffice.org/33900
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-03 21:09:44 +00:00
Julien Nabet
797d10e177 Typo: amout->amount
Change-Id: Icd5a2d4156ace852f522df162c4a8da1cf2af5c2
Reviewed-on: https://gerrit.libreoffice.org/33899
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-03 19:47:03 +00:00
Julien Nabet
aea9eeb159 Typo about "property"
Change-Id: I17bd9ce74d95beaa230276bec40b739b05b81cf2
Reviewed-on: https://gerrit.libreoffice.org/33898
Reviewed-by: Aleksandar Stefanović <theonewithideas@gmail.com>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-03 19:29:57 +00:00