Commit graph

391367 commits

Author SHA1 Message Date
Stephan Bergmann
49f2d7cd98 loplugin:stylepolice: adapt to libc++
Change-Id: I8a471d0fb7a206f1a235c3019ae9d07b44056e01
2016-04-27 13:47:30 +02:00
Oliver Specht
a4da4cc660 tdf#99527: show all accelerators in menus of extensions
XCUBasedAcceleratorConfiguration::getPreferredKeyEventsForCommandList() throws
if the command string of a menu entry is empty. Parent entries of sub menus of
extensions are empty. As the method doesn't know about the source of the command
a dummy entry is supplied.

Change-Id: I1d12bbf41c22b66e9ee29f1f05ea216134168795
Reviewed-on: https://gerrit.libreoffice.org/24423
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2016-04-27 11:43:47 +00:00
HaidongWu
ed81bf39dd tdf#98512 Fix the Undo action of insert an input field.
Change-Id: Ia3214564f78a300bfd3f2e6de677fcdff39e107b
Reviewed-on: https://gerrit.libreoffice.org/23055
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2016-04-27 11:43:01 +00:00
Takeshi Abe
1ef1ed40cb starmath: Drop unnecessary cast
Change-Id: Ia892100507de7365bcecfa0708f76931f84d797b
Reviewed-on: https://gerrit.libreoffice.org/24389
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-04-27 02:58:02 +00:00
Laurent Balland-Poirier
fe2bf7b059 tdf#99518 Use correct decimal separator
Change-Id: I39169e7c7344fcfd594a0e0d2ab0a762cc3d5829
Reviewed-on: https://gerrit.libreoffice.org/23961
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-04-27 00:29:42 +00:00
Fabio Buso
e7f55f15cc tdf#45904 Move java XViewPane test to c++
Change-Id: I3c99fb4c611a3b45d31412731c548b59e95d7179
Reviewed-on: https://gerrit.libreoffice.org/24285
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-04-27 00:28:03 +00:00
Christian Lohmaier
72f89e0f0e update credits
Change-Id: I63a025efc0208b93887bc02acb360311b56688e9
2016-04-27 01:12:54 +02:00
Tor Lillqvist
29da9d383e loplugin:stringconstant
Rewrite call of rtl::OUString::operator= with empty string constant
argument as call of rtl::OUString::clear.

Change-Id: Ib53fcfcca95e8c46f8ae24d648d7b9bf421df3f5
2016-04-26 20:31:13 +03:00
Tor Lillqvist
7671d64307 loplugin:defaultparams
Not necessary to pass this argument, it defaults to the same value.

Change-Id: I090566ebc968c69351cd019e1a5b2b6a0749f03f
2016-04-26 20:10:16 +03:00
Tor Lillqvist
7b1b9d42b0 loplugin:bodynotinblock
Statement aligned as second statement in if body but not in a
statement block.

Change-Id: I213d0b304fe23c9b7c739257201425475f7cb3b5
2016-04-26 20:04:24 +03:00
Jochen Nitschke
2bb6221b39 C++11: disable ctors instead of not implementing them (sc)
replace the old declare and don't implement pattern
with C++11 delete keyword

Change-Id: I96c71d512d8dab4ad7c806c2e871604163fc49c1
Reviewed-on: https://gerrit.libreoffice.org/24399
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2016-04-26 16:44:10 +00:00
Regina Henschel
32cec4ca8b tdf#48066 render stroke-miterlimit correctly in SVG import
The property stroke-miterlimit is transported to the renderers
via a new member mfMiterMinimumAngle in class LineAttribute
Several drawPolyLine methods are adapted. This patch does not
include changes in MetaAction. Presentation mode, printing, and
PDF-export is still wrong.

Corrected LineJoinMiter to LineJoinBevel in canvas, that s closer
to NONE. Removed DrawPolyLine method without MiterMinimumAngle
and adapted calls accordingly.

