Commit Graph

392762 Commits

Author SHA1 Message Date
Noel Grandin
fafb2cf4de Convert PrinterSupport to scoped enum
Change-Id: I2bde7261b8e8f31e6dd5a02cd4130156a04b8a7f
Reviewed-on: https://gerrit.libreoffice.org/25657
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-31 06:27:16 +00:00
Noel Grandin
fe6ac2d11a Convert GfxLinkType to scoped enum
Change-Id: Iae074ef0927a55f1fbf401cb66f4f183213f547c
Reviewed-on: https://gerrit.libreoffice.org/25656
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-31 06:26:25 +00:00
Noel Grandin
0b23eec200 teach refcounting clang plugin about uno::Reference
uno::Reference is only allowed to used with classes that have a
::static_type member.
So convert all those places to rtl::Reference.

Maybe we need some LIBO_INTERNAL_ONLY constructors on rtl::Reference and
uno::Reference to make this a little smoother?

Change-Id: Icdcb35d71ca40a87b1dc474096776412adbfc7e3
Reviewed-on: https://gerrit.libreoffice.org/25516
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-31 06:25:45 +00:00
Phillip Sz
88c03cd07a find-german-comments: clean up
Most of these syntax changes are found by pylint. Also:

 - Use argparse instead of optparse, which is deprecated
 - Fix a bug where we tried to multiply by float, which does not work

Change-Id: I7de5a29bd431755e6c28a8bc80b804c775a0c2cb
Reviewed-on: https://gerrit.libreoffice.org/25669
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-05-31 05:38:22 +00:00
Takeshi Abe
27ae0020d7 Prefix SmDocShell's members
as well as remaning aInterpreter to maParser.

Change-Id: I5f86737ffe05be981477e9dc65d433de0e1d5378
Reviewed-on: https://gerrit.libreoffice.org/25650
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-05-31 01:14:40 +00:00
Laurent Balland-Poirier
9387423661 tdf#97835 tdf#61996 tdf#95339 Add qa unit test
tdf#97835: suppress decimal separator
tdf#61996: skip quoted text
tdf#95339: detect SSMM as seconds minutes

Change-Id: Iee3ff723b0c5d2a298d8c7ef03112d5e30d4e4df
Reviewed-on: https://gerrit.libreoffice.org/25597
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-05-30 22:52:00 +00:00
Laurent Balland-Poirier
a347191637 tdf#100122 Correctly treat fraction without integer part
If there is no integer part (with format such as ?/?):
- sStr should be skiped
- SFrac should be completed with the right number of ?,
  j==0 must also be treated in ImpNumberFill

Change-Id: I57448eb3b0c68e10779d7fa565379e2604f7f63b
Reviewed-on: https://gerrit.libreoffice.org/25612
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-05-30 22:47:18 +00:00
Laurent Balland-Poirier
b07e0a1176 Choose ODF version for fill-character
OASIS reference: https://issues.oasis-open.org/browse/OFFICE-3765

XML_TEXT in FinishTextElement_Impl follows a different logic
See https://cgit.freedesktop.org/libreoffice/core/commit?id=66c6d1ef204f3507e7663a1b8b1be05b9ec71092

Change-Id: Iac966f74c26c2b72ed54db26cf17a35717263007
Reviewed-on: https://gerrit.libreoffice.org/25590
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-05-30 22:13:12 +00:00
Eike Rathke
c75ce37560 prevent out of bounds string access
Yet another reminiscence of String to OUString conversion..
where the terminating NULL-character was obtained and
SvNumberformat::InsertBlanks() effectively did nothing.

Could be triggered already by entering an '_' underscore character as
number format code, which is a place holder for blanks of the same width
as the following character, which there isn't then yet.

