Commit Graph

401915 Commits

Author SHA1 Message Date
5e355dabcc Some loplugin:conststringvar/stringconstant improvements: sal
Change-Id: I8b5d81c2b51f846a24fd1f7f9cdd831f1ea54ea5
2017-01-11 11:26:49 +01:00
3c29d5a502 Some loplugin:conststringvar/stringconstant improvements: sc
Change-Id: Ie01088776c4339ec7d1fb5941c4e65d95aff8b1f
2017-01-11 11:26:45 +01:00
7533e58f7c Some loplugin:conststringvar/stringconstant improvements: sd
Change-Id: If44cce6e4c241f6a2203d73f6d191f270fb5ca5a
2017-01-11 11:26:42 +01:00
e838e360ff Some loplugin:conststringvar/stringconstant improvements: sdext
Change-Id: I47884eeb14a67b7e260835b8603d7b76c7ec018b
2017-01-11 11:26:38 +01:00
15e1a0bb4a Some loplugin:conststringvar/stringconstant improvements: sw
Change-Id: I5b9c3d2dac275659569141d4eae7b97e3aa397b8
2017-01-11 11:26:34 +01:00
7ca7e52bca Some loplugin:conststringvar/stringconstant improvements: vcl
Change-Id: I999549a840864060be4e80fe973ebb530202b807
2017-01-11 11:25:47 +01:00
15f84c9cd4 Some loplugin:conststringvar/stringconstant improvements: xmloff
Change-Id: I05e03936d9e5518fa7ba4d9c72d5b8e241e32526
2017-01-11 11:25:42 +01:00
5088b20666 Resolves: rhbz#1408500 gtk3 toolbar borders too distinct vs native gtk3 ones
Change-Id: I7ce284d3e6f999e2ac08326dc40b060bf70d7d4b
2017-01-11 10:15:11 +00:00
e1f5db9579 SvxFontNameBox_Impl was not disposed
This is visible after toolbar customization, when the old
font box stays visible. Turns out that currently the toolbox
controller is supposed to own the item window, not the toolbox.

Regression of:

commit 970a66f8c919ea0524f216f40d21b3e2a8c88ccc
Author: Maxim Monastirsky <momonasmon@gmail.com>
Date:   Sun Oct 16 01:27:10 2016 +0300

    Use UNO registration for font name toolbox control

Change-Id: I29a1f06d97c9a981507ff62889e2d7fc6ac9d688
Reviewed-on: https://gerrit.libreoffice.org/32943
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2017-01-11 10:04:24 +00:00
ef0323b0fa using the other ctor can shrink this code
Change-Id: Ied607a78c9aaec3cb0ee9dc0e2938c69a62d031e
2017-01-11 09:08:55 +00:00
f4785d5754 make XOBitmap uncopyable
Change-Id: I9c28434e8923451ddb1af4fa3c63917db206f47a
Reviewed-on: https://gerrit.libreoffice.org/32940
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-11 08:51:59 +00:00
c0f7a344b5 add SMALL,STANDARDIZE,STDEV,STDEVA,STDEV.P,STDEV.S,STDEVP test case
Change-Id: I05a187a66d62b1edd550df2de6acf0162ed82c32
Reviewed-on: https://gerrit.libreoffice.org/32888
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-01-11 08:47:30 +00:00
feade09e18 SfxUShortRangesItem is unused
Change-Id: I6f88f37eca2bdd6b40c8713f1b2e35ad0be94ab0
2017-01-11 10:11:02 +02:00
6139bca623 don't emit objects on ScRange*List::Remove
Change-Id: I6be23f6659079f5c60be9574c717fd4f7de23bc4
Reviewed-on: https://gerrit.libreoffice.org/32754
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-11 07:50:38 +00:00
0e911397c9 starmath: Prefix members of SmViewShell
Change-Id: I256b251b6aaad487ab0afeb56ee67a4a33769e8f
Reviewed-on: https://gerrit.libreoffice.org/32777
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-01-11 07:04:30 +00:00
a940c8280d Folder icon redesign
Replaced old and busted icon design, with Google's generic app icon.
It is now a vector drawable, which means it will be sharp at any resolution,
while we only need to keep one tiny xml file for it. No folder thumbnail
support, but this a welcomed change nontheless.