Change-Id: I6bcd24add5d85c4d9a39e3788e0682091c5fc9c4
Reviewed-on: https://gerrit.libreoffice.org/23946
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2016-04-26 16:42:27 +00:00
Eike Rathke
4905c8bf78 early bail out if nGlobalError, tdf#97831 follow-up
Change-Id: Ic45d11cecc4bb372dac3deca27ae3665303d5b29
2016-04-26 18:24:00 +02:00
Feyza
1670e45f6a tdf#58845 Added shorcut for Extension Manager
Change-Id: Iabd60e57de34f7463b7be2074ec2276572cdcdb0
Reviewed-on: https://gerrit.libreoffice.org/23376
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-04-26 16:13:54 +00:00
Yousuf Philips
554a7a5c89 tdf#84909 Draw: Reorganize buttons in connector split button
Change-Id: I192bf6285bb76a049eea631bd5341460ad05272c
Reviewed-on: https://gerrit.libreoffice.org/23929
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-04-26 16:12:42 +00:00
Yousuf Philips
31539dd176 Dock track changes toolbar on outline toolbar line
Change-Id: If5c4fa58b8e7ce8eaa5758a0c88a4ab9c13498c3
Reviewed-on: https://gerrit.libreoffice.org/23962
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-04-26 16:11:41 +00:00
Yousuf Philips
0c817c3b4b Change label to title case similar to other surrounding labels
Change-Id: I4b02aada5e50e7b30ed23fe12fab1c99f38ccfeb
Reviewed-on: https://gerrit.libreoffice.org/24056
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-04-26 16:11:06 +00:00
Eike Rathke
98ac8e769c check availability of stack and some nitpicks, tdf#97831 follow-up
See comments on https://gerrit.libreoffice.org/#/c/23601/5

Change-Id: Ib8d5a6cbf87f8b6cafd825f380c7e65c3227aefd
2016-04-26 18:05:47 +02:00
Stephan Bergmann
2ac66f5a36 Enable Clang plugin warnings in Bison source code
-Werror is generally suppressed in Bison-generated C/C++ code (as in all other
generated code) to silence warnings from the Bison skeleton code.  And the Clang
plugins suppress warnings in generated WORKDIR code based on the presumed source
location (i.e., taking #line directives into account).  So introduce a new
PLUGIN_WARNINGS_AS_ERRORS mode where warnings from Clang plugins are reported as
errors even if -Werror is suppressed.  That way, any warnings in the Bison
skeleton code still do not lead to compilation errors, while (at least plugin-
emitted) warnings in the genuine source code do.

Unfortunately this cannot also be enabled for Flex source code, as at least
Flex 2.5.39 generates poor code that does not properly prefix all skeleton code
with appropriate #line directives, so that some skeleton code would be mistaken
for genunie source code, and compilation would fail due to errors.

Also, %glr-parser Bison input appears to generate no #line directives at all (at
least with Bison 3.0.4), so all of connectivity/source/parse/sqlbison.y is
considered generated code and plugin warnings are still suppressed throughout.

Change-Id: Id746e81cbfa5f77628b0a34c7b82780948e7db08
2016-04-26 17:49:11 +02:00
Stephan Bergmann
13213de796 loplugin:nullptr
Change-Id: I02e177e07fc5fef225351392c9cd5743a2212967
2016-04-26 17:49:10 +02:00
Stephan Bergmann
db151516b5 loplugin:nullptr
Change-Id: I699ce2c97d7874eac78b3afcd08ba011f56156bd
2016-04-26 17:49:10 +02:00
Stephan Bergmann
d36b8733c0 loplugin:nullptr
Change-Id: Id58f3320ff152286fa6b3268cdc9c2af2d7e068b
2016-04-26 17:49:10 +02:00
Stephan Bergmann
f88f82233d simplify
Change-Id: Iecb9ea0106cf57ef3c873d3a62407a3da5706d92
2016-04-26 17:49:10 +02:00
Akshay Deep
35aded0e43 tdf#98037 - SIDEBAR: Replacing 'Speed' drop downs with comboboxes (2)
Changed speed dropdowns in CustomAnimationPane and CustomAnimationDialog to Duration combobox.
Used Custom Widget VclComboBoxNumeric with MetricBox class.
Unit set in seconds.

Change-Id: I86e18da77dcdd72d429a2c02d56aa4b1cf5f6c54
Reviewed-on: https://gerrit.libreoffice.org/23157
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-04-26 15:36:04 +00:00
Winfried Donkers
a76c5e2137 tdf#97831 [part] Add Excel 2016-Office 365 functions to Calc
Functions CONCAT and TEXTJOIN.

Change-Id: I38092f77df719d11f6746ac10fe14dc53b7e93e7
Reviewed-on: https://gerrit.libreoffice.org/23601
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-04-26 15:08:22 +00:00
Akshay Deep
0bdb8baf57 tdf#64292 tdf#94639 Meaningless Functions in Template Properties Dialog
Removed useless Template Properties Dialog.

