Commit Graph

400971 Commits

Author SHA1 Message Date
tagezi
2c9972b8d4 tdf#104441 Addition to output to the console help
There is no documentation in the help on how to open a file and automatically
run a macro

Change-Id: I94c5e87ae0f573a5546a83b118021744b439c7cd
Reviewed-on: https://gerrit.libreoffice.org/32122
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2016-12-17 19:17:58 +00:00
Stephan Bergmann
d47847116f Blind fix for MSVC
"warning C4510: 'XMLEmbeddedObjectImportContext::{ctor}::<unnamed-tag>' :
default constructor could not be generated"

Change-Id: I3c81bf4c0fd20795e20f5c0f2e790bf4118c0e2d
2016-12-17 20:13:18 +01:00
Tamás Zolnai
5694b4970e tdf#104722: Wrong text alignment when text box is smaller than the text inside
The default TextHorizontalAlignment is block. Setting
paragraph alignment (on UI) works when this text
alignment property is set to block (otherwise has no effect).
In general this works on this way, but the existing
algorithm did not work in those cases when the
text was bigger than the container shape.

Change-Id: I02dba76f8e3033a465bb14dc826521966bb30987
Reviewed-on: https://gerrit.libreoffice.org/32123
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2016-12-17 16:39:55 +00:00
Julien Nabet
2beb90a041 Fix QTBUG urls
Change-Id: Ia265b0b6b9d1883e51e561c50f521c82bf0de222
Reviewed-on: https://gerrit.libreoffice.org/32124
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2016-12-17 16:25:52 +00:00
Justin Luth
223dd0c15e tdf#104714 bRemove paragraph: ignore frames in Headers/Footers
Empty paragraphs are removed in certain cases. If the previous
paragraph was in a frame, then this one shouldn't be removed
(unless that previous paragraph was in a header/footer).

Most of this patch is renaming the function to clarify that
it refers to the latest paragraph, not the very last one.

As noted in original tdf#75573, there may be other paragraph
containers that should also ignore their framed status - so
I've tried to set this up to make it easier to add those cases
when proof documents are found.