Change-Id: I0534e1417d4bd35e9e7ed4bd0170b9ea3b5fb575
2016-05-31 00:10:00 +02:00
Muhammet Kara
d7834317c7 Move accessibility relations to .ui files tdf#87026
Change-Id: I2ce2c236d124d31aaacacb0c24ba52b3a70b489c
Reviewed-on: https://gerrit.libreoffice.org/25555
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-05-30 21:41:38 +00:00
Michael Stahl
7b042d2865 tdf#98226: fix undo of table AutoFormat
The new call to SwTable::SetTableStyleName() was not recorded in
SwUndoTableAutoFormat and hence persisted even after Undo.

(regression from 73f4a06c0b)

Change-Id: Ia7f769dafa62f02ff8e4b0596b48266190c7a69b
2016-05-30 23:20:24 +02:00
Olivier Hallot
ee8c883d8d Updated core
Project: help  b1d1171b0dd1eda694c801478f183a0a15ae92ee

Fix help page with new term

Change-Id: I2b18f319e176a426dac5401561910169de44f5b3
Reviewed-on: https://gerrit.libreoffice.org/25689
Reviewed-by: Olivier Hallot <ohallot@collabora.co.uk>
Tested-by: Olivier Hallot <ohallot@collabora.co.uk>
2016-05-30 20:20:36 +00:00
Katarina Behrens
697eaa91bd tdf#100068: Initial implementation of ScreenshotId
it's the same as HelpId in default implementation and extended with
'=?config=foo' string otherwise, depending on different configurations
the dialog/tabpage can have (e.g. different widgets hidden/shown)

Change-Id: I01312a5a88ef7ba784bca315b336420cdb63c8dc
Reviewed-on: https://gerrit.libreoffice.org/25455
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-05-30 20:18:01 +00:00
Eike Rathke
f65b29ff13 we already have pClipDoc
Change-Id: I0485f15b6771d10d4b077f5034db77e4c13ef877
2016-05-30 21:36:01 +02:00
Eike Rathke
9d07f55757 actually multiple destination sheets are handled, tdf#97158 follow-up
... so ScMarkData doesn't need to be passed. Which it wasn't anyway
because the destination sheet span is part of CopyFromClipContext.

Change-Id: I0addd370d96ab78b22ed957081a1212fc70419a1
2016-05-30 20:19:35 +02:00
Miklos Vajna
aab59c3c17 sw: prefix members of SwLayoutModeModifier
Change-Id: I280a79f5060623c8a30ecfde99cf650ebde4e5fd
Reviewed-on: https://gerrit.libreoffice.org/25653
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-05-30 17:35:25 +00:00
Caolán McNamara
2805adb0d3 Resolves: tdf#100057 force libxslt to give up when we cancel a transformation
we're already using libxslt internals, so using XSLT_STATE_STOPPED isn't an
additional exposure

This probably isn't all that useful to the original reporter in terms of
importing useful data, but it does turn a hopeless situation into something
that can be cancelled.

Change-Id: I08e9a1dcd9ee78e1804faec500bbcca36a546988
2016-05-30 18:08:03 +01:00
Eike Rathke
dc9eac5a5f Resolves: tdf#97158 CopyOneCellFromClip() does not handle multiple sheets
... so check that and bail out to let the remainder of CopyFromClip()
handle it.

Change-Id: I9d139de905fd108ae41fed79a38860058525272c
2016-05-30 18:34:06 +02:00
Stephan Bergmann
00a45faf5e Fix int2enum
* The data argument to the Any ctor call needs to point at sal_Int32, not int.

* All calls to int2enum guarantee that rType is an enum type, so assert that.

Change-Id: I0ccd498420638fee80aeeccc93d9c1e3309f83b0
2016-05-30 18:31:43 +02:00
Stephan Bergmann
d8545e78e7 Simplifiy unnecessary uses of int2enum
Change-Id: Ic811eac425717f7eac018dfd90c46bd72267c697
2016-05-30 18:30:40 +02:00
Michael Stahl
ac5fd13937 boost: restore boost.gcc47679.patch
One of the tinderboxes fails with mysterious warning:

include/tools/gen.hxx:418:36: error: '*((void*)& aViewportExt +16)' may
be used uninitialized in this function [-Werror=maybe-uninitialized]
     nBottom = rSize.Height() ? nTop+rSize.Height()-1 : RECT_EMPTY;

