399050 Commits

Author SHA1 Message Date
Stephan Bergmann
954699acbd cppu/source/uno/EnvDcp.c -> cppu/source/uno/EnvDcp.cxx
Change-Id: Ic02d217efef970a365a584f2558c41561e4c6e3d
2016-10-28 08:52:45 +02:00
Tor Lillqvist
e333d386ce Bin one more pointless TAG_ macro
Change-Id: I78e85923e2c5da366c0bec0812c8fe0240310b67
2016-10-28 08:40:01 +03:00
Tor Lillqvist
d111186383 Bin unnecessary TAG_ and ATTR_ macros and expand in-place
They just make grepping harder, and don't really avoid a risk of
mistyping. For instance, there were both TAG_TRANSFORM and
TAG_TRANSFORMS (with values "Transform" and "Transforms"), so if you
think you are likely to misspell "Transforms" as "Transform", you are
as likely to misspell TAG_TRANSFORMS as TAG_TRANSFORM. Typos affecting
generated XML should be catched by unit tests anyway.

Some of the (newer) code here is already in this style, using string
literals directly for tags and attributes, so this change just makes
the style more uniform.

I did not touch the macros that have long URIs as value. For them
there is some usefulness in having the shorter macros in the
code. (But the names of the ALGO_* macros are not consistently
constructed from the URIs.)

Change-Id: I9130395f45fafc13fb2a6ac47e98177647e27cf9
2016-10-28 08:27:43 +03:00
Adolfo Jayme Barrientos
c55cc87280 Updated core
Project: help  005b4a65cdb91fe7566207b9e4c0b4125bf0e133

tdf#103540 Explicitly say the button affects all levels

Props to Regina.

Change-Id: I99d0bc807b1e777e0920bcfbab91f15a408c2a4a
2016-10-28 04:12:00 +00:00
Maxim Monastirsky
eb07ae8fc5 Don't crash under gen
In gtk there is apparently GtkSalMenu which increases
the refcount.

Change-Id: I5c52c7b40d0a854e0007362a32a55f0ffed668c1
2016-10-28 01:22:11 +03:00
Maxim Monastirsky
03d6174919 Reduce scope
Change-Id: I06695b310d016751ec80f1aacbba8567a70088a5
2016-10-28 01:21:29 +03:00
Maxim Monastirsky
89c23b4aae Sub menus no longer need manual disposing
after:

commit ee79a2dd7ea60e902cab3a9203e307b8a78fee23
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: I7c6e54dd5574c61cffd5884d1cf1b63075073001
Reviewed-on: https://gerrit.libreoffice.org/30343
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2016-10-27 22:11:07 +00:00
Caolán McNamara
798c107a1a coverity#1374310 Uncaught exception
Change-Id: Ie0ae4412d42d15e2c6c52a8cb0b7b3893405a16b
2016-10-27 21:47:03 +01:00
Caolán McNamara
f20a45808f coverity#1374311 Uncaught exception
Change-Id: I3f0e2fdfbf3c0517593ef87bc7bcbfe2ee693eef
2016-10-27 21:46:19 +01:00
Caolán McNamara
7580c5e5bd coverity#1374312 Uncaught exception
Change-Id: I901c5399cdc33d55c4d3bdfa7a566adc74340405
2016-10-27 21:45:06 +01:00
Caolán McNamara
3cc1a10c7b coverity#1374313 Uncaught exception
Change-Id: I9562deb23324f44b16735b0d376b4c37e20c58c1
2016-10-27 21:41:47 +01:00
Caolán McNamara
2d96f3a582 coverity#1374314 Uncaught exception
Change-Id: I07a39774a1372ea26e8d66376c27d3b98229892e
2016-10-27 21:39:32 +01:00
Caolán McNamara
db337150cd coverity#1374315 Uncaught exception
Change-Id: Id7a01c652d1d11675b87ee732ff40ddd76de6236
2016-10-27 21:37:42 +01:00
Caolán McNamara
6e14070332 coverity#1374316 Uncaught exception
Change-Id: I32f872d74f167604de006f1d77a9219a37011bfa
2016-10-27 21:34:57 +01:00
Caolán McNamara
d164f7e93e coverity#1374317 Uncaught exception
Change-Id: I37a7b2f12cec522e116ccf4b1aa550ad2cba14ea
2016-10-27 21:32:18 +01:00
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 ee79a2dd7ea60e902cab3a9203e307b8a78fee23
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 b525a3115f54576017a576ff842dede5e2e3545d
"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 eca5ea9f79181d45cd7fbabe2313617d3025818a
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 2f373570c51e13baf0530605ef59808462e6ca71

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 c4cb83504faa1d241a116001fd27f7148de300ba became
OSL_ENSURE( (nTabId == 0) || (getBiff() == BIFF8),
then with e73c4d5013d7a0bf7d72db1773d7125ab91cf269 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
2aea9e37d697ce51efc5fb37ba50f1bf177e0445 ("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