Commit Graph

399050 Commits

Author SHA1 Message Date
Caolán McNamara
8db1b13e72 clarify hash lengths a bit more
Change-Id: I66cea4b9efb82d29e6c052ac11a6f2eaca823ce0
2016-10-20 14:00:01 +01:00
Caolán McNamara
491884350c hash len is 20 for xls cryptoapi configuration
Change-Id: I6e06b8578959b8147043179db57e875b1d98d57d
2016-10-20 13:41:03 +01:00
Caolán McNamara
fcf7f503b6 be more c++y
Change-Id: I673b00e111a734bc626ba3d3f6ecf9692f1ce7db
2016-10-20 13:36:03 +01:00
Justin Luth
3ade281c1d tdf#103261 allow postponed text except in .doc
fixes regression from tdf#89317,
commit b39feae4f1.

Change-Id: I0590579997e2c29de171aac91ba4459e0c776cc0
Reviewed-on: https://gerrit.libreoffice.org/29984
Tested-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
2016-10-20 12:32:28 +00:00
Noel Grandin
9ab408277b loplugin:expandablemethodds in sw(part1)
Change-Id: Ic3a558e6b646b6b6bc4cb7e09a00695553023534
Reviewed-on: https://gerrit.libreoffice.org/30073
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-20 12:17:01 +00:00
giacco
35a48ceb1d tdf#95387 UI: "Custom Animation" probably should be called just "Animation"
modifided strings.src

	modified:   sd/source/ui/app/strings.src

Change-Id: I1f31f13d7e88f91510d10c5b9afe31df191dafdc
Reviewed-on: https://gerrit.libreoffice.org/30052
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2016-10-20 12:07:00 +00:00
Miklos Vajna
e2b6ab0bb2 xmlsecurity: add initial PDF sign UI
An unsigned PDF can be signed now, but the stream still gets truncated
on closing the dialog.

Change-Id: I12dd50bf577cd23b3355f6c6d03e71a9c0dbcfab
2016-10-20 13:44:26 +02:00
Stephan Bergmann
77e89962a2 Various loplugin warnings (clang-cl)
Change-Id: I9e3720c86f96abc864a52c0469032132808080a4
2016-10-20 13:40:34 +02:00
Stephan Bergmann
6b93fc9920 Missing include (Windows --disble-pch)
Change-Id: I4cd8bdcd93d1c92aa4983e36566ca8aa7ddec5e3
2016-10-20 13:40:05 +02:00
Stephan Bergmann
a523610467 external/harfbuzz: Silence clang-cl -Werror,-Wmicrosoft-enum-value
The code in harfbuzz' src/hb_common.h apparently goes to some length to ensure
that any value of type hb_tag_t (aka unit32_t) can be transported as a value of
the hb_script_t enum type.  However, under MSVC any C (or non-fixed C++) enum
type has an underlying type of int, so _HB_SCRIPT_MAX_VALUE of value 0xFFFFFFFF
will cause a -Wmicrosoft-enum-value under clang-cl.  To not complicate things
further, acknowledge that converting between hb_tag_t (an unsigned integer type
with 32 value bits) and hb_script_t (a two's-complement signed integer type with
32 value bits) is well-defined under MSVC and drop _HB_SCRIPT_MAX_VALUE (which
appears to be an otherwise unused implementation detail) there.

Change-Id: Ic03dff64a9dd24683c45347fa78699708c269972
2016-10-20 13:28:17 +02:00
Stephan Bergmann
4fb9926ebc Blind fix for "error: chosen constructor is explicit in copy-initialization"
...on linux_clang_dbgutil_64 build

Change-Id: I00022749ce12df459ce22333593daa2eb6503fd7
2016-10-20 13:23:20 +02:00
Stephan Bergmann
b441b2013e loplugin:staticmethods
Change-Id: I439747c98fcdadb59e68756e8b3ae2e305c960cb
2016-10-20 12:59:44 +02:00
Samuel Mehrbrodt
11f6c6d591 Check for enable safe mode earlier
Change-Id: I50e48472bb840c70e9a7c11dd84f33c64d6e1422
2016-10-20 12:48:43 +02:00
Samuel Mehrbrodt
f0006e79c4 Handle link click directly in FixedHyperlink
Change-Id: I5b5f0648b6e6432b0928351a17d285df8c9da811
2016-10-20 12:48:43 +02:00
Jochen Nitschke
168463ed05 fix fallback in ScVbaFormat::getLocked
>>= specialisation for rhs Any is good at hiding stuff:
old code equals to
> util::CellProtection cellProtection;
> aCellProtection = mxPropertySet->getPropertyValue(sCellProt);
> aCellProtection = uno::makeAny( cellProtection.IsLocked );
and would always return Any(false)

