399050 Commits

Author SHA1 Message Date
Maxim Monastirsky
420e80dfd7 Convert RID_MENU_APP_NEW to xml
Achieved by using GenericPopupToolbarController for the
associated toolbar button.

Change-Id: I406ff40e0c80d6db903de5629088d35487ab6416
2016-10-27 11:05:38 +03:00
Maxim Monastirsky
074449ee34 GenericPopupToolbarController: deal with main command being disabled
Try to set another command from the dropdown, if there is any
enabled. Otherwise give up and disable the button altogether.

Change-Id: I7fa46a946826056d04851faee9c7ad85f00c3678
2016-10-27 11:05:38 +03:00
Maxim Monastirsky
e59013d6e9 GenericPopupToolbarController: Support replacing the main command
If a second arg is passed in the "Value" property, it will be
treated as boolean. If true - the button will be
ToolBoxItemBits::DROPDOWN, and will keep replacing the main
command with the last selected one from the dropdown. It will
also respond to status updates of that command, currently for
enabled/disabled and boolean (true treated as pressed) states.

Change-Id: I09a5c20e6d2a010867037754f036096246749ec4
2016-10-27 11:05:38 +03:00
Maxim Monastirsky
853c9efd00 MenuBarManager should pass the menubar flag down
... to popup menu controllers it creates, similar to what
is does for child MenuBarManager instances. That way a
child ResourceMenuController placed inside a popup menu
won't mistakenly think it's inside the main menu.

Change-Id: I75eea28eeb38f16bfaaa5526752a957859ef0d32
2016-10-27 11:05:38 +03:00
Miklos Vajna
729c2cd351 filter: use comphelper::containerToSequence() in ImpPDFTabDialog
Change-Id: I9c6523d96e06901751d392bd76e7aa8717784697
Reviewed-on: https://gerrit.libreoffice.org/30307
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-10-27 06:37:01 +00:00
Tor Lillqvist
7507bffd47 Sorry, could not resist: Bin pointless variables
We should also just use the string literals as such in the code (some
newer parts of this module already does that), and not hide them
behind preprocessor macros. An Easy Hack?

Change-Id: I3ab5793ff265a4aceff2fed1562a54bfb0ce3ccb
2016-10-27 09:32:00 +03:00
Jochen Nitschke
f53cd8826b remove unused variable
aSet unused since
2ebd79b3d214c62c0997606115ebc50700d6a760
    loplugin:constantfunction: svl

Change-Id: I48faf8775465ec1d5e3df94343a4373a87d03e6d
Reviewed-on: https://gerrit.libreoffice.org/30310
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-27 06:17:46 +00:00
Noel Grandin
883172375d loplugin:expandablemethods in svx
Change-Id: I0d193ddf07cc0ddc89b6ce2df6eb71d44e49b631
Reviewed-on: https://gerrit.libreoffice.org/30295
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-27 06:09:29 +00:00
Noel Grandin
a7ea18ffe7 loplugin:expandablemethods in sw
Change-Id: Ibc9edc28f4041235ab30c026bd3774bd74b7e960
Reviewed-on: https://gerrit.libreoffice.org/30287
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-27 06:08:51 +00:00
Noel Grandin
eca5ea9f79 make the AbstractDialog stuff extend from VclReferenceBase
Because some stuff wants to multiple-inherit from VclAbstractDialog and
OutputDevice-subclasses, and we'd prefer to keep all the lifetime
management through a single smart pointer class (VclPtr)

The change in msgbox.cxx and window.cxx is to workaround a bug in
VS2013 to do with virtual inheritance and delegating constructors.

Change-Id: I178e8983b7d20a7d2790aa283be838dca5d14773
Reviewed-on: https://gerrit.libreoffice.org/29140
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-27 06:08:30 +00:00
Bjoern Michaelsen
bbd44f8f89 for now, use a limited subset for testing on windows as it is so slow
Change-Id: I06f77d8aa0a82bd3bb065095a64849d07d11c6a3
Reviewed-on: https://gerrit.libreoffice.org/30311
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-10-26 22:41:50 +00:00
Bjoern Michaelsen
dd8c8d81de add test for running gbuildtoide on non-build modules
- do concat for json in C++, everything else seems fragile on Windows
- have APPEND vars separately
- check that gbuildtoide work on modules without a full build (modulo
  some blacklisted "creative" ones)

