Commit Graph

399110 Commits

Author SHA1 Message Date
Samuel Mehrbrodt
1161de521e safemode: Add option to disable H/W acceleration
Change-Id: Ic6751717c14d317b5a4bc64c4fd1cf2b2f5efabf
Reviewed-on: https://gerrit.libreoffice.org/30112
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-11-01 14:54:04 +00:00
Michael Stahl
6b5cbdf833 sysui: add "translate" urls to AppData files
* run "appstream-util upgrade"
* add "translate" urls

Change-Id: I3bad7d5dd90cce7703a100ac95097ad3a8f2c56d
2016-11-01 15:49:22 +01:00
Tor Lillqvist
0bbc15aa24 Use enum class for two local enums
Change-Id: I0d7e6a14ec890b8a1dbdea3685b543b63426c628
2016-11-01 16:38:32 +02:00
Giuseppe Castagno
acf531be6a Cosmetic: Namespaces, better make use of the 'using-directive'
Change-Id: If27709a2d8d8f231be9be0231d522f2a71e5fcae
Reviewed-on: https://gerrit.libreoffice.org/30457
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
Tested-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
2016-11-01 13:33:41 +00:00
Caolán McNamara
9e33ac4035 Resolves: tdf#103556 the implicit convert to bare pointer hurts us here
Change-Id: I2d91cf9b11027f76dbcbb5432f4cad71c56f53f2
2016-11-01 13:30:54 +00:00
Noel Grandin
9bdec0831a loplugin:oncevar in sd..svgio
Change-Id: I58565460fcc3279c9771c6e1272d0af540b2c87c
Reviewed-on: https://gerrit.libreoffice.org/30459
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-01 13:25:08 +00:00
Noel Grandin
49c7bc5af2 loplugin:expandablemethods in accessibility
Change-Id: I51d13c12274d99623b97f611e30204bea624cbfc
2016-11-01 14:54:13 +02:00
Jochen Nitschke
53949256dd simplify loop to O(n)
Change-Id: Ib14da0201730e213f15f4f46b539fc843bfbe750
Reviewed-on: https://gerrit.libreoffice.org/30454
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-01 12:38:35 +00:00
Noel Grandin
3941482735 loplugin:oncevar in sal..scripting
Change-Id: Id9ab12f3a61eb83a2288b2fd4d99ab77f5833e1b
Reviewed-on: https://gerrit.libreoffice.org/30461
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-01 12:34:51 +00:00
Jochen Nitschke
d5c4823555 cppcheck unreadVariable: nModified
unused since initial commit 9ae5a91f79

Change-Id: I2828af1fbfda993dff32abf0f9a9f73e9fb61028
Reviewed-on: https://gerrit.libreoffice.org/30455
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-11-01 11:22:56 +00:00
Noel Grandin
2f71f88cf8 add Codelite files to .gitignore
Change-Id: I464748061b9df4d781ae49f4971f73d92f825bba
2016-11-01 13:02:53 +02:00
Noel Grandin
5e997f4dba disable this chunk of loplugin code on clang < 3.8
not worth the spaghetti of making it work across version

Change-Id: I0de923b16fb6d58cbad55adc9878ab39bc0c86ae
2016-11-01 12:58:17 +02:00
Шиповський Роман
458a9fd806 Decrease SpreadsheetML import time to prevent "General input/output error"
Change-Id: I39ed8fff7ba88042c74a11ddc58eec014c0bc6bd
Reviewed-on: https://gerrit.libreoffice.org/30361
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-11-01 08:19:30 +00:00
Arnaud Versini
6e0b4ffd25 BASIC : use rtl/character.hxx in sbxform.cxx
Change-Id: I88c9d26b27ff80e02a88349198813d2771522343
Reviewed-on: https://gerrit.libreoffice.org/30445
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-01 06:54:11 +00:00
Takeshi Abe
cb90f0976d Omit the default comparator
Change-Id: Idea8ea8dab6a86d7be6394aef1cf7f25b75009e0
Reviewed-on: https://gerrit.libreoffice.org/30319
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-11-01 04:11:44 +00:00
Takeshi Abe
9fa6dadc4e Omit the default comparator for std::sort()
Change-Id: Ib865bdf911b53d809fc2979f524da3735bb39ce5
Reviewed-on: https://gerrit.libreoffice.org/30432
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-11-01 00:54:03 +00:00
Khaled Hosny
3950166877 Revert "Enable the new text layout engine by default"
This reverts commit d79f43d0be.

Breaks MacOSX tinderbox, need to figure out why a totally unrelated test
is broken.
2016-11-01 02:25:10 +02:00
Khaled Hosny
e31f7f4c87 tdf#103403: Wrong glyph advances with Graphite
Always create HarfBuzz font at the UPEM size and scale HarfBuzz output
with the desired size instead. This theoretically means we loss any
size-specific adjustments in the font but in practice very few fonts do
this and in general modern APIs prefer stable glyph positioning across
font sizes.