Change-Id: Ie6e38a6ac8e6cf1bc2d22247c11b5de0bd0d8478
Reviewed-on: https://gerrit.libreoffice.org/32498
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2017-01-11 07:00:51 +00:00
d976f9151a Updated toolbar spinner to newer implementation
Lowered all-caps navigation labels to something more professional.
Added a Spinner to the Toolbar in XML.
Reworked many lines of LibreOfficeUIActivity to remove possible NPE's, and also
removed redundant lines, which were mostly deprecated, as well as switching to
a newer implementation of a toolbar-spinner navigation pattern. There are more
deprecated methods, but I wanted them in a separate commit.

Change-Id: I15d5365ed7c00880873bf7874bc794008436bb99
Reviewed-on: https://gerrit.libreoffice.org/32497
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2017-01-11 06:54:10 +00:00
11e443bfe1 Removed unnecessary imports
Import redundancy reported by Android Studio.

Change-Id: If46a43bb18268877d41d4957094acc543c4588fd
Reviewed-on: https://gerrit.libreoffice.org/32496
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-01-11 06:53:14 +00:00
ca48c61212 Bumped version numbers in Gradle
It builds correctly.
Note that the target version remained the same (22) instead of the current 25.

Change-Id: Ic14fc5b2e5aa04d621e86249d33c1d6d9bdce3c2
Reviewed-on: https://gerrit.libreoffice.org/32495
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2017-01-11 06:52:23 +00:00
28f50d7e38 replace namespace url strings with function calls
Change-Id: I6e0c4c94ba7418ed9d7daa7f768baf703e22ab55
Reviewed-on: https://gerrit.libreoffice.org/32915
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-01-11 00:54:20 +00:00
db4badfc97 tdf#105077 sw: fix wrong assert corner-case in SwRegHistory::InsertItems
There is a tricky corner-case when an item set is inserted that
contains items that are all identical to what's in the node's item set.

In this case a SwHistorySetText will be created for an overwritten hint,
but no new AUTOFMT hint will be inserted so there is no
SwHistoryResetText.

So it looks like AUTOFMT can't be checked at all here.

(regression from b44e70e3d17c79eaf78f9bfe8bd0275d7ed9325f)

Change-Id: I83a241588cef6a9ec074d4f0e39322987394ca86
2017-01-10 23:31:45 +01:00
ebadc60178 fix interchanged parameters
first one found by cppcheck
> sc/source/filter/excel/xelink.cxx 637
> funcArgOrderDifferent
>  warning	Function 'InsertExtName' argument order different:
>  declaration 'rnExtSheet, rnExtName, rUrl, rName, rArray'
>  definition 'rnExtSheet, rnExtName, rName, rUrl, rArray'

Change-Id: I6b9bdbf58a8eb271e873bf8dfc30041a72419f59
Reviewed-on: https://gerrit.libreoffice.org/32927
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-10 22:16:21 +00:00
dfc6f4c1be tdf#97598 xlsx import: do not apply any scenarios
Excel does not automatically apply scenarios, so neither should LO.

Scenarios appear to first be supported in 2009 and this section that
applies the "mnShown" scenario comes from
> commit 0851da4d8a0a557f1e9a31af652a530c615c2989
> CWS-TOOLING: integrate CWS dr68

mnShown should only mean the last scenario that was shown, so
mark it as active, but don't apply it.
In Excel, mnCurrent tracks and auto-selects a scenario in the dialog box,
so that is irrelevant to us.

Change-Id: I6b4a9b14733d6ab6dc2283a569f0e2484f81c24f
Reviewed-on: https://gerrit.libreoffice.org/32432
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-01-10 21:32:26 +00:00
cbebea151b Updated core
Project: translations  930afa6de2cfae15db9af9574f6e0997f69955d8

update translations

and force-fix errors using pocheck

Change-Id: I22c4f2470c82a226f332c5af79dadcc33e50d79a
2017-01-10 21:29:28 +00:00
e4b6c3b2f9 gbuild-to-ide, solved vs2013 generation problem.
mikekaganski reported a problem with the vs2013 class, due to the
latest changes. Problem solved:

