Commit Graph

386210 Commits

Author SHA1 Message Date
Mike Kaganski
3b4059dc53 tdf#96708: don't modify document while copying to clipboard
I.e., don't try to create auto-layout for clipboard pages which
don't contain one; don't resize objects to text.

Also, don't invalidate items that are equal to defaults,
because explicitly set items are not the same as absent items:
pasting an object without an item makes the property to inherit
new target's default, while when the item is present, the default
doesn't apply.

Also, don't consider selected state of the page while stringifying
- this makes selected page string to differ from not-selected
clipboard page.

Change-Id: I172e03e1a8c428e5fcae3a116cc9ad8de79f1a87
Reviewed-on: https://gerrit.libreoffice.org/20871
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2016-01-05 07:18:17 +00:00
Mike Kaganski
26eb0debda tdf#69640: Treat errors opening OLE stream gracefully
The testcase for tdf#69640 includes links (relations) to external
pptx files. It demonstrates two non-fatal reasons for failure
opening OLE stream:
1. it fails OStorageHelper::IsValidZipEntryFileName check, because
the file path contains ":\";
2. even if that were not the case, the required file can be absent
from user's system.

I suppose that intercepting the failure at the level of
OOXMLOLEHandler::attribute() is the best option, because at the
lower level it's unknown if this failure is fatal or not.

I suppose that it could be also useful to intercept specifically
failures in OStorageHelper::IsValidZipEntryFileName, checking if
the file exist externally, and asking users if they want to update
external links (as MSO does). Possibly it should be discussed
with UX team if that should be done, and if so, do it in separate
commit.

Change-Id: I240a6f69abe236eb790bb406c79f3b761fb4638a
Reviewed-on: https://gerrit.libreoffice.org/19963
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2016-01-05 06:53:09 +00:00
Martin Hosken
fbb00383d8 Use .dict files since below the 500K limit
Change-Id: Iec71ad4918cd333f0a44d372017ecee300e3aca9
Reviewed-on: https://gerrit.libreoffice.org/20748
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Martin Hosken <martin_hosken@sil.org>
2016-01-05 05:38:11 +00:00
Markus Mohrhard
9eb3199446 let us try to use the pid as well on windows
I'm a bit worried that some of our random test failures are related to
trying to reuse the same temp file in different tests.

Change-Id: I0ca4ace088a96530e6a62d01f979fefe63822b22
Reviewed-on: https://gerrit.libreoffice.org/21090
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-01-05 00:01:42 +00:00
Michael Meeks
27953088c5 tdf#96690 - don't copy tiny non-rendered-to virtual devices.
Change-Id: Ic9d90bb7f652599b5a6ce303aa026b7e4e255324
2016-01-04 22:11:52 +00:00
Michael Meeks
afb5bd2523 vcldemo: adjust benchmarking weights to fit changed workloads.
Change-Id: I2cd8cdd541fd4095aea8abd2ea78b11e7df77440
2016-01-04 22:11:05 +00:00
Markus Mohrhard
bac1170317 remove unnecessary ;
Change-Id: I0e16305cac5cd5e4824a4e2bab7e4ac10d2bd469
2016-01-04 22:51:53 +01:00
Markus Mohrhard
54235fbab7 fix typo
Change-Id: Id17aa3eea4d6ccb956f9c0b1fd97007ef0257955
2016-01-04 22:51:52 +01:00
Markus Mohrhard
9bed7b2a7a don't use the same files in different unit tests
I currently assume that this is responsible for some of our heisenbugs
on windows. I think the windows file locking is causing issues when two
test try to access the same file in parallel. This is more likely to
happen on the fast windows ci boxes.

Change-Id: I423f6c723c2ec558026867a118972e98279bd2c2
2016-01-04 22:51:52 +01:00
AlexF
fa354c9ae9 tdf#96127 Android: No UI visible
Duplicate <include layout="@layout/toolbar"/> statement found.
Problem could be caused by either
1) a differing xml reading mechanism across android versions
2) toolbar being accessed in a different way across android versions

Duplicate element removed, and linearlayout shifted below first toolbar.

