Commit Graph

399585 Commits

Author SHA1 Message Date
Michael Stahl
bc3f952e66 avoid odd make warning on WNT
Library_vcl.mk:753: extraneous text after 'endif' directive

Change-Id: Iec487705b762880dd463acaba2d3590ff2587562
2016-10-27 22:25:34 +02:00
Caolán McNamara
7c33c49dd5 coverity#1374319 Uninitialized pointer field
Change-Id: Ifc604753360f552512a5c9f9f9c42083a38e1a5f
2016-10-27 21:27:07 +01:00
Caolán McNamara
7e46e9bb5c coverity#1374309 Uncaught exception
Change-Id: I043236e45fbb110b6b3818f2b02dcf1f512623f6
2016-10-27 21:10:57 +01:00
Caolán McNamara
a9297447b1 coverity#1374318 Uninitialized scalar field
Change-Id: I247b9d37b71ebba621b63026d597037450155e18
2016-10-27 21:01:24 +01:00
Miklos Vajna
4beac67a2b xmlsecurity PDF verify: handle missing trailer
Support for Cross-Reference Streams is still missing, but this avoids
a crash at least.

Change-Id: I8c5d16531f8603feeebe8feddb7c3bdfa61943cb
2016-10-27 20:21:02 +02:00
Maxim Monastirsky
4433d95b37 MenuItemData now properly disposes the submenu
At least since:

commit ee79a2dd7e
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Fri Jul 29 14:33:22 2016 +0100

    Resolves: tdf#101169 crash using column menu in base

Change-Id: Ib1bc70e8e66f2be123d8a3e5d5e213775e9a5762
2016-10-27 20:19:40 +03:00
Maxim Monastirsky
a3b44da948 Fix insert special character crash
Change-Id: Id75567f5f6689d15d62f88ed0907c296434b8f0a
2016-10-27 19:25:41 +03:00
Stephan Bergmann
d4398c7767 Remove bogus comments about ~IPropertyArrayHelper not being virtual
...which isn't true at least ever since b525a3115f
"initial import", but got copy/pasted all over the place

Change-Id: I47d3d8a594aef3ac3736d7176ae964a118821014
2016-10-27 17:08:09 +02:00
Miklos Vajna
9df81ea775 xmlsecurity PDF verify: import out-of-signature date
The signature date can be placed as the value of the "M" key, and also
inside the signed PKCS#7 binary. When the later is missing show what's
described in the previous.

Change-Id: Idb40d91adb70486bc1f19d4755a3f8e17d35e9e9
2016-10-27 17:01:09 +02:00
Marco A.G.Pinto
090e666c12 Added 20 words to autocorrect pt_PT.
Change-Id: I504de5175c7563c2b81b765786fd1b57da16202b
Reviewed-on: https://gerrit.libreoffice.org/30328
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2016-10-27 13:56:03 +00:00
Caolán McNamara
feedd45ba2 in msword the hard-break between image and caption has a width
while for us it doesn't, make it invisible to give it zero width
in both implementations to head off interoperability misery

Change-Id: I0944006817944b20ef35502c8588357e7ee54810
2016-10-27 14:37:03 +01:00
Caolán McNamara
f6ff0c237b fix writer insert caption crash
since...

commit eca5ea9f79
Date:   Wed Sep 21 14:48:15 2016 +0200

Change-Id: I69b50df0ec19369fcd96d7d184c6d5f586a50b25
2016-10-27 14:33:30 +01:00
Miklos Vajna
3e12ef2cbb xmlsecurity PDF verify: support array ref annotations
Each pdf signature is mentioned in the Annots key of a page object.
Usually the key contains an array value. But it's valid for the key to
contain a reference to an object, where the object contains the actual
array, so support this case as well.

Also:

