Commit Graph

409034 Commits

Author SHA1 Message Date
Stephan Bergmann
9614f12bae missing include
Change-Id: Id016d56f4ce36f07c86cf7d028f5e6beaafd3dff
2017-06-09 16:26:49 +02:00
Eike Rathke
3c1158b19e Add unit test for COUNTIFS and AVERAGEIFS in array context
To cover different code paths and use of sc::ParamIfsResult::mfCount

Change-Id: I7d0cfa9de3ac5460822c4d5075de54791f7abff8
2017-06-09 16:07:52 +02:00
Noel Grandin
1dd5e226bd clang-tidy readability-non-const-parameter
Change-Id: I7b2680898dbfc49185fb949349d81f4ac615a470
Reviewed-on: https://gerrit.libreoffice.org/38593
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-09 15:05:54 +02:00
Noel Grandin
027b25ecd5 use comphelper::InitPropertySequence in more places
Change-Id: I72d7b13a23ce306b752b39187a0e9fbb7028643a
Reviewed-on: https://gerrit.libreoffice.org/38606
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-09 14:24:00 +02:00
Eike Rathke
f59e802478 Add unit test for SUMIFS in array context
Change-Id: I5318ab8bb4d896f3c936ec8d04eba3908b59861a
2017-06-09 14:11:13 +02:00
Jochen Nitschke
e78d128e3b UnoControls: replace double checked locking patterns
with thread safe local statics

Change-Id: I6ba88ffc3b3489bfe4dce17c4297312dd9765f2e
Reviewed-on: https://gerrit.libreoffice.org/38594
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-09 13:40:37 +02:00
Caolán McNamara
86338ee6aa missing STR_SAVEACOPY_SRC resource
since initial

commit 7061e8403a
Date:   Wed Apr 3 21:05:12 2013 +0200

    fdo#60780, refactor Save a Copy and fix

Change-Id: Iff4f1008b8f8682e6f9751141ed65720362563ad
Reviewed-on: https://gerrit.libreoffice.org/38601
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-06-09 13:35:37 +02:00
Bernhard Widl
b31bd21a5a tdf#39468 translate german comments in sw/* (except source/filter)
Change-Id: I51126f690b5b66d171e19b82fa4ff24ff5930203
Reviewed-on: https://gerrit.libreoffice.org/38598
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-06-09 13:13:41 +02:00
Michael Meeks
6c6992f800 Add --script-cat parameter to dump scripts content.
Also factor out over-long print method into its own helper.

Change-Id: Ica98dc9c999d5655e78662774e0140d70369d0b7
Reviewed-on: https://gerrit.libreoffice.org/38579
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2017-06-09 11:00:14 +02:00
Szymon Kłos
15957e1440 VML: EMU to Points conversion
Change-Id: Icd2dbd6e894975615268dc4aa52d1d53bf9c0bca
Reviewed-on: https://gerrit.libreoffice.org/38581
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-06-09 10:43:20 +02:00
Stephan Bergmann
bafdfa1f5a Avoid overflow in subtraction
Change-Id: Ib92239fd9b347efbeeeef9661a1a9180445e7739
2017-06-09 10:42:27 +02:00
Caolán McNamara
ba3df20206 missing STR_TBL_FORMULA resource
since

commit c3a98155ed
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Tue Oct 11 16:33:17 2016 +0100

    de-src writer formula toolbar

Change-Id: I7ab31f19d36102978ac2535da03ed15c14ce5f47
Reviewed-on: https://gerrit.libreoffice.org/38573
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-06-09 10:27:34 +02:00
Stephan Bergmann
600ec501ba Avoid UBSan warning about negative double -> sal_uInt32 conversion
Since ea890b1d4b "tdf#108408: support unit
specifications for ST_HpsMeasure", the OOXMLUniversalMeasureValue ctor is
converting textual data to mnValue via intermediary double instead of sal_Int32,
so textual data representing negative values now triggers UBSan warnings (e.g.,
"writerfilter/source/ooxml/OOXMLPropertySet.cxx:630:43: runtime error: -70 is
outside the range of representable values of type 'unsigned int'" during
CppunitTest_chart2_export; it appears that, while HpsMeasure may be documented
to only cover positive values, TwipsMeasure may be negative).

But OOXMLUniversalMeasureValue::mnValue is apparently only used in
OOXMLUniversalMeasureValue::getInt, to return an int value, so just change its
type.

