Commit graph

381930 commits

Author SHA1 Message Date
Miklos Vajna
a01f3bfd0c sw: prefix members of SwXStyleFamily
Change-Id: Ifa56b2ea81798d8a5e347bfbabc304bd83b8ac66
2015-10-16 09:07:47 +02:00
Oliver Specht
ac427caf10 tdf#95091: enable delete and backspace in editable elements within protections
when editing is enabled also delete and backspace should be possible
this applies e.g. to input fields within protected sections

Change-Id: Iee5ef133971a3f2967e6c92e685a16afa003cfe8
Reviewed-on: https://gerrit.libreoffice.org/19399
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-10-16 05:12:54 +00:00
Eike Rathke
b684090d4f unit tests for formula error propagation, tdf#94869 related
Change-Id: Ia80de96f40d0abe391a530f74ef2b17a1dc2baae
2015-10-16 02:36:38 +02:00
Eike Rathke
07bc49b431 Resolves: tdf#94869 propagate error from scalar double to matrix
Minimal invasive fix for the problem, further work on error propagation
in array/matrix cases may be needed.

Change-Id: Ia6a7fe8138b98b78ffbe89572eb51ab8e9c0fdca
2015-10-16 00:27:04 +02:00
Jan Holesovsky
468b55301f tdf#95095: Don't create thumbnails on load.
Creating thumbnails is quite an expensive operation, so let's avoid that on
load, and do that only on the document save or document close.

In case the user chooses not to save a modified document, thumbnail is not
generated which can lead to document that has no thumbnail; but that's
probably a good tradeoff for the speedup.

Change-Id: I61bf5ec3fae9596e87963ac7a28ba6e4e52c4e99
2015-10-15 21:44:32 +02:00
Stephan Bergmann
bd2f6ab505 Reuse FRound from tools/helpers.hxx
Change-Id: I74ec4fc6a685c59dbc79978bf8a9afff0a1f9501
2015-10-15 21:42:59 +02:00
Markus Mohrhard
7b3e0aa8ad add test for tdf#88179
Change-Id: I8407a05e89129b533f62439d3ffedecd3248ec87
2015-10-15 20:10:29 +02:00
Markus Mohrhard
65dedbd9c7 store external range names in the cache, td#88179
Change-Id: I00b41f9b1fc2aec6f66c613cc02328b2968dca8d
2015-10-15 20:10:28 +02:00
Caolán McNamara
04a7df738a coverity#1327168 see if stock SuppressWarnings is sufficient to
silence UrF: Unread field, some sources online suggest that it
might be the case

Change-Id: I2287da343e97bec93e0aaf7a82a408c18ab76d9b
Reviewed-on: https://gerrit.libreoffice.org/19396
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-10-15 15:59:27 +00:00
Stephan Bergmann
cb7563e8ea -Werror,-Wunused-private-field
Change-Id: I936ddbabb22e3dc16080ef0b11d585ea98442e57
2015-10-15 17:41:03 +02:00
Caolán McNamara
ed6c042d20 coverity#1327205 UwF: Unwritten field
Change-Id: I6a9b2471e488b988f70415188ddaed8ea21ab77b
2015-10-15 16:35:02 +01:00
Caolán McNamara
9d2a3acf40 coverity#1327203 UwF: Unwritten field
Change-Id: I120b6cd6908ab4263a3ec3f8318aff8e507ab62b
2015-10-15 16:35:02 +01:00
Caolán McNamara
5d9995131d coverity#1327202 UwF: Unwritten field
Change-Id: Ifa0ffa779aa3dd79f4b41065e33f5cdbf3a89bc9
2015-10-15 16:35:01 +01:00
Caolán McNamara
2dea6b9e96 coverity#1327201 UwF: Unwritten field
Change-Id: Ia8d7ab83caa55920428448e67f95a340add658e7
2015-10-15 16:35:01 +01:00
Caolán McNamara
3cce71478d coverity#1327200 UwF: Unwritten field
Change-Id: I7e78b77642e70a13dcfa71e71f541bed31a4f47a
2015-10-15 16:35:00 +01:00
Caolán McNamara
1bc8beeea8 coverity#1327199 UwF: Unwritten field
Change-Id: I1fdb8b0740c947feced9aec6399313231007dcf8
2015-10-15 16:35:00 +01:00
Caolán McNamara
3b3e2ae28e coverity#1327198 UwF: Unwritten field
Change-Id: I0ecbd7c8b16af7dbd81d9420dfab2edc7ca73493
2015-10-15 16:35:00 +01:00
Caolán McNamara
f40120dc6f coverity#1326293 Dereference after null check
Change-Id: I6ce295873eb2ed1231ad1d95babfcc2c8ff265e8
2015-10-15 16:34:59 +01:00
Miklos Vajna
293dd731e9 vcl: aAlphaBitmap.ImplGetImpBitmap() seen as 0
Change-Id: I3f34f0315045d33ff6e498e24c0dacb0aabb0ff9
2015-10-15 17:18:28 +02:00
Miklos Vajna
6a35a75a6b sd tiled rendering: implement CALLBACK_SET_PART for find-all
Change-Id: I607b3719e0f508f9ae24db7482323847aa8e2491
2015-10-15 16:56:14 +02:00
Miklos Vajna
cd4976988c sd tiled rendering: let find-all at least select the first match physically
The LOK API can describe a multi-selection, so find-all can signal all
matches, editeng can have a single selection only. Instead of having no
selections after a find-all, select the first match, so e.g. copy works.