Change-Id: I6fe267fee7d1b77d758072303729387dfeb8e6c8
Reviewed-on: https://gerrit.libreoffice.org/30293
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-10-26 22:41:32 +00:00
Eike Rathke
329ecb6780 trust the size ... tdf#79442 follow-up
... and don't unnecessarily loop over the whole range.
Actually a max/min typo.

Change-Id: I3dbda3a7388baa337c3922ad992fd3946074c3b7
2016-10-27 00:38:48 +02:00
Eike Rathke
effb273267 Java 7 DISPLAY and FORMAT locale and script field
Change-Id: Ie62105c60a327f6e5cbcf1a801b341e988471d73
Reviewed-on: https://gerrit.libreoffice.org/30308
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-10-26 22:00:24 +00:00
Stephan Bergmann
90439a2f21 sal::detail::logFormat is no longer needed
...since 97354578d7195bce927f0c00c4e2ae9cd7344776 "Remove the obsolete
functionality originally underlying osl/diagnose.h"

Change-Id: I7c920bca9cdddb37fcbbc15d8629d01c21eb0787
2016-10-26 23:08:04 +02:00
Caolán McNamara
c484c353ef rework to avoid coverity#1371205 Missing move assignment operator
Change-Id: I117fa0891e8cd1bf339bded93a7ee19d799caf9f
2016-10-26 21:34:33 +01:00
Caolán McNamara
424c7fb6ca we don't need ree after the loop here
Change-Id: Ib288ab3a7abf8f45c1175c36dcd4349dc4ad019f
2016-10-26 21:24:01 +01:00
Michael Stahl
aa70294ffc normalize existing emacs/vim mode-lines in python files
Bunch of these were setting C++ or Make modes and icky tabs...

Also, reportedly Emacs can figure out to enable python-mode
automatically.

Change-Id: I50072488fb92cb4d27aa3f74f717a28ae3967543
2016-10-26 22:16:08 +02:00
Michael Stahl
22d0970e69 gbuild: missing emacs mode-lines
Change-Id: Id767a98be85a7f3f4abb28891d0a5cac2057b0e0
2016-10-26 22:16:08 +02:00
Caolán McNamara
ad5a6b4d58 fix leak in HeaderFooterTabPage seen examining coverity#1371205
In the case that the field data is not a SvxDateTimeField or SvxDateField
then the old "aFieldInfo.pFieldItem = nullptr" call will mean that
the pFieldItem is leaked for that element.

The only thing needed later is the existance of a date field, and the field's
position, so encode those two facts as a bool and EPosition and
stop abusing aFieldInfo.pFieldItem to serve as a flag

Change-Id: I6a1c46d32406dbd6865cfcf6d23a3863bada6810
2016-10-26 21:17:20 +01:00
Michael Stahl
dad2f1440c fix "TabError: inconsistent use of tabs and spaces in indentation"
Change-Id: Iff27ff4a01dc8c20b01a6247554b6cc7195a2306
2016-10-26 21:08:31 +02:00
Miklos Vajna
3803460589 solenv: fix Windows build
Traceback (most recent call last):
File "C:cygwinhometdflodejenkinsworkspacelo_gerritConfigwindows_msc_dbgutil_32solenvqapythongbuildtoide.py", line 32, in test_gbuildtoide
del(os.environ['LD_LIBRARY_PATH']) # built with ASAN; prevent that
File "C:cygwinhometdflodejenkinsworkspacelo_gerritConfigwindows_msc_dbgutil_32instdirprogram\python-core-3.3.0libos.py", line 692, in __delitem__
raise KeyError(key) from None
KeyError: 'LD_LIBRARY_PATH'

Change-Id: I1575caf90cafffd71dd28fedc46b5e3570848be8
Reviewed-on: https://gerrit.libreoffice.org/30304
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Michael Stahl <mstahl@redhat.com>
2016-10-26 18:53:00 +00:00
Miklos Vajna
b6f98b7115 xmlsecurity PDF verify: support SHA-256
And various other minor fixes.

