Commit graph

404340 commits

Author SHA1 Message Date
Winfried Donkers
07157107a3 tdf#105772 apply all ODFF constraints with function SEARCH.
Now the function both complies with ODFF1.2 and behaves the same
as Excel does.

Change-Id: Ic49af48cacedbac54688266a916c5fa6e28bb5c4
Reviewed-on: https://gerrit.libreoffice.org/34037
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-02-21 21:51:39 +00:00
Markus Mohrhard
931646b253 fix the webdav=serf build
Change-Id: I1e66f437d561e5a8838fd331c6add25f4e25655e
Reviewed-on: https://gerrit.libreoffice.org/34525
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-02-21 21:48:05 +00:00
Winfried Donkers
0aca3bde3a tdf#105885 fix incorrect result with CHISQ.DIST.RT.
With X-argument < 0 Excel returns an error; Calc now does too.

Change-Id: I58a84436b2418bef824b6494c2cc5737932cc936
Reviewed-on: https://gerrit.libreoffice.org/34098
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2017-02-21 21:32:59 +00:00
Winfried Donkers
ceb1b8f3ba tdf#105937 fix incorrect constraint for Calc function T.DIST.RT.
As code is shared for various t-distribution functions, the applied
constraints did not all apply for T.DIST.RT.

Change-Id: Ia68330e6fad7990e964fa5fd86fc062c156d1a4e
Reviewed-on: https://gerrit.libreoffice.org/34149
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2017-02-21 21:18:03 +00:00
Laurent Balland-Poirier
52b464f31a Remove unused function. Following tdf#105657
Change-Id: I7890d76b35bcf5eb9a965fb90ae1a106913548e8
Reviewed-on: https://gerrit.libreoffice.org/34506
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-02-21 21:05:44 +00:00
Katarina Behrens
a6cc035469 tdf#102003: Fix misbehaving bitmap fills in sidebar
Change-Id: I7339081df12695ad624a8b71024281034d9380be
Reviewed-on: https://gerrit.libreoffice.org/34520
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-02-21 20:42:55 +00:00
Caolán McNamara
4bd8c84c4a reformat this a tad
Change-Id: I278abd2f3410cb0212b48a605001fe7145c82cfa
2017-02-21 20:27:25 +00:00
Caolán McNamara
e834354ff3 convert writer changes menu to .ui
Change-Id: I30a957f91c3faca5e16a70efce08579ac3368bdf
2017-02-21 20:27:25 +00:00
Caolán McNamara
eb38069490 Updated core
Project: help  0dbfd3f53a4cb4074ea5745fa5c7331d87c2742e

update help ids for writer sort/edit comments menu .ui conversion

Change-Id: I960d72cd9e7903c9682e84770d8587fd69b4883b
2017-02-21 20:26:09 +00:00
Eike Rathke
b1abc8ef50 unit test for copying note from clipboard after closing orig doc, tdf#104967
Change-Id: I165363eecbb37561d8265638415e0f5f069878d7
2017-02-21 19:08:22 +01:00
andreas kainz
0d0102a800 update alignment in notebookbar.ui for writer
Change-Id: Ie2cb54148987c67fcfa409ed49daeab99850482f
Reviewed-on: https://gerrit.libreoffice.org/34490
Reviewed-by: Szymon Kłos <eszkadev@gmail.com>
Tested-by: Szymon Kłos <eszkadev@gmail.com>
2017-02-21 17:25:29 +00:00
Eike Rathke
8986bf6988 this should had been GetNote() and GetCaption()
Not creating if there wasn't.

Change-Id: I3e7a0d167e604b13674d24de18bd2bc7d3b36aa0
2017-02-21 18:18:34 +01:00
Caolán McNamara
5b949fb75e stray fprintf
Change-Id: Ieebdd7166e4a1b002cc5085bc5c83e17924cc15e
2017-02-21 16:19:13 +00:00
Caolán McNamara
7660d45dc3 convert calc changes menu to .ui
Change-Id: I65c07995ab7a63bcefeb1612e86bf3fedc33f4a5
2017-02-21 16:18:07 +00:00
Caolán McNamara
342c612086 we want selected radio entries to default unselect the others
Change-Id: Ib208797fc5c876c5646df33c4682d4a9e795912e
2017-02-21 16:18:07 +00:00
Caolán McNamara
ff30fa30ed make every menu id unique
instead of every id within each menu so submenu ids are not shared
by an id in the parent