Change-Id: Icd09793f652616622ab266942f4b81eeb39c0ccc
Reviewed-on: https://gerrit.libreoffice.org/32121
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
2016-12-17 16:19:00 +00:00
Stephan Bergmann
9ca34fa451 Minor simplification
(the explicit OUStringLiteral ctors in aServiceMap are needed at least by GCC 4.8
used by <http://ci.libreoffice.org/job/lo_gerrit/Config=linux_gcc_release_64/>)

Change-Id: I16721317ef4fd47ca6f2905a9387a77fbf54086a
Reviewed-on: https://gerrit.libreoffice.org/32100
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-12-17 16:13:43 +00:00
Stephan Bergmann
5c2f401a5f Minor simplification
Change-Id: Ia953a09f708fd83a2a5b2655dec2ed626891bb7c
Reviewed-on: https://gerrit.libreoffice.org/32099
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-12-17 16:12:52 +00:00
Stephan Bergmann
83d2c5180d Adapt to no-longer explicit OUStringLiteral ctor
...from previous commit

Change-Id: I062b7cd212c17e7eb5274476e6859228d0477c7f
Reviewed-on: https://gerrit.libreoffice.org/32098
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-12-17 16:12:02 +00:00
Stephan Bergmann
87707670c9 Make OUStringLiteral more useful
...by:

* making the OUStringLiteral ctor non-explicit (to be exploited in a follow-up
  commit)

* adding (LIBO_INTERNAL_ONLY) overloads to OUString/OUStringBuffer functions
  that can now take OUStringLiteral in addition to taking "real" string literals

(Keeping the number of overloads smaller by replacing the ConstCharArrayDetector
overloads with ones taking OUStringLiteral (for LIBO_INTERNAL_ONLY, at least)
and relying on the now-implicit conversion from "real" string literals to
OUStringLiteral unfortunately would not work:  Both OUString and OUStringLiteral
argubably need implicit conversions from "real" string literals, so any function
overloaded for OUString and OUStringLiteral would be ambinguous when called with
a "real" string literal.  And removing the OUString ctor taking a "real" string
literal and relying on an implicit conversion chain from "real" string literal
to OUStringLiteral to OUString doesn't work because it would involve two user-
provided conversions.)

Change-Id: I14433fc1605b048807f60b3a3e14f92221d3a226
Reviewed-on: https://gerrit.libreoffice.org/32097
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-12-17 16:11:10 +00:00
Caolán McNamara
e3077960cd fix !HAVE_FEATURE_UI build
Change-Id: I5df340811b98c87f8b64fbaca469e2cd4535b81f
2016-12-17 15:59:23 +00:00
Caolán McNamara
89b2159d2f dba_ORowSet needs HAVE_FEATURE_DBCONNECTIVITY
Change-Id: I35c2121069c2bcf72f6a4db66ea0703b17f96a50
2016-12-17 15:49:26 +00:00
Caolán McNamara
4ec87ca784 add dbtools for !HAVE_FEATURE_DBCONNECTIVITY anyway
Change-Id: I7a769ab3c7881eae80849efc5e75eca5846d254f
2016-12-17 15:47:15 +00:00
Caolán McNamara
818d93f1db more !HAVE_FEATURE_DBCONNECTIVITY build fixing
Change-Id: I1f949c29020c498200decdac487e0519f48a4142
2016-12-17 15:21:26 +00:00
Caolán McNamara
2ac7558242 fix !HAVE_FEATURE_DBCONNECTIVITY build
Change-Id: I7a4fe41d6ff5c7b9fe9ed243b84779da9d2c8a68
2016-12-17 15:09:21 +00:00
Bjoern Michaelsen
767e1429b2 also read Library check targets
this should fix libscqahelper ending up with a wrong MAKEFILE, which
then confuses gbuild-to-ide

Change-Id: Ibf030b3d9dbf3ba92b7e119e847d7cd6104dedb2
Reviewed-on: https://gerrit.libreoffice.org/32107
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2016-12-17 10:27:29 +00:00
Justin Luth
1427817a94 tdf#104613 fix logic error in code replacement: CalcLineSpace
since m_bBorderDist is currently always true, this will not have
any real impact, but it should be ,m_bBorderDist instead of ,true.

Fixes commit 5d9d0f3c97
   there is a function for that: CalcLineSpace(xx, bEvenIfNoLine)

Change-Id: I5c7f6ad02d2a4c426e2d231c13d3d38ce45b7a1b
Reviewed-on: https://gerrit.libreoffice.org/32112
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
2016-12-17 10:02:24 +00:00
Caolán McNamara
c60e07a863 icu genbrk built with enable-static can't find its data, help it out
Change-Id: I4e584a2d518d8d9a1e183cf4f5f76eaff349352d
Reviewed-on: https://gerrit.libreoffice.org/32095
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-12-16 20:50:25 +00:00
Eike Rathke
8bd9e0503e adjust rounding decimals to expected values
This may have been the cause for some tinderboxes choking on this test
on Windows and Mac if the forecast results slightly differed due to the
initialization with random values and the calculation taking place with
a different internal floating point precision. So let's try.

Blindly throwing ROUND(...,12) at all values is wrong anyway because
that doesn't take the magnitude of the expected value into account. What
we actually want is an accuracy of 12 digits, not an accuracy of 12
decimals.

0.123456789012
1.23456789012
12.3456789012
123.456789012
...

Change-Id: If88d75277c3d17cfd72f36d0f88d093b63da8add
2016-12-16 19:39:30 +01:00
Caolán McNamara
d3c06fb904 Revert "build our own fontconfig and freetype under oss-fuzz"
did I break android here mysteriously

This reverts commit f2fae3684f.

Change-Id: I0d941d3e474c6693cd15e1b55baab83a3da48488
2016-12-16 17:20:12 +00:00
Caolán McNamara
62f2a279ed add missing WITH_LOCALE_cu
Change-Id: I78bee8ee1426096830f8402e3967819779426783
2016-12-16 17:04:05 +00:00
Michael Stahl
ae3ec0d53a tdf#91260 sw: fix nasty corner case of SdrGroupObject in header
or footer.  Some very special handling going on to paint these in
VOCOfDrawVirtObj with a GetSwDrawVirtObj().GetOffset() added;
they are falsely identified as invisible because their
sub-objects have an anchor set but it is always on the first page
so to properly check them we'd have to add the same GetOffset()
thing but checking the top-level object should be sufficient.

(regression from 689cead9e0)

Change-Id: Ida6fcd41948f46410ca02193549e426bc9dae8c5
2016-12-16 17:37:57 +01:00
Michael Stahl
bdd1a03b45 tdf#101464 tdf#91260 tdf#104620 sw: fix null SwPageFrame crash
It turns out that draw objects in header/footer often don't have
AnchoredObject::mpPageFrame set, so use FindPageFrameOfAnchor()
instead.

(regression from ae06f4be6b)

Change-Id: I6d54baa3acffa6775d5b57a1517c77a964065dd0
2016-12-16 17:37:57 +01:00
Caolán McNamara
c175620c31 crashtesting: 10 squillion .doc export asserts
since...

commit 880e622d2e
Author: Bjoern Michaelsen <bjoern.michaelsen@canonical.com>
Date:   Sun Dec 11 14:30:44 2016 +0100

    refactor out lcl_GetWW8Pos

IIUC the old code only changes the X/Y if its not NO_CONV for
that direction, so lets reintroduce that and then drop the assert

Change-Id: Ia5b0e668fff83466dc2ab59aa163cb9a87984b0e
2016-12-16 16:25:27 +00:00
Caolán McNamara
50826a1152 fix a regression in lcl_GetWW8Pos
wrong since...

commit 880e622d2e
Author: Bjoern Michaelsen <bjoern.michaelsen@canonical.com>
Date:   Sun Dec 11 14:30:44 2016 +0100

    refactor out lcl_GetWW8Pos

Change-Id: If7b680aa80a3d2e197b853a46afdcee6be83046c
2016-12-16 15:59:49 +00:00
Caolán McNamara
429290b8cf -Werror=maybe-unintialized
Change-Id: I73eb58e44c00d5e1cfcabe71f2ba946a81a62fa7
2016-12-16 15:24:22 +00:00
Pranav Kant
c5ceb0134d lok: Fix state feedback for ToggleMergeCells
Now it broadcasts "disabled" to disable the command and
true/false to tell the status of the command which automatically
means "enabled"

Change-Id: I3314da77fb2b84d97f64b9832d65791b84fcd7df
Reviewed-on: https://gerrit.libreoffice.org/32086
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-12-16 15:07:31 +00:00
Pranav Kant
3ab307e568 lok: Sort ascending/descending is enabled/disabled state
... and not true/false

Change-Id: Ie9ae6cbf70c1934dda1002deabda23c9f461c8b1
Reviewed-on: https://gerrit.libreoffice.org/32085
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-12-16 15:06:31 +00:00
Winfried Donkers
245b615400 tdf#104581 handle constraints for NEGBINOMDIST in compliance with ODFF1.2.
Also changed varaiable names for easier understanding of their meaning.

Change-Id: I7c6f338c04898c7b07ebeb97fb331d51fa691f5b
Reviewed-on: https://gerrit.libreoffice.org/31910
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-12-16 15:01:11 +00:00
Khaled Hosny
0c49ab7706 Simplify CommonSalLayout::ParseFeatures()
Use OString::getToken() instead of manually tokenizing the string.

Change-Id: I2647dc2be1343de8ae0adf581260f5e06364ef79
Reviewed-on: https://gerrit.libreoffice.org/32015
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2016-12-16 14:58:30 +00:00
Khaled Hosny
ab291ac3b8 tdf#104159: Fix caching glyphs of non-UI fonts
Partially reverts "tdf#103725: Fix horizontal scaling on Windows",
which didn't work on newer Windows versions anyway.

This reverts commit a5750d92b2.

Change-Id: Ia4bb426a21804517d3ec313ab7494ba121c5751b
Reviewed-on: https://gerrit.libreoffice.org/32068
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2016-12-16 14:57:14 +00:00
Stephan Bergmann
54c401d775 loplugin:staticmethods (clang-cl)
Change-Id: Id97600a7d29fbe938d67ea074ca12dd665a29cc3
2016-12-16 15:28:40 +01:00
Stephan Bergmann
b2d800eda6 loplugin:unnecessaryoverride (clang-cl)
Change-Id: Ib98620423606e355cf24ee3954f196d9f073c30d
2016-12-16 15:28:40 +01:00
Stephan Bergmann
f1639ffe28 -Werror,-Wunused-function (clang-cl)
Change-Id: I19292f03c1a28eed8712dc83dc9cc0334c8f45e3
2016-12-16 15:28:40 +01:00
Stephan Bergmann
5fbe5e968b Work around -Werror,-Wunused-macros (clang-cl)
Change-Id: Iebe340f9594f0e1847055361cebce5930685efd9
2016-12-16 15:28:39 +01:00
Stephan Bergmann
2e54c5a0b4 -Werror,-Wstrict-prototypes (clang-cl)
(sal/inc/rtllifecycle.h only hits on Windows as that is the only platform that happens to
actually include it in a C compilation unit, sal/osl/w32/dllentry.c)

Change-Id: I2878b52daf713ea45eaa2968cc5d2686b86abfe6
2016-12-16 15:28:39 +01:00
Caolán McNamara
5d50612bfb COM_IS_CLANG is used before its set
since

commit 817cd83cb7
Author: Peter Foley <pefoley2@pefoley.com>
Date:   Mon Jan 18 14:19:51 2016 -0500

    Improve LTO flags on Android

so just drop the piece which can never be true here

Change-Id: Ia9d718254d9dda5c25af269221a2acae1eb0566d
Reviewed-on: https://gerrit.libreoffice.org/32070
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-12-16 14:22:45 +00:00
Stephan Bergmann
cc69d4f26b loplugin:unnecessaryoverride (clang-cl)
Change-Id: I9e4f210c9670b28a99b779d15ec32303832ce48b
2016-12-16 15:21:59 +01:00
Stephan Bergmann
704fbec2bf loplugin:nullptr (clang-cl)
Change-Id: I557e752ca05146e2a571d027fc3d1875afd6ef26
2016-12-16 15:21:04 +01:00
Stephan Bergmann
f54d5cd7a1 -Werror,-Wnonportable-include-path (clang-cl)
Change-Id: I2a64b18c707085f7d4485ba46d599e8ab0df2408
2016-12-16 15:19:30 +01:00
Stephan Bergmann
9d7802e7fc Make move detection in loplugin::passstuffbyref work for parenthesized cases
Change-Id: I56754a718af9433c0fa654ccb8eb34da00e75420
2016-12-16 15:16:37 +01:00
Stephan Bergmann
b998313d9d Make move detection in loplugin:passstuffbyref work with MSVCRT
...where an ImplicitCastExpr happens to appear between CXXConstructExpr and
CallExpr

Change-Id: I62226cc89d87bd3d9c03743b650f10c32c18f9be
2016-12-16 15:14:23 +01:00
Samuel Mehrbrodt
bfcecd6774 screnshot test: Ignore error when creating directories
createPath documentation advises against relying on the E_EXIST error code,
so we just ignore it

Change-Id: I0e842315e1fd5c661d2b504b196e320f84c58e4f
Reviewed-on: https://gerrit.libreoffice.org/32081
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-12-16 13:52:38 +00:00
Olivier Hallot
5b5856415d Updated core
Project: help  330afbbc626e0e811a3bf0fc709fedc41b11eed2

Fix URL for invoking help page in HC3

Missing ?

Change-Id: If1e1f2a94f3509f4d1dd120409f4504a1a1c0bad
Reviewed-on: https://gerrit.libreoffice.org/32060
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-12-16 13:26:48 +00:00
Gabor Kelemen
9558a0cd3e Updated core
Project: help  c349db3a49bae0d8a45528b8889bd36b337117b4

Update 'Insert Names' dialog to 'Paste Names'

There is a new terminology for the same thing.
Also document a new button.
Updated the bookmarks and ahids to restore connection
between UI and help page.

Change-Id: I05eaad7546dbedcf065b9a97b830550e1ec22515
Reviewed-on: https://gerrit.libreoffice.org/32063
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-12-16 13:18:12 +00:00
Gabor Kelemen
f82a2d2a24 Updated core
Project: help  2ecebd5cd909f68f388490f26da74e67416f274f

Restore connection between the 'Insert hyperlink' UI and help

Renaming hyperlink to link is still left to do.

Change-Id: I1d7b472cbd0511c80e25a7c433b08e5a79d5d592
Reviewed-on: https://gerrit.libreoffice.org/32062
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-12-16 13:13:25 +00:00
Gabor Kelemen
07e28c9045 Updated core
Project: help  6eb8d7cd07d0d3fe043747e20ee394a427b9959e

tdf#88414 Connect the Navigator side pane to help

Change-Id: I41c51f34939dc2ddd7e96c6a0c1bfb4d7b3e03d9
Reviewed-on: https://gerrit.libreoffice.org/32061
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2016-12-16 13:08:53 +00:00
Miklos Vajna
0e1b831b93 CppunitTest_vcl_complextext: fix loplugin:cppunitassertequals warnings
Change-Id: I18b052cadb061535d7552f2ec1eac4b932489d22
2016-12-16 13:39:39 +01:00
Stephan Bergmann
0dc19268d2 Typo in meant-to-be-overloading function name
Change-Id: I65ab9176b39a436afce23e6bd4423ebf76219166
2016-12-16 12:57:53 +01:00
Stephan Bergmann
3ccc2c027c Better way of converting from OUStringLiteral to OString
Change-Id: If31548d280fa8cabced50f3d2e78abde1b2562e5
2016-12-16 12:49:30 +01:00
Tamás Zolnai
06ea887f8b tdf#71435: Accessible caret-moved events are missing when "freeze" is enabled
Two accessible document is created when "freeze" options is
enabled. meSplitPos identifies which accessible document handle
which part of the window. We should handle events only in that
accessible document which handles the active part.

Change-Id: Ic9674344951f620546dd272beaad796de611d258
Reviewed-on: https://gerrit.libreoffice.org/32065
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2016-12-16 11:23:41 +00:00