Change-Id: I453abb67de9eb1515f98ff78cc7bebcc69482a1e
Reviewed-on: https://gerrit.libreoffice.org/23339
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-04-26 14:01:26 +00:00
Stephan Bergmann
56cd140064 loplugin:salbool
Change-Id: I079d12c7d3406e371c434214f4ad66f6decab954
2016-04-26 15:52:23 +02:00
Stephan Bergmann
f3c120ec22 loplugin:simplifybool
Change-Id: Ie3662271f57df724329cb5fa52881479890277f9
2016-04-26 15:36:38 +02:00
Miklos Vajna
f9ade68d8d lokdocview: log setGraphicSelection() arguments
Change-Id: I36af712274e1a3f9dacd5d62ab42032ca9e9acdd
Reviewed-on: https://gerrit.libreoffice.org/24390
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-04-26 12:12:04 +00:00
Jorenz Paragas
6a4a15c87c tdf#42949: clean up includes in include/oox/crypto with iwyu
The includes in CryptTools.hxx that are within #if/#endif directives
are not altered. iwyu suggested replacing the includes for nss.h,
pk11pub.h, and sechash.h with hasht.h, pkcs11t.h, seccomon.h,
and secmodt.h. I decided not to because it might make CryptTools.hxx
harder to refactor in exchange for little gain.

Before creating this commit, I ran 'make check' after passing
--with-tls=openssl to ./autogen.sh to ensure that building with
either OpenSSL or NSS (the default except on iOS and Android) works.

Change-Id: I20260d18f073ffd8077bbcc597e7a8e4954e2ec5
Reviewed-on: https://gerrit.libreoffice.org/24386
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-04-26 11:53:52 +00:00
Oliver Specht
c3572701cf tdf#89953: put zero kerning if item state has been invalid
Change-Id: I96d81ed7654dc310df68a7ff376bbcd2e1d5810b
Reviewed-on: https://gerrit.libreoffice.org/24361
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-04-26 11:34:13 +00:00
Miklos Vajna
b308e79340 CppunitTest_sw_rtfimport: disable testTdf90097 on OS X
As it fails on MacOSX-x86_64@49-TDF. It's strange, as it passed Jenkins
verification...

Change-Id: I04e4f091aff6855969bc40182c4b69b36f4a1b81
2016-04-26 12:58:01 +02:00
Noel Grandin
e8fd5a07ec update loplugin stylepolice to check local pointers vars
are actually pointer vars.

Also convert from regex to normal code, so we can enable this
plugin all the time.

Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1
Reviewed-on: https://gerrit.libreoffice.org/24391
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-26 10:55:58 +00:00
Armin Le Grand
e6adb3e8b4 tdf#98163 Flush ressources at CustomShapes during import
During ODF import using API for CustomShapes Outliners and
VirtualDevioces get created and not destroyed due to referencing.
This makes the ressources blow up, even under 64bit windows.
Also see tdf#93994 where this was already fixed on page base,
but this is not sufficient for this case.

Change-Id: If9b37d341fcfa4e65485c54054d47964ee2fff5f
Reviewed-on: https://gerrit.libreoffice.org/24305
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2016-04-26 10:34:04 +00:00
Armin Le Grand
ed42a98409 tdf#99388 suppress close comment when PopupMenu is active
With comments in draw/impress these use vcl::windows of type
AnnotationWindow. When the PopupMenu bottom-right is used,
this gets a LoseFocus event and gets closed since this is the
standard mechanism this window closes. This is fatal when
the PopupMenu is open since it uses it as parent window.
To avoid this, a flag is added to the AnnotationWindow
to avoid triggering the close event in that state.

Change-Id: Ic27782e56d192c0963868d9ca560945f8a34394f
Reviewed-on: https://gerrit.libreoffice.org/24280
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2016-04-26 10:33:41 +00:00
Aron Budea
f91674bd4b tdf#60418: improve perf of opening/closing odts with form tags
Opening/closing times using "Without Frame tags" attached file from
bug report changed as follows on my system (debug build):

open: 2:06 -> 1:32
close (doc unchanged): 1:52 -> 0:18

The performance fixes in the different CXX files are independent,
eventattachermgr.cxx is related to doc close, the others to doc open.

Change-Id: I24fc4558f79b9123494a3939c0a313fcd47a067f
Reviewed-on: https://gerrit.libreoffice.org/24359
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-04-26 09:40:56 +00:00
Miklos Vajna
6046062719 tdf#90097 RTF import: handle fRelFlipV property for line shapes
Can be extended later in every direction: fFlipV, fRelFlipH, non-line
shapes.  See oox::drawingml::Shape::createAndInsert() on why the
convertMm100ToTwip() conversion is necessary.

Change-Id: Ifee401dd8dd392c2c9ff85cc871ca0169fcf930b
Reviewed-on: https://gerrit.libreoffice.org/24385
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-04-26 09:35:50 +00:00
Samuel Mehrbrodt
5538066d34 Better label for "Test Mode On/Off": "Preview Dialog"
It is no toggle command, and "Preview Dialog" is more descriptive.

