Commit Graph

378987 Commits

Author SHA1 Message Date
Noel Grandin
a05d6ac2a2 Revert "create a macro to tidy up the declaration sites of o3tl::typed_flags_set"
sberg did not like this macro, let's see if I can find a better
solution.

This reverts commit e51fa14358.
2015-08-26 08:26:51 +02:00
Lubosz Sarnecki
97bf7c6cc7 vcl OpenGL program: Cache mvp matrix to reduce ~200 api calls per frame.
(cherry picked from commit e3cd97ce0b2e153b8b6812cc66f2e7d33504a7da)

Conflicts:
	vcl/opengl/program.cxx

Change-Id: I86ae50bd8d2148e86a6c8fc0821d3e2bc29a0cd4
2015-08-26 13:50:32 +09:00
Łukasz Hryniuk
4f0bb271c3 tdf#89387 test for LCM function
Change-Id: I3d5eae99427ca68a5121ad43e9f4e7df03ddc23e
Reviewed-on: https://gerrit.libreoffice.org/18005
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-08-26 01:46:23 +00:00
Łukasz Hryniuk
32950e9089 tdf#89387 test for GCD function
Change-Id: Ia9ae1f8583948620b6f496afcadd292671cdc906
Reviewed-on: https://gerrit.libreoffice.org/18004
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-08-26 01:45:59 +00:00
Łukasz Hryniuk
1a5b5750ed tdf#89387 test for SUMX2PY2 function
Change-Id: Id407614c75eb04fb920fcf75d368b070323a0b79
Reviewed-on: https://gerrit.libreoffice.org/18003
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-08-26 01:45:25 +00:00
Łukasz Hryniuk
8e0d49e3b6 tdf#89387 add some strings to CHITEST test
Any string in one of given matrices should result in IllegalParameter
error.

Change-Id: Ia08d879ec109e04021373c34e83f1873be6815c2
Reviewed-on: https://gerrit.libreoffice.org/18002
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-08-26 01:43:55 +00:00
Łukasz Hryniuk
8580f4428d tdf#89387 add some strings to FTEST test
Strings should be omitted by the algorithm, so such test cases are
important (were missed before).

Change-Id: I2e77b2087e398bf27ac71ba4da0b26c66cc08311
Reviewed-on: https://gerrit.libreoffice.org/18001
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-08-26 01:43:02 +00:00
Eike Rathke
b2363e98af implement Edit modify handler, rhbz#1255811 related
Same as in ScStatisticsInputOutputDialog.

Change-Id: I0e3eb06bc86cf77c405c54f312340c7b2551c1ec
2015-08-26 01:41:09 +02:00
Eike Rathke
a88fecdcdb implement Edit modify handler, rhbz#1255811 related
Same as in ScSamplingDialog.

Change-Id: Iff709ec2284673efa8824a9b8cfc037e4d6d567a
2015-08-26 01:41:08 +02:00
Eike Rathke
da9ecf1a59 implement Edit modify handler, rhbz#1255811 related
Same as in ScRandomNumberGeneratorDialog.

Change-Id: I1bc9296bfc8b1b2b8f3fc20183e2c626f94dee09
2015-08-26 01:41:08 +02:00
Eike Rathke
ad1284df59 Resolves: rhbz#1255811 implement Edit modify handler
... and disable/enable Apply/Ok buttons for in/valid ranges.

Change-Id: I52b5eae2f34e3fca7c0761b14124477a0d160b01
2015-08-26 01:41:07 +02:00
Tor Lillqvist
162264450c Don't claim we support strings arguments in the OpenCL VLOOKUP
The string support certainly isn't complete or correct
anyway. Partially revert c3383aafa1.

Change-Id: Ica86f39daf864a1a62d92f8d8300d75d020c0ee0
2015-08-25 21:42:14 +03:00
Michael Meeks
74bc7cb59c tdf#93614 - detect hanging OpenGL drivers with a watchdog.
If an OpenGL zone takes >2s to make progress, disable OpenGL.
If an OpenGL zone takes >5s to make progress, abort the app.

Change-Id: I776c06a3f8ba460ff9842a9130c21f9ee2147eee
Reviewed-on: https://gerrit.libreoffice.org/17986
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-08-25 17:08:46 +00:00
Tor Lillqvist
7bb7539c0e Add VLOOKUP to the set of opcodes that we trust the OpenCL implementation for
Change-Id: I937ec900044bbc6027ff8d4ae37f2f275dde974f
2015-08-25 19:35:29 +03:00
Tor Lillqvist
41a6094095 Produce the expected N/A error code in the OpenCL VLOOKUP implementation
Instead of a bare NaN.

