406095 Commits

Author SHA1 Message Date
Noel Grandin
8cd5002959 use actual UNO enums in chart2
Change-Id: I05d4eed55f5deba4b1802389d1ba94582d30550f
Reviewed-on: https://gerrit.libreoffice.org/35917
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-31 07:00:10 +00:00
Noel Grandin
9a165a8679 use actual UNO enums in xmloff
Change-Id: I585825ad3faf972acde548817187183029856971
Reviewed-on: https://gerrit.libreoffice.org/35914
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-31 06:59:51 +00:00
Noel Grandin
dcffc21805 use actual UNO enums in svx
Change-Id: I00f53260667861ca2595892b5605479da3401adb
Reviewed-on: https://gerrit.libreoffice.org/35913
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-31 06:59:31 +00:00
Noel Grandin
7fca8e61ce use actual UNO enums in sfx2
Change-Id: Ide3ce0bc1afc9de46c2d06b161acff8d32fe1193
Reviewed-on: https://gerrit.libreoffice.org/35911
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-31 06:59:13 +00:00
Noel Grandin
7acbf45fcc use actual UNO enums in editeng
Change-Id: I58e794f161f3c4dd103985f575bc25202d4989b3
Reviewed-on: https://gerrit.libreoffice.org/35907
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-31 06:58:55 +00:00
Noel Grandin
3c56928c92 use actual UNO enums in unotools
Change-Id: I71ee54a5eb70f1a322cc87cd940bc63ff95366b6
Reviewed-on: https://gerrit.libreoffice.org/35906
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-31 06:58:39 +00:00
Noel Grandin
97844a113f use actual UNO enums in i18nutil
Change-Id: I959b26471fe69c4ee8ecb7e2fd57a53e24187112
Reviewed-on: https://gerrit.libreoffice.org/35905
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-31 06:58:26 +00:00
Miklos Vajna
a5a571307f tdf#82580 tools: rename Rectangle to tools::Rectangle
Mostly generated using

make check COMPILER_EXTERNAL_TOOL=1 CCACHE_PREFIX=clang-rename-wrapper RENAME_ARGS="-qualified-name=Rectangle -new-name=tools::Rectangle"

Except some modules have their own foo::tools namespace, so there have
to use ::tools::Rectangle. This commit just moves the class from the
global namespace, it does not update pre/postwin.h yet.

Change-Id: I42b2de3c6f769fcf28cfe086f98eb31e42a305f2
Reviewed-on: https://gerrit.libreoffice.org/35923
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-03-31 06:27:11 +00:00
Justin Luth
17d821af6b spelling in comments: minmal -> minimal
Change-Id: Ie1947782cd7679c0c979d01ee7776176d771fc04
Reviewed-on: https://gerrit.libreoffice.org/35925
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
2017-03-31 06:02:03 +00:00
Justin Luth
5251e7988a tdf#106701 tabOverMargin: only affect specified tabstops, not autotab
Change-Id: I15bf3a8555a152cab90380524b4a968f9f95fc37
Reviewed-on: https://gerrit.libreoffice.org/35924
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
2017-03-31 06:01:18 +00:00
Gabor Kelemen
4a58754714 Updated core
Project: help  9f6da2a058bbd85ed331724e0b81986508c84ac5

Unbreak build after https://gerrit.libreoffice.org/#/c/35927/

File was not added to the repository

Change-Id: I71766866d8baeed1aaf8a61f8f0522b7bf710868
Reviewed-on: https://gerrit.libreoffice.org/35956
Reviewed-by: Gabor Kelemen <kelemeng@ubuntu.com>
Tested-by: Gabor Kelemen <kelemeng@ubuntu.com>
2017-03-31 05:52:48 +00:00
Takeshi Abe
0ba23e36bb starmath: Stop using the stack to parse consective identifiers
and numbers.

Change-Id: I7e898cd437ec314a0d07a16e13d3044480d2e057
Reviewed-on: https://gerrit.libreoffice.org/35903
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-03-30 23:58:49 +00:00
Michael Stahl
c382c998ff writerfilter: DOCX import: fix handling of w:hideMark vs. w:vMerge
The problem is that Writer's layout can't handle the case where cells
are vertically merged and the last row has a fixed height; the vertically
merged cell will grow up to the height of the other cells in the non-
fixed rows plus the fixed row height, but no larger.

So for now, avoid setting fixed row heights in this case.

(regression from d1278ef4849661b9ae0eb7aaf4d74fbf91ccaf11)