Change-Id: Ic7fea1668d699e39524f01ec355383ef706398f3
Reviewed-on: https://gerrit.libreoffice.org/24254
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-04-26 08:29:50 +00:00
Andrea Gelmini
2c47576ff2 Fix typos in license files
Change-Id: I58394df037e0683d7f8dd926a26e47b2cd1ec218
Reviewed-on: https://gerrit.libreoffice.org/24387
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-04-26 08:22:49 +00:00
Noel Grandin
17c4f7f0bc clang-tidy modernize-loop-convert in e*
Change-Id: If56abefa81b41479e3ea9890dee1c43f006086de
Reviewed-on: https://gerrit.libreoffice.org/24384
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-26 07:43:58 +00:00
Adolfo Jayme Barrientos
501720afbf Updated core
Project: help  fa9de2c321c3bf9e29b78fbec4f3c534887029b2

Update link to dictionary page

Change-Id: I65c27555fb686b4291ef78894e74f16c75c52a9b
2016-04-26 00:51:37 +00:00
Adolfo Jayme Barrientos
7ee2ec5063 Updated core
Project: help  7b6a881fae188afa224c71cd4685fabe80ac47fc

tdf#89953 Help update for character spacing controls’ simplification

Change-Id: I9f9e3e19ef7d5e2cf97603231fba7df747d738a2
2016-04-25 21:43:28 +00:00
Eike Rathke
4613f38c50 comment flat copy sharing code tokens
Change-Id: I80f8f7cc8f812fe412346876593c11aa221cb1b9
2016-04-25 22:46:02 +02:00
Eike Rathke
403d0d4a54 be explicit about what it does, CreateFlatCopiedTokenArray()
Change-Id: I3652e4e46f85343488fb77bc4169bf6825086cf4
2016-04-25 22:46:01 +02:00
Stephan Bergmann
a68a285076 bridges/inc/bridges/cpp_uno/bridge.hxx appears unused
Change-Id: I2b938739ebf4a5b13414bfa8ba27e83dd02b971d
Reviewed-on: https://gerrit.libreoffice.org/24370
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-04-25 20:01:33 +00:00
Markus Mohrhard
5749afcc71 update the ants only twice per second
This fixes some performance problem when the whole sheet has been
selected. Updating the whole paint range 6 times per second seems
excessive.

Change-Id: Ia4de5d66a8c316b70a0dd7daac00b9f10d7d9dfd
2016-04-25 20:55:10 +02:00
Christian Lohmaier
afb9c90c0d Updated core
Project: help  a14d38465c010b4feedfe6c2317a6eef59ffa09b

tdf#94057 - add "bascode" element to xmlhelp dtd

it was introduced with d06c698b79 on core
to have LO apply syntax-highlighting for Basic (for 4.1.0)

Change-Id: Ifbe4b511cad8810b2ebd179fb62097bcd22a556a
Reviewed-on: https://gerrit.libreoffice.org/21793
Reviewed-by: Olivier Hallot <ohallot@collabora.co.uk>
Tested-by: Olivier Hallot <ohallot@collabora.co.uk>
2016-04-25 18:40:29 +00:00
Yousuf Philips
30a3a6c1cf Updated core
Project: help  5a80d0373c0edd1350e9f36e24579c2289aed7d9

Fix mistake made in the rearrangement of writer's insert menu

Change-Id: Id8c357fafaa6cf3137a46ae32a8d18d529fbd6ce
Reviewed-on: https://gerrit.libreoffice.org/24214
Reviewed-by: Olivier Hallot <ohallot@collabora.co.uk>
Tested-by: Olivier Hallot <ohallot@collabora.co.uk>
2016-04-25 18:32:26 +00:00
Xisco Fauli
188439aac2 tdf#62525 vcl: use cow_wrapper for font
Change-Id: Ib08d2a20c7b8dab9772c568eb4ccb8e235a30eee
Reviewed-on: https://gerrit.libreoffice.org/24308
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-04-25 17:46:10 +00:00
Eike Rathke
03124f5be5 Resolves: tdf#99461 reverse logic of TokenPointers::skipToken()
... so that all code tokens are adjusted even if shared with another
flat copied token array, but RPN not if shared. Was vice versa.

ScConditionEntry has shared token arrays for pFormula1|pFCell1
respectively pFormula2|pFCell2 hence the references weren't updated.

Change-Id: I52256b5ea20da753a2a29ff437f09c921566e070
2016-04-25 19:10:16 +02:00