Change-Id: I44eabb78f09100c05cc9d1e79a739648f34ea743
2017-06-09 10:11:02 +02:00
Miklos Vajna
10ea757b0d external: drop mingw bits from ExternalPackage_xmlsec
Change-Id: Icd0526c0bf0183b80bc4c098e3307574b8b8bb8b
Reviewed-on: https://gerrit.libreoffice.org/38592
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-06-09 10:03:39 +02:00
Mike Kaganski
ea890b1d4b tdf#108408: support unit specifications for ST_HpsMeasure
w:ST_HpsMeasure is defined in ECMA-376 5th ed. Part 1, 17.18.42 as

  This simple type specifies that its contents contain either:
  * A positive whole number, whose contents consist of a measurement in
    half-points (equivalent to 1/144th of an inch), or
  * A positive decimal number immediately followed by a unit identifier.
  ...
  This simple type is a union of the following types:
  * The ST_PositiveUniversalMeasure simple type (§22.9.2.12).
  * The ST_UnsignedDecimalNumber simple type (§22.9.2.16).

This patch generalizes OOXMLUniversalMeasureValue to handle standard-
defined units, and introduces two typedefed specifications:
OOXMLTwipsMeasureValue (which is used where UniversalMeasure was
previously used), and new OOXMLHpsMeasureValue.

Unit test included.

Change-Id: Iccc6d46f717cb618381baf89dfd3e4bbb844b4af
Reviewed-on: https://gerrit.libreoffice.org/38562
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-06-09 07:46:34 +02:00
Justin Luth
fdfdea4d5a tdf#82173 writerfilter: apply char properties to footnote
The char property values as defined in w:rPr were not connected
to the in-text footnote or endnote.

Change-Id: I7729c534879e59ff5c9500dd1b16f9f1476abd76
Reviewed-on: https://gerrit.libreoffice.org/38372
Reviewed-by: Justin Luth <justin_luth@sil.org>
Tested-by: Justin Luth <justin_luth@sil.org>
2017-06-09 07:35:18 +02:00
Eike Rathke
691d1e90f6 Too many aRes..., rename aResArray to vConditions
Change-Id: Ic514a4fe34b2f9658bae61ecb4cc5c3c8361669b
2017-06-09 02:34:57 +02:00
Gabor Kelemen
f5eae04d7a tdf#107700 Translate some less common font style names
These are used in at least on of the free fonts we bundle.
Also translate a stray German comment :)

Change-Id: I3f4d83001bcfc3a8b3d490e56d9e538a8d892f0c
Reviewed-on: https://gerrit.libreoffice.org/38476
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-06-08 23:15:06 +02:00
Katarina Behrens
b96174fac5 tdf#107087: Select bitmap fill from preset list
Also remove member variable that is used just once

Change-Id: I369299aed75a3b44048aa09ba86b79e552cf6d14
Reviewed-on: https://gerrit.libreoffice.org/38551
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-06-08 23:14:13 +02:00
Julien Nabet
c1567aa18a Typo: F9 should be mapped with KEY_F9
Like this since mapping added:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=75fbed472cd689c8cc0b89e13a97969d77a0ea7c
(2012-03-05)

Change-Id: I8243080257c7a116207293426c2a8b840324859b
Reviewed-on: https://gerrit.libreoffice.org/38582
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-06-08 22:23:00 +02:00
Jens Carl
11a0bcb30c tdf#39468 Translate German comments/terms in sw/source/filter/html/swhtml.cxx
Eighth set of translation.

Change-Id: I3073ba38fac7d05d4cff4ddc43c08463ed8f76da
Reviewed-on: https://gerrit.libreoffice.org/38560
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-06-08 22:08:34 +02:00
Eike Rathke
c479912ffc With reference lists there can be more than 255 queries
Change-Id: Ia5dc32fbcd8ad738d5ec0f20cc233b58fcadc882
2017-06-08 21:27:28 +02:00
Eike Rathke
27c5f25868 Add '~' reference union/list operator to range finder delimiters
... so formula expressions using it actually get the ranges highlighted.