Change-Id: Iccbf35f32dd92fbfcf495f11cc993109be2e5e4e
Reviewed-on: https://gerrit.libreoffice.org/29972
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-20 10:21:28 +00:00
Samuel Mehrbrodt
4846c0fed9 Open menu: Simplify inserting menu entries
Change-Id: Ia75f2fe349580003b16735fccf429392d0cf8363
Reviewed-on: https://gerrit.libreoffice.org/30082
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-10-20 10:02:54 +00:00
Samuel Mehrbrodt
e39983fdaf Toolbar Open menu: Insert separator between clear list and open entries
Change-Id: I037c5d09ecb70480f4559697e291c40567fea615
Reviewed-on: https://gerrit.libreoffice.org/30081
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-10-20 10:00:41 +00:00
Samuel Mehrbrodt
eb4ad667b6 Add "Open as Template" to toolbar open menu
Change-Id: Ia8bea19f8f9377f27ab425c335e2a65bd2abcb2b
Reviewed-on: https://gerrit.libreoffice.org/30078
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-10-20 09:57:53 +00:00
Samuel Mehrbrodt
277b551313 Use Application::IsSafeModeEnabled()
Change-Id: I8ca8ceae76b6479a848a618ed141ce29a9c2d84e
Reviewed-on: https://gerrit.libreoffice.org/30077
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-10-20 09:55:16 +00:00
Noel Grandin
85b5ef2809 revert part of "simplify some use of typeid"
commit 553ee72041 is wrong in that typeid
has different semantics to dynamic_cast i.e. is-exactly vs. is-exactly-
or-subtype

checked the other cases to make sure that non of them have any
subclasses

Change-Id: Id045e6d5e80aa1f7ba29a3475514eb0ae5320806
2016-10-20 11:14:59 +02:00
Tor Lillqvist
3e3f490da5 Add some more source files for breakpointing convenience
Change-Id: Ic9b44918a27bf185c534b3705f15a2dac29bc642
2016-10-20 12:12:10 +03:00
Jochen Nitschke
249e66e000 Any can't be nested ...
... don't check for it

Change-Id: I0400ef365fdfcd8e1f516958225ae99289798f21
Reviewed-on: https://gerrit.libreoffice.org/30049
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-20 09:04:45 +00:00
Miklos Vajna
4c76fd79b7 Extract vcl::PDFWriter::Sign() from vcl and xmlsecurity
The use case is different in vcl and xmlsecurity: vcl creates a new PDF
(possibly with a signature), while xmlsecurity signs an existing PDF,
but this part can be shared between the two.

So far in vcl only the nss part is moved, not touching mscrypto yet.

Change-Id: Ie776f622c1a4a3a18e79e78f68722a2fa219a83b
Reviewed-on: https://gerrit.libreoffice.org/30063
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-10-20 09:00:44 +00:00
Noel Grandin
e9ada6294d fix bug in expandablemethods plugin
where using a std::map instead of a std::set meant that it
sometimes miscounted the number of callsites

Change-Id: I1e2ebcf44fe006827e66620ae4c9bbc813835414
2016-10-20 10:49:58 +02:00
Michael Meeks
629bc69708 LOK: hold the solar mutex consistently for document method calls.
(cherry picked from commit eb69d8cb5eb6192de89ca8310a53ae7a434a73d1)

Change-Id: I200dff44b457a1632d99619981e237de73a2a8df
Reviewed-on: https://gerrit.libreoffice.org/30070
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-10-20 08:41:11 +00:00
Miklos Vajna
ef7ab996d8 CppunitTest_desktop_lib: fix valgrind errors
With this, 'make -sr CppunitTest_desktop_lib
CPPUNIT_TEST_NAME="DesktopLOKTest::testPaintPartTile
DesktopLOKTest::testWriterCommentInsertCursor" VALGRIND=memcheck'
finishes with 'ERROR SUMMARY: 0 errors from 0 contexts'.

