395378 Commits

Author SHA1 Message Date
osnola
f471c55378 add test files for libstaroffice
Change-Id: Iabb5965eb09e9128f2cfc720bf69e97f6a96fa22
2016-08-11 08:13:27 +02:00
osnola
1faae1f375 integrate libstaroffice
Change-Id: I85913f1bd1af5d102573040588cca9d8ddeebb5d
2016-08-11 08:13:27 +02:00
Tor Lillqvist
6a2cc612de Fix comments to match new reality: these are no longer optional parameters
Change-Id: Idf054aa4ef095ce37f05a01adf59cb450a6906c6
2016-08-11 09:09:40 +03:00
Noel Grandin
3716b14426 loplugin:constantparam
Change-Id: Ia06b9b189033b9409d7a59a211866f66a0614886
Reviewed-on: https://gerrit.libreoffice.org/28016
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-11 06:05:32 +00:00
Noel Grandin
b796b24793 loplugin:countusersofdefaultparams in svl..unodevtools
Change-Id: Ie3d2cf29e99b8a51b80246aafa23a92e6c3404b2
Reviewed-on: https://gerrit.libreoffice.org/28017
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-11 06:04:52 +00:00
Eike Rathke
a97e699043 recognize another release's unknown currency saved as symbol we know
This may happen when saving a currency with a changed symbol in the
current release, load it in an older release, save it there and load it
again in the newer release.

For example DKK
[$kr.-406] #.##0,00;[RED][$kr.-406] -#.##0,00
new in master/5.3 (changed symbol from 'kr' to 'kr.')
loaded and saved in earlier releases writes currency 'kr.' instead of 'DKK'
reloaded in master since there was no match as currency lead to number format
 #.##0,00 [$kr.]

Change-Id: I5c8f165a2f420d77f5a2c0921c33a57797f92526
2016-08-11 00:51:52 +02:00
Szymon Kłos
554dc4c33e GSoC notebookbar: changed labels
Change-Id: I824e7b871edb9506a25ca7918431bf917e237709
2016-08-10 23:35:03 +02:00
Szymon Kłos
d409aeaa23 GSoC notebookbar: slot available only in the menubar
Change-Id: Ifaded8c158515e9d21229f91502a3873f17fc60b
2016-08-10 23:25:01 +02:00
Miklos Vajna
e9bcd34751 sw undo: add a Repair argument to the .uno:Undo/Redo commands
Undo/redo is limited to undo actions created by the same view in the LOK
case, this argument removes this limit. This can be used by a client for
"document repair" purposes, where undo/redo of others' changes is
intentional.

The sfx command dispatch has support for FASTCALL slots (a state
function is not called, the command is always enabled) and also has
support for state functions, but those functions only get the ID of the
slots, not its parameters. What is needed here is a command that's
disabled by default, but in case a Repair argument is used, then it's
unconditionally enabled. So handle that case in the sfx dispatcher
directly for now.

Change-Id: I96c1130bf51abcdd722684b1fa4a8277f92fd555
2016-08-10 20:30:20 +02:00
Eike Rathke
4d993ae8f2 XML number format: do not enquote space followed by minus, tdf#97837 follow-up
Which with
[$kr.-406] #.##0,00;[RED][$kr.-406] -#.##0,00
saved and reloaded gave
[$kr.-406] #.##0,00;[RED][$kr.-406]" -"#.##0,00
and thus an almost identical duplicated format with the built-in format.

Change-Id: Ie39b97576842bc29ac301d2fe64f7331f6c57fc4
2016-08-10 18:40:36 +02:00
Eike Rathke
17040a69ab DKK currency symbol is 'kr.' not 'kr'
Change-Id: I35078b36c803e73538a23bbc9cdc5ddd13a3835c
2016-08-10 17:16:53 +02:00
Tor Lillqvist
38a3743e0c Revert "tdf#98837 - Fail loading a new document with read only property set to true"
There was not really a good enough reason for the change, and it
causes unfortunate regressions in 3rd-party code that previously
worked fine. (It also caused two regressions in LO's own code, but
those were already fixed.)

