Commit Graph

395194 Commits

Author SHA1 Message Date
Justin Luth
d40ed9d0cd tdf#99434 docx enable docprotection only when enforced
Change-Id: I9454a34d7b386acffc50e74d5ef6eed1966d572a
Reviewed-on: https://gerrit.libreoffice.org/27456
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-07-28 07:27:01 +00:00
Tor Lillqvist
e4781d0941 Bin leftover dead declaration
Change-Id: Iebce0b744aa4929333b8fe67062739b9bd0034fc
2016-07-28 10:12:56 +03:00
Giuseppe Castagno
f950b49393 tdf#101094 (1) OPTIONS: New class to store retrieved OPTIONS
This class describes the DAV options useful to LO.
Added behavioural unit tests as well.

Change-Id: I7ba0230f1a1469b12f9b3f59f21e5c2730c65b81
Reviewed-on: https://gerrit.libreoffice.org/27595
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
2016-07-28 06:29:23 +00:00
Miklos Vajna
66dd26659e svx: fix loplugin:nullptr
Change-Id: Iff5fbb5c8b2885b0ba84c08f1357fdfc82ecf016
2016-07-28 08:25:40 +02:00
Samuel Mehrbrodt
cec4c3c563 vcl: Guard against invalid states
Got crashes here in 5.0, seem to be gone in master, but better be safe
than sorry

Change-Id: I434800f0e4a465233024b6a1ae1f48b010319f5c
Reviewed-on: https://gerrit.libreoffice.org/27594
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-28 06:24:03 +00:00
Eike Rathke
4f719263ae display the SearchAll() and ReplaceAll() results for notes, tdf#65334 related
Change-Id: Ib9ff40b26526efdf242db2ef1804e54611f16b0e
2016-07-28 00:50:15 +02:00
Caolán McNamara
d4cb9c3a88 temp tinderbox fix
Change-Id: Id233762e6b8547078544c55b2932462a10749882
2016-07-27 21:43:22 +01:00
Caolán McNamara
01c12dd928 add uui component to some other places
Change-Id: Ic703b509bac0a57e0780bbb83537e7e4323a79d0
2016-07-27 21:43:07 +01:00
Caolán McNamara
b014a121ac add uui component to some other places
Change-Id: If07caacf7bc18b39820db73fe64201f9cb97bc6c
2016-07-27 21:35:53 +01:00
Caolán McNamara
b32d3f24bb add uui component to some other places
Change-Id: Ia1e449f8f52e7d353944b8e80f9fc586f1eab2f7
2016-07-27 21:33:20 +01:00
Caolán McNamara
ebe04c0756 use div() instead of /0 to content ubsan
for the same reason as...

commit fb2c146752
Author: Eike Rathke <erack@redhat.com>
Date:   Mon Jul 25 13:32:17 2016 +0200

    use div() instead of /0 to content ubsan

    While we do handle double floating point division by 0 at least on
    IEEE754 systems, ubsan builds mock about.

Change-Id: Id2e34686b053707c83ca535689b693d80b606533
2016-07-27 21:28:59 +01:00
Caolán McNamara
7485254311 add uui to starmath import filters test
Change-Id: I0482891fa628f810c42e6a780abdec35bc62ea7e
2016-07-27 21:26:22 +01:00
Giuseppe Castagno
3b26a2a403 tdf#95144: Add a default css::ucb::XCommandEnvironment
Makes use of a dedicated interaction wrapper to server
ssl certificates correctly.
See comphelper::SimpleFileAccessInteraction for details.

Change-Id: I5728225065ec03f9b793940de316ccd97ee7114d
Reviewed-on: https://gerrit.libreoffice.org/27596
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-07-27 20:18:25 +00:00
Mohammed Abdul Azeem
84db6c1d9c GSOC - Avoid tokenizing strings for Unknown elements:
Added a special case when token handler is not set, which
avoids tokenizing strings.

Change-Id: I749a7af22e45180cc8bfc55843832b7ccb529ac6
Reviewed-on: https://gerrit.libreoffice.org/27593
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-07-27 19:29:11 +00:00
Akshay Deep
982d96408e tdf#101116 Template manager not correctly exposed to assistive technolgies
Tooltips to work as labels

Change-Id: Ie4637028b018a962ce8c59667c43ae4eee0fea74
Reviewed-on: https://gerrit.libreoffice.org/27575
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-27 18:04:53 +00:00
Eike Rathke
d93284f65c use HasCellNotes() when looping and searching for notes, tdf#65334 follow-up
... so we actually find all if on empty cells.

