Commit Graph

395194 Commits

Author SHA1 Message Date
Noel Grandin
9870f02b31 loplugin:countusersofdefaultparams in tools..xmlsecurity
find methods with default params with only zero or one call site

Change-Id: Ie5b30f60e9fe00ba1acf0dfc79b005ded46f05a0
Reviewed-on: https://gerrit.libreoffice.org/27512
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-27 06:44:50 +00:00
Zdeněk Crhonek
1485074d84 update WEEKS test case
Change-Id: Iaa60d3c00c662ac6b9f124cc6274c8a62bb57689
Reviewed-on: https://gerrit.libreoffice.org/27409
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-27 00:34:36 +00:00
Zdeněk Crhonek
bccac0bfb8 update MIRR testcase
Change-Id: I6dbe3a96bfedef628f2995d10e1be38815b336a0
Reviewed-on: https://gerrit.libreoffice.org/27486
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-27 00:33:04 +00:00
Zdeněk Crhonek
1326f3da14 add VDB test case
Change-Id: Ibc8a43ecb2b7a90441fac4cfa4a8ff9fd0d60df6
Reviewed-on: https://gerrit.libreoffice.org/27553
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 22:54:34 +00:00
Zdeněk Crhonek
14135f7823 add TBILLPRICE test case
Change-Id: I10bf3ca736790abd0e854f9bdbae02c4aacb948a
Reviewed-on: https://gerrit.libreoffice.org/27551
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 22:54:02 +00:00
Zdeněk Crhonek
0434c5c4f1 add TBILLYIELD test case
Change-Id: I0169dc24fcfe26c70c016f8e516a28f2b1090e12
Reviewed-on: https://gerrit.libreoffice.org/27552
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 22:53:18 +00:00
Zdeněk Crhonek
bae0d30e19 add ROUND test case
Change-Id: I3788df674dd0207dc04d534f6d9d4fb550328261
Reviewed-on: https://gerrit.libreoffice.org/27555
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 22:52:32 +00:00
Zdeněk Crhonek
b5c6576f5e add radians test case
Change-Id: Id4e46a24aa7b4d568b75d709c9e823f0d59b9f6f
Reviewed-on: https://gerrit.libreoffice.org/27554
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 22:50:06 +00:00
Zdeněk Crhonek
871c8cd7ba add ROUNDDOWN test case
Change-Id: I3b0d3a12f04bda02bb1a8ccb5a71bc352fefcddf
Reviewed-on: https://gerrit.libreoffice.org/27557
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 22:49:25 +00:00
Zdeněk Crhonek
61ac0a9931 add ROUNDUP testcase
Change-Id: I21601657ed97824b4b8e40a7470e882f72ebd402
Reviewed-on: https://gerrit.libreoffice.org/27558
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 22:49:06 +00:00
Eike Rathke
157b56a049 activate the remaining 1945-04-02 test cases, tdf#100046
Change-Id: I4d2f3d5602b162924c14348c0307a74ddeb93079
2016-07-26 23:20:07 +02:00
Eike Rathke
8e91b0177c Resolves: tdf#100046 the dreaded 1945-04-02 Double DST, also tdf#79663
A coward not having changed this earlier, partially taken from a patch that was
submitted for tdf#79663 but broke API, thanks to Isamu Mogi again.

This removes all the clutter around timezone and DST correction that was
necessary for early ICU versions, which apparently gets things right now and
the clutter can still be confused by corner cases.

Change-Id: I9a90f933e8db8c6e0db145520ebf71cc27621abc
2016-07-26 23:20:07 +02:00
Christian Lohmaier
ce3577056d update credits
Change-Id: I9679f7b0693ecc380d756b18025b09225afd414c
2016-07-26 23:07:04 +02:00
Eike Rathke
22dceea0ca add test data from tdf#79663, tdf#100046 related
... before changing anything.