Change-Id: Idf396eec5e241cc5fb9d0db698f2c081b7de29e3
2016-11-01 02:15:23 +02:00
Khaled Hosny
86abe3cb3d Revert "tdf#103403: Wrong glyph advances with Graphite"
This reverts commit 3d83c42008.

A simpler fix in the next commit.
2016-11-01 02:14:17 +02:00
Khaled Hosny
d79f43d0be Enable the new text layout engine by default
The handful of bugs reported so far have been fixed, and I think it had
enough basic testing to show that it is usable and can be switched on
for wider testing.

We can always revert back to the old engine if needed before or even
during 5.3 series.

The environment variable SAL_NO_COMMON_LAYOUT can be set to disable it
at runtime.

Change-Id: If319a0161897ec676d3123595944a0401c67b63f
Reviewed-on: https://gerrit.libreoffice.org/30443
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Tested-by: Khaled Hosny <khaledhosny@eglug.org>
2016-10-31 23:28:59 +00:00
Eike Rathke
33090865c4 Resolves: tdf#99291 empty array element should not match empty cell
As weird as it is, but an empty cell is only to be matched by an empty string,
not another empty cell.

Affects spreadsheet functions SUMIF, AVERAGEIF, COUNTIF, SUMIFS, AVERAGEIFS and
COUNTIFS.

Change-Id: Ib33402e8c93f26cd8e2648426a5bde6b267c55ab
2016-10-31 23:54:46 +01:00
Stephan Bergmann
f25a15dc99 loplugin:vclwidgets: Adapt iterator hack to libc++
Change-Id: I1e4fbb06578b2b1d6de4b57507693b014d36cd3a
2016-10-31 21:01:18 +01:00
David Tardon
04055cd8d9 fix doc comment to match code
This has been wrong since the initial commit...

Change-Id: I271375ba10c37aa9b198476955d66af9fc019e27
2016-10-31 20:16:04 +01:00
David Tardon
7445399af8 convert angle from degrees to radians for glm
This makes simple (i.e., not implemented as a shader) OpenGL transitions
work correctly again.

Change-Id: I773f686089bce3611940743b1a7f5046093886e8
2016-10-31 20:16:04 +01:00
Eike Rathke
d7984d88e6 Resolves: tdf#64001 exclude "boolean" value cells from increment during Fill
Change-Id: Id79438cc37a63c0619c6b96ecf57b10d781afea3
2016-10-31 18:13:17 +01:00
Stephan Bergmann
14e748a12f Adapt warning message
...after 1b98f38cfa "css.xml.sax.XAttributeList is
broken by design"

Change-Id: I052baf70f7798c47a9022bb7623149cb41069227
2016-10-31 16:30:37 +01:00
Stephan Bergmann
40633e32f3 Revert "Revert "Prevent nonsensical comparations between OUString and nullptr_t""
This reverts commit e559c0c9cbfd819f22ef695a9823bb71f4385b58; just turn the
deleted overloads into non-friend functions (and rely on any other overloads to
be still found via ADL).

Change-Id: I2af834162cab2e71ed9e32ae6903bc9f86d77ba2
Reviewed-on: https://gerrit.libreoffice.org/30441
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-31 15:29:17 +00:00
Eike Rathke
4f30849f07 don't loop uint16 against size
Theoretically selecting over 64k rows with a series sequence and calling Fill
could had looped endless.

Change-Id: I1740b674638eb90d51808e619c562cf8064f4888
2016-10-31 16:27:09 +01:00
Tomaž Vajngerl
c3043a3072 tdf#103591 icon theme name resolving, ui fixes, prioritize png
- Prefer "png" over "svg" because for Tango theme we include both
  "png" and "svg" icon, but rendering of "svg" crashes
- We save the choice of which icons to use into the profile. When
  32px icons were added the values have shifted - "auto" had value
  2 has became "32px" choice and "auto" has the new value 3. In the
  case of the default "auto", we now always showed 32px icons. This
  commit reverts the "auto" value 2 and puts "32px" choice to 3.
- Name resolving now always removes the icon file extension and
  adds the ".png" and ".svg" extension before resolving. This
  makes it possible to define the name of the icon without the
  file extension.

Change-Id: I05e3913aaee0037692609ced246954b14a13828a
Reviewed-on: https://gerrit.libreoffice.org/30440
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-10-31 14:49:57 +00:00
Mike Kaganski
7de287ba42 Make stable sort more stable :)
Account for negative widths/heights; only apply text fudge factor
to text elements. This prevents debug asserts that "less" comparison
is invalid.