Change-Id: I084b6498745bc72988f3a8eed12f7a72d261e267
Reviewed-on: https://gerrit.libreoffice.org/20422
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-01-04 21:08:00 +00:00
Caolán McNamara
e488bc443b cppcheck: duplInheritedMember
Change-Id: I451a7a04fd1578d3095e5931f0792a32870a647e
2016-01-04 20:27:22 +00:00
Stephan Bergmann
d2f6f86330 loplugin:stringconstant
Change-Id: I08430479a2c8d1fd6e3fc357ba3069b3a7bb6ac8
2016-01-04 18:18:53 +01:00
Stephan Bergmann
eb760663d0 loplugin:stringconstant
Change-Id: I45c0b74c9d54120bfac85f16a336ac7ff487ed73
2016-01-04 18:13:09 +01:00
Stephan Bergmann
b4346bb26a loplugin:staticmethods
Change-Id: Iedeb2b87da0f230961c1c22275f980acbe7a9e5b
2016-01-04 18:07:55 +01:00
Giuseppe Castagno
d373cb7e15 Related tdf#96833: fix behaviour of 'Remote Files' edit dialog.
Fixed:
- TCP port got lost/reset when editing a server;
- in Gtk widget disabled comma;
- secure protocol checkbox always unchecked when editing a
  server.

Change-Id: I358fc7375552b29e4840a3616e4e47b95b88ed2c
Reviewed-on: https://gerrit.libreoffice.org/21039
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Tested-by: Jan-Marek Glogowski <glogow@fbihome.de>
2016-01-04 16:48:29 +00:00
Eike Rathke
7ea839ae39 correct WEEKNUM DayOfWeek handling, tdf#50950 follow-up, tdf#95419 related
Slight misinterpretation of the
{Sunday, Monday, Monday, Tuesday, ..., Sunday}
sequence defined in ODFF.

Change-Id: I09ac711adf8a52db1c9efbb1c67dc908b8e06618
2016-01-04 17:42:23 +01:00
Miklos Vajna
ce814d1a28 DOC(X) filter: BAF -> BAILS in the smart tag mapping
The filters map between a common subset of Word smart tags and Writer
RDF annotations, and when doing so, they need to know what path to use
for a smart tag namespace and also the other way around: what RDF types
are interesting for smart tag purposes.

It turns out there is BAILS specification at
<http://www.tscp.org/wp-content/uploads/2013/08/TSCP_BAILSv1.pdf> that
describes how to refer to BAF objects, so use that instead of our custom
RDF statement / document metadata key names.

Change-Id: Iac569608b05aa61547f664f2a5df7d46fe46da76
2016-01-04 17:40:29 +01:00
Markus Mohrhard
6415b9e4d1 use correct decimal separator
Change-Id: I342e9b5355c3ea09eede6c47b0f209f538ee82cb
2016-01-04 17:38:36 +01:00
Tor Lillqvist
3dd8ad9581 Remove unused forward declarations
Change-Id: Ic586d44d2ff0f913f655b8a7539326a6dea78477
2016-01-04 18:07:47 +02:00
Tor Lillqvist
1d36a9b87a Remove unused forward declarations
Change-Id: I9db63e6c6b4df33387b9b4d59450494e8bd856f1
2016-01-04 18:02:27 +02:00
Eike Rathke
68098cf155 correct ISOWEEKNUM resource ExtraData parameter flags, tdf#50950 follow-up
... which now has exactly 1 parameter; removed the now non-matching
required flag of a not existing second parameter. Luckily the resource
manager treats this as a separate record block and this 0 didn't harm
the subsequent 0, accidentally..

Change-Id: I0994ed75643245c1bdebc9a92ade77abdd1c61d8
2016-01-04 15:59:11 +01:00
Eike Rathke
1c5eb11d42 WEEKNUM second parameter is optional defaulting to 1, tdf#50950 follow-up
Change-Id: I64b22f91bf56497b9f705e4773e24c5ba88a14ae
2016-01-04 15:59:06 +01:00
Noel Grandin
f14d64fa71 these fields can be static constants
Change-Id: Id56e219782d7f858cdeb26232c7aabd4f643c9d9
Reviewed-on: https://gerrit.libreoffice.org/21020
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-04 14:44:33 +00:00
Stephan Bergmann
549e900b4b tdf#96855: Put back assignment of xHierAccess
...that had inadvertently been removed as part of a larger code removal in
6948c546fd "tdf#75637: Resolve help images via a
vnd.libreoffice.image UCP"