Change-Id: Iedf89713de1eb02e501723f679bf059b5a43415e
2016-07-26 22:14:39 +02:00
Eike Rathke
4097b95d62 display data on test failure
Change-Id: I432ba81929dd0badd48d2bd7b4344ceed4df2b43
2016-07-26 22:14:38 +02:00
Eike Rathke
17fb4d43e8 two more testDateInput() dates
Found in comments of i18npool/source/calendar/calendar_gregorian.cxx
Calendar_gregorian::setValue()

Change-Id: I4ab0aae15b7d97b22bc3a16d039542b5b49d3f14
2016-07-26 22:14:38 +02:00
Rishabh Kumar
7438bc1f0c [GSoC] Remove bitmap controls from area tab
Change-Id: Ie8d62b42c9b5ce9a4d087d809e7c395b8c71e667
Reviewed-on: https://gerrit.libreoffice.org/27024
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-26 19:31:28 +00:00
Rishabh Kumar
a44a0690da [GSoC] Add Bitmap tab to area dialog
Change-Id: I6549e7eb4efd24d035b0383a750698a4c3f16cf7
Reviewed-on: https://gerrit.libreoffice.org/27546
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-26 18:33:01 +00:00
Tomaž Vajngerl
c9b2af045a tdf#101138 opengl: blacklist intel drivers for Win 7
Change-Id: I1b3db15b2fbdd948dcc9bacf7891f8429f066150
2016-07-26 19:46:33 +02:00
tymyjan
d2e4753c3f tdf#75280 Cleaning up of sal_uIntPtr usage #4a
Change-Id: I488baed0ffc3fea9c42bad1647a034cd5e9b28bb
Reviewed-on: https://gerrit.libreoffice.org/27325
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-07-26 15:37:05 +00:00
Takeshi Abe
d357334a02 tdf#75757 Remove inheritance to std::vector
Change-Id: I2ddaaf52f27b5297bda58a045946e87a24b66a83
Reviewed-on: https://gerrit.libreoffice.org/27536
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-07-26 15:35:43 +00:00
Caolán McNamara
adf874c7cc Resolves: tdf#98984 make MailMerge listen for database change
and update to take the new database set on the document instead of
retaining the initial database

note that now SetCurrentDBData also throws away the old m_xResultSet to force a
new one to be fetched

Change-Id: Id50287915064949296ee73211e16bbba46ced229
2016-07-26 16:21:44 +01:00
Eike Rathke
9710fd565f Resolves: tdf#87474 handle renaming of named expressions/ranges in formulas
Change-Id: If82b62505624c3c259371fa37de1994a94bbceb5
2016-07-26 16:34:30 +02:00
Mike Kaganski
c1b665fcda Restructure CommandLineArgs::ParseCommandLine_Impl
CommandLineArgs::ParseCommandLine_Impl is restructured to remove
multiple redundant booleans and make its structure more clear.
Command line "events" (that specify following filenames treatment)
are grouped to an enum. (NB: "events" is not invented by me, this
is currently used term).

Normalized treatment of --display param: now it is always ignored.
Previously, if it happened to be a known switch like --writer, it
handled as it's not after --display.

Immediate parameters to switches --pt, --convert-to, --outdir,
--printer-name are now treated likewise. They are treated as
corresponding values, even if they happen to be known switches.

--language (without "=") is no more a recognized switch. Before
this it skipped all filenames until next file management switch.

After this gets approved, TODO is to tweak Office URIs to take
current event into account: e.g., to print opened file if it's
after -p.

Change-Id: Ic2f3980548f8906f695d297dc6677bd2cbd19c5b
Reviewed-on: https://gerrit.libreoffice.org/27316
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2016-07-26 12:42:25 +00:00
Caolán McNamara
b43b2b504f return early and drop a level of indent
no logic change

Change-Id: Idf67cad227234417b23f7a4f20f6444141eb4377
2016-07-26 13:17:44 +01:00
Justin Luth
eb345a155b tdf#75573 allow style to define vAnchor
If the default property value is valid, a style is never able to override.

oddball default caused by commit 20c1a48577
    Rüdiger Timm <rt@openoffice.org>   2008-04-18 11:36:12 (GMT)
    INTEGRATION: CWS xmlfilter04 (1.22.14); FILE MERGED
    2008/03/05 11:07:44 os 1.22.14.3: default vAnchor changed