Change-Id: I62bf99d1a623ba4bd9d7db5fe049366d0f20e26f
2016-05-30 17:49:20 +02:00
Michael Stahl
84fb4be390 editeng: rename misleading SvxBoxItem::GetDistance()/SetDistance()
Change-Id: Iea61f2de2b907974bbb05c66abf6cdaeab87b8b2
2016-05-30 17:33:53 +02:00
Michael Stahl
4d23189aee add gen-boost-headers script
Change-Id: I02102f6c37863963efa9a312a5a0fbbc1f42f345
2016-05-30 17:33:52 +02:00
Michael Stahl
e5c6574f5d boost: warning-patch-ectomy
Upstream maintainers, with few exceptions, generally don't care about
warnings in boost headers, hence we re-base our warning fix patches on
every upgrade, which is a pointless exercise in frustration.

Most of the patches are for GCC/Clang warnings, where we could use
-isystem to suppress the warnings (with corresponding hacks in the build
system, because -isystem also disables dependency generation) - but
clang-cl does not support -isystem.

So generate a bunch of wrapper headers into external/boost/include, that
disable all known warnings and use #include_next to get the real boost
header. This allows us to get rid of most of the existing patches.

There is however a bug in GCC that preprocessor warnings like -Wundef
cannot be disabled with a #pragma, so those patches cannot be removed.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431

Change-Id: I2992bf4a463015f1140489df867bd80757f84541
Reviewed-on: https://gerrit.libreoffice.org/25563
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-30 15:34:51 +00:00
Eike Rathke
0002249b15 remove unnecessary temporary ScRangeList copy
Change-Id: I46b9992f34820d21e4d0aa39a77cf6477648721a
2016-05-30 17:10:21 +02:00
Caolán McNamara
5b342e10cb valgrind: Invalid read of size 8
saw this in passing checking something else

==12972==    at 0x6DEF40B0: rtl::Reference<PlacesListBox>::get() const (ref.hxx:169)
==12972==    by 0x6DEEF221: VclPtr<PlacesListBox>::operator bool() const (vclptr.hxx:189)
==12972==    by 0x6DEED3DA: CustomContainer::GetFocus() (iodlg.cxx:429)
==12972==    by 0xD9EC83B: vcl::Window::CompatGetFocus() (window.cxx:3734)
==12972==    by 0xD93A604: vcl::Window::ImplGrabFocus(GetFocusFlags) (mouse.cxx:383)

...

==12972==  Address 0x2e4b4690 is 288 bytes inside a block of size 424 free'd
==12972==    at 0x4C2D22A: operator delete(void*) (vg_replace_malloc.c:576)
==12972==    by 0x6DED9F14: SvtFileDialog::dispose() (iodlg.cxx:518)
==12972==    by 0xDB04B1F: OutputDevice::disposeOnce() (outdev.cxx:161)
==12972==    by 0x6DED1954: VclPtr<SvtFileDialog_Base>::disposeAndClear() (vclptr.hxx:208)

Change-Id: I702eab8dbcf07885e4a3415ace6706c25854174e
2016-05-30 15:47:20 +01:00
Caolán McNamara
dd2a2abadd replace ImplConvertMenuString now
Change-Id: Ib68b711fb98a917c2d40d0a659353e3983a3766e
2016-05-30 15:47:20 +01:00
Caolán McNamara
33a49289df move the one single use of EnableMenuStrings to its call site
Change-Id: Ie5087f564c024cae526757ed1445c97113e8a68e
2016-05-30 15:47:20 +01:00
Caolán McNamara
e8dff0479e SetFloatingLines is now unused
Change-Id: I867633d7d19dd03b8bd2771f1eaac897ef97b5bc
2016-05-30 15:47:20 +01:00
Rodolfo Ribeiro Gomes
ea7de7b2d3 fdo#34362 Setting table border from toolbar resets "spacing to content"
Change-Id: Iec51c02ab389015d268849aa0dda870c11323f46
Signed-off-by: Rodolfo Ribeiro Gomes <rodolforg@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/24764
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-30 13:17:40 +00:00
Stephan Bergmann
8fec9e7e4c Some clean up of uses of css::uno::Any::setValue
Change-Id: I04e8aef35a6083b61d775c8eb3f96757da2b31bd
2016-05-30 15:14:03 +02:00
Stephan Bergmann
e630df7853 Just use Any::operator <<= for sal_Unicode values
...now that sal_Unicode no longer clashes with sal_uInt16 on any platform (in
LIBO_INTERNAL_ONLY code), after e16fa715c4 "Handle
wchar_t as native C++11 type on windows"