This reverts commit 5334ff287c65f028753171c7b38da7ffbcebc1cc.
2016-08-10 17:42:52 +03:00
Fabio Buso
2c76fd1e04 tdf#67647 getStructuredFilter returns operator
Change-Id: I010ea3c24b4d5411711a93e35d4b173f5bde9e55
Reviewed-on: https://gerrit.libreoffice.org/28000
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2016-08-10 14:32:32 +00:00
Miklos Vajna
d6e8d4f773 sfx2: make SfxLokHelper::setView() set also the active frame
Without this, comphelper::dispatchCommand() doesn't work on the current
frame. This causes e.g. undo not working when only a given view is
allowed to do undo.

In the desktop case vcl::Window::ImplGrabFocus() calls both
SfxViewFrame::MakeActive_Impl() and
framework::Desktop::setActiveFrame(), but in the LOK case the first was
called directly, that's how the active frame was outdated.

Change-Id: If97a9de316b4c8dd49e55cd273bdb2dfe9866f38
Reviewed-on: https://gerrit.libreoffice.org/28032
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-08-10 14:23:32 +00:00
Tor Lillqvist
f3346b1fc5 Intermediate iOS hack
Just to get this one file to compile. More errors come later.  I just
spent a short time on this while waiting for something else.

Actually I have no idea what we should do on iOS nowadays. Do we want
to use cairo? Do we want to use OpenGL? Would it make sense to mimic
what we do on Android as much as possible? (But what do we do on
Android, and is that by choice or accident?) Even if that might mean
not using APIs native to iOS, but slower (not HW accelerated) FLOSS
alternatives that perform the same functionality, broadly speaking?

Change-Id: Id88a895b90f753417eced744141376656bcf72c3
2016-08-10 16:37:32 +03:00
Tor Lillqvist
8778a3e039 Surround PaintScope code with ifdefs matching declaration in include file
Change-Id: Iede85fc847b330b5586b95facafb690df7209d1b
2016-08-10 16:36:48 +03:00
Tor Lillqvist
237ff9c497 Include <vcl/dllapi.h> for VCL_PLUGIN_PUBLIC
Change-Id: I5e248ed670502a2702f08e31739a8c82c29d5302
2016-08-10 16:36:48 +03:00
Tor Lillqvist
c4e89590c6 gendata.hxx has moved
Change-Id: I55223078e189416c4181141a7a904e93d5c6a01e
2016-08-10 16:36:48 +03:00
Tor Lillqvist
5a833144b5 SAL_FALLTHROUGH
Change-Id: I347c13b282ccbd40a5e2e4a504f0c8ee1882d602
2016-08-10 16:36:48 +03:00
Susobhan Ghosh
b2bbebb34e Set slide/page format dropdown size to 6 in Slide/Page panel
Change-Id: Iad70e5e946c3209246567b7b6449100a49cb8a40
Reviewed-on: https://gerrit.libreoffice.org/28013
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-08-10 11:11:24 +00:00
Mohammed Abdul Azeem
18edd88edc GSoC - Making legacyfastparser to use tokens:
This tokenizes some elements, de-tokenize while consuming
and emits elements through legacy interface. DummyTokenHandler
is just to test the correctness.

Change-Id: I1ea1e4d806ed4d426215f93b3f6b66a9776f6479
Reviewed-on: https://gerrit.libreoffice.org/27849
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-10 11:09:12 +00:00
Noel Grandin
e5d24f50b7 clang3.9 compatibility
Change-Id: Idbba88f1a890c068c9813aff2287f0983d1b8742
2016-08-10 13:02:02 +02:00
Miklos Vajna
583e41b9c8 comphelper: fix loplugin:cppunitassertequals warnings
Change-Id: If042462d8f250dbe2e1be278b7524dab243b08e8
Reviewed-on: https://gerrit.libreoffice.org/28012
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-08-10 10:56:02 +00:00
Christian Lohmaier
b17b4da3a7 update credits
Change-Id: I004192541467afc5d8f31fe4c3c5f466b7b3dd17
2016-08-10 11:55:35 +02:00
Christian Lohmaier
a363ac95bd update emoji autocorrect files from po-files
Change-Id: Ie8af6c3ee0f655387e12967632f9bd31ace204ff
2016-08-10 11:03:32 +02:00
Jakub Trzebiatowski
0943ee2dec GSoC Writer Table Styles; Create by example; fix undo
- Create style by example, tracked by undo;
- Fixed delete style, now is tracked by undo