Change-Id: I665b52ae75a9282d51c79f3351315cf3fed4776c
Reviewed-on: https://gerrit.libreoffice.org/27454
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-07-26 11:39:17 +00:00
Tor Lillqvist
20438e3e63 loplugin:redundantcast
Change-Id: I4b7341a180271d5e0f9b06a9815d1914d698eb11
2016-07-26 14:30:03 +03:00
Tor Lillqvist
c27b0a8b2d Add test data for NORMSDIST
Related to 4afa88f289, the NORMSDIST
implementation uses erfc().

Change-Id: Ib089496c38c79d5f5eeaed899e844089710d6dec
2016-07-26 14:16:55 +03:00
Caolán McNamara
431730d7e8 crash on clicking links in offline help
Change-Id: I59f9ca3293dacbf02af49215cd8334291927f324
2016-07-26 11:52:58 +01:00
Caolán McNamara
cca7d0df5d loplugin:overrideparam
Change-Id: I5d6c249875e4dcebc63e8d0fcdddfcb48e8df18a
2016-07-26 11:41:23 +01:00
Miklos Vajna
9d91d371e9 svx lok: draw text edits in all views
Use case: a document has a shape with text, and two views. If one view
starts to edit the shape text, the model text is hidden (via
TextHierarchyEditPrimitive2D), and the in-progress text was painted
directly only in the view that edits it.  The remaining views presented
the shape as if it had no text. This commit addresses the subset of this
use case when the views are already created and they already show the
same draw page.

Fix the problem by looking for other views showing the same draw page,
create a view of the text edit for them, and paint them in all views
after the own text edit is painted.

There is not much LOK-specific in this code, except that some extra code
would be needed to not paint the blinking cursor of the text edit in
other views, and then it could be enabled in the non-LOK case as well.

Change-Id: Ib3096a3369fa56663ee209794e102090d362de66
Reviewed-on: https://gerrit.libreoffice.org/27535
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-07-26 10:34:07 +00:00
Caolán McNamara
bfb8b56e1d this can be a ScopedVclPtrInstance
Change-Id: Ia500b2901c6c89ca8755d6b7515d88c18182bb3b
2016-07-26 11:26:52 +01:00
Caolán McNamara
a860df25dd masses of MessBoxes not being disposed promptly
since...

commit ba81e5c6bd
Date:   Thu May 28 21:35:43 2015 +0100

    tdf#91702 - fix stack-based MessBox allocation.

There is no special ScopedVclPtr<X>::Create or
ScopedVclPtrInstance<X>::Create just
VclPtr<X>::Create and a raw VclPtr<X>::Create()->foo
doesn't call dispose on the owned X

Change-Id: Ifacc8d5e742820701307c3c37b9b86487667d84f
2016-07-26 11:26:52 +01:00
Zdeněk Crhonek
87e2b0142a add POWER test case
Change-Id: I776535199d8123da2da65fd769e975aa4e5280f2
Reviewed-on: https://gerrit.libreoffice.org/27500
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 10:24:58 +00:00
Zdeněk Crhonek
9bf710065d add ODD test case
Change-Id: I081605e1dc24601baa707e57c9691aa9b42c2aff
Reviewed-on: https://gerrit.libreoffice.org/27499
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 10:24:47 +00:00
Zdeněk Crhonek
40be01b16b add MULTINOMIAL test case
Change-Id: Ia0496640f57e5c0085d9ce4cc081c44bfb819ad0
Reviewed-on: https://gerrit.libreoffice.org/27495
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 10:24:36 +00:00
Zdeněk Crhonek
2b0e7724bc add QUOTIENT test case
Change-Id: I3abd51755dcb6f308eed537fbbbe9e87eb55a21c
Reviewed-on: https://gerrit.libreoffice.org/27504
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 10:23:45 +00:00
Zdeněk Crhonek
05caac3088 add PRODUCT test case
Change-Id: I0cfd22c8ecc42a1b7aaf2388e29b06d9e4c4095c
Reviewed-on: https://gerrit.libreoffice.org/27502
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-26 10:23:01 +00:00
Miklos Vajna
8631f4399d sw: use std::move() in DocxSdrExport
Change-Id: Ifd92f0ea25288540915a6509a62df7b89e9304db
Reviewed-on: https://gerrit.libreoffice.org/27533
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-07-26 09:00:31 +00:00
Jochen Nitschke
3686a81137 sc: replace GetScenarioData() calls with GetScenarioFlags()
if only the scenario flags are needed