Change-Id: Ie504ce7df2a17877eddf21cf309990a2a8b692ba
2016-07-27 19:04:34 +02:00
Zdeněk Crhonek
e8e5853b88 add WORKDAY.INTL test case
Change-Id: Id7060c93a1aca8a986bdf75b4883b697147c0e81
Reviewed-on: https://gerrit.libreoffice.org/27485
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-27 17:01:53 +00:00
Eike Rathke
156590e7c0 use GetCellArea() also in SearchAll() and ReplaceAll(), tdf#65334 follow-up
Change-Id: I50bfeee96e57010455bbb9e8be4312a39d392411
2016-07-27 19:00:47 +02:00
Miklos Vajna
5f65ca15a2 svx lok: fix handling of text edit drawing when view/page changes
This is a follow-up to commit 9d91d371e9
(svx lok: draw text edits in all views, 2016-07-26). Two corner-cases
are now handled:

1) When the SfxViewShell is created after begin text edit and
2) When the other draw view is already created, but at the time begin
text edit happens, the other draw view shows a different page.

And the opposite of these: switching away from a page were we observe a
text edit done in an other view or destroying a view that observes a
text edit.

When the complete view goes away, then SdrObjEditView::HideSdrPage() is
not called, so also try to destroy the outliner view of the text edit
from SdrObjEditView::DeleteWindowFromPaintView(). The GetSfxViewShell()
call in SdrObjEditView::ShowSdrPage() is important, because we let the
other draw view create the outliner view, but the outliner view should
invoke our view shell, not the view shell of the other draw view.

Also improve the SdTiledRenderingTest::testCursorViews() testcase, so
that it asserts it managed to begin text edit and use a test document
that still has a single slide and shape, but the shape is not
auto-sized; otherwise invalidations happen even if outliner views are
not created in all draw views, so the test would pass even without the
fixes.

Change-Id: I2c3bb27826c6887115366db818599fc8adabc5a5
Reviewed-on: https://gerrit.libreoffice.org/27583
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-07-27 16:27:16 +00:00
Eike Rathke
a02f7aa735 do not search in empty string if there is no note, tdf#65334 follow-up
Change-Id: I6c347b5bccd4ffd6a43a80e9d73a0b5fcf82926b
2016-07-27 18:18:52 +02:00
Eike Rathke
09cc958dee use GetCellArea() when searching for notes, tdf#65334 follow-up
... so empty cells with notes are included as last "data" position if they are
below or right of the last "real" data, which GetLastDataPos() doesn't.

Change-Id: I9bb7464033736e7e7fa24e635ef1a3d39626002b
2016-07-27 16:33:45 +02:00
Eike Rathke
f027c77c52 include empty cells if notes are searched, tdf#65334 follow-up
Change-Id: Ib67b9745ffff730b209df2b82dc7e46fc4774900
2016-07-27 16:05:31 +02:00
Rishabh Kumar
5e0b0de0af Bug fix: Fill bitmap item set only when bitmap tab is selected
Change-Id: I9bb7bdeecfcd51e8191f82c649585af8458f1001
Reviewed-on: https://gerrit.libreoffice.org/27578
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-27 14:00:39 +00:00
Laurent Balland-Poirier
f06a3503b6 tdf#100834 Extend ODF for integer/fraction delimiter
Any string can be used as delimiter between integer and fraction.
It is now saved/loaded to/from ODF, as it was from XLS.

Change-Id: Ie6364d1cdefc020ea615c18099118135c619f96b
Reviewed-on: https://gerrit.libreoffice.org/27262
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-07-27 13:12:34 +00:00
Jan Holesovsky
5bd8b05f9b Simplify dynamic_cast followed by a static_cast.
Change-Id: Ic95ca9b07e73a9f5b25834cd2d23c9180861b7c1
2016-07-27 15:03:16 +02:00
Justin Luth
91ad1017b6 tdf#75573 - docx don't remove frame anchor paragraph
frames anchor to the following paragraph.  Don't remove
an empty paragraph if it follows a frame or else the frame
will jump to the next page.

This gets a bit complicated because headers/footers contain
paragraphs that aren't really "following" the frame paragraph,
and so wouldn't be used as anchor paragraphs.
There may be similar sub-paragraphs for comments etc, but
exceptions for those can be added when proof documents are found.