Change-Id: Ic39b549b0b970b1b15001d527a82fb26e4a630aa
Reviewed-on: https://gerrit.libreoffice.org/27990
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-08-10 07:40:53 +00:00
Mike Kaganski
1b482aec4e tdf#101385: don't try to get SharePoint folder outside of allowed range
for a given site.
This patch uses the fact that getFolderByServerRelativeUrl API returns
site's root folder if used with empty path ('').
Hopefully this isn't otherwise context-dependent, so that it doesn't
return other folders in some unknown circumstances.

More correct would be instead to use the site's root path directly,
like '/sites/mysite'. But I don't know a reliable way to filter the
API part from the base URI.

To make use of the corrected SharePoint repository root id, the patch
also redirects all cases where "/" object is queried, to session's
getRootFolder().

libcmis part of the patch will hopefully soon be merged upstream.

Change-Id: I0f3b9930748de3fe4763eb27721739f097b9892d
Reviewed-on: https://gerrit.libreoffice.org/27987
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2016-08-10 07:35:32 +00:00
Muhammet Kara
ecc43f06a9 Update api URL for mozilla personas
Currently, entering a search term or clicking on
the category buttons on the Firefox Theme selection
dialog of Personalization option doesn't work at all.

With this url, it returns some results of firefox personas
which are applicable to LibreOffice.

Change-Id: Ie4da58cd987a1834dee969c09367229d3b69a47a
Reviewed-on: https://gerrit.libreoffice.org/27986
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2016-08-10 07:31:22 +00:00
Yousuf Philips
ae3a78fa5f TANGO: Add show track changes bar small icon
Change-Id: Ia80da0b1ef394d19073e1f18ee22590010bb0257
Reviewed-on: https://gerrit.libreoffice.org/28002
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2016-08-10 05:46:29 +00:00
Takeshi Abe
252773f2bc Expect 3 subnodes for SmBinVerNode/SmBinHorNode/SmBinDiagonalNode
Change-Id: Ib57b60f6b469b3018c5fb30a7a293089bd35e446
Reviewed-on: https://gerrit.libreoffice.org/28001
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-08-10 03:09:30 +00:00
Christian Lohmaier
107a7cc5a2 Updated core
Project: translations  0f9380734b89eb362e97e4e23bbf32d924b39132

update translations for 5.2.1 rc1

and force-fix errors using pocheck

Change-Id: I49f23c37a0f656727ba869e616e9d0b5679b9b15
2016-08-09 23:42:49 +00:00
Caolán McNamara
d79a4f4692 Resolves: tdf#101309 crash on deleted SdrObject
when we're not recording undo, then SdrUndoDelObj just deletes
the argument its passed. And this code assumes that it is transferred
to the SdrUndoDelObj and it still exists.

Use the same pattern as ScPostIt::RemoveCaption for this situation