Change-Id: I0eab2565916f0c3cce5d77279c0d927ad4b7054c
2015-10-15 16:25:13 +02:00
Noel Grandin
74d686bc59 simplify the CellController modify Link<> handling
in preparation for some more "make Link<> typed" work

Change-Id: Ifdf58cc697c7172102bf9e4cc63f869c522517e6
2015-10-15 15:47:13 +02:00
Justin Luth
6212c46715 tdf#73691 - add alt-x support to math
At the request of bug tdf#94957, adding unicode conversion
shortcut (alt+x) to Math also.

Change-Id: I5b4d17543a819f035ade0d9a516eeef8542a286e
Reviewed-on: https://gerrit.libreoffice.org/19323
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-10-15 13:36:37 +00:00
Stephan Bergmann
d3465703c9 com.sun.star.lang.Locale does not override Object.equals
Change-Id: I4a443ce900252b171bd028e945971818fb2cc7ef
2015-10-15 15:36:25 +02:00
Caolán McNamara
ad05955de0 coverity#1326276 Explicit null dereferenced
Change-Id: Iec9b5cbb50385e30d1fe8cda0a24285da5e15506
2015-10-15 14:26:44 +01:00
Caolán McNamara
5baef3adfe coverity#1326266 Explicit null dereferenced
Change-Id: Ic6971a9006f82528a9943f8d425389545403162a
2015-10-15 14:26:08 +01:00
Caolán McNamara
21c30f6e41 coverity#1326262 Dereference after null check
Change-Id: I2c426e140ff3fde2ffaa2c5b6fc676d8d77e6afa
2015-10-15 14:26:07 +01:00
Caolán McNamara
5e5f3a3b0f coverity#1326261 Dereference after null check
Change-Id: If6d30d9d6217917dc577b35b9d17f1cc6e4566a9
2015-10-15 14:26:07 +01:00
Caolán McNamara
7c465e7f9e coverity#1326260 Explicit null dereferenced
Change-Id: I75b9cb661a7a45304bf32395ad980f83621f4612
2015-10-15 14:26:07 +01:00
Caolán McNamara
eacf46e60b coverity#1326241 Dereference after null check
Change-Id: I54c00e1d4e5ebccf141293cd97d99efeebda1083
2015-10-15 14:26:07 +01:00
Caolán McNamara
585757d3fe coverity#1326240 Explicit null dereferenced
Change-Id: Ic84b5fbff0fbd7b8a750a7e40f2dffafe868b5d5
2015-10-15 14:26:06 +01:00
Caolán McNamara
f1e4e73dfc coverity#1326238 Explicit null dereferenced
Change-Id: Id02dcf1a1fac22eae0a2e01596521eefee9ecbf3
2015-10-15 14:26:06 +01:00
Caolán McNamara
9fd8c18948 coverity#1326237 Explicit null dereferenced
Change-Id: Ic3ab796da48e28efaf1628f28b8632dd00c041b2
2015-10-15 14:26:06 +01:00
Caolán McNamara
52e8a80628 coverity#1326236 Explicit null dereferenced
Change-Id: Ic89c9b39f5f9c260581130da528bc0f514d4ef06
2015-10-15 14:26:05 +01:00
Caolán McNamara
528d2ce57a see if this will silence cid#1326879 FE: Test for floating point equality
Change-Id: I1b5cdad7bda19c7cab19b062ad15cf67282ecefb
2015-10-15 14:26:05 +01:00
Caolán McNamara
ab22d11279 coverity#1326731 Dm: Dubious method used
and

coverity#1326732 Dm: Dubious method used
coverity#1326734 Dm: Dubious method used
coverity#1326735 Dm: Dubious method used
coverity#1326739 Dm: Dubious method used

Change-Id: Id9d39decf7442b503079ebcfe8c881f0f2fe3eb3
2015-10-15 14:26:05 +01:00
Miklos Vajna
aa8f218079 sd search: restore start selection if nothing was found
For one, if sd::Outliner::RememberStartPosition() cares about storing
the current selection in the DrawViewShell case in maStartSelection,
then sd::Outliner::RestoreStartPosition() should probably restore it.