Change-Id: Iac3689e0bb0d5b8a62115ca0fb1f2c553a6e6bbc
2017-03-30 23:23:51 +02:00
Tomaž Vajngerl
d8c23a7276 android: restore tabbed toolbar removed by accident
commit 1503769fe15c122ff2bb8f6f7e7b4ab72656ddc2 removed tabbed
toolbar by mistake

Change-Id: I72e408d8e67b846e227d4563a8cd8455c1e73c29
2017-03-30 22:21:38 +02:00
Ximeng Zu
c1769e9b27 tdf#96816 android: top part unreachable with soft keyboard
Uncomment in Manifest file the line related to input method:
android:windowSoftInputMode="adjustResize"
This allows for panning and zooming to the top part of the
document.

Change-Id: Ic75489071add6b52948d381f4f8b7205148b78ef
Reviewed-on: https://gerrit.libreoffice.org/35721
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-03-30 20:16:50 +00:00
brainbreaker
72b9fe1d47 Add superscript and subscript text formatting options
This commit adds superscript and subscript text formatting
options in formatting toolbar

Change-Id: Id6966eb11b71b269431a21f46bd7c597fdcdb08c
Reviewed-on: https://gerrit.libreoffice.org/35778
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-03-30 20:16:06 +00:00
Caolán McNamara
bb3715b628 ofz#967 optimize tiff import if line is the same as previous line
Change-Id: Ided61679a579a73481320f85c05b03e3ce3d762a
2017-03-30 21:14:48 +01:00
Caolán McNamara
30d58306a9 ofz#968 short-cut slow create mask when we are our own mask already
Change-Id: I5969226bf2da34d34e30e44ae763792cdc072bc8
Reviewed-on: https://gerrit.libreoffice.org/35921
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-03-30 20:12:21 +00:00
Caolán McNamara
d9d94d7169 tweak indent a little
Change-Id: Icc3c69887a15eb0eacfa9209630a57f602c44422
Reviewed-on: https://gerrit.libreoffice.org/35920
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-03-30 20:12:01 +00:00
brainbreaker
1503769fe1 tdf#106325 - No way to create a new Document
This commit will add the ability to create a new document.
A FAB is used in home screen which on expansion gives
four options namely new writer document, new impress,
new Sheet or new Draw. Two new events loadNewDocument
and saveDocumentAs have been added.
Another major change includes the use of constraint layout
in LOUIActivity layout as it decreases nesting of views and
improves the app performance. This was needed because
of the new FAB layouts being added.
Support for vector drawables has been enabled.

Change-Id: Ia3ea17f73c0d8514f8ddb7b9a1cbd2ce7de6ac08
Reviewed-on: https://gerrit.libreoffice.org/35183
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-03-30 19:59:10 +00:00
Olivier Hallot
0466d0c815 Updated core
Project: help  e8045f04d057ea3e50726f99c442557e6e3986bc

Fix list of View commands in Writer menu help

Reorder and update View menu description for  Writer

Change-Id: Ib7af048b603977dabbdb53069935a5158e3a6bbe
Reviewed-on: https://gerrit.libreoffice.org/35927
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-03-30 19:05:15 +00:00
Olivier Hallot
333879483e Updated core
Project: help  8291b5b5f748af4eeb68797193e9c84d11ecbda5

tdf#106861 - fix Autoinput entry in menu, plus

- Reorder Calc tools menu help page
- Remove ref to "Cell contents"
- Move Recalculate to Data menu

Change-Id: Id6165db40a99316eae9768955b6cdbb9d5f05afb
Reviewed-on: https://gerrit.libreoffice.org/35922
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-03-30 19:04:39 +00:00
Miklos Vajna
932f6a8f37 vcl PDF export, norefxobj: add test for this
Assert two important properties:

- the pdf image is described using the form xobject markup (not the
  reference xobject one)
- the form xobject refers to a vector image, not to a bitmap one

Change-Id: I94b88976c1e5392758d56254143fbeeeeba51412
Reviewed-on: https://gerrit.libreoffice.org/35901
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-03-30 18:28:53 +00:00
Vitaliy Anderson
c12035df53 NeonSession_NeonAuth(): avoid redundant OUString->OString conversion
Change-Id: I6b8515c25d58a88a040d4e08e36ffbd442228828
Reviewed-on: https://gerrit.libreoffice.org/35915
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-03-30 17:42:11 +00:00
Jean-Sebastien Bevilacqua
c568eb7d3b tdf#105975 Add Formula field parsing (docx) in SWriter
Introduction
------------