- stop parsing name tokens on the first seen '(' character (usually
  there is a whitespace between the two, but that's not required)
- handle \0 characters in the last 1024 bytes of the document by using
  std::search() instead of strstr().

Change-Id: I3a167b23340230f99f1ae4112473ed10e1c96b09
2016-10-27 15:27:59 +02:00
Stephan Bergmann
f82bd120bc loplugin:literaltoboolconversion
Change-Id: I886f4fcb3de5a931f94b2f45f5f0cdb841af26d1
2016-10-27 15:02:37 +02:00
Noel Grandin
337e19bf46 loplugin:expandablemethods in sfx2
Change-Id: I5dcc9e6e7fef210f85a01057ddf59f8de14b847d
Reviewed-on: https://gerrit.libreoffice.org/30320
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-27 12:43:46 +00:00
Eike Rathke
40241c2aec sc: OOXML: range with file ID within quoted sheet name, tdf#103531 related
Wherever non-formula-expression ranges with external document reference might
be used in OOXML, format ScAddress/ScRange as '[1]Sheet Name' instead of
[1]'Sheet Name' as Excel expects them.

Change-Id: Ia7be13f4d631405e4bcb4617fbded27586fa5dcd
2016-10-27 14:42:51 +02:00
Noel Grandin
e5438e9ef7 loplugin:expandablemethods in sdext
Change-Id: I7d375d6eafdd450ac165539f8f7dd3d02826ac5b
Reviewed-on: https://gerrit.libreoffice.org/30323
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-27 11:39:37 +00:00
Noel Grandin
618171552e loplugin:expandablemethods in sot..starmath
Change-Id: I5b718bbda9ceca5bbfd1e6482ebd215e15884956
Reviewed-on: https://gerrit.libreoffice.org/30318
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-27 11:38:22 +00:00
Eike Rathke
a6628078a9 sc: OOXML: actually write both sheet names in external 3D references
... instead of twice the same name. Even if not handled yet in Calc, external
3D references may get imported and have to be written again.
Copy&Paste error since 2f373570c5

Change-Id: I6cb982793e1072d619053c02860a8046e78bc99e
2016-10-27 13:31:33 +02:00
Eike Rathke
02af87fdd7 Resolves: tdf#103531 OOXML: write external file ID within quoted sheet names
Excel expects '[1]Sheet Name' instead of [1]'Sheet Name' and complains if it
encounters the latter.

Fortunately Calc handles both.

Change-Id: If1129e58725b522ca4755c05e313c03fca065f28
2016-10-27 12:52:34 +02:00
Caolán McNamara
91114f68e0 I'm testing inserting a rtf, but really want to test simple loading
Change-Id: I13c6e8394de9b7214f3e4d448a7b18cbf3b637e9
2016-10-27 11:48:07 +01:00
Giuseppe Castagno
cac08e96c7 Cosmetic: Move function member around...
...so it's nearer to the other function member that uses the
class variables it initializes.

Change-Id: I199621fbcad36313e0948627d47445a1de211d02
Reviewed-on: https://gerrit.libreoffice.org/30313
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
Tested-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
2016-10-27 10:31:02 +00:00
Noel Grandin
7da765dde1 loplugin:expandablemethods in svtools
Change-Id: I126cc87c890867c3e762f86969a20d64aef63108
Reviewed-on: https://gerrit.libreoffice.org/30314
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-27 10:23:35 +00:00
Noel Grandin
c19d2b276b loplugin:expandablemethods in stoc..svl
Change-Id: I7dd701ef07a14f70589b87154bfeeda7530b628f
Reviewed-on: https://gerrit.libreoffice.org/30316
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-27 10:16:08 +00:00
Eike Rathke
e641c1740f Resolves: tdf#103530 OOXML: pass ExternalLinkInfo compiling named expressions
Change-Id: If15aa520b93f30b889e5f950185068ef3bdb9235
2016-10-27 12:07:02 +02:00
Eike Rathke
d12c7aee5c remove non-sensical OSL_ENSURE
That started as
OSL_ENSURE( (nTabId == 0) || (getFilterType() == FILTER_OOXML) || (getBiff() == BIFF8),
then with c4cb83504f became
OSL_ENSURE( (nTabId == 0) || (getBiff() == BIFF8),
then with e73c4d5013 became
OSL_ENSURE( nTabId == 0,
which makes no sense anymore and gets hit in ~every call.

Change-Id: I5dfe3dd53310ab2f977ad574acb1ec9874775020
2016-10-27 12:00:40 +02:00
Stephan Bergmann
7f45ebf7fa Add link to bug describing such a race
Change-Id: Idd3e325c1240905649e04333fadcde9ac4a4ad0f
2016-10-27 11:52:30 +02:00
Stephan Bergmann
97c4f06d09 untabify
Change-Id: I090f63d93166de9bee2527e0e75248916204be5a
2016-10-27 11:51:53 +02:00
Tor Lillqvist
f29ce347f9 Bypass VBATest::testMiscOLEStuff() in a 64-bit Windows build for now
It fails when Excel is installed, for some reason:

    Basic error:
    Type: com.sun.star.uno.RuntimeException
    Message: [automation bridge] unexpected exception in IUnknownWrapper_Impl::invoke ! Message :
    [automation bridge]: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    macro result for ole_ObjAssignNoDflt.vb
    macro returned:

    C:/cygwin64/home/Tor/lo/64bit-debug/basic/qa/cppunit/test_vba.cxx:155:`anonymous namespace'::VBATest::testMiscOLEStuff
    assertion failed
    - Expression: pReturn->GetOUString() == "OK"
    - Result not as expected

Note that this test returns early if Excel is not installed, so it is
not run effectively performed anyway even in 32-bit builds on most
(any?) Jenkins and tinderbox machines.

Change-Id: I0a0b6f27219dec116369fae1bb7c95b3e9597e77
2016-10-27 12:33:34 +03:00
Muhammet Kara
0c2272786b tdf#103464 Don't allow empty names in SvxNameDialog
Menus, context menus, toolbars, toolbar items...
could be created with empty names, and could be
renamed to have empty names before this patch.

Change-Id: Ic383f16955746002aa3ad69406bac855cdd58d2d
Reviewed-on: https://gerrit.libreoffice.org/30286
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Tested-by: Jenkins <ci@libreoffice.org>
2016-10-27 09:25:59 +00:00
Noel Grandin
7195c7e8b8 loplugin:expandablemethods in slideshow
Change-Id: I3a7207e0566bc4b871b364da3180ce67e1099de8
2016-10-27 10:59:09 +02:00
Maxim Monastirsky
2dc9809903 Make XServiceInfo match what's in .component file
also should match the entry in
officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu

Change-Id: If5f532d428bfcd925123ab83df6185680a04249e
2016-10-27 11:05:38 +03:00
Maxim Monastirsky
0438d3e636 dbaccess: OToolboxController is now unused
This also removes the only occurrence of the
"com.sun.star.frame.ToolboxController" service. However it shouldn't
be considered as API CHANGE, as no 3rd-party code should rely on
undocumented services, and fortunately a toolbox controller like this
has no use for 3rd-party anyway.

BTW there are other cases of using non-existent (unique) service
names for toolbox controllers in non-sfx2 modules, rather than using
the standard "com.sun.star.frame.ToolbarController". There is
OToolboxController in reportdesign (which I hope to remove soon too,
as it's just a wrapper around SvxColorToolBoxControl). And there was
also ShapeToolbarController in chart2 which I removed in
2aea9e37d6 ("Introduce generic sub toolbar
controller").

Change-Id: Iea8858be2406f32bb5a022920b4b1cee70603c09
2016-10-27 11:05:38 +03:00
Maxim Monastirsky
d8d110ce56 Fix .uno:Refresh controller registration
Amazing how this is broken for years, and no one ever
noticed.

Change-Id: I65efabad201169e6424a2b8573f6366e4b292e8a
2016-10-27 11:05:38 +03:00
Maxim Monastirsky
ec0e60c53f Convert RID_MENU_REFRESH_DATA to xml
Change-Id: I22107396eaab848224f26eb54f8638a354c13509
2016-10-27 11:05:38 +03:00
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
2ebd79b3d2
    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 97354578d7 "Remove the obsolete
functionality originally underlying osl/diagnose.h"

Change-Id: I7c920bca9cdddb37fcbbc15d8629d01c21eb0787
2016-10-26 23:08:04 +02:00