Change-Id: Ifb46bb873bfc80fc8c07af4923073d2042d30b3a
Reviewed-on: https://gerrit.libreoffice.org/30391
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-31 14:24:50 +00:00
Noel Grandin
06babf60ce loplugin:oncevar in svl..svx
Change-Id: I80b11a7b698de4b84d7a2f4c7dc62b2e4fd8bb01
Reviewed-on: https://gerrit.libreoffice.org/30438
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-31 13:17:54 +00:00
Noel Grandin
c8b09c0024 loplugin:oncevar in sw
Change-Id: I81cd59b2a24bca533a27cc4138f1ac3acff65090
Reviewed-on: https://gerrit.libreoffice.org/30437
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-31 12:50:37 +00:00
Bjoern Michaelsen
785a4d56e6 also stubify generated object adders
- This should unbreak vcl when configured with KDE/TDE CustomTargets

Change-Id: I239e97b90174f3daef39e4a806a126cafba9d8e0
Reviewed-on: https://gerrit.libreoffice.org/30436
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-10-31 12:38:50 +00:00
Stephan Bergmann
e559c0c9cb Revert "Prevent nonsensical comparations between OUString and nullptr_t"
This reverts commit 2e3f5c8dd3, some GCC
have trouble with deleted friend functions; need to fix that properly.
2016-10-31 13:37:17 +01:00
Stephan Bergmann
2e3f5c8dd3 Prevent nonsensical comparations between OUString and nullptr_t
...now that

1b98f38 css.xml.sax.XAttributeList is broken by design
074defe Strange OUString null check
a24105a Nonsensical OUString null check
9799fe3 Nonsensical OUString null check
d6b9fea Nonsensical OUString null check
f2de7d0 This apparently always wanted to check that _rChars.trim() is non-empty
a8cfc97 SvxBrushItem::GetGraphicLink no longer returns a pointer

are fixed.  (OString didn't have this problem with overloaded operator ==/!=,
but had a similar issue with nullptr_t that OUString in turn didn't have,
f20162304d "Rule out OString(std::nullptr_t)".)

Change-Id: I4ca0e1f5a911448e7bc9b8c5dddff5993d61ef18
2016-10-31 13:23:34 +01:00
Stephan Bergmann
1b98f38cfa css.xml.sax.XAttributeList is broken by design
In the Java interface it was reportedly copied from, getValue can return null to
indicate a missing attribute, but in UNOIDL that's not possible.  The workaround
that implementations of the UNOIDL interface resorted to is apparently to return
an empty string (another option would have been to throw an exception).

But the code in xmlsecurity appears to be written under the ill assumption that
getValueByName would return null for a missing attribute.  What the code as
written actually did check was whether the return value is an empty string
(because it picks the operator ==(OUString const &, sal_Unicode const *)
overload, which happens to treat a null second argument like an empty string).

Ideally, the code in xmlsecurity would have some way to tell a missing attribute
from an empty one (via some extended XAttributeList2, or by iterating over all
getNameByIndex, or ...).  But for none of the affected attributes it seems
expected that the attribute's value could be an empty string, so checking for an
empty string seems to work reasonably well in practice.  So keep it simple and
just check for an empty string properly.

Thanks to Tor for spotting that odd xmlsecurity code.

Change-Id: Ib068ee98ef818683a43309ab4d7c3a4731e8deff
2016-10-31 13:22:06 +01:00
Stephan Bergmann
074defe26f Strange OUString null check
...ever since 035d20bd24 "INTEGRATION: CWS
aquafilepicker01".  Unclear whether this was written under the assumption that
m_aCurrentFilter is a pointer (which would explain the OSL_TRACE message talking
about "null"), or whether it really wanted to check for an empty string (which
the code acutally happened to do).  So lets keep the empty-string check in,
given it was in there ever since the code's introduction in 2007.

Change-Id: I9e48b6ceccaf069c6a6a88d3918ba88379a72497
2016-10-31 13:22:06 +01:00
Stephan Bergmann
a24105a892 Nonsensical OUString null check
...ever since 523e10ac08 "INTEGRATION: CWS
scriptingf4: #i28384# - implement Macro Selector specification".  (That happened
to redundantly check for non-empty aScriptURL, too.)

Change-Id: I3fae859af4b0cc5d2b5f8a609c74b00b120694f3
2016-10-31 13:22:05 +01:00
Stephan Bergmann
9799fe3dbb Nonsensical OUString null check
...ever since acd2c90978 "fdo#80897: Preservation
of text warp properties."  (That happened to redundantly check for non-empty
presetWarp, too.)