.name() -> .name

Change-Id: Idb3e063bee93041dd010ed0c0b5bb71ac7efcd57
2017-01-10 18:06:20 +01:00
54490d9322 replace namespace url strings with function calls
Change-Id: I1b496a93449caa4a9699f71874f293eeaa1fa320
Reviewed-on: https://gerrit.libreoffice.org/32916
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-01-10 15:27:00 +00:00
adea1891e5 mpGlobalMgr must already exist if we're copying from another GraphicObject
Change-Id: I7befa3bf8c80ed71d13a1481569bb046036cbd21
2017-01-10 14:41:30 +00:00
6c2725038b Resolves: rhbz#1409634 crash on close storing clipboard of database table
Change-Id: I8e692314b4ef278f7881780d51bcecb60ca80c3f
2017-01-10 14:40:41 +00:00
6a68e364fa tdf#105199: Keep URL intact
Change-Id: I85681fcc81246414332f88dc46ce4a4b60896c97
2017-01-10 15:31:53 +01:00
b885db5dbd loplugin:nullptr
Change-Id: Iaf69f87564ff0f9f8aab6fafb833714426c8bc30
2017-01-10 16:27:47 +02:00
a1d3dc1cbd post ctor, pre dtor there is always a mpMgr and its mpGlobalMgr
move the ImplEnsureGraphicManager calls to be the first thing
in the ctor to ensure that its also always available during
the ctoring, this is hopefully a good change