Change-Id: I46988b40abe65e23a5c407dde38a951937978005
Reviewed-on: https://gerrit.libreoffice.org/27455
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-07-27 12:55:13 +00:00
Caolán McNamara
0d174c9748 Resolves: tdf#101003 don't give paras in editeng accessible names
change since...

commit c23ab5eaed
Author: Steve Yin <steve_y@apache.org>
Date:   Tue Nov 26 14:25:22 2013 +0000

    Integrate branch of IAccessible2

keep the accessible description, but drop thea accessible name which
is reportedly an undesirable change.

Change-Id: I8f9c53ef967c4e566fde1829832aa035efce4f23
2016-07-27 13:19:03 +01:00
Caolán McNamara
8bb1726007 formally->formerly
Change-Id: I1d631f8dd09193c57b7b65e3202ed080ce15861b
2016-07-27 13:14:17 +01:00
Jakub Trzebiatowski
b7138e03eb GSoC Writer Table Styles; Import bugfix
+ Binary autoformats are loaded into document on document creation
+ Imported table styles overwrite existing styles.

Change-Id: I88c08d1356e1c54a03624a051611357670f225ba
Reviewed-on: https://gerrit.libreoffice.org/27539
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-07-27 12:13:18 +00:00
Caolán McNamara
9e63e60d6f Resolves: tdf#63662 'Manual Column Break' always visible...
even when non-printing chars is off.

I think this began as an intermediate step for both page and
column breaks to the header/footer overlay we now have for
page breaks. Leaving this just for column breaks. It may
have been set to always on with page-breaks in mind.

Change-Id: I1617683e2bb8c1f9229e9c2313e7817e184fa5ea
2016-07-27 12:29:51 +01:00
Laurent Balland-Poirier
aab21302fa tdf#100755 Extend ODF to allow 0 in fraction
As '0' is now allowed in numerator/denominator
this commit extend ODF to save/load this format

Change-Id: I3bc897dcce5393453acd7a434a21ae305feeb919
Reviewed-on: https://gerrit.libreoffice.org/27263
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-07-27 11:04:04 +00:00
Caolán McNamara
7c84a219e3 Resolves: tdf#65334 cannot search in cell notes
regression since...

commit c06dbbe759
Author: Markus Mohrhard <markus.mohrhard@googlemail.com>
Date:   Thu Feb 23 23:36:49 2012 +0100

    remove mpNote from ScBaseCell

and requires restoring some code subsequently removed in

commit a1a1131c16
Date:   Sun Mar 4 15:27:27 2012 +0800

    Remove unused code

Change-Id: If931c3162cacaeb126e730e3e79c1c47be4ce434
2016-07-27 11:52:27 +01:00
Noel Grandin
cb4787c36a loplugin:countusersofdefaultparams in svx
Change-Id: Ic46a0dcce477c8b27aa2d4771c48fd45ad73718c
Reviewed-on: https://gerrit.libreoffice.org/27574
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-27 10:34:53 +00:00
Akshay Deep
4b598ccb3f Start Center: Separate thumbnail view buttons in UI
Change-Id: If406b3d13ef3b39334079f9c41ef0c25dd2e21f9
Reviewed-on: https://gerrit.libreoffice.org/27571
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-27 10:18:00 +00:00
Tor Lillqvist
70258bb2d6 Drop OpenCL details from the 'Detailed Calculation Settings' dialog
There is really no need for end-users to have access to these
settings. We don't want end-users to shoot themselves in the foot. If
power users really think they need to modify these settings, they can
poke the LibreOffice registry.

Change-Id: I567506f2d2adf3c3b1817ca82be808af4e9698f7
2016-07-27 13:10:13 +03:00
Tor Lillqvist
d78012872a tdf#101063: Get rid of the whole "Test OpenCL" functionality while at it
Its intended use case has never been particularly clear. (I wrote it,
so I know.) We now test OpenCL usability silently at each from-scratch
start.

Change-Id: I4e04ae5876153f61089ece6a75ebfdecf4cfcc09
2016-07-27 13:10:13 +03:00
Tor Lillqvist
a92da660cd Remove effectively dead code
We haven't displayed any list of OpenCL devices to select from in this
dialog for a long time, so remove the associated code.