Change-Id: I9bda31250a8bbd83dda2fabb1d9eaaab90584052
Reviewed-on: https://gerrit.libreoffice.org/27465
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-07-26 08:39:01 +00:00
Jochen Nitschke
60f36bb7cd sc: convert SC_SCENARIO_.. defines typed flags ..
ScScenarioFlags
add ScScenarioFlags::NONE for 0.
replace uses of '-= flag' with '&= ~flag'.

Change-Id: I003c0ca1f59b060f52935fec8bb6282fd9981805
Reviewed-on: https://gerrit.libreoffice.org/27464
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-26 08:15:21 +00:00
Laszlo Nemeth
00a58dfead Need to try to avoid TDR also with NVIDIA cards on Windows 7 or earlier
(TDR is Timeout detection and recovery, was introduced in Vista.)

Change-Id: Ic49629adf7630e61cebcdfcc431ca96ba3fbaf7e
Reviewed-on: https://gerrit.libreoffice.org/27518
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2016-07-26 07:41:38 +00:00
Takeshi Abe
eee5d67d06 starmath: Fix invalid static_cast
which caused an undefined behavior by downcasting SmSpecialNode
to SmMathSymbolNode.

Change-Id: I00b6d2111733bddffa31d12c85fbb5bbdd675f76
Reviewed-on: https://gerrit.libreoffice.org/27531
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-07-25 19:43:52 +00:00
Akash Jain
e9915cbf4f Upgrade HarfBuzz version to 1.3.0
Change-Id: I55a6258e370ff1cf2e901a8460cd2342118ea9d5
Reviewed-on: https://gerrit.libreoffice.org/27524
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2016-07-25 18:30:34 +00:00
Tor Lillqvist
4afa88f289 No need for own implementation of erfc() in OpenCL
The own code was copied from the C++ one we used to have in
sal/rtl/math.cxx but which was removed in
a62bc6a65a. However, it did not work
correctly on some machines at least, like my AMD A10-7800 running
Windows 10. I was unable to figure out why not. This lead to OpenCL
being disabled by the Desktop::CheckOpenCLCompute() code we now run
early on startup.

Anyway, as OpenCL has erfc(), just use that.

Change-Id: I7ba6104fc4975cd570358760fa97a19390a54cce
2016-07-25 19:26:25 +03:00
Eike Rathke
1839bc8cf4 obtain PreviousChar() only if necessary
Change-Id: Ib23b34fd927eaecef1868fbeebde0a28399dc0c3
2016-07-25 17:25:43 +02:00
Tomaž Vajngerl
5b5f66c672 basegfx: use polygon initializer_list in some places
Change-Id: Ibb83476376e1c46aedf67c9455292405219a45c1
Reviewed-on: https://gerrit.libreoffice.org/27476
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-07-25 15:20:56 +00:00
Eike Rathke
c6e7dbaaa4 Resolves: tdf#101096 remove the "H after M" rule
wrongly introduced with c9ed6e8322

Change-Id: Ic6c9c404ad0af11eb5d638f453150ee0da60e633
2016-07-25 16:47:28 +02:00
Eike Rathke
bcf84049c8 Revert "tdf#101096 Improve minute/month disambiguation"
This reverts commit cb94d2fbd9.

There's an easier solution not leaving unhandled corner cases.
2016-07-25 16:39:44 +02:00
Tomaž Vajngerl
c27d56b2a9 opengl: log device/driver info, remove unneeded info messages
Change-Id: Ica3698d0dbff1ee7a1e822d2765eb4019ccef224
Reviewed-on: https://gerrit.libreoffice.org/27498
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-07-25 14:36:41 +00:00