Change-Id: Ic2d5e1a5fa5a10b240bb9e511e6dcb8097e58081
2016-01-04 15:16:44 +01:00
Tor Lillqvist
8be957adae Get rid of silly stderr0 macro
Change-Id: Ibc51fb4cc72163fb643a85ad3f0b6061b7d77ccc
2016-01-04 15:29:55 +02:00
Julien Nabet
9236a99ad4 Related tdf#96833: Allow port with more than 4 characters
Change-Id: Ib6676f6f940ce497ac6fe28189e1c3a4ed4ec0bf
Reviewed-on: https://gerrit.libreoffice.org/21032
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2016-01-04 13:27:58 +00:00
Stephan Bergmann
d01888302b tdf#82775: Make NumberFormatCodeMapper MT safe
Change-Id: I77f49f09ce9fe5897f78044c0522210978c904d1
2016-01-04 14:22:59 +01:00
Stephan Bergmann
e83f31724e tdf#82775: Don't prematurely dispose single-instance services
...that happen to be requested concurrently from multiple threads

Change-Id: Icecfb0b8d88c9123064689643eddf90a99d3b1b8
2016-01-04 14:21:45 +01:00
Stephan Bergmann
26cbb3d104 Related tdf#82775: Check for disposed-ness
...instead of dereferencing null pointers

Change-Id: I9d1709468a5b601b9f3d86dadea7a8e817f449d8
2016-01-04 14:20:16 +01:00
Stephan Bergmann
38e965fe0f Use CPPUNIT_ASSERT_DOUBLES_EQUAL
...except when checking for infinity

Change-Id: If6e3b8965169cc615fa5d76422e1925866714936
2016-01-04 14:02:41 +01:00
Stephan Bergmann
efcbfa6f42 loplugin:cstylecast
Change-Id: I5ecd63d79e8be77879d3789c45079929696abe03
2016-01-04 13:44:48 +01:00
Dipangar Niranjar
0e41527fd5 tdf#96136 replace CPPUNIT_ASSERT with CPPUNIT_ASSERT_EQUAL
Change-Id: Ib45af8a56ac3adc428c530908cf1bbd95e9cc64c
Reviewed-on: https://gerrit.libreoffice.org/21065
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-01-04 11:40:41 +00:00
Tor Lillqvist
a188bd6ad1 Remove two pointless DBG_ASSERTs "There is no Dde-Service"
Avoid hundreds of presumably pointless warning messages in some unit
tests at least. The code explicitly checks and handles the asserted
condition not being true right after the DBG_ASSERTs.

Change-Id: I5482c56aeeadb8f85dfdd03e12960abd7e769c56
2016-01-04 13:32:40 +02:00
Miklos Vajna
f591a096de sw: prefix members of SwAttrSetChg
Change-Id: Ie24194fe04dafbc447cf8a8a015316e9ba6e9ac9
Reviewed-on: https://gerrit.libreoffice.org/21071
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-01-04 10:09:35 +00:00
Jan-Marek Glogowski
29be1b06b8 TDE kab: fix dbgutil and clang werror build
Change-Id: I37948ff77d060dc18a583389966b52c06a95bdaf
2016-01-04 10:47:12 +01:00
Tor Lillqvist
26f09844b5 Remove warning that can be ignored
"yeah, makes sense to remove it", says Stephan.

Change-Id: Ife7baa5814a856dca7f0f02ac3cb2521e2980851
2016-01-04 11:05:23 +02:00
Andras Timar
66a82c248e Updated core
Project: dictionaries  ce7755c7d3179d682dfaccace9e64b6a008c77d2

tdf#96782 updated German dictionaries

Change-Id: Ifa7aed93eaa0448ba530cc029ee55480060e1be5
2016-01-04 08:26:01 +00:00
Chris Sherlock
21f152a523 vcl: split classes out of metric.hxx
Change-Id: Id3b155abec7b7a2ff43d0a35e98709f5ee51c6b9
Reviewed-on: https://gerrit.libreoffice.org/21069
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-04 06:26:18 +00:00
Markus Mohrhard
f4dc8a869a the idea behind the test can't work right now
The Test currently tries to test the OpenCL and the SW interpreter and
assumes that it will show different results. However if we succeed in
generating an OpenCL interpreter we will never generate a SW interpreter.