The problem is that in sw/sc/sd code it's enough to make sure that the
on-stack ViewCallback instances are destroyed after the loaded
component, but in desktop/ code also the emit-callbacks-on-idle code is
under test, so we need to make sure first the LOK document wrapper is
destroyed, and only after that the ViewCallback instances are destroyed.

Change-Id: Ie8361233461d00fd252da929fb912a1a0b835c30
Reviewed-on: https://gerrit.libreoffice.org/30072
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-10-20 08:25:02 +00:00
Noel Grandin
553ee72041 simplify some use of typeid
Change-Id: I92362af5ef25052ec09b10a24c8fe051f6a51134
2016-10-20 10:19:42 +02:00
Tor Lillqvist
e23f54d417 Fix odd compilation error with Clang 3.8.0
Fix "default initialization of an object of const type 'const
ExtensionInfoEntryVector' (aka 'const vector<(anonymous
namespace)::ExtensionInfoEntry>') without a user-provided default
constructor".

Change-Id: I97013ed4660459a3f4c1b8b5b7cc302ba3ff914d
2016-10-20 10:40:30 +03:00
Noel Grandin
d76027bb78 add dumpAsXmlEditDoc
to dump the current editing document to editdoc.xml on F12

Change-Id: I1b9cc2edb6429aa0bf651bdd52cac70dfd4db9d0
2016-10-20 09:06:00 +02:00
Noel Grandin
c2b48a763d loplugin:expandablemethodds in svx
Change-Id: I45447b6f5cf7e17d6e81e8c931b07b26d41b9a8c
Reviewed-on: https://gerrit.libreoffice.org/30057
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-20 06:33:23 +00:00
Noel Grandin
58072c5a7f loplugin:expandablemethodds in svgio
Change-Id: Iac2aa6dae56d96819589d198be5875ecfe14f26f
Reviewed-on: https://gerrit.libreoffice.org/30056
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-20 06:14:11 +00:00
Noel Grandin
40fc2c1a0d loplugin:expandablemethodds in sfx2..starmath
Change-Id: Ia4c411f5a9a68c2f344188ce6b6bc1815c89f993
Reviewed-on: https://gerrit.libreoffice.org/30055
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-20 06:12:24 +00:00
Noel Grandin
e7324c5705 loplugin:expandablemethodds in scaddins..sdext
Change-Id: Ife021e368efaafe9097750b4ca1a5472e94352a9
Reviewed-on: https://gerrit.libreoffice.org/30054
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-20 06:11:51 +00:00
Eike Rathke
0d2797fdb0 Resolves: tdf#85553 intern SharedString of cached external references result
Change-Id: I13f19b5bd5f2897eb48af69742be885803cca066
2016-10-20 00:59:14 +02:00
Armin Le Grand
8c4fdffb20 profilesafe: added xml read/modify to restore
To be able to restore the last saved state of enabled/disabled
extensions it is necessary in SafeMode to get and set that states
without XExtensionManager, so the configuration xml files have
to be accessed. Added this change

Change-Id: I00fe5795598427e7c08be0d3dd54bef68d038e24
Reviewed-on: https://gerrit.libreoffice.org/30062
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2016-10-19 22:41:12 +00:00
Yousuf Philips
ec6a1391d9 tdf#103170 Heikobar: Add it to Calc
Change-Id: I9b7c004558a15f520b54935c2a712fcdb551757e
Reviewed-on: https://gerrit.libreoffice.org/30042
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
2016-10-19 21:41:23 +00:00
Yousuf Philips
e459881f0c tdf#90937 Correct cell style names that are missing a space
Change-Id: I9cb8c82304457108e352063135039bb41863554c
Reviewed-on: https://gerrit.libreoffice.org/30060
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
2016-10-19 21:40:49 +00:00
Eike Rathke
19c46727fd sc-perf: SetFormulaCells: unnecessary number format check in clipboard/undo
Change-Id: Ica7495e95700db2e6be1dd475ec450d8450364a4
2016-10-19 23:34:31 +02:00
Eike Rathke
5f01b29876 sc-perf: StartAllListeners: bail out early in cliboard or undo document
... and do not attempt to execute the overhead for all columns in the range
just to do nothing.