Change-Id: Ife0c624a8bfb829bd1e62e0a000c7681d696f40b
2016-07-27 13:10:13 +03:00
Miklos Vajna
c0f1c0da77 svx lok: avoid SfxViewShell::Current() during constructing a new view shell
Currently when a text edit is started, then in the LOK case if there is
an other view that shows the same page, then both draw views will have
an outliner view showing the text edit. This means that in case a view
shell is created after starting the text edit, that won't have an
outliner view for the text edit.

Before fixing this, calls to SfxViewShell::Current() has to be avoided
when we're in the process of setting up a new LOK view. In case of
Impress, this is a double initialization, and by the time
SdrObjEditView::ImpMakeOutlinerView() is called, we're already in the
process of setting up the second SfxViewShell (as part of
SdXImpressDocument::initializeForTiledRendering()), but
SfxViewShell::Current() still points to the old view shell.  Which means
that the outliner view would refer to a view shell that's deleted soon,
and we crash as soon as it tries to invoke a LOK callback.

Fix this by adding a virtual member function to SdrObjEditView, and
override it in sd, so in case applications want to provide a more
precise way of giving the view shell owning a draw view, then they can.

Change-Id: Ie0005f73237d4ff9cf576bf16fa5b46280f13759
Reviewed-on: https://gerrit.libreoffice.org/27561
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-07-27 10:07:51 +00:00
Caolán McNamara
5733910b2b change from a 2 min dbgutil failure to a 3 min
to try and align with the crashtesting timeout

Change-Id: Ife3a4a3d63bbb9d9d5b612675e3728900262bf6c
2016-07-27 11:02:28 +01:00
Caolán McNamara
93f9a32cdf cppcheck: noExplicitConstructor
Change-Id: Id0a6cd461b2ba56e3b9b944514f3b0d0eb75cc44
2016-07-27 11:02:28 +01:00
Noel Grandin
80ee8f832f loplugin:singlevalfields in sc(part4)
Change-Id: I77bcfc0103f638cd3eddb676ee88a4749bc74b1b
Reviewed-on: https://gerrit.libreoffice.org/26687
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-27 09:44:27 +00:00
Rishabh Kumar
706b76d1d5 Align pattern preview correctly
Change-Id: I7513934e3195297bc6b68ff7149e9fd78922dcdc
Reviewed-on: https://gerrit.libreoffice.org/27562
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-27 09:17:44 +00:00
Noel Grandin
187044b5e8 loplugin:vclwidgets
Change-Id: Ie16efa4a66cc3ea1991878f20442f0c0bac79d10
2016-07-27 10:23:13 +02:00
Noel Grandin
702e26d656 loplugin:passstuffbyref
Change-Id: I37cc39974784e59aa793c2a2ca0dbc59d00e3cb4
2016-07-27 10:23:13 +02:00
Caolán McNamara
c755336853 Resolves: tdf#57978 don't show duplicate index keys in dropdown list
Change-Id: I25e25157063ea4424f770b397d879cb7bfd46bcb
2016-07-27 09:11:00 +01:00
Tor Lillqvist
63db4d577f loplugin:defaultparams
Change-Id: Ib9a838b9d840baff62f1a0453eb370b6f665326d
2016-07-27 10:59:53 +03:00
Miklos Vajna
3efe880c3b libxmlsec: mark part of xmlsec1-vc.patch.1 as upstreamed
Change-Id: I4a8365c98eef87274ae1809047fd4ea582102f0b
Reviewed-on: https://gerrit.libreoffice.org/27556
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-07-27 07:04:51 +00:00
Jochen Nitschke
e73c4d5013 sc: meBiff is always set to BiffType::BIFF_UNKNOWN
remove meBeff and GetBiff().
adapt uses.
remove enum BiffType, because only use is gone.
keep BiffType symbols as comment for documetation.

Change-Id: I7019a21b80fd5b5f0b92458f83dd9e34bc704731
Reviewed-on: https://gerrit.libreoffice.org/27253
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-27 06:49:16 +00:00
Noel Grandin
508c95f1b6 improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c
Reviewed-on: https://gerrit.libreoffice.org/27317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-27 06:48:25 +00:00
Jan-Marek Glogowski
9f4af777a8 Don't Update() and Flush() status bar draws
From reading the code of vcl::Window::Update, this already calls
Invalidate and Flush in case of top-level widgets and also handles
child windows.

And there is no need to invalidate the progress bar text, if we
just update the progress value.

Change-Id: Ie296c6ffe5db5a927ad69104ce8ffe3d0d29034a
Reviewed-on: https://gerrit.libreoffice.org/27285
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-27 06:47:03 +00:00