Change-Id: Iccddee7cac152df66dec0039df207a7575e1fa54
2017-01-10 14:18:45 +00:00
629765804a Work around problems with isCXX11ConstantExpr in template code
> template<size_t Size>
> bool checkOutput(ScDocument* pDoc, const ScRange& aOutRange, const char* aOutputCheck[][Size], const char* pCaption)
> {
>     ...
>             const char* p = aOutputCheck[nRow][nCol];

in sc/qa/unit/helper/qahelper.hxx caused

>    assert(E->isRValue() && E->getType()->hasPointerRepresentation());

in Clang's EvaluatePointer (lib/AST/ExprConstant.cpp) to fire.  In the template
definition itself, Clang doesn't introduce ArrayToPointerDecay ImplicitCastExpr
into the subscripting operations (while in any implicit specializations that it
instantiates, it does).

This is interesting:  Up to C++11, [expr.sub] requires the operator to have
pointer type (so array-to-pointer decay is clearly asked for).  In C++14
(CWG1213), the operator can also be of array type but it is not explicitly
specified whether array-to-pointer decay is to be performed.  In upcoming C++17
(P0135R1), it specifies further that an operator of array type must be a glvalue
but still does not explicitly specify whether array-to-pointer decay is to be
performed.  Maybe the definition of the subscripting operation in terms of
*((E1)+(E2)) is meant to imply that, however.

Change-Id: I67c7b0f34002387dbf746288630371877c6261ef
2017-01-10 14:35:05 +01:00
ad915fafd5 tdf#104830, need an own termination listener for lib objects
The destruction of the SwDLL object happens already through the normal
termination listener but the other termination listeners might still
depend on it. Also the outstanding events might need the SwDLL instance
to be still around.

This makes the destruction of the instance explicit and at a time when
it should be safe. We should use the same code for calc, impress, math
and base as well.

Change-Id: I50b8f30426f5a4a54e362e748fe962839abca73e
Reviewed-on: https://gerrit.libreoffice.org/32856
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-01-10 13:23:43 +00:00
11e5668f12 mpGlobalMgr has to exist at GraphicObject dtor time
Change-Id: I75d82c041aa5a01bab3dceecaaa132ce9172862b
Reviewed-on: https://gerrit.libreoffice.org/32899
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2017-01-10 12:54:36 +00:00
bd5ec81c78 mpGlobalMgr is the only manager possible
Change-Id: Ic7e20c9c198cfdab73647b009af3e269aabf680f
Reviewed-on: https://gerrit.libreoffice.org/32898
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2017-01-10 12:53:56 +00:00
8065e33626 move the ImplRegisterObj outside ImplSetGraphicManager and rename it
Change-Id: I1eded3ee41787b9a3339e01cf6e1157724bba1a6
2017-01-10 12:18:56 +00:00
f0ab4138ca ImplSetGraphicManager only called from ctors now where mpMgr is nullptr
Change-Id: Ib275f4c803d74eaf45409e78a6c786dac159af6b
2017-01-10 12:10:28 +00:00
3a44ef1d5d GraphicManagerDestroyed would just set the default manager again
which is the only one that could already be set. Seeing
as the manager is always there if a Graphic exists then
the maObjList must be empty at the dtor time

Change-Id: Id447d1e62a4b94b0ef986edf3cc05629c90e511b
2017-01-10 11:30:19 +00:00
9d138866d2 unfold and unindent else cause
Change-Id: I22131a477547ac08b0c6b762353c9796f80c3666
2017-01-10 11:10:45 +00:00
6b0ae6c674 the only GraphicManager is the mpGlobalMgr, so simplify accordingly
Change-Id: I5b237e27815e138cdcab75b1b9f657882ae8a37b
2017-01-10 11:09:57 +00:00
439b2a1342 Resolves: tdf#104711 adjust range reference constructed of named anchors
A constructed range reference of named anchors (i.e. extended during
expression compilation) forms a range listened at that needs to be
adjusted if the cell is shifted and one or both anchor parts are
individually named relative references.

Currently the resulting range (ScComplexRefData aka DoubleRef) does not
know to distinguish between whether its anchors are the result of a
literal range in a named expression or the result of individually named
anchors, so such RelName DoubleRef needs to be adjusted unconditionally
when shifting or moving the formula cell.

Change-Id: I75e2cc79ac60116671acce7641567337d5f5f7ed
2017-01-10 11:44:28 +01:00
7aaa217894 collapse !mpMgr || mpMgr
Change-Id: Id93b2da5665c47b1e8941d2f7428fe078c6227f7
2017-01-10 10:37:57 +00:00
e7b1aeb294 -Werror=format=
Change-Id: I690117e6e94af2364cbf2f7bcb0bc44adc264567
2017-01-10 11:33:42 +01:00
a1f37240b7 add IRR, IPMT, ISPMT test case
Change-Id: I4179ec9fb31e4b7cb91f2dcd168048d403ab8a76
Reviewed-on: https://gerrit.libreoffice.org/32841
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-01-10 10:29:55 +00:00
fa886598cc Updated core
Project: help  69cc05e42df703775a9716d8eb1767b1fd147336

A bit of cleanup in cmis-remote-files-setup.xhp

- One doesn’t need to have all those <embedvar>s included in the
  translatable strings
- Consistently use hyphen-minus as the menu path separator, as in
  the rest of the help files
- Drop hardcoded “LibreOffice” in favor of “%PRODUCTNAME”

Change-Id: I2ed2d4d9516365caa8230bb4cd53d07c610155e1
2017-01-10 10:16:45 +00:00
610d995c3a ofz#395 leak in Bitmap::AcquireWriteAccess
Change-Id: Id67f0b8e82e0730eb35a14a6080bfa5b15d365c8
2017-01-10 09:45:15 +00:00
3cd6485ee9 BitmapWriteAccess* -> Bitmap::ScopedWriteAccess
Change-Id: I5b3980d8eecc61a6f63aa64a1b05c30afa2f57f7
2017-01-10 09:31:27 +00:00
b3bddf8b75 Bitmap::Convert->Convert
Change-Id: Id8e6c4d7290eabdc32991bad1e8cda1f06c751f2
2017-01-10 09:17:21 +00:00
01392c4a60 WaE: -Wunused-function with dbconnectivity disabled
Change-Id: Ief9a3b478d904dd12f51dc7e4373a8273f209635
2017-01-10 09:03:39 +00:00
7aad85c4f5 coverity#1398524 Uncaught exception
Change-Id: I5654f1123fc7dea3ea132141863cd65cf184e360
2017-01-10 09:01:02 +00:00