Change-Id: Ibb0d2b49101e62b1f219a14d1669a501a450aaf4
2017-06-08 20:40:14 +02:00
Eike Rathke
5ac74f15dc Remove a TODO and explain
Change-Id: Ic648fd2b0a1424aa5ae5d924b29dfd2cb8dddbf9
2017-06-08 20:40:14 +02:00
Varun Dhall
112a825664 EditEngine: Added ODF_TEXT_FLAT copy/paste for sd
Change-Id: I23777477d31f30ee18ee8926a8f3170505f74264
Reviewed-on: https://gerrit.libreoffice.org/38535
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-06-08 20:36:50 +02:00
Varun Dhall
b0f0096fbb EditEngine: Added ODF_TEXT_FLAT paste for sc
Change-Id: I40acd32229faa9a4ec9941592a4a952b7d05ef01
Reviewed-on: https://gerrit.libreoffice.org/38464
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-06-08 20:36:21 +02:00
Tor Lillqvist
c8bc586918 Take FormulaTokenArrayPlainIterator into use in one more place
Change-Id: If81494b9279d3c1f2c3887097f1b0036c18cab78
2017-06-08 19:37:12 +03:00
Tor Lillqvist
cf7fbfa496 Take FormulaTokenArrayPlainIterator into use in one more file
Change-Id: I94b8054cc978c04ae994380ea0c564a4b16de26d
2017-06-08 19:37:11 +03:00
Tor Lillqvist
6e257b03e1 Take FormulaTokenArrayPlainIterator into use in one more place
Change-Id: I70e3bd1129da76e11b5f71b1b56d79898eb3d5be
2017-06-08 19:37:11 +03:00
Tor Lillqvist
f0e5791a5a Take FormulaTokenArrayPlainIterator into use in one more file
Change-Id: Ib7f9b3961a3885be8c39ec5a20e7f383ecc9cc37
2017-06-08 19:37:11 +03:00
Tor Lillqvist
90435528f4 Forgot FormulaTokenArrayPlainIterator::GetNextName()
Change-Id: I3a485518be1372c9c56137c35cefdbc8d0362fe4
2017-06-08 19:37:10 +03:00
Stephan Bergmann
45a7f5b62d Keep WID ranges sorted, and join adjacent ones
...to stop CppunitTest_sd_dialogs_test failing with