Change-Id: Id423dd6235bf14823fa5611b804c0974edbe64b3
2016-05-30 14:31:24 +02:00
Tor Lillqvist
46d5d475b1 Trivial follow-up fix to 64061d8dd6
Change-Id: I322690bba054736a1201b3f4d8f4d5670f7799b7
2016-05-30 15:10:26 +03:00
Laurent Balland-Poirier
1544a26ac9 tdf#99661 Add max-denominator-value attribute to number:fraction
Add max-denominator-value attibute to <number:fraction> to comply with ODF 1.3
See https://issues.oasis-open.org/browse/OFFICE-3695
Specify loext or number according to ODF version
This value is only used to stored the number of digits in numerator.
No other values than 9, 99, 999,... are expected.

Add loext:max-numerator-digits attributes to <number:fraction>
 to distinguish
??/?? and ##/## or any combination
Not saved for ODF strict
min-...-digits indicates the number of '?'
max-...-digits indicates the total number of '?' and '#'
This needs to be saved with both min-...-digits at least one
because previous versions cannot have min-...-digits of 0. See tdf#38097

Change-Id: Ibd785579aa75edc315e3bd94935a146d82bbeeef
Reviewed-on: https://gerrit.libreoffice.org/24903
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-05-30 12:02:26 +00:00
Tor Lillqvist
933a9d9245 On Windows, compile OpenGL shaders in advance and disable on failure
If the shader compilation or loading of an already compiled shader
fails, disable OpenGL in the registry and exit with the
EXITHELPER_CRASH_WITH_RESTART status. The wrapper process will thus
run soffice.bin once more, and this time OpenGL will not be used.

Change-Id: I3cc4a615f00a8a1adb584493861e4956c83cec32
2016-05-30 14:58:02 +03:00
Tor Lillqvist
64061d8dd6 Move exithelper.h to include
We will want to use EXITHELPER_CRASH_WITH_RESTART in vcl, too.

Change-Id: If34244a361b157e0e9c7cca55fc34f0574f39984
2016-05-30 14:47:16 +03:00
Stephan Bergmann
be3e09a2f7 loplugin:passstuffbyref
Change-Id: If5c3c92eb2828348cda165d72147d7a570af59f8
2016-05-30 13:45:52 +02:00
Stephan Bergmann
336b62080b Missing include
Change-Id: Id61e2de27ec307fa7773d3f0d5a0810005f1c364
2016-05-30 13:33:37 +02:00
skswales
7fe92c766a Work towards tdf#72606 EasyHack _tstring/TCHAR elimination
setup_native/source/win32/customactions/shellextensions in MSI Installer compiled as UNICODE

Functions suffixed with A/W (ANSI/Wide) as needed for clarity

Change-Id: I711f781b47c0efdb1e3d9bf995f7658dbb0e38d1
Reviewed-on: https://gerrit.libreoffice.org/25556
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-30 11:13:35 +00:00
Laurent Balland-Poirier
e0c8c5b711 Choose ODF version for min-decimal-place and force-exponent-sign
Change-Id: I873dbf53bbb865577fd51ee70142c1b45ea54ce2
Reviewed-on: https://gerrit.libreoffice.org/25588
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2016-05-30 10:34:09 +00:00
Caolán McNamara
73f84ab139 Resolves: tdf#100097 dbaccess self-dnd depends on getting its own transferable
on drop that it set on drag. It does some uno tunnel foo to drag the data it
needs back out of it in some grotesque fashion.