Change-Id: Ic94794b5c461307b79969472e9fb24d11c96ca53
2017-02-21 16:18:06 +00:00
Caolán McNamara
342238a320 improve loading submenus from .ui
Change-Id: Ida5382bffa3cee55ffa64fd50d3733a178afa639
2017-02-21 16:18:06 +00:00
Caolán McNamara
1d8fe6a7c6 stl debugging points out that a < a
when using right click menu in calc redline dialog to
sort changes

Change-Id: Ib79028168470b7a556bdc37cd65ce99b4dce5152
2017-02-21 16:18:06 +00:00
Caolán McNamara
20a1f095ee Updated core
Project: help  358d6c4eb7e82309fb1bc1f362d5f43297cbc2ba

update help ids for calc sort/edit comments menu .ui conversion

Change-Id: Ib95596c2063b3edb7ace4d4f9cc1c25c829a00c1
2017-02-21 16:17:20 +00:00
Stephan Bergmann
887c89435e GtkSalPrinter_Impl must be complete for the definition of ~GtkSalPrinter
Change-Id: Ieafd639e6665025e17f6a2eb3bd5a05167de07ea
2017-02-21 17:10:34 +01:00
Michael Stahl
e970911e29 sw: translate rest of german comments in ndtxt.cxx
Change-Id: Ifacfea14cfb2f66e8e3d47d409421d89210920f1
2017-02-21 16:57:58 +01:00
Michael Stahl
27a8a8e61a sw: this member is a WW8_CP
Change-Id: I639ea24900a7774369636554547e63e9c84c5ed3
2017-02-21 16:57:58 +01:00
Michael Stahl
a620cfd83e sw: clean up LONG_MAX/WW8_CP_MAX confusion
Change-Id: I5e9d595b851db231863e3e02866149a7af01883b
2017-02-21 16:57:58 +01:00
Stephan Bergmann
95f454e255 -Werror=register
Change-Id: I8884467d1f33c8c4096520fedd51aa28a4f9f546
2017-02-21 16:29:51 +01:00
Zdeněk Crhonek
c378f89ce8 add ENCODEURL test case
Change-Id: I0854c146a8fed793460fcbe392d43e91bcfd113e
Reviewed-on: https://gerrit.libreoffice.org/34492
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2017-02-21 15:07:38 +00:00
Eike Rathke
b8c50df5d6 move ScDocShell de-/init related to getNewDocShell() and closeDocShell()
In preparation for being able to handle two documents.