Change-Id: Ifcccebf48aac8ad526406f2d7a402a840d3c91cd
2016-10-26 20:09:38 +02:00
Miklos Vajna
fc56d31c09 xmlsecurity PDF verify: fix handling of non-imported certs
Previously we only managed to verify a signature in case the certificate
was already imported in the local NSS db. Don't depend on that by
(temporarily) importing certificates from the PDF signature.

Also adjust a test file that failed previously (the test DB has only an
"Alice" cert imported, intentionally sign the file as "Bob" as well).

Change-Id: Id8440acc31915f5a1718ea48129b950bb67e7486
2016-10-26 20:09:38 +02:00
Miklos Vajna
23ca39a7c2 xmlsecurity PDF sign: fix removing non-last signatures
PDF signatures are always chained, so when removing a signature not only
the item at a given position should be removed on the UI, but the whole
position-last range.

Change-Id: I76b14308885267cdac994fa957218a8b7df6b3cf
2016-10-26 20:09:38 +02:00
Miklos Vajna
f45ace2897 xmlsecurity PDF signing: fix byte range check for multiple signatures
We can mandate that the byte range end is the end of the file for the
last signature only.

With this, signing a previously unsigned file multiple times works, so
add a matching testcase for that as well.

Change-Id: I8fe5482890fca4dab8da6305aa7fc7f60df612d8
2016-10-26 20:09:38 +02:00
Stephan Bergmann
0b7bc00ae3 Revert "clang plugin for push_back after using sized constructor"
This reverts commit e2fa592c770222344fccb0e39db3d500fc7690b5, sould no longer be
necessary after 3be8c4c2bb919d69a2812c76edbaeaa41d149edb "The badvectorinit
plug-in probably can be retired".

Change-Id: I26fadaf002e8e21144a7e888a80bb40eb017a64b
Reviewed-on: https://gerrit.libreoffice.org/30296
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-26 17:51:45 +00:00
Eike Rathke
0ebe9fab18 init ScUndoRemoveMerge with range, tdf#92117 follow-up
So the original selection is restored after Undo.

Change-Id: Ie549a0b62da469ee38270ae089ea5abf9a6868e3
2016-10-26 16:19:40 +02:00
Michael Stahl
5ac920be30 solenv: don't run make with LD_LIBRARY_PATH set
In a build with -fsanitize=address, this fails with:

Change-Id: Ida0d4445d7f829545b493e9dd4c2c4ef33960850
make: symbol lookup error: instdir/program/libfreebl3.so: undefined symbol: __asan_option_detect_stack_use_after_return
2016-10-26 15:23:06 +02:00
Stephan Bergmann
87c28ddabc i18nlangtag must presumably be dropped from Library_merged.mk
...after 475e4b477c6d7ae114c3ae51ba4872882af67a68 "Move i18nlangtag lib to
URELIB"?

Change-Id: I45c5d997ed30757157109c67f30b91c4073c6b0a
2016-10-26 15:20:27 +02:00
Eike Rathke
647e860435 Resolves: tdf#92117 create only one Undo for all UnmergeCells() calls
... during DeleteCells() and InsertCells(), instead of one Undo per
UnmergeCells() call. And actually create Undo only if bRecord requested.

Change-Id: I4f1747c3f42f36e16be81f989f0af5d048ba9d9f
2016-10-26 14:55:23 +02:00
Caolán McNamara
0d3e45608a SfxSlotInfo is unused
Change-Id: I8d5438ca338868c77dcf489609a4e007cfe925fd
Reviewed-on: https://gerrit.libreoffice.org/30290
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-10-26 12:44:31 +00:00
Miklos Vajna
a324099538 xmlsecurity PDF signing: only write incremental xref in an incremental update
We used to just dump all the object offsets in the xref of the
incremental update, but Adobe Acrobat doesn't like that, and considers
that a second signature invalidates the first. If we properly only
mention new and changed objects in the xref, then this doesn't happen.

This requires actually parsing incremental updates, the previous code
depended on LO writing not-really-incremental xrefs at the end of
incremental updates.

Change-Id: Icdd73fe0a3eab16f8c5a62f1355edbb49f6e73de
Reviewed-on: https://gerrit.libreoffice.org/30288
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-10-26 12:20:26 +00:00
Giuseppe Castagno
da5d205624 Linux: Build NSS in debug mode only in '--enable-dbgutil' mode.
With this commit, NSS debug mode is enabled only if you compile
with --enable-dbgutil using ./autogen.sh command.

