Commit Graph

406115 Commits

Author SHA1 Message Date
jan Iversen
12df2eed43 iOS make build work with 10.3 and simulator
Solved architecture problem

Change-Id: Ibc6bc5864da5585388862dd92a6039db16c9ccf2
2017-04-05 13:17:44 +02:00
Tor Lillqvist
f58cff37af Clarify message
Change-Id: I177b84c3e664ba665c9223e14b636b1a68684cc1
2017-04-05 14:16:16 +03:00
Stephan Bergmann
8639758d96 css::uno::TypeClass vs. typelib_TypeClass mismatch
Change-Id: If3e7a98f037d9967729be38ce1e57d4ff66974d2
2017-04-05 13:15:55 +02:00
Caolán McNamara
a32ef81101 ofz: infinite loop and oom
Change-Id: Ibb23b5808ae465294adf2342d5535784476f5395
2017-04-05 12:08:17 +01:00
Caolán McNamara
58b56f8c78 add a clearDocumentHandler for null document handler case
Change-Id: I661a2fd5381013056c69b379792560aed7121214
2017-04-05 12:08:15 +01:00
Marco Cecchetti
1fd19d3e45 LOK - Calc: beyond row 65535 it is not possibile to resize a row
The row parameter type was a unsigned short.

Change-Id: I2da1a96d60988e8f1efeb49f55032fb84a8b562b
Reviewed-on: https://gerrit.libreoffice.org/36087
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
2017-04-05 10:21:44 +00:00
Jens Carl
a4712a3251 tdf#39468 Translate German comments
Translate German comments and terms in sc/source/core and sc/source/ui

Change-Id: I214565e73893688963d99c0f0ddfc356b5ad63be
Reviewed-on: https://gerrit.libreoffice.org/36107
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-04-05 10:17:33 +00:00
Tor Lillqvist
5a7a23539c Add another FIXME
Change-Id: I60a3978454fb4e6c39b3c35705fd5d503c75860c
2017-04-05 13:03:42 +03:00
Stephan Bergmann
d1f330cf55 -Werror,-Wunused-private-field
Change-Id: Iab661fad3892c72ef042016085db553819307c56
2017-04-05 12:01:42 +02:00
Tor Lillqvist
770a970aae Add FIXME
Change-Id: I84c6e605f012dd563f41631bc3c2b8631c1428e8
2017-04-05 12:52:20 +03:00
Jens Carl
5e30761df4 tdf#39468 Translate German comments
Translate German comments in sc/sdi

Change-Id: I560f7b80201f1117e93efd2a9a3068976d1cb4d6
Reviewed-on: https://gerrit.libreoffice.org/36104
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-04-05 09:51:02 +00:00
Noel Grandin
942b1f3fb9 fix shadow warning with latest clang
Change-Id: I0640d4e816ba73f900ad21d7603743e0e9695a70
error: declaration shadows a typedef in 'bridges::cpp_uno::shared::VtableFactory' [-Werror,-Wshadow]
Reviewed-on: https://gerrit.libreoffice.org/36127
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-05 09:47:35 +00:00
Mike Kaganski
97f048e633 sType and sSubType are already normalized to ASCII lower case
... upon successful return from INetContentType::parse

Change-Id: I8a0c50c1c655477138578e59031b64fb6b2b7218
Reviewed-on: https://gerrit.libreoffice.org/36129
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-04-05 09:40:15 +00:00
Caolán McNamara
01a4269a2e coverity#1404783 Dereference null return value
Change-Id: I6bc3cc6ad5344756a65dceaf53a9f14abe9c69e3
2017-04-05 09:38:37 +01:00
Caolán McNamara
fdcac49119 ofz: stay within available data
Change-Id: Ic959cf5b2cd92ba5bc297e686beb1fd50427a994
Reviewed-on: https://gerrit.libreoffice.org/36102
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-04-05 07:54:41 +00:00
Gabor Kelemen
02d5424751 There is no MM wizard page after Layout page now
Change-Id: Ifd15dada56581ccae704452f6c98f5b476ca15f5
Reviewed-on: https://gerrit.libreoffice.org/36094
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-04-05 07:32:36 +00:00
Ximeng Zu
662a1b0a52 Fix typo: inticator -> indicator
The related code is not being used now...
So, it's safe to just correct it before it is put
to use.

Change-Id: I1ba5f1d6d511c965c0ce08dd08bfcabc567da2c3
Reviewed-on: https://gerrit.libreoffice.org/36103
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-04-05 07:14:23 +00:00
Jochen Nitschke
4709aa4bab sc: remove redundant casts
surprisingly GetDouble() already returns a double