Change-Id: I6162f7cb5c82b7950eb3742c61bc3297e9c6fa1b
2016-10-31 13:22:05 +01:00
Stephan Bergmann
d6b9fea9b8 Nonsensical OUString null check
...ever since at least d32b3a714f "#i106421#: move
svx/source/cui to cui".  (That happened to redundantly check for non-empty url,
too; maybe in the distant past GetScriptURL returned a pointer.)

Change-Id: I6139db1d4b1fdcf5325895569de293dd89e36d9f
2016-10-31 13:22:05 +01:00
Stephan Bergmann
f2de7d0545 This apparently always wanted to check that _rChars.trim() is non-empty
...and d3e8926930 "initial checkin -
implementations for formlayer import/export - still under construction" just
forgot the '.getLength()' in

  OSL_ENSURE(0 == _rChars.trim(), ...

that is present in other, similar code.  (And the current code happend to use
the operator ==(sal_Unicode const *, OUString const &) overload that happens to
treat a null first argument like an empty string.)

Change-Id: I9d74b6ae29ca5f5f80391de50e4898add6bf6fe2
2016-10-31 13:22:05 +01:00
Michael Stahl
1e467fa8ae sfx2: Metadata has no need for cryptographic randomness
Change-Id: I911c15c0ea7a3cae0269c67d8bd6fd79e9b6d8c6
2016-10-31 12:21:19 +01:00
Stanislav Horacek
0b4118854c Updated core
Project: help  afded9511ec67e7181ffcc2614bf4c676539efcd

update description of Find and Replace dialog

Change-Id: I40af15d57e568eebdb5fe145e6a8bc9c8d6845b0
Reviewed-on: https://gerrit.libreoffice.org/30396
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-10-31 11:14:04 +00:00
Bjoern Michaelsen
735e5bb855 populate library path to gbuildtojson in tests
the test environment clears LD_LIBRARY_PATH as it seems to cause trouble for
make in ASAN. "make gbuildtoide" only runs the gbuildtojson exe, so make sure
it gets the LD_LIBRARY_PATH that was filtered out from the make that starts it.

Change-Id: I69ee0024232092aebcd1e8e11b002d6f7eb55c84
Reviewed-on: https://gerrit.libreoffice.org/30433
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-10-31 11:09:38 +00:00
Gabor Kelemen
77837fb21c Updated core
Project: help  129393b348cf785721113200e54fe7d243dbd403

tdf#103527 Remove references to the Colors settings page

The Tools->Options->$officename->Colors page was removed in
28da3aed71

Change-Id: Ife056262aba89c79d2e98f1a0f97630ed5c498ef
Reviewed-on: https://gerrit.libreoffice.org/30402
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-10-31 10:58:36 +00:00
lbenes
6a737c942b fix MSVC 2015 build Error C2397
Change-Id: I4810aa8b0b7d28bcd41b4aa19d40f41757d540cd
Reviewed-on: https://gerrit.libreoffice.org/30411
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2016-10-31 10:50:54 +00:00
Stephan Bergmann
7441141bcf No good reason for dbaccess::OCacheSet::updateRow to be pure?
Most of its virtual member functions are (though insertRow is already a curious
exception), even though they are defined, so smells like a copy/paste error
rather than deliberate design.  And appears to have been the only reason why
loplugin:unnecessaryoverride filtered out such overriding of pure base
functions.

Change-Id: Ib2a40af9cd3cd3dbb26c4147f7d01de4e11f5f6e
2016-10-31 11:38:49 +01:00
Stephan Bergmann
a8cfc979b4 SvxBrushItem::GetGraphicLink no longer returns a pointer
...since cfb4463d2a "convert
include/editeng/brushitem.hxx from String to OUString", which boldly changed it
from returning a pointer to returning a reference, probably not even taking into
account that that broke the value set (from string+null to just string).

However, that change appears to have worked OK in practice, and there maybe
wasn't a need after all to distinguish a null value from an empty string.  These
two places here were missed in the change, and happened to keep working, as they
picked the operator ==(sal_Unicode const *, OUString const &) overload, that
happens to treat a null first argument like an empty string.

Change-Id: If2d76951fa4bf6c7821321327ad653bd0a95a788
2016-10-31 11:35:46 +01:00
Noel Grandin
1b36f23b51 loplugin:oncevar in xmloff..xmlsecurity
Change-Id: I2353d3c73130ed9420e8d803a9a96a06549bb6bd
Reviewed-on: https://gerrit.libreoffice.org/30429
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-31 10:32:27 +00:00
Noel Grandin
aeeabc36fd loplugin:oncevar in unoxml..toolkit
Change-Id: I3b97665908be0a44d24192433bdc9c2bd9008736
Reviewed-on: https://gerrit.libreoffice.org/30431
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-31 10:31:25 +00:00