Only for the Linux platform builds.

Change-Id: Ia8626f36692fd38e8b1dbd774e4bc0ccedc59072
Reviewed-on: https://gerrit.libreoffice.org/29781
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-10-26 12:14:05 +00:00
Stephan Bergmann
95cfef300e const-ness fixes
Change-Id: I83858c0cbca0fc493ac506e2b839e43310f3bb2f
2016-10-26 13:57:05 +02:00
Miklos Vajna
36c4fd5c33 svl: the compiler can generate the same SfxGrabBagItem copy ctor itself
Change-Id: I54f94e8ec710ca117ecdf33ebe97a0e5f07c59ec
Reviewed-on: https://gerrit.libreoffice.org/30283
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-10-26 11:21:04 +00:00
Winfried Donkers
1276e95193 tdf#103088, improve interoperability with Excel for LOGNORMDIST().
Change-Id: I5f4ccbb54b212247a3ff8b13ff012c930d18a86c
Reviewed-on: https://gerrit.libreoffice.org/30020
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-10-26 11:13:09 +00:00
Stephan Bergmann
532847746f Better way to silence loplugin:staticmethods
...in this !ENABLE_FORMULA_LOGGER dummy implementation

Change-Id: Ifaf3356ada68d70164644f89fc6dc6d66f22024b
2016-10-26 13:03:40 +02:00
Caolán McNamara
8efdf567de drop now unused SfxStyleItem, etc.
Change-Id: I61227079c376299d17250970b19acb0c415034fb
2016-10-26 12:02:40 +01:00
Caolán McNamara
c14b9d036a assemble SfxStyleFamilies from more generic resource components
Change-Id: I25aa0d8bca1f16f5fc27d3b299709479a1635ea3
2016-10-26 12:02:40 +01:00
Noel Grandin
88ec5de1c9 expand SvMetaType::ReadNamesSvIdl
it just forwards to ReadNameSvIdl

Change-Id: I803edb7a5977cf309e2cedaa3b4764bcbd933597
2016-10-26 11:56:21 +02:00
Takeshi Abe
406798f8aa tdf#96948 Change color of the area behind Impress slide immediately
after saving Options > Application colours > Application background.

This fixes a regression from 1c481fe6522f4c7d883e77a4ac32f855b9bcb323.

Change-Id: I8dc0caf9e351c0b1bf2a10e9097d8f3e895f1471
Reviewed-on: https://gerrit.libreoffice.org/29957
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-10-26 09:20:52 +00:00
Caolán McNamara
0b4be27b14 try and silence coverity#1374267 Out-of-bounds access
Change-Id: Ib7a8866dc4acdc243e7bfa975e760afde3bb43a6
2016-10-26 09:56:30 +01:00
Caolán McNamara
2574d76059 coverity#1374287 Uncaught exception
Change-Id: Ieed911b33fe4a5358855b3960b9d4c77c66ceff9
2016-10-26 09:56:30 +01:00
Caolán McNamara
95af8bfcdf coverity#1374286 Uncaught exception
Change-Id: Ied3abcd1f2bd7754e3861905f441c46f828f7f5d
2016-10-26 09:56:30 +01:00
Caolán McNamara
8ee0932466 coverity#1374285 Uncaught exception
Change-Id: I0a3790607fe7db6a8b8093a67e4dbf3548c800bb
2016-10-26 09:56:30 +01:00
Caolán McNamara
521e5dd379 coverity#1374284 Uncaught exception
Change-Id: Ie43165d3f6abd420b951a80e0101d8e77946d4a3
2016-10-26 09:56:30 +01:00
Caolán McNamara
b9d0b57b17 coverity#1374283 Uncaught exception
Change-Id: I658a12da4d30f360f207ca06dcf3650ba18cc7a2
2016-10-26 09:56:30 +01:00
Caolán McNamara
5d5564fa7a coverity#1374282 Uncaught exception
Change-Id: I1b31825ec27d2395ca030ca79b6c932b7814d901
2016-10-26 09:56:30 +01:00
Caolán McNamara
b23e979157 coverity#1374281 Uncaught exception
Change-Id: Iaffb4b67c67b5877a5a53d9ae81927b28883fc56
2016-10-26 09:56:30 +01:00