Invalid read of size 8
   at 0xB1713B6: SdrObject::GetOrdNum() const (svdobj.cxx:777)
   by 0x3C9E029C: ScDetectiveFunc::DeleteArrowsAt(short, int, bool) (detfunc.cxx:695)
   by 0x3C9E1D4C: ScDetectiveFunc::FindSuccLevel(short, int, short, int, unsigned short, unsigned short) (detfunc.cxx:1118)
   by 0x3C9E2405: ScDetectiveFunc::DeleteSucc(short, int) (detfunc.cxx:1207)
   by 0x3CF812BA: ScDocFunc::DetectiveRefresh(bool) (docfunc.cxx:480)
   by 0x3CFC9FAF: ScDocShell::DoHardRecalc(bool) (docsh4.cxx:1250)

 Address 0x50992d50 is 112 bytes inside a block of size 464 free'd
   at 0x4C2D22A: operator delete(void*) (vg_replace_malloc.c:576)
   by 0xB1D04BC: SdrPathObj::~SdrPathObj() (svdopath.cxx:1681)
   by 0xB1701F5: SdrObject::Free(SdrObject*&) (svdobj.cxx:394)
   by 0xB258666: SdrUndoObjList::~SdrUndoObjList() (svdundo.cxx:720)
   by 0xB258A39: SdrUndoRemoveObj::~SdrUndoRemoveObj() (svdundo.cxx:774)
   by 0xB25E29B: SdrUndoDelObj::~SdrUndoDelObj() (svdundo.hxx:298)
   by 0xB25E2B7: SdrUndoDelObj::~SdrUndoDelObj() (svdundo.hxx:298)
   by 0x3C7E5D0E: ScDrawLayer::AddCalcUndo(SdrUndoAction*) (drwlayer.cxx:1120)
   by 0x3C9E0238: ScDetectiveFunc::DeleteArrowsAt(short, int, bool) (detfunc.cxx:692)

Change-Id: Idc6d1f8e9ad8b203dac55630f8c100e74d3e017b
2016-08-09 21:05:01 +01:00
Eike Rathke
ebb9ae93c7 Function Wizard: clarify that CEILING.XCL rounds away from zero
Change-Id: Iabb24d673c15ffa26bb7ea00373639e736e324d4
2016-08-09 22:01:49 +02:00
Eike Rathke
e9aae8abd8 Updated core
Project: help  4c58b1b195d7df86ea6ccee322478064f7f8a10a

clarify on CEILING,CEILING.MATH,CEILING.XCL and FLOOR,FLOOR.MATH,FLOOR.XCL

Change-Id: I557b2be54fad33e540017e093d3261e430e9a152
2016-08-09 19:13:43 +00:00
Miklos Vajna
5d8639aaf2 sw lok: limit undo/redo access to undo actions created by the same view
So one view can't undo the changes of an other view by accident. If
this is found to be useful in the desktop case, perhaps a dedicated
config option can be added for it; for now the behavior is LOK-only.

Change-Id: I7ff505d021bd6f6be36953ecc8f8bb971ce8927e
Reviewed-on: https://gerrit.libreoffice.org/28007
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-08-09 16:44:27 +00:00
Caolán McNamara
e328cab3c9 Resolves: tdf#101253 crash in gallery popup menu
since...

commit aa0d0536a444fb26d9e570bd6bf6c1bdc3596cf3
Date:   Mon Jun 20 15:56:35 2016 +0200

    tdf#97527 - vcl: reference-count Menu

Change-Id: I991a2cb17241c071f8170763e32e114304a5be91
2016-08-09 15:50:58 +01:00
Caolán McNamara
adb9cbff1f python macros aren't listed under scripting organize
since...

commit deb989dd6d1f86e74864131be50ed92d8d43768c
Author: Kenneth Koski <mechaxl@gmail.com>
Date:   Mon Feb 29 22:22:10 2016 -0600

blew away the uno.ByteSequence(str) path

Change-Id: I8b73883c4f246ebafd2f810ca61b19da40f833e2
2016-08-09 15:32:05 +01:00
Caolán McNamara
07544ac6c4 Resolves: tdf#101383 don't crash is merge has no targetview on mail setup
Change-Id: I7d5d97443a64e2fe99d575e0e59914777f1723c4
2016-08-09 15:01:28 +01:00
Laurent Balland-Poirier
284c8ce119 tdf#101096 tdf#101147 Add qa tests for minute/month detection
Test number formats of bug reports
Test odd date formats which do not follow Excel detection

Change-Id: Iaa6d25a0103cae5e3ddd76075a324240aa255c35
Reviewed-on: https://gerrit.libreoffice.org/27494
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-08-09 13:55:34 +00:00
Caolán McNamara
7b355ad06e Resolves: tdf#101382 turn SetMailMergeConfigItem into a shared_ptr
so if the SwView it nominally belongs to is deleted while a
mail merge wizard is open it still exists while the wizard
has a ref to it