Change-Id: I88d26895cf641e8c71d7ccdf5534de8008070e61
2016-10-19 23:28:31 +02:00
Eike Rathke
dfa92e106f Resolves: tdf#97968 adjust references during Cut&Paste of formula groups
... and split groups for cases where references point outside or into the moved
range.

Change-Id: Iab799e94eed1677f266413b6304651ac4d330e95
2016-10-19 23:05:44 +02:00
Maxim Monastirsky
b420a6ab07 SvxColorWindow_Impl: Unify title setting
Change-Id: Ic61fddfc92d30bfc5a5d0a298605606fba7ca676
2016-10-20 00:01:07 +03:00
Maxim Monastirsky
9d93fe6ca8 Remove RID_SVXITEMS_EXTRAS_CHARCOLOR string
It's the same as RID_SVXSTR_TEXTCOLOR.

Change-Id: I91c4ad0840ec60acbbdd9bbdc70184417cecd82f
2016-10-19 23:58:43 +03:00
Jochen Nitschke
978d4c1197 expand WRITE_PROPERTY macro
in case the property is an Any this commit changes behaviour.
(ComponentData, FilterData and ViewData)
ISSET_%Property% is only true if the property value hasValue(),
before it was always true.

Change-Id: I3bea0bde99938911354f619ac092666199aa2016
Reviewed-on: https://gerrit.libreoffice.org/30038
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-19 19:30:25 +00:00
Jochen Nitschke
7567a4c230 '>>=' with rhs Any is a copy assignment
replace '>>=' operator with '=' where return value is not checked
and simplify. (note: switches lhs with rhs)

Change-Id: I0d283e8786ea996ed80d7aa9d8a4ea930a3d52f8
Reviewed-on: https://gerrit.libreoffice.org/30004
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-19 19:28:18 +00:00
Stephan Bergmann
17cbea4159 loplugin:nullptr, loplugin:redundantcast
Change-Id: Ie7b713a63cec9b714135a2ba840656870596eaef
2016-10-19 20:41:14 +02:00
Giuseppe Castagno
75239b7713 tdf#103274 (10): Add default XCommandEnvironment reference
Change-Id: Ic91553a513656b412bccd73a483ca7d7f131b657
Reviewed-on: https://gerrit.libreoffice.org/30047
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
2016-10-19 17:45:24 +00:00
Miklos Vajna
b86b78e0ad Revert "CppunitTest_desktop_lib: add ModifiedStatus callback testcase"
This reverts commit cdf08b3aa7. It breaks
'make -sr CppunitTest_desktop_lib
CPPUNIT_TEST_NAME="DesktopLOKTest::testPaintPartTile
DesktopLOKTest::testWriterCommentInsertCursor" VALGRIND=memcheck' (it is
terminated by SIGSEGV), and also it's the reason why sometimes the
lo_ubsan buildbot fails, see e.g.
<http://ci.libreoffice.org/job/lo_ubsan/329/console>.

This has to be re-introduced once I find a way to process all binding
updates at once without side-effects.

Conflicts:
	desktop/qa/desktop_lib/test_desktop_lib.cxx
	sfx2/source/control/bindings.cxx

Change-Id: Id6c49b9b31095ef1a1a8c1cd92cbae5deb316500
2016-10-19 19:06:16 +02:00
Olivier Hallot
e91a1abe4c tdf#96015 (part) link to Doc'tation in Help menu
Add the entry "Documentation" to the modules Help menu.

on click, the system browser opens
http://hub.libreoffice.org/documentation/?&LOlang=<locale>

<locale> is obtained from .getLocale()

Patch2: create a member with try/catch for external URLs

Patch3
Use sfx2::openUriExternally
Revert to User Guides.. in UI.

Change-Id: I8332253c31bd3be330cdd794f9e056b632b38037
Patch4: remove 1st '&' in URLs
Reviewed-on: https://gerrit.libreoffice.org/28817
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-10-19 16:07:33 +00:00
Caolán McNamara
af84c70c95 coverity#1371301 Missing move assignment operator
Change-Id: Ibd6d4b52c24989af6872b4eb3c6c585c1e24a4db
2016-10-19 15:49:33 +01:00
Caolán McNamara
e8baf2d2f1 coverity#1371270 Missing move assignment operator
Change-Id: I9a5656fa3a4d4283a1daec957da9d909390d9eb2
2016-10-19 15:49:33 +01:00