Change-Id: I1561f3d20e42531adad4d51b2d48ce92b126ffc2
Reviewed-on: https://gerrit.libreoffice.org/36068
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-05 07:02:20 +00:00
Jochen Nitschke
034e35d789 sc: use std::reverse
Change-Id: I16505d15cc7e1d82409f15107d1c5af3bf811c11
Reviewed-on: https://gerrit.libreoffice.org/36069
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-05 07:01:51 +00:00
Noel Grandin
e3eadc96cc teach constantparam plugin to find always on and always off bitmask values
Change-Id: If56a483494bd3d7feb3fa67c01000dddd0d34421
Reviewed-on: https://gerrit.libreoffice.org/36085
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-05 06:49:56 +00:00
Noel Grandin
ff339c89b5 loplugin:constantparam part2
Change-Id: I7ec4c946be52a6b56aee908426f95ecacc7b0746
Reviewed-on: https://gerrit.libreoffice.org/36072
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-05 06:42:40 +00:00
Noel Grandin
3d6c84f2d9 loplugin:constantparam
Change-Id: I1996319e5b664dff95f7a9b2346aea6092d333ec
Reviewed-on: https://gerrit.libreoffice.org/36070
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-05 06:40:10 +00:00
Noel Grandin
cedbc4031f tdf#106868: fix crash when modify external link
The EndDialog callback Hdl was disposing the Dialog, which is a little
troublesome since the stack wants to go back through the Dialog code
when the callback is done.
Rather just the more normal synchronous Execute() style of Dialog
execute, instead of the asynchronous StartExecuteModal.