For another, sd::Outliner::StartSearchAndReplace() returned true in the
"nothing was found" case, which restarted the spellchecking, which
killed the selection. If the selection has been restored already, then
at least don't kill it in the find case: find is read-only, so no need
to restart the spellchecker.

Change-Id: Idd886d449a9cfb164887fc6b1fde27b5e63e272b
2015-10-15 15:03:46 +02:00
Tor Lillqvist
c58533fe4a WaE: variable set but not used, in NDEBUG build
Change-Id: I9c88c1a43228a98a355d8ba17b0a06de0c5418c4
2015-10-15 15:40:00 +03:00
Michael Meeks
4421bb8eb5 tdf#94495 - protect lstbox usage post-dispose, and fix ItemWin focus.
Change-Id: I2e4d1c79f57ec048d66111ed393491b7803ee3b9
2015-10-15 13:19:02 +01:00
Caolán McNamara
6cd11e4f0c unused tests would have attempted to call dmake in a 4NT shell
while discussing the recent Sputnik launch

Change-Id: I2308e659fa36eba193edb8b628b0fec08aaf73af
2015-10-15 12:36:34 +01:00
Tor Lillqvist
e9caad9b5f tdf#94924: Fix thinko from bdef079b39
Change-Id: Iadeb311c364324d26acab8a856358e0a5c5673dc
2015-10-15 14:34:31 +03:00
Caolán McNamara
28ccb6d12b delete child-workspace + eis long dead foo
Change-Id: I33faa4b960ae78d31c026bcbd114cb7c5d5b5aea
2015-10-15 12:28:45 +01:00
Tor Lillqvist
f10be15188 tdf#94924: Add a more systematic OpenCL unit test
Avoid the horrible convention of hard-coding in a C++ unit test code
addresses of data in the spreadsheet document being tested. Instead,
mark the expected (= as calculated by Excel) and calculated (by
LibreOffice) formula results, rectangular blocks of data, so that the
C++ code can easily find it, and then compare. This is much more
flexible. No need to edit hardoded row and column numbers in the C++
code when adding more test data.

The systematic.xls file has documentation on how to maintain it.

Change-Id: I4fb088fe21831dd3b3213d21916460a708aa0842
2015-10-15 13:45:45 +03:00
Tor Lillqvist
03eae494cf tdf#94924: Return correct result 0 from OpenCL MIN and MAX when all args empty
Used the same style as existing code, added a new virtual isMinOrMax()
and add some special casing in Reduction::GenSlidingWindowFunction(),
and fsim_count() and fmax_count() functions that count how many
non-NaN numbers we actually see. As such, I am not sure at all that
this is an ideal way to do this, but will have to do for now.

Change-Id: I846a8d24f4563f8fae1a45971a4ce202ed918487
2015-10-15 13:45:45 +03:00
Tor Lillqvist
5e0e953f8f tdf#94924: Return correct #DIV/0! error from AVERAGE in the OpenCL case
Change-Id: If7326fd1242d90ff92e62d141714960476198605
2015-10-15 13:45:44 +03:00
Tor Lillqvist
d67262fb54 tdf#94924: Fix handling of empty cells in OpenCL division
Not sure why the code from f5e7207053
did not produce correct results any longer. Anyway, now OpenCL
division works right in case of empty or zero cells.

Clearly I need to add unit tests to make sure this stuff keeps
working. In later commits.

Change-Id: I93b787ad5da453af1601768308fb614a332ed142
2015-10-15 13:45:44 +03:00
Tor Lillqvist
bdef079b39 tdf#94924: Fix handling of empty cells in OpenCL subtraction
We get correct result by simplifying the code;)

No need to have the outer "if (gid0 < X)" test around the calculation
code generated by Reduction::GenSlidingWindowFunction(). The lhs and
rhs check the gid0 range themselves and that leads to the desired
result for subtraction.

While fixing this I noticed that the handling of empty cells in
division is also wrong. Will fix in another commit.

Change-Id: Ia45bd81e692a17b0453cc79cd4673a00e119562a
2015-10-15 13:45:44 +03:00
Michael Meeks
e5155848e4 tdf#93044 - fix silly calc copy/paste lifecycle issue.
Change-Id: Ic3d26f45251ff27bacd572f0cb7a7aadf091e808
2015-10-15 11:51:53 +01:00
Caolán McNamara
ae0bfef96a coverity#1326728 USELESS_STRING: Useless/non-informative string generated
Change-Id: I264d7d89f0f8a420d04081541bf0a8a4708c9b58
2015-10-15 11:38:58 +01:00
Caolán McNamara
a97b102ea0 coverity#1326201 Explicit null dereferenced
Change-Id: Idda78e546db90e939a87ac5ef27363809ce41697
2015-10-15 11:38:58 +01:00