Change-Id: I170c540478315eedd23f5851d54c30175d21ef96
2015-08-25 19:35:19 +03:00
Caolán McNamara
5da016f5e7 Revert "disable test case pending index assert fix"
This reverts commit af9751a760.
2015-08-25 16:54:02 +01:00
Caolán McNamara
d9edac5d58 behave like the native format filter for non-insert mode
just shove the unneeded pam into dead space

Change-Id: Id0a3d550cd9d54394888e6b2d62e21eaded24a7c
2015-08-25 16:54:01 +01:00
Caolán McNamara
3d992d77d8 we only need the PaM for its Point and only to create a uno cursor
so do that in the ctor and drop the arg from a bunch of places

Change-Id: Iaad71e9854b38d8632df057dfe9c96468d1d0098
2015-08-25 16:54:01 +01:00
Tor Lillqvist
32b35d9d8a Return correct value from the OpenCL VLOOKUP implementation
The commit c3383aafa1 was missing an !
operator in two places where it checks whether a cell is a numeric or
string one, resulting in it always using the string value, which for
NULL (the case I was looking at, only numeric cells in the array)
meant zero was returned.

As such I am not sure if it is entirely correct to do the check
whether a cell is a numeric or string value in the order the generated
OpenCL code does here (and all over the place perhaps). The
documentation in <formula/vectortoken.hxx> says:

 * Single unit of vector reference consists of two physical arrays.
 *
 * If the whole data array consists of only numeric values, mpStringArray
 * will be NULL, and NaN values in the numeric array represent empty
 * cells.
 *
 * If the whole data array consists of only string values, mpNumericArray
 * will be NULL, and NULL values in the string array represent empty
 * cells.
 *
 * If the data array consists of numeric and string values, then both
 * mpNumericArray and mpStringArray will be non-NULL, and a string cell will
 * be represented by a non-NULL pointer value in the string array.  If the
 * string value is NULL, check the corresponding value in the numeric array.
 * If the value in the numeric array is NaN, it's an empty cell, otherwise
 * it's a numeric cell.

Note how that implies one should first check whether the value in the
string array is NULL or not, and only if it is NULL, look at the vale
in the numeric array. The code in the generated OpenCL VLOOKUP
implementation does it backwards. Scary. But probably equivalent for
the subset of cases we actually handle in OpenCL, which (I think) are
those where no string cells are involved.

More bug fixes for the OpenCL VLOOKUP will follow.

Change-Id: Id567c245a0700267584be6032320863a4a66df83
2015-08-25 18:26:31 +03:00
Olivier Hallot
567471e0b6 Updated core
Project: help  fff841e50d4e1b36453820b66f150d708ebfff2b

TDF#80588 Help page for Basic IDE Options

Help page for Basic IDE Option in Tools - LibreOffice - Basic IDE Options

Before merging this patch it is necessary to verify correctness of the help page contents.

Change-Id: Ic80410910ed3eadb02c4fd49c02fc5f1dce053db
Reviewed-on: https://gerrit.libreoffice.org/17356
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-25 15:12:33 +00:00
Dennis Francis
20618ddc27 fixes a memory leak that appeared in tdf#93392 valgrind trace
Change-Id: Ifd4c6594d50ff63235e75049bc7ab8bc79606fc8
Reviewed-on: https://gerrit.libreoffice.org/17880
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-25 15:11:34 +00:00
Julien Nabet
ad8e2baf68 tdf#93351: Edit style button in Schema & Numbering should point to List styles
Related to http://cgit.freedesktop.org/libreoffice/core/commit/?id=e38f63d861715fb56f41af82b897c2128ea20b38

Change-Id: I4ede777207fe42dede6e82c7399189354f182f6a
Reviewed-on: https://gerrit.libreoffice.org/17924
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-08-25 13:38:28 +00:00
Michael Meeks
2f31a4c1e8 tdf#92213 - avoid potential crasher from unusual idle handler.
Change-Id: Id5715f8753d17b3955ac87b9260318ac56e64a08
2015-08-25 14:42:57 +01:00
Andrzej Hunt
14323c7493 Update title of Conditional Format dialog when range modified
Previously the title was set during construction as e.g.
"Conditional Format: A2:B245"

However the selected range can be modified while the dialog is open,
hence we update it whenever the selected range is modified.

Change-Id: I63790108553102cedb51ca32d672a62477493660
Reviewed-on: https://gerrit.libreoffice.org/15711
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-08-25 13:32:19 +00:00
Tobias Lippert
1979c48bf9 tdf#68016 Speed up ScChart2DataSequence by caching addresses
The lookup of getNumberFormatKeyByIndex() is sped up by storing the
addresses into the cached data array m_aDataArray.

The existing cache invalidating strategy should hold since the
cache was already storing information about hidden fields and
ranges, which is the information which affects the addresses.