There are a number of problems with the approach taken in this test.

1.) Assuming that we are able to execute OpenCL is an invalid
assumption.

2.) Changing the configuration inside of a test needs to be exeption
save as we are otherwise left with a strange config for the remaining
test cases.

3.) Changing the configuration does not change the formula group
interpreter. This needs to be done explicitly.

Change-Id: I679985ee7551b21aaa52038e107324980e7e1bb6
2016-01-04 03:40:09 +01:00
Markus Mohrhard
c4a90354df let us use the standard way to implement an if .. else if
Change-Id: Ie0b3efdbe23a163aab1e8d128217ee1f1c7fd287
2016-01-04 03:40:09 +01:00
Andrzej Hunt
4a8c0d3135 loplugin:implicitboolconversion
Change-Id: I2ef26c34a424e653d85597c85baa736c19004313
2016-01-03 17:42:10 -08:00
Caolán McNamara
6cf667cc94 cppcheck: passedByValue
Change-Id: Id8b2db3b824ea40345aba99a5f24f2579c0ad630
2016-01-03 20:39:42 +00:00
Caolán McNamara
5e9db55def cppcheck: allocaCalled
Change-Id: I4e2345cdf9fd8d088f3522d563263b65abedb7c9
2016-01-03 20:39:42 +00:00
Stephan Bergmann
67d440e6bd loplugin:stringconstant
Change-Id: I588a9c0205e03f701b617fd1775e7f9b9b88c6b0
2016-01-03 21:21:25 +01:00
Chris Sherlock
7eab7f3485 Cleanup after removing vcl::FontInfo class
Change-Id: I544eac439cb7277e47a23a90c6fbc45496161c3b
2016-01-04 05:16:08 +11:00
Stephan Bergmann
6aa4496c78 loplugin:stringconstant
Change-Id: I60ee2ccc6090c305ade4ba16d3d298866cf89c4e
2016-01-03 19:10:07 +01:00
Chris Sherlock
8227b9955e vcl: Excise vcl::FontInfo class
This may sound crazy, but literally vcl::FontInfo serves no purpose
that I can see. The inheritance chain is like this:

        ┌────────────────────────┐
        │                        │
        │        vcl::Font       │
        │                        │
        └────────────────────────┘
                     ^
                    ╱ ╲
                     │
                     │
        ┌────────────────────────┐
        │                        │
        │      vcl::FontInfo     │
        │                        │
        └────────────────────────┘
                     ^
                    ╱ ╲
                     │
                     │

        ┌────────────────────────┐
        │                        │
        │       FontMetric       │
        │                        │
        └────────────────────────┘

vcl::FontInfo (which, incidentally, needs to be put into the vcl
namespace due to collisions with poppler!) literally does nothing
and is acting as a bridge between FontMetric and vcl::Font. Unlike
a bridge though, this bridge doesn't actually *do* anything.

So I'm removing it, which means one less class to deal with in the
vcl fonts world.

Change-Id: I32725669c9bca7fbb0846b6a062135464046e4f6
Reviewed-on: https://gerrit.libreoffice.org/21058
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-03 16:19:03 +00:00
Chris Sherlock
542b6253ab vcl: move Windows salgdi3.cxx to salfont.cxx - that's all it does!
Change-Id: I0a49bab5f410901d40c5b3b62a5a3f9d9946b8a0
Reviewed-on: https://gerrit.libreoffice.org/21057
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-03 13:06:39 +00:00
Chris Sherlock
833798d627 vcl: split out ImplFontAttributes into own header
Change-Id: I74cde57e328047ac149593c5bb065d7a6066941d
Reviewed-on: https://gerrit.libreoffice.org/21056
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-03 13:06:01 +00:00
Matúš Kukan
d4bbf358eb tdf#74608: Ctor function for abp::OABSPilotUno
Change-Id: I15f64797340ae366e02c2b503767cd3d22a66eeb
2016-01-03 11:07:24 +01:00