Change-Id: Ie7ea65136bcd6719031af6b1034d002058bfd81a
2017-02-21 15:40:47 +01:00
Stephan Bergmann
5c99f2c852 Move INetMIME::getHexDigit(int to its only place of use
Change-Id: I8d02a51a0da5aad4cd95e15fe6bb329b43e32067
2017-02-21 15:15:56 +01:00
Caolán McNamara
dceb440f6f allow disabling liblangtag for internal libetonyek
Change-Id: I3a649f3460759cbcd290cef2e90398b2868983a9
2017-02-21 13:39:52 +00:00
Eike Rathke
45fd903d5e unit test for cell merge with note caption undo, tdf#105667
Change-Id: Ib49e0f35aa554025634c8496fbb80d87dbc86d89
2017-02-21 14:38:32 +01:00
Andrea Gelmini
7bc1c43800 Fix typos/translations, following 04644956e5
No automatic tools

Change-Id: I3a6d18760f90c4ee02b9380758f97f6fca6c4428
Reviewed-on: https://gerrit.libreoffice.org/30874
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-02-21 13:34:20 +00:00
Katarina Behrens
cd497ebda3 gpg4libre: Make internally built libgpgmepp available in instdir
Change-Id: I1193c0d350e6b0d3498117ef7719e7a009173f09
Reviewed-on: https://gerrit.libreoffice.org/34514
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-02-21 13:31:23 +00:00
Pranav Kant
1b4ce7cd8e sd lok: Support editing annotations by id + unit test
Change-Id: Id4faf59eab8c72a2d78157bca15a5e07f9622dde
Reviewed-on: https://gerrit.libreoffice.org/34512
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-02-21 13:29:07 +00:00
Winfried Donkers
76198c537f tdf#106049 Apply proper constraints for Calc function T.INV.
Probability p must be 0 < p < 1 for inverse cumulative left-tailed
t-distribution function.

Change-Id: I4f79eac8c9362e31de46b3ff4ebe7283ec475fac
Reviewed-on: https://gerrit.libreoffice.org/34375
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-02-21 12:43:01 +00:00
Laurent Balland-Poirier
e7f769bc67 tdf#106052 Treat SubFormat for "Precision as shown"
Get precision from the correct subformat

Change-Id: I458e5b3d1fb515864f19499ac9ac529e1d68a267
Reviewed-on: https://gerrit.libreoffice.org/34505
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-02-21 12:31:50 +00:00
Miklos Vajna
291c9122b2 tdf#104081 RTF import: handle \htmautsp
It's the opposite of OOXML's <w:doNotUseHTMLParagraphAutoSpacing/>, so
the default is different.

Also adapt the fdo82006 bugdoc where the original bugdoc contained this
flag, but the testcase did not.

Change-Id: I2fd757a8f95be9b1bee63570c9f587c17d3b22bc
Reviewed-on: https://gerrit.libreoffice.org/34507
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-02-21 11:40:52 +00:00
Noel Grandin
fe45930449 fix KDE build
after commit 0649622956
"loplugin:unusedmethods"

Change-Id: Ia9ef3f8c1e64397a350656a3addc1b2a67f0b118
2017-02-21 12:55:52 +02:00
Johnny_M
54f53f79f0 Translate German variable names
This is to follow up on the commit 9bbc168c29 by:
- Changing "Comma" to "DecimalMark"
- Changing "VorComma" (literally "before comma") to "BeforeDecimalMark"

Change-Id: I3eff7024df56c701ac721a1e74645c8be764bff4
Reviewed-on: https://gerrit.libreoffice.org/34429
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-02-21 10:51:21 +00:00
Stephan Bergmann
0a99b5a1b7 When building with clang-cl on Windows, build CLR code with MSVC
...as clang-cl doesn't support the /clr switch.

* In configure.ac, capture the MSCV version (that would be used if CC hadn't
  been overridden to use clang-cl) into MSVC_CXX.

* The logic which flags to pass into gb_CObject__command_pattern is coded into
  the platform-agnostic LinkTarget.mk, so it's too late to try and filter all
  relevant flags in com_GCC_class.mk, depending on whether a given .cxx file is
  a normal one built with the normal $CXX or a special /clr one built with
  $MSVC_CXX.  Thus, a new CxxClrObject class had to be introduced that captures
  this information early.

* When building with clang-cl, the generated config_host/config_*.h files
  contain values suitable for clang-cl, but not for MSVC.  But the .cxx files
  compiled with MSVC happen to include config_global.h, and would fail.  Hack
  around that problem for now by introducing a hard-coded, minimal
  solenv/clang-cl/config_global.h that is found first when buliding such a
  CxxClrObject.  Needs cleaning-up properly.

Change-Id: Iff8aac51c0b4fa906b14503c692640dda0996d33
Reviewed-on: https://gerrit.libreoffice.org/34509
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-21 10:18:58 +00:00
Noel Grandin
0649622956 loplugin:unusedmethods
Change-Id: I52a9f16f3ed543a3c83ca111df70e3f7ae1ef33c
Reviewed-on: https://gerrit.libreoffice.org/34508
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-21 10:07:37 +00:00
Pranav Kant
ede35e5c69 sd lok: Include parthash in annotation list and callbacks
... and update the tests accordingly.

Change-Id: Id11f2d19274e743b0e2a0bbeb0c21936f12b7777
2017-02-21 15:30:50 +05:30
Khaled Hosny
0e21f6619c Kill bitrot Emscripten experiment
Change-Id: I1cd5331157e684afb01e6555168ce646194c6ff2
Reviewed-on: https://gerrit.libreoffice.org/34493
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2017-02-21 09:59:07 +00:00
Jan Holesovsky
ca5277c1ad Improve readability.
Change-Id: Ibbbac458e3ef8b3d02f4d73cd8bf3ac880ff0522
2017-02-21 10:17:55 +01:00
Caolán McNamara
0fa4efec2e Resolves: tdf#106099 tweak to restore old behaviour
wrt initial default color if none gets set.

This doesn't fix the various bizarre things in font and replace by formats, just
restore to its historical initial behaviour

Change-Id: I82cc3f05d2f205947a140483537baae882e91530
2017-02-21 09:03:35 +00:00
Caolán McNamara
609670933a Related: tdf#106099 avoid casting LISTBOX_ENTRY_NOTFOUND to FontEmphasisMark
Change-Id: I7119e47c71f96af27351665ee08ea42b0ae0a622
2017-02-21 09:03:35 +00:00
Thorsten Behrens
0755b26191 Add list-style-type support to html parser
Change-Id: Ibd7978b12a3c5024c55571b165b82c6abe7a8925
Reviewed-on: https://gerrit.libreoffice.org/34461
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-02-21 08:33:19 +00:00
Stephan Bergmann
9116e05c56 Fix check for non-empty UCRTVERSION
...introduced with b862cbdd34 "Support MSVC 15.0",
but $(filter ...,) always expands to the empty string, and this is probably what
was intended.

Change-Id: I5865ea13ba3c3d52402bcba48f4f770f6c2b8862
Reviewed-on: https://gerrit.libreoffice.org/34482
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-21 08:27:19 +00:00
Stephan Bergmann
fb896ebc7e Remove wrong and broken encoding from INetMIMEMessage::SetHeaderField_Impl
INetMIMEEncodedWordOutputSink had been intended to encode (non-ASCII) content of
a "free-form text" header field as per RFC 2047.  It used a heuristic trying to
detect already encoded words (=?...?...?...?=) in the input, to pass them
through unmodified.  (Arguably, it could just as well have encoded them,
assuming they were meant to be genuine input.)  However, that heuristic had a
bug ever since 8ab086b6cc "initial import", going
from STATE_FIRST_EQUALS to STATE_FIRST_EQUALS instead of STATE_FIRST_QUESTION,
rendering the heuristical detection logic effectively unused.

Instead of fixing the bug, 6e12729f71 "remove
unused enumerator from EncodedWordState" and
b8d8fb3f0c "convert EncodedWordState to scoped
enum" crippled the code further by removing any reputedly unused cases.

But the only remaining use of INetMIMEEncodedWordOutputSink is in
INetMIMEMessage::SetHeaderField_Impl, encoding MIME-Version, Content-Transfer-
Encoding, Content-Type, and Content-Disposition header fields.  And none of
those headers have any "free-form text" content that should be encoded as per
RFC 2047.  The first two have fixed ASCII-only content ("1.0" and "7bit",
"8bit", etc., respectively), while the latter two have structured content that
may contain parameters of arbitrary content, which must be encoded according to
RFC 2231 (but currently isn't).

And the only place where such arbitrary-content parameters are generated is in
the two calls to SetContentTransferEncoding in
forms/source/component/DatabaseForm.cxx.  (The calls to SetContentType there and
in tools/source/inet/ itself are all known to have unproblematic ASCII-only
content.)  So mark those two places with TODOs about the missing encoding (which
had been missing since forever) and, in INetMIMEMessage::SetHeaderField_Impl,
liberally convert the content to 8-bit via OUString::toUtf8 for now.

Change-Id: I4b2a219b396953b219ca66441a5227157a35951f
2017-02-21 08:22:19 +01:00
Pranav Kant
0f6e813827 Revert "sw lok: Move this test to sw/"
This reverts commit b7640cbb4b.

Not much idea yet but moving it to sw/ for some reason makes callback
pertaining to last 'InsertAnnotation' uno command not firing and on
ubsan tinderbox even the first 'InsertAnnotation' command is a noOp
failing the tests there. Lets keep it in desktop/ for now where it was
earlier.

Conflicts:
	desktop/qa/desktop_lib/test_desktop_lib.cxx

Change-Id: I67f5bdeffa218ae2a7afe0896f7cdde5324a5f09
2017-02-21 12:36:00 +05:30
Takeshi Abe
3efdd925e0 tdf#106116 "Previous Marker" changes selection only when needed
This fixes a hang caused by repeated Shift+F4. Although it seems
a regression from 2af1f5691e,
the original code of SmEditWindow::SelPrevMark() had been doomed
due to conditional loop depending on obscure signed/unsigned
conversion.

Change-Id: I61f630eec44b285dc1f1c27097acde4b48ed2991
Reviewed-on: https://gerrit.libreoffice.org/34503
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-02-21 06:44:23 +00:00
Stephan Bergmann
3eab8a00bb loplugin:subtlezeroinit: lotuswordpro
Change-Id: I8e95fa92f0a56ac7f4d5379253b7161b9d2a813f
2017-02-21 07:38:42 +01:00