> cppunittester: /data/sbergman/lo-san/core/svl/source/items/itemset.cxx:678: void SfxItemSet::MergeRange(sal_uInt16, sal_uInt16): Assertion `!pRange[2] || (pRange[2] - pRange[1]) > 1' failed.

(and whyever that only started to hit now)

Change-Id: Iadb5538b8b10182ddf5dbe02d34d7c73c7d62a14
2017-06-08 18:30:38 +02:00
Stephan Bergmann
bd5a895c2b DbgCheckItemSet is gone
...since 87c9465262 "Bin unused function
DbgCheckItemSet"

Change-Id: I109598dc5e087697d77b96a0ba2fb178d47b3aa6
2017-06-08 16:40:12 +02:00
Eike Rathke
a5c1b12bc2 Redundant nColSize,nRowSize, use nDimensionCols,nDimensionRows, tdf#58874 prep
We guarantee that all references are of same size.

Change-Id: I61888a257691f902cb958741f6b63779d9744e10
2017-06-08 14:55:51 +02:00
Yousuf Philips
dc31c2335b tdf#81475 Add separator before clone formatting button
Also add some useful hidden commands for easy access for users to enable

Change-Id: I28806047f2fac51995d88b7c204d54479471aa29
Reviewed-on: https://gerrit.libreoffice.org/38552
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2017-06-08 14:55:23 +02:00
Stephan Bergmann
b5594f06c4 Cater for UNO (signed) vs. BASIC (unsigned) byte mismatch
See <https://listarchives.libreoffice.org/global/users/msg51243.html>
"[libreoffice-users] type byte in Basic", where

> Sub Main
>   dim oOutputStream as variant
>   oOutputStream = createUnoService("com.sun.star.io.SequenceOutputStream")
>   dim nA as byte
>   nA = 195
>   oOutputStream.writeBytes(array(nA))
>   oOutputStream.flush
>   dim back(0) as byte
>   back = oOutputStream.getWrittenBytes
>   MsgBox(back(0))
> End Sub

failed with "Inadmissible value or data type. Overflow." instead of showing
"-61".

Change-Id: I0445476c67510d5f8669a6e711e92332c01ec06c
2017-06-08 14:48:25 +02:00
Katarina Behrens
2e11bbd288 tdf#105566: Account for 'signature used to be ok but isn't anymore'
because the user has modified the document

Change-Id: Ib32ea2ff41f41a81c9a382585f6afbec12fe6a35
Reviewed-on: https://gerrit.libreoffice.org/38284
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-06-08 14:44:25 +02:00
Mohammed Abdul Azeem
0632208977 First cut at moving unzipping into new thread:
XBufferedThreadedStream class buffers data in a new thread,
which will be available to be read from parent thread.

Change-Id: I62d367fa1dec23da39aba24b5c765b57707956bb
Reviewed-on: https://gerrit.libreoffice.org/38135
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2017-06-08 14:27:45 +02:00
Mohammed Abdul Azeem
d21a675d3a Fixing loose ends for multithread Sync in package/:
Mutexes in different classes operate exclusively, which might
cause sync problem when multithreads are involved. This
patch shares the mutex across all classes that share
the underlying stream.

Change-Id: I57e549fb7c375f93955bf54886b91b1892db1e27
Reviewed-on: https://gerrit.libreoffice.org/38563
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2017-06-08 12:50:17 +02:00
Samuel Mehrbrodt
630186ff4e tdf#106366 Show infobar for all read-only documents
Except those who were set open r/o with the File->Properties checkbox

Change-Id: Id44daac364cae73636b6f1c051521928743b88f4
Reviewed-on: https://gerrit.libreoffice.org/36258
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-06-08 12:47:54 +02:00
Miklos Vajna
9e87a00e11 oox: replace PUT_PROP macro with comphelper::makePropertyValue() calls
This way it's not necessary to state the size of the array in advance,
which is kind of redundant. It's also easy to forget to adjust it when
adding new elements.

Change-Id: I5fe24fd24954afb69ead014941b8f8b90bcaeac3
2017-06-08 12:31:12 +02:00
Miklos Vajna
8c59cfb6aa uitest: disable failing part of manual_tests/calc.py
Fails here on Linux dbgutil like this:

======================================================================
ERROR: test_validation (calc.ManualCalcTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "uitest/manual_tests/calc.py", line 133, in test_validation
    self.ui_test.execute_blocking_action(enter_text, "ok", args=("B6", "2.18"))
  File "uitest/uitest/test.py", line 191, in execute_blocking_action
    raise DialogNotExecutedException("did not execute a dialog for a blocking action")
uitest.test.DialogNotExecutedException: Dialog not executed for: did not execute a dialog for a blocking action

Change-Id: I2004eb52ce0846ada7ed38dc19d71258d2272ad5
2017-06-08 12:31:11 +02:00
Caolán McNamara
6414389f8d nPoolId already points to STR_POOLCOLL_TOX_AUTHORITIES1 at this point
#define STR_POOLCOLL_TOX_AUTHORITIESH   (RC_POOLCOLL_REGISTER_BEGIN+ 29)
 #define STR_POOLCOLL_TOX_AUTHORITIES1   (RC_POOLCOLL_REGISTER_BEGIN+ 30)

in the context of

switch( m_eType )
...
case TOX_AUTHORITIES  : nPoolId = STR_POOLCOLL_TOX_AUTHORITIESH;    break;

SetTemplate( 0, SwResId( nPoolId++ ));

already results in a nPoolId of STR_POOLCOLL_TOX_AUTHORITIES1 when we enter this
loop, so don't need to special case TOX_AUTHORITIES

Change-Id: Ic41596a85c48d080cd38003663b729583f08ff98
Reviewed-on: https://gerrit.libreoffice.org/38561
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-06-08 11:59:05 +02:00
Stephan Bergmann
c1f9292b96 Fix build after f1454b474d
..."tdf#45904 Move java XCellSeries test to c++".

For one, the XCellSeries tests needed to be removed from
qadevOOo/objdsc/sc/com.sun.star.comp.office.ScTableSheetObj.csv, now that those
tests are done in C++.  (Plus some clean-up in
qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java and
sc/qa/unoapi/knownissues.xcl that was missing from
f1454b474d9248d7ef2cb84f396a974184e5167e.)

But for another, qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellCursorObj.csv
and qadevOOo/objdsc/sc/com.sun.star.comp.office.ScCellRangeObj.csv still list
XCellSeries tests (which apparently have not been superseded with C++ tests),
so partially revert f1454b474d to get back
qadevOOo/tests/java/ifc/sheet/_XCellSeries.java needed by those tests.

Change-Id: I09f756fb804dafee3064947abcfb796db4797b32
2017-06-08 11:28:20 +02:00
Stephan Bergmann
c1a276e8e7 Improve error reporting
Change-Id: I28459b157411b4ab5b10a25e017a0a7208e09aed
2017-06-08 11:27:42 +02:00
Noel Grandin
22cf682963 clang-tidy performance-type-promotion-in-math-fn
Change-Id: I71405f1dbf0a1524e4e367ae5e05edaf6a8e98b8
Reviewed-on: https://gerrit.libreoffice.org/38559
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-08 10:54:50 +02:00
Aron Budea
4df450c276 tdf#99074: export Web view to DOCX
...so document saved in Web view shows in Web Layout in Word.

Change-Id: If39d566be02966fe5d22f74aee46e6d5452a9451
Reviewed-on: https://gerrit.libreoffice.org/38469
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-06-08 09:22:59 +02:00
Szymon Kłos
f6f52c526c Watermark: VML export/import font size
Change-Id: I11409dfc621018a761c70a640938e18ae679d3f5
Reviewed-on: https://gerrit.libreoffice.org/38254
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-06-08 09:22:19 +02:00
Stephan Bergmann
d72d2a7c98 -Werror,-Wunused-private-field
Change-Id: Ia9bf97f10771dad5ecf1c3a9638384a80b65b181
2017-06-08 09:17:47 +02:00
Jochen Nitschke
e4f6840d09 framework: replace double checked locking patterns
with thread safe local statics.

Change-Id: I660f6a899d1821bab627ed4972c4fc0d40610de2
Reviewed-on: https://gerrit.libreoffice.org/38541
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-08 09:01:42 +02:00