Change-Id: I14933bd475da228c9648a6fa0564bda4a60d9d12
Reviewed-on: https://gerrit.libreoffice.org/36074
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-05 06:39:09 +00:00
Mike Kaganski
156f778593 tdf#106955: Detect XML by MediaType
According to Extensible Markup Language (XML) 1.0 (see
https://www.w3.org/TR/2008/REC-xml-20081126/#sec-prolog-dtd),
all parts of XML prolog (including XML declaration) are optional,
so XML stream without <?xml ... ?> is well-formed (though not
valid).

XMLFilterDetect uses only XML declaration to detect if the file is
to be processed further. However, this creates problems with said
documents.

This commit checks if the document has MediaType set to one of
known XML media types, in case when the check for XML declaration
failed.

Change-Id: I31627c0e3a39bee241f609650280ebac3f1cede8
Reviewed-on: https://gerrit.libreoffice.org/36101
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-04-05 06:07:14 +00:00
Mike Kaganski
fbc04c9723 tdf#106955: Open WebDAV resources on which PROPFIND fails
When PROPFIND fails on a WebDAV resource, its IsDocument property
stays undefined, and so stream creation fails. Proposed solution
is to default to IsDocument=true for all WebDAV documents where
we cannot get the property from server.

Such resources also fail to return their locking options, so
defaulting to server properties. When later locking is attempted
on it, the attempt fails with user notification (a dialog saying
that getting information from server failed). Proposed solution
is to check Content-Disposition header in such resources, and in
case it's attachment, disable lock on this resource. The rationale
for this is that "In a regular HTTP response, the Content-Disposition
response header is a header indicating if the content is expected
to be displayed ... as an attachment, that is downloaded and saved
locally" (see MDN:
https://developer.mozilla.org/en/docs/Web/HTTP/Headers/Content-Disposition

Also, Content::getProperties wasn't ready for PROPFIND returning
empty result.

Change-Id: I91dbffa8bdf0fe900c11d2f8c9c9394d2104bb49
Reviewed-on: https://gerrit.libreoffice.org/36090
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-04-05 05:39:36 +00:00
Mike Kaganski
d6323a2180 tdf#106525: Implement an XSLT import filter for ADO rowset XML
There are online services and management systems (like SharePoint)
that allow to export datasets in ADO rowset XML format ([MS-PRSTFR],
https://msdn.microsoft.com/en-us/library/cc313112). Usually they are
intended to be open with MS Excel as a spreadsheet (with autofilter).

This allows to open this data in Calc.

Change-Id: I495cd790138bdd6bd24630c0f422a0c8b4e3d0fb
Reviewed-on: https://gerrit.libreoffice.org/35159
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-04-05 05:17:22 +00:00
Caolán McNamara
81894a5f72 ofz#984 better match post-creation aBitmap.HasGreyPalette() logic
i.e. Bitmap::HsGreyPalette checks that the palette has entries before calling
Palette::IsGreyPalette

Change-Id: I287647869ad615327f3119b7798f410e22140302
2017-04-04 21:04:40 +01:00
Caolán McNamara
98151bf95b ofz: check olst sprm for valid ANLD payload len
Change-Id: Ic1b6681a3f48ef0fe3f52eda9db8b7bc003ded55
2017-04-04 20:33:49 +01:00
Caolán McNamara
6c81597663 ofz#770 JOHAB_73 table starts at 0xA not 0x2
the start value is out by one row

Change-Id: I77ed154358516ccd47a090cf7ed45bb609bc81a3
Reviewed-on: https://gerrit.libreoffice.org/34992
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-04-04 19:26:58 +00:00
Caolán McNamara
6f0f227866 Resolves: tdf#106725 paint default window bg before spin button bg
Change-Id: I0c7f982c3a47f45d022271eba69ebed896288d78
2017-04-04 18:56:00 +01:00
Caolán McNamara
fb5cd5d734 forget the TODO
Change-Id: I81c8b97e8cd958933caac475145e3b3bcee46d6a
2017-04-04 18:56:00 +01:00
Stephan Bergmann
9ac98e6e34 Finally switch MSVC to sal_Unicode = char16_t, too
There is lots of (Windows-only) code that relied on sal_Unicode being the same
as wchar_t, and the best change may be different in each case (and doing the
changes may be somewhat error prone).  So for now add SAL_U/SAL_W scaffolding
functions to sal/types.h, remove their uses one by one again, and finally drop
those functions again.

Change-Id: I2cc791bd941d089901abb5f6fc2f05fbc49e65ea
Reviewed-on: https://gerrit.libreoffice.org/36077
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-04-04 16:12:11 +00:00
Jan-Marek Glogowski
6f995da5a6 Workaround VCL complextext failure on Win7 KVM QXL
My Windows 7 KVM QXL VM fails the bounding rect test with:

complextext.cxx:98 VclComplexTextTest::testArabic equality .. failed
- Expected: 71x14@(0,1)
- Actual  : 70x14@(1,1)

This doesn't happen using a SSHd on Cygwin64 based session.

Adding a SAL_DEBUG to WinSalGraphics::GetGlyphBoundRect shows many
different glyph rects, which - probably by pure chance - almost add
up to just a single pixel line missing on the left.

So this simply drops the first pixel column, if the bounding rect
starts with an offset. Works for me.

Change-Id: Ia496a208523a9c358d4128ecad887b5c77283fbc
Reviewed-on: https://gerrit.libreoffice.org/35647
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2017-04-04 16:07:45 +00:00
Aron Budea
2aa43937ec tdf#104686: do not crash if Menu has been somehow disposed
The rare crashes in MenuFloatingWindow::ImplGetStartY() and
MenuFloatingWindow::ImplScroll(bool) likely happen because
of a disposed Menu.

Let's guard against invalid accesses.

Change-Id: Ie31240abbc48c06edd40d0a95f319725cdb3db16
Reviewed-on: https://gerrit.libreoffice.org/36026
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2017-04-04 15:58:29 +00:00
Szymon Kłos
c1351a7b13 Make HangingIndent a command
New command .uno:HangingIndent.
Code moved from the sidebar to slots.

Change-Id: Ib389f9fb3368409a90cf90ad8b19f1be322fa120
Reviewed-on: https://gerrit.libreoffice.org/35930
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-04-04 15:51:19 +00:00
Szymon Kłos
387cdc35d7 Notebookbar: Separated paragraph spacing controls
One big paragraph spacing control was splitted
to separated widgets. It will be possible to
reuse that in the sidebar. Also layout is better
because explicit size setting is no longer needed.

Change-Id: Ieb200af4a9a6120ae03b22b27da56256aa816193
Reviewed-on: https://gerrit.libreoffice.org/35801
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-04-04 15:40:30 +00:00
Samuel Mehrbrodt
d9064ecf03 Fix group for .uno:EditAnnotation
Change-Id: I3a62e37d866235728abf6b4ad3a5338222d02088
Reviewed-on: https://gerrit.libreoffice.org/36081
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-04-04 15:26:06 +00:00
Bernhard Widl
f5d59796d3 add *.vcxproj* to .gitignore
these files are generated by make vs2015-ide-integration.

Change-Id: Iaae5931289bd2f27415c401b6ac253d43dc39007
Reviewed-on: https://gerrit.libreoffice.org/36073
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-04-04 15:22:24 +00:00
Olivier Hallot
993e8cc1df Updated core
Project: help  ad25b453307e0a88ac208aa3b178805846988045

Fixes in HC after translators review.

Change-Id: Id2384cb6f1917c7e1f11c97ef9b05a3dfff08c9a
Reviewed-on: https://gerrit.libreoffice.org/36050
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-04-04 15:04:30 +00:00
Caolán McNamara
9a0f19c5f6 well, its on the main trunk now
and we're not changing it at this point

Change-Id: Icb0cbe4728f64c2070780ad63b888e5d229c6216
2017-04-04 15:44:15 +01:00
Caolán McNamara
5d8593d81f intendend->intended
Change-Id: I6f066493600cec2af586c3ff4df1f32faa303060
2017-04-04 15:43:06 +01:00
Bjoern Michaelsen
3ecb9b4bd7 tdf#99352: assert on stray VclPtrs past DeInit
- ignore on Windows for now, as it is acting up

Change-Id: I98dbb887ed556b58188870c3eb3de1327bc58109
Reviewed-on: https://gerrit.libreoffice.org/35816
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2017-04-04 14:35:16 +00:00
Caolán McNamara
0144600bf5 std::unique_ptr<[]> -> std::vector
Change-Id: I7fd4275664fab42c61941a4ea21750a653b437d3
2017-04-04 15:29:42 +01:00
Caolán McNamara
be752d9f4e ofz: avoid oom
Change-Id: Ie700676c8470b6764a38f4e2989dc14819244872
2017-04-04 15:29:42 +01:00
Miklos Vajna
843cb68d00 xmlscript: fix -Werror=maybe-uninitialized
Change-Id: Ifcde2202fcb2cfa1dd226697910c1fbd219a3f83
2017-04-04 16:01:37 +02:00
Stephan Bergmann
3e0d46249b Missing str(...) when an arg is itself a css::uno::Sequence<...>
Change-Id: I54529e7086014a2feba89eb73f3b368d36f758b8
2017-04-04 15:58:25 +02:00
Tomaž Vajngerl
9009663deb tdf#83257 [API-CHANGE] Pivot chart implementation
This is a squashed commit of the pivot chart implementation.

Some of the changes:
- Add pivot chart specific (pivot table) data provider which
  provides the data from a pivot table to the associated chart.
- When inserting a chart and the cursor is in a pivot table,
  in that case insert a pivot chart
- Modify the pivot chart when the pivot table changes
- Collect and set the number format for the values
- isDataFromSpreadsheet check for the creation wizard
- In ChartView (and VLegend) check if the data provider is a
  pivot chart data provider and get the pivot table field names
  to create the buttons on the UI.
- Adds the functionallity to show a filter pop-up (from calc)
  when clicking on row / column / page field buttons.
- Remove (X)PopupRequest as we won't need it.
- Add ODF import/export for pivot charts:
  + Added loext:data-pilot-source attribute on chart:chart
    which is the internal name of the pivot table with which the
    pivot chart is associated with. If the element is present, then
    the it means the chart is a pivot chart, else it is a normal
    chart
  + Added service to create pivot chart data provider through UNO
  + Add new methods to XPivotChartDataProvider to create value and
    label data sequences separately from the data source, which is
    needed for pivot chart import
  + When importing defer setting the data provider until a later
    time when we know if we are creating a chart od a pivot chart
- Pivot chart ODF round-trip test
- Add table pivot chart supplier API:
  This adds the XTablePivotChartSupplier and related interfaces so
  we can access, create, delete pivot charts from UNO in a sheet
  document. With this we now distinguish between normal charts
  and pivot charts. This was mainly needed because we can't extend
  the "published" interfaces of TableChartSupplier.
- Added an extensive test, which uses the API to create a new
  pivot chart when there was none, and checks that the pivot chart
  updates when the pivot table updates.

Change-Id: Ia9ed96fd6b1d342e61c2f7f9fa33a5e03dda21af
Reviewed-on: https://gerrit.libreoffice.org/36023
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-04-04 13:39:29 +00:00
Caolán McNamara
1931b5b01c can simplify now
Change-Id: I234e630f3af1acfa39900464abd7e06efc47a671
2017-04-04 14:35:04 +01:00
Caolán McNamara
f1a53e7a0b Resolves: tdf#106935 restore traditional toolbar labels
Change-Id: I00cf16e9ce429f9186cc900a07f4d386e33b8f7b
2017-04-04 14:29:00 +01:00
Caolán McNamara
924624b40a ofz: guard harder against bogus sprm len
Change-Id: Ic82526e1454b24f094d3deee89647e88760bc44b
2017-04-04 14:00:50 +01:00