In MSWord, you can create a formula field (starting with =).
When you save your file as `docx`, this `FORMULA` field is registered
in you file (a field starting with `=`). In its current state,
LibreOffice can't parse the `FORMULA` field in `docx` file.

Context of this fix
-------------------

This fix is entirely located in the `DomainMapper_Impl.cxx` file
because it's where the parsing is done.

How this fix works
------------------

First, we add `FORMULA` support by adding it to the `aFields[]` variable.
Next, to handle the `FORMULA` constant, we add a condition (swith case) in
`DomainMapper_Impl::CloseFieldCommand()` to call `handleFieldFormula`.

Note
----

In function `lcl_ExtractToken`, if command starts with `=`, it's a
`FORMULA` field.

Change-Id: If7d25de5413aa3133b22523d8a3f34ab6961adfc
Reviewed-on: https://gerrit.libreoffice.org/34334
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2017-03-30 17:39:00 +00:00
Jean-Pierre Ledure
53c2507bf9 Access2Base Missing parentheses - tdf#106710
Due to more severe Basic interpreter on final parentheses
missing parentheses were revealed

Cherry picking https://gerrit.libreoffice.org/#/c/35717/
was not sufficient as they were remaining cases in new LO5.4 code

Change-Id: I6a883ceed22ae20bb61cba8e3966c2dc680bdd0c
2017-03-30 16:23:09 +02:00
Caolán McNamara
0d658dfc8f ofz#969 endless loop in ppt loading
Change-Id: If68bf21cd135c64957cc6def654230daa5240698
2017-03-30 14:15:22 +01:00
Noel Grandin
0cd7ccb87e convert GradientType to scoped enum
Change-Id: Ie71ead122965e967796ed01270cc2824d35905ac
Reviewed-on: https://gerrit.libreoffice.org/35900
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-30 13:06:54 +00:00
Jochen Nitschke
da56de9ac4 remove type decorations on char literals
they are only needed where type deduction fails.
left them in defines for now.

Change-Id: I7f002dd6bc7acc083c73b6c64076de6dd28d0b09
Reviewed-on: https://gerrit.libreoffice.org/35893
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-03-30 12:21:40 +00:00
Szymon Kłos
8d1a56c206 tdf#98416 libcmis: Google Drive 2FA fix
Change-Id: Ice6758d8e9bc0ece57e038561376e7a6d67ab616
Reviewed-on: https://gerrit.libreoffice.org/35880
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2017-03-30 11:48:35 +00:00
Miklos Vajna
bed628dda3 Updated core
Project: help  f2c45a2b93c88cf7fa1feba2197e8745f56de98a

vcl PDF export, norefxobj: add help text for this

Change-Id: I7d19333e0f025e2d9c8d894f082971feb7492c63
2017-03-30 11:47:59 +00:00
Takeshi Abe
eeadfca737 starmath: Hold error nodes as subnodes of SmBracebodyNode
so that the resulting tree aligns them in a straightforward way.

Change-Id: Ica86be557c5d462425f5e88930dbdec29947e5d7
Reviewed-on: https://gerrit.libreoffice.org/35882
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-03-30 11:08:39 +00:00
Noel Grandin
2b789f2e9d use SFX_INTERFACE_NONE constant
inside of constructing SfxInterface(0) by hand

Change-Id: Ic2cbe39366a36b40b672242a250f68135d4e2cd3
Reviewed-on: https://gerrit.libreoffice.org/35892
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-30 10:32:31 +00:00
Michael Stahl
b5c26668a0 editeng: tweak comment
Change-Id: I587fafea157a02d2c903dda4b85448b1fe349c3e
2017-03-30 12:26:12 +02:00
Michael Stahl
f5686d57d8 sw: convert to assert in atrflyin.cxx
Change-Id: I0cf6615e343b54ee5b4c212fe365dcf16234ff08
2017-03-30 12:25:28 +02:00
Jens Carl
ad3681df0a tdf#39468 Translate German comments
Translate German comments and terms in dbaccess/, forms/, fpicker/, framework/,
and idl/

Change-Id: I08b3db9492f16fc1c457e8f5eff838c13561c945
Reviewed-on: https://gerrit.libreoffice.org/35888
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-30 10:27:35 +00:00
Jens Carl
63e36cdd9d tdf#39468 Translate German comments
Translate German comments and terms in filter/