So we have to follow the same style of hackery as under MacOSX to detect
on drop that there is an active drag started by ourself and so use that
active drag's transferable as the source transferable for the drop, rather
that use the intermediate universal GtkDnDTransferable.

Change-Id: I3c3a94416db908603bde8f15dc5b1c9d726b8dbd
2016-05-30 11:16:51 +01:00
Caolán McNamara
cd34f76d4e this signalIMPreeditChanged is a cnp from gtk2 impl
Change-Id: Ib2e624af2e07b28a2e2ca0e3a0a16f3fe453aeaa
2016-05-30 11:16:51 +01:00
Miklos Vajna
20ad9893d5 tdf#100134 xmloff: only update the progressbar twice for every percent
This restores the state before commit
e1b78d3600 (#95181#; call the setValue
method of the XStatusIndicator as often as possible to enable
reschedule, 2001-11-26), which doesn't seem to be necessary anymore,
perhaps due to the current scheduler that has priorities.

Rather than a plain revert, still allow the progressbar to jump back, as
that seems to be used relatively frequently. So just filter out the
calls that would increment the value, but only with a small difference,
compared to the shown value.

Change-Id: I7136b20f1c64e267b0b4a35bbe2564e5163d9468
Reviewed-on: https://gerrit.libreoffice.org/25654
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-05-30 09:54:40 +00:00
Stanislav Horacek
3239ecb491 FORECAST.ETS.* functions: default aggregation is 1 (0 is not allowed)
Change-Id: I71470b0871a181dd9ce090053a41238698744424
Reviewed-on: https://gerrit.libreoffice.org/25577
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-05-30 09:48:02 +00:00
Tomofumi Yagi
d2a44e6270 tdf#99696 fix build error for 64bit Windows in unit tests using ADODB
This patch fixes the problem that the build for x64 fails in basic module
on 64bit Windows installed 32bit Excel Application.

New code checks the existance of ODBC driver for excel insted of the
existance of Excel application(at this time the bitness of ODBC driver for
excel would match that of building LibreOffice).

What we need is probably not Excel Application but ODBC drivers for proper
bitness.

Change-Id: I62285eb2351f2022754fc34cb2d54db1bd9e8142
Reviewed-on: https://gerrit.libreoffice.org/25301
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-30 09:30:33 +00:00
Stephan Bergmann
46a987fe08 Fix tools/date.hxx Date vs. css::uno::Date mismatch
...that was there ever since at least 84a3db80b4
"initial import".  None of the "make check" code appears to trigger this code
path.

Change-Id: Ic85b2ef4cf0a0ad06b467558e823cfa4ee31a08c
2016-05-30 11:21:41 +02:00
Richard PALO
acbbb01940 tdf#100021 - format argument issue in process.cxx
avoid warning whether pid_t is long or int

Change-Id: I533175b53166cb233169902d277906f5ce979421
Signed-off-by: Richard PALO <richard@NetBSD.org>
Reviewed-on: https://gerrit.libreoffice.org/25593
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2016-05-30 09:21:02 +00:00
Stephan Bergmann
ee1bf3538b Fix bitmask
Change-Id: I0da9c57b2b442bb4c4b34ae63507fb98e7fbbe51
2016-05-30 11:19:03 +02:00
apurvapriyadarshi
2b99f832dc tdf#99589 tolower / toupper - dangerous to Turks ...
Converted toupper to toAsciiUpperCase

Change-Id: I595e39bd00a15ede6fc9ea3da3c2a4b2a2322a82
Reviewed-on: https://gerrit.libreoffice.org/25566
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-05-30 08:49:07 +00:00
Noel Grandin
a52231c785 com::sun::star->css in connectivity
Change-Id: I9489e92dc89a6d83a26ff4f0d9aad26acd28ad9f
Reviewed-on: https://gerrit.libreoffice.org/25537
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-30 08:37:11 +00:00