Also: Change data type of m_aDataArray from std::list to std::vector to
allow index-based access.

Also: Change for-loops over m_aDataArray to range-based loops with auto
variables to make them more readable

Change-Id: I9a5038892a384e7d5e72556a52faaf98b475a839
Reviewed-on: https://gerrit.libreoffice.org/16485
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-08-25 13:30:06 +00:00
Tor Lillqvist
d4310b6cd8 Cosmetics
Try to use some sane consistent formatting in this function. No semantic
change.

Change-Id: Ic9e4625c910f826246451e8ff9e18d6131c04a78
2015-08-25 15:47:57 +03:00
Tor Lillqvist
7e91726f4d Treat an array of null string pointers as no strings for OpenCL
For some reason, at least in the case of the "Test OpenCL" thing, we get here
an mpStringArray that is non-null but where all the elements (rtl_uString
pointers) in it are null. Treat that case as if the mpStringArray was null.

This makes the tests "Test OpenCL" actually use OpenCL. Maybe it has other
useful effects, too. (But for normal spreadsheet use, the mpStringArray that
gets handled here *is* null when all the cells used by a formula group are
numbers. At least it seemed so in a simple test.)

Also add more useful (?) SAL_INFO calls in the area.

Change-Id: I1388786a3a0765af6eb01a63da31e5b83c7a616d
2015-08-25 15:47:19 +03:00
David Tardon
737e2061cc upload libwps 0.4.1
Change-Id: I53dc6d358952a046a4c1f03246441742dfa3d685
2015-08-25 14:16:58 +02:00
Stephan Bergmann
dea1d492db typo
Change-Id: I555d4b79a61b371a39ad0f0b76c2d34c22414962
2015-08-25 14:15:01 +02:00
Stephan Bergmann
6d39088c8f Remove redundant @since tag
Change-Id: Icc3e913d4150e724c87e8293f7b641ee8ca19177
2015-08-25 14:14:02 +02:00
Laurent Godard
c609b30b12 sidebar uno api corrections
Change-Id: I1bd1040cc80c0450a5e029c37f0737c0692c056a
Reviewed-on: https://gerrit.libreoffice.org/17952
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-08-25 12:08:57 +00:00
Mark Hung
65a66d41fd Fix tdf#77881,tdf#80520,tdf#89525 bulllets lost issue.
Replace bullet char before write out font description
since it may be altered if bullet font has been changed
(i.e. StarSymbol to WingDings ).

Change-Id: I0461cc0a5e4628b36177602bba7ed7f74a0751eb
Reviewed-on: https://gerrit.libreoffice.org/17376
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-25 11:59:38 +00:00
Mark Hung
b14861e1df Fix tdf#77514 CJK ruby text in RTL( vertical ) base line issue.
Change-Id: Id670e83db01efe6bcd5fb6bb374ab9cb92898f88
Reviewed-on: https://gerrit.libreoffice.org/17460
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-25 11:58:06 +00:00
Mark Hung
43679f94b4 Fix tdf#80224 Custom text color changed to black on .PPTX export
1) Indirect property values were ignored, now they are used.
2) Write endParaRPr so that PowerPoint display them.
3) Automatic colors are written as white or black based on
   whether background is dark.

Change-Id: I255c16f35149b738be2daf2800b1c90389f2c7cf
Reviewed-on: https://gerrit.libreoffice.org/17472
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-25 11:55:05 +00:00
Christian Lohmaier
3ac03b3f27 Updated core
Project: help  67285d99b8c9373ba3fa992679353ee1a5bc4da9

typo "Navigator displays" → "The Navigator displays"

via pootle-feedback

Change-Id: I25578b8a780e607ce553e17289d96cdc7185577e
2015-08-25 11:13:33 +00:00
Eike Rathke
76bc0e061b tdf#93468 add Arpitan (Switzerland) [frp-CH]
Change-Id: Icb96b45c936b974938c2dfae48960f727a1dc84d
2015-08-25 12:58:42 +02:00
Caolán McNamara
cc596d8d0f ensure editeng str len is in sync with attributes
for the duration of inserting attributes, and excess
dos newline chars can be removed safely afterwards

Change-Id: If70e34fec1c0819f827f483d3d7ac4f19b3caef8
2015-08-25 11:31:18 +01:00
Maxim Monastirsky
882604ad95 Some cleanup
Change-Id: Ia22866225b2a726ed69c9f18d02d1ebffdafde8f
2015-08-25 13:26:59 +03:00
Yousuf Philips
c936d690a6 Correct icon for number format in Calc's sidebar
Change-Id: Icc5958d77277c6938b8a03ef44dfd71b9350e288
Reviewed-on: https://gerrit.libreoffice.org/17978
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-08-25 10:12:17 +00:00
Stephan Bergmann
662498ab80 Avoid overflow in PBMReader::ImplReadHeader
...as found by UBSan in CppunitTest_filter_ppm_test on
filter/qa/cppunit/data/pbm/fail/crash-1.pbm