Change-Id: I37a5c87952b2664ea3171373c8bb9020c0fa73d0
Reviewed-on: https://gerrit.libreoffice.org/35887
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-03-30 10:26:27 +00:00
Miklos Vajna
38b0c24fa5 Related: tdf#105454 DOCX import: fix unwanted enabled-by-default kerning
Similar to DOC, DOCX doesn't enable kerning by default.

Change-Id: I070ff5f0d43c27107593d629a1ad681d29d2038c
Reviewed-on: https://gerrit.libreoffice.org/35890
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-03-30 10:19:02 +00:00
Jens Carl
a82627aa78 tdf#39468 Translate German comments
Translate German comments in extensions/

Change-Id: I6be5eb45c0269d5949214a5788d61b210ee1381b
Reviewed-on: https://gerrit.libreoffice.org/35886
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-03-30 10:16:27 +00:00
Jens Carl
5aaaa9408a tdf#39468 Translate German comments
Translate German comments and terms in editeng/

Change-Id: I9bd15ca0914b34839d83751f530dd212d91e029e
Reviewed-on: https://gerrit.libreoffice.org/35884
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-30 10:14:53 +00:00
Jens Carl
eff5af0f73 tdf#39468 Translate German comments
Translate German comments in dtrans/

Change-Id: I8cdae7234e6ffd60e61c3b6b35ae5eee55924ac6
Reviewed-on: https://gerrit.libreoffice.org/35883
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-30 10:09:33 +00:00
Johnny_M
56923c7b64 Translate German comments (leftovers)
Translated leftovers in sc/source/core/tool/ and sc/source/filter/inc/

Change-Id: I4dff3d58a4ff5fb93d1fd3b6ab6695c868998e23
Reviewed-on: https://gerrit.libreoffice.org/35879
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-30 10:04:52 +00:00
Julien Nabet
3d906db0a5 Fix overflow case returned by XmbLookupString
man of XbmLookupString when XBufferOverflow:
       XBufferOverflow   The input string to be returned is too
                         large for the supplied buffer_return.  The
                         required size (for XmbLookupString,
                         Xutf8LookupString in bytes; for XwcLookup‐
                         String in characters) is returned as the
                         value of the function, and the contents of
                         buffer_return and keysym_return are not
                         modified.  The client should recall the
                         function with the same event and a buffer
                         of adequate size to obtain the string.

So in this case retrieve length expected
then call it with +1 for null termination

Change-Id: I8507bb249a411c7e899746e0598f4a055a26fb19
Reviewed-on: https://gerrit.libreoffice.org/35519
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-03-30 09:40:56 +00:00
Tor Lillqvist
e86d604dc4 The svError case is probably not worth a SAL_WARN
Also, sort the cases of that block in order of the enumerators.

Change-Id: If46a4ff73d6f7d22bd54b74610eb6eebecd5aff0
2017-03-30 12:23:47 +03:00
Caolán McNamara
1c2dd8dc14 Resolves: tdf#106838 icon set not visible in conditional formatting
Change-Id: Ibafaa487d39a69bc7c5c150361368614c0d9e004
2017-03-30 10:17:23 +01:00
Tor Lillqvist
c7442c0d49 Use StackVarEnumToString
Change-Id: I4c8f6f8153c9b7e4625f24f613771af19aa5d5e4
2017-03-30 11:47:58 +03:00
Noel Grandin
34edd437e3 convert ApiTransparencyMode to scoped enum
and drop unused API_TRANSPARENCY_PAINTTRANSPARENT enumerator

Change-Id: I7abd0f15d1c9a1dc4aeff47e5b3c782d5e8c08e1
Reviewed-on: https://gerrit.libreoffice.org/35843
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-30 08:43:27 +00:00
Noel Grandin
c88d5f0268 data.xcd dead after tdf#46723 - enable configmgr unit tests
Change-Id: I04fc155f344e15d5bff17cdc42815e7afb14bd38
Reviewed-on: https://gerrit.libreoffice.org/35891
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-30 08:38:14 +00:00
Stephan Bergmann
45aaf4d48f loplugin:loopvartoosmall
Change-Id: If714cafd9f2786610a03b1f5f6466a9ea06e46e6
2017-03-30 10:37:30 +02:00
Stephan Bergmann
b24644564a loplugin:redundantcast
(only triggers on macOS, as on Linux unistd.h declares lseek with a return type
of intermediary __off_t/__off64_t typedefs)

Change-Id: I967e472a050ad624a6411947b10c962ac8f66bed
2017-03-30 10:33:33 +02:00