Change-Id: I4f5acbcc1ea6404851cf6e0179fd3c795342f726
2016-08-09 14:37:53 +01:00
Vasily Melenchuk
3011a704d9 officeotron usage in export tests without external dependencies
officeotron is a OOXML documents validator which can be used for
verification of export files in tests. Previously it was possible
to use it only from external repository with extra build steps.

Change-Id: Iae6ec3695fdfaf738d180405047ff04b2024c906
Reviewed-on: https://gerrit.libreoffice.org/27388
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-08-09 13:33:29 +00:00
Miklos Vajna
5cb52cf97d gtktiledviewer: fix incorrect undo/redo state
Edit state = false disabled undo, then edit state = true enabled the
undo button, even the last LOK callback was '.uno:Undo=disabled'.  Fix
this by storing the LOK state in a map, and using it when edit is
enabled.

With this, clicking on the Edit button right after loading a document
results disabled undo/redo buttons as expected.

Change-Id: Id6023f976f135555a43486f71603c823e59d8d60
Reviewed-on: https://gerrit.libreoffice.org/28003
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-08-09 11:27:40 +00:00
Jan Iversen
08c963e49d tdf#101386 changed URL to DevBuild page
The general cleanup of wiki development, removed a page, that configure.ac uses.

Page restored, and script updated to point at correct page.

Change-Id: Ie9a7fb6d9079506171b6ca318736626bfc742b98
2016-08-09 11:12:15 +00:00
Eike Rathke
4ff1318860 create SvNumberFormatter with LANGUAGE_SYSTEM instead of ScGlobal::eLnge
They both end up as the same locale, but with LANGUAGE_SYSTEM the LanguageTag
still has the mbSystemLocale=true "this is the system locale" context.

Change-Id: I7ff8a368e4dc9c6c471dd78be744c842b188478b
2016-08-09 12:51:12 +02:00
Eike Rathke
7c7df2afa9 remove the duplicated system locale check
... which is handled by LanguageTag::convertToLanguageType() anyway.

Change-Id: I26656d64fdccf9c06d24c53e1e473e355732e00f
2016-08-09 12:51:12 +02:00
Eike Rathke
0d38626745 do not resolve system locale when queried, rhbz#1364406 related
When loading older documents that calculated a number format on the fly an
inherited but default format of a type could had been applied using the fixed
resolved locale instead of the default system locale, which then was stored
upon save and remained sticky. This because a format the formula depends on
already was applied using the resolved system locale.

http://bugs.documentfoundation.org/attachment.cgi?id=78559 of tdf#63267
exhibits the behavior on the hidden sheet 'Festwerte' when unprotected and
inspecting number formats in column A under Datum.

Change-Id: If23908f259458e988c5164cc5e268bfc9a6a6bcd
2016-08-09 12:51:12 +02:00
Michael Stahl
49b06c2e83 loplugin:sallogareas
Change-Id: I3443ed8d481d7a0ac72c03c4d0fd0bcf100a09b6
2016-08-09 12:48:04 +02:00
Thorsten Behrens
a53ea24f9a sfx2: add comment to avoid range-based for loop
Change-Id: I7bdbe6eec52bdf76e1b93729e73d10b8be974fcc
2016-08-09 12:47:51 +02:00
Miklos Vajna
af5fe812c8 sw: prefix members of SwCalc
Change-Id: I8603ce669c09419919ba9fb93788666f45783caa
Reviewed-on: https://gerrit.libreoffice.org/27998
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-08-09 09:02:38 +00:00
Miklos Vajna
60cfbcf9e7 LOK init: strcpy() -> strncpy()
'strcpy' is insecure as it does not provide bounding of the memory
buffer in general, so let's avoid it even here.

Change-Id: If39319a2df7ddd9297938bc0be67fe5f8a2af962
Reviewed-on: https://gerrit.libreoffice.org/27999
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-08-09 08:51:43 +00:00