Change-Id: Ib7c50ef1f07aba6b78f79c608be69c3dac38ddfe
2015-08-25 12:01:52 +02:00
Stephan Bergmann
6373886870 Handle non-aligned FFNs
...as found by UBSan in CppunitTest_sw_filters_test (see below), and at the same
time limit reads within the pA array to its bounds.

> Testing file:///.../sw/qa/core/data/ww6/pass/crash-2.doc:
> sw/source/filter/ww8/ww8scan.cxx:6473:32: runtime error: upcast of misaligned address 0x6200000e70e7 for type 'WW8_FFN_Ver6', which requires 2 byte alignment
> 0x6200000e70e7: note: pointer points here
>  00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 0e 00 00 6a 00  00 00 00 0e 00 00 6a 00  00 00 6a
>              ^
>  WW8Fonts::WW8Fonts(SvStream&, WW8Fib&) sw/source/filter/ww8/ww8scan.cxx:6473:32
>  SwWW8ImplReader::CoreLoad(WW8Glossary*, SwPosition const&) sw/source/filter/ww8/ww8par.cxx:4961:20
>  SwWW8ImplReader::LoadThroughDecryption(SwPaM&, WW8Glossary*) sw/source/filter/ww8/ww8par.cxx:5767:19
>  SwWW8ImplReader::LoadDoc(SwPaM&, WW8Glossary*) sw/source/filter/ww8/ww8par.cxx:6039:19
>  WW8Reader::Read(SwDoc&, rtl::OUString const&, SwPaM&, rtl::OUString const&) sw/source/filter/ww8/ww8par.cxx:6157:20
>  SwReader::Read(Reader const&) sw/source/filter/basflt/shellio.cxx:175:18
>  SwDocShell::ConvertFrom(SfxMedium&) sw/source/uibase/app/docsh.cxx:258:22
>  SfxObjectShell::DoLoad(SfxMedium*) sfx2/source/doc/objstor.cxx:790:23
>  SwFiltersTest::filter(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) sw/qa/core/filters-test.cxx:112:20
>  SwFiltersTest::load(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int) sw/qa/core/filters-test.cxx:71:12
>  test::FiltersTest::recursiveScan(test::filterStatus, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) unotest/source/cpp/filters-test.cxx:129:20
>  test::FiltersTest::testDir(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) unotest/source/cpp/filters-test.cxx:154:5
>  SwFiltersTest::testCVEs() sw/qa/core/filters-test.cxx:154:5

Change-Id: I31ac8dc11d985745785c9dda1cec8a11a41098bb
2015-08-25 12:01:51 +02:00
Noel Grandin
fab18ef350 parameter names are useless in DECL_LINK declarations
Change-Id: I77f7b528ed97964bdc153f820f6f96977ddb9254
2015-08-25 11:23:45 +02:00
Caolán McNamara
d68539562a misplaced brace
Change-Id: I6e43fd4a4b45f0217de8b6d93ef2403e46e39489
2015-08-25 10:08:56 +01:00
Thorsten Behrens
6bdd93e356 vcl: disable randomly failing timer unit tests
Change-Id: Iab26a2b55586fc824c5edbea519c4f68ba4a548f
2015-08-25 11:04:38 +02:00
Tor Lillqvist
9a68eb9c1f Turn on glyph caching by default when using OpenGL
Can now be turned off with a SAL_DISABLE_GLYPH_CACHING environment variable.

Change-Id: I7ac14d72dc0f85c0682d92492eb96bec1d207609
2015-08-25 11:55:40 +03:00
Caolán McNamara
af9751a760 disable test case pending index assert fix
Change-Id: Ic48e22169dff2ed06b75af519ca39addef7d07de
2015-08-25 09:23:21 +01:00
David Tardon
6b0585a5b7 upload libmwaw 0.3.6
Change-Id: I09249673d42d36bf72ee1ffbf8f3f37734bd8bae
2015-08-25 10:03:11 +02:00
David Tardon
51adbedb84 astyle
Change-Id: I597c007e4636f6b05873f24ef3e89c0a7c2c3670
2015-08-25 10:03:11 +02:00
Noel Grandin
2a0f9f0891 simplify some declarations
Change-Id: I348e7f984e5e8b4b915d11de8182da07a6356f8d
2015-08-25 09:58:32 +02:00
Noel Grandin
b3705c21e1 SvResizeHelper::ValidateRect, simplify logic
Change-Id: Ie1c9891e8095172f53efc027eec9a68bde39ed1f
2015-08-25 09:58:32 +02:00