Commit graph

416071 commits

Author SHA1 Message Date
Caolán McNamara
434036d810 add pptx support to fftester
Change-Id: I517fa449ec75d8817cc3e03d0d90ab4c289a7c0f
Reviewed-on: https://gerrit.libreoffice.org/45477
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-29 11:44:56 +01:00
Shinnok
454d1f464c Updated core
Project: help  db60e4b8ed439fcf103fa4937691498eee8f5e9c

Chmod +x for makelocal.sh.

Change-Id: I20c45d4eef8a5302369242e7d3cc5b6bb9f70e39
Reviewed-on: https://gerrit.libreoffice.org/45431
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2017-11-29 11:43:46 +01:00
Caolán McNamara
d02e49d9b9 ofz#4476 Integer-overflow
Change-Id: I7ee197b396026fb25872f9e79c3be098329a5cee
Reviewed-on: https://gerrit.libreoffice.org/45467
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-29 11:17:35 +01:00
Eike Rathke
af8431d8db Find VBA-only functions when compiling first on module level
This likely never worked as there is no SbiInstance in that step,
but worked by chance when running a module's code that was
compiled with VBA support where the VBA-only function was added as
a symbol to be resolved later during runtime and then the
SbiInstance exists and the symbol was magically resolved.

Found when trying to correct vba_tests to actually fail if all
subtests fail that then started to fail in Atn.vb because of the
Round() function being VBA-only.

Change-Id: I7d9f6e2640a73388a2a58c3d180820c6ef85abe3
Reviewed-on: https://gerrit.libreoffice.org/45425
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2017-11-29 11:08:58 +01:00
Stephan Bergmann
2849775c79 TODO: silence new loplugin:badstatics for now
Change-Id: Ia57dd190a173f664b0c624617b13f2876008835a
2017-11-29 10:58:50 +01:00
Jan Holesovsky
33afa0f0bd Fix 'unused parameter' warnings.
Change-Id: I8478e907a66ca918eddc7a543cbcf23e17d9ee5a
2017-11-29 10:17:01 +01:00
Pranav Kant
d0f0a3c289 lokdialog: Remove getDialogInfo + update gtktiledviewer accordingly.
Change-Id: I6f810c97f2fadd3b1ea602a97e24c8b42f4a84b9
2017-11-29 10:17:00 +01:00
Pranav Kant
3acfdecac9 lokdialog: Notify the current view only
Change-Id: I55e0dbf1677a24905d337c58184a4419c1020a87
2017-11-29 10:17:00 +01:00
Pranav Kant
1dda69be37 lokdialog: new callback size_changed with new size of the dialog
Change-Id: Ibb864cb588ae7db92381c5578701d3ce09185f34
2017-11-29 10:17:00 +01:00
Pranav Kant
bc113a3bae lokdialog: Emit callback when title is changed
The plan is to remove the getDialogInfo from LOK API but one more step
before doing that is to find out why the dialog size in 'created'
dialog callback is less than what the actual dialog after painting is.

Change-Id: I5176e175cbf7ed81c1465feeeea053c9a024fbd9
2017-11-29 10:16:59 +01:00
Pranav Kant
094ec23874 lokdialog: Launch dialogs which have a notifier registered
Change-Id: I062fa291668b7dbfb8bc8e8d455a7933378ce7d9
2017-11-29 10:16:59 +01:00
Jan Holesovsky
d516c5c981 lokdialog: Move the LOKWindowId <-> VclPtr<Window> mapping to Window.
This allows registering & de-registering of non-sfx windows too, and makes the
Calc autofilter popup to appear.

Change-Id: I7cbbe94d208115aabcb6fa5f964646c7b7ce4c93
2017-11-29 10:16:58 +01:00
Jan Holesovsky
b4487b0fd2 lokdialog: Move the LogicInvalidate from Dialog down to Window.
Another step towards the autofilter popup working...

Change-Id: I4907a23fcd0fc64da0c7f51e2f36b1657a17638c
2017-11-29 10:16:58 +01:00
Jan Holesovsky
e2ae221f61 lokdialog: Move the painting down to Window, and enable Calc and Impress.
Tested with .uno:FormatCellDialog in Calc, Impress not tested.

Change-Id: I6d911c29616988db0625be9e2a63cf2172c69ee8
2017-11-29 10:16:57 +01:00
Jan Holesovsky
5de24bea47 lokdialogs: Assign the LOK window id only when necessary.
Change-Id: Id48957a8c2bde068f30bb26e66df81972fe38e0f
2017-11-29 10:16:57 +01:00
Jan Holesovsky
6bc22c34fb lokdialog: Make the Autofilter popup notify about its creation.
Change-Id: Ib4062fa887b44eb1368205a414f4ac162f648c5c
2017-11-29 10:16:56 +01:00
Jan Holesovsky
ba8154d857 lokdialog: Move the Notifier down to vcl::Window.
We need to tunnel more than just dialogs, so this is the 1st step to get the
Autofilter popup rendered.

Change-Id: I6523a39ddc7a6eb2a204e48ab364130a5822f548
2017-11-29 10:16:56 +01:00
Pranav Kant
f2b6bffded lokdialog: Let all modal dialogs notify about creation, disposal
Change-Id: I8ec0ad81abcf1adf628906b02f7f94ab74a550b5
2017-11-29 10:16:55 +01:00
Pranav Kant
b19f74aab0 lokdialog: Notify to child helper method, not the main one
Change-Id: I0698bfe578cb122dfabed566cb7a096f3cb56af5
2017-11-29 10:16:55 +01:00
Pranav Kant
90e0b60b6e lokdialog: Let modeless dialogs emit "created" callback too
Change-Id: Ie81f8bd19696e6f0abceb86369545766918ae46a
2017-11-29 10:16:54 +01:00
Pranav Kant
e8c7420cc4 lokdialog: Notify dialog closure from sfx2/, instead of vcl/
Change-Id: I49f5e0d5f6c7c0077a6d4390f8788c1691d47bd6
2017-11-29 10:16:54 +01:00
Pranav Kant
faf01731b2 gtv: Kill dialog selector combo box
Change-Id: I2cd27dff95f2bc49a15ab395b8282b5496e1e229
2017-11-29 10:16:54 +01:00
Pranav Kant
f3f4c03907 lokdialog: Make vcl::DialogID an integer
This will help launching multiple instances of dialog from multiple
views. The earlier approach of using the UNO command strings as dialog
id would not have been useful for multi-view case.

Change-Id: I01cfb3c8b204d5654df2417efdac6b50dc920f0e
2017-11-29 10:16:53 +01:00
Pranav Kant
2798e1aae5 lokdialog: Create dialog when callback is received
With this, we do away with initial approach of rendering the dialog on a
large surface. We now create the cairo surface with dimensions of the
dialog.

Change-Id: Icb034693c7f1c656b7daae7f5c711b5bd4d8e880
2017-11-29 10:16:53 +01:00
Pranav Kant
91b7c8bb60 lokdialog: gtv: Add width and height props to Dialog GObject
Change-Id: I488a94d9c6cefd37624f755c6308f0b75595df84
2017-11-29 10:16:53 +01:00
Pranav Kant
871eb68e14 lokdialog: Changed dialog painting to allow for modal dialogs
Split IDialogNotifier from IDialogRenderable and make SfxViewShell
implement it.

We now just send the dialog UNO command to the backend and wait for core
to emit a 'created' dialog callback which signals dialog creation in the
backend. The client is then supposed to send the paint commands for
rendering the dialog.

Change-Id: I1bfbce83c17955fa0212408376d6bcd1b2d2d1dd
2017-11-29 10:16:53 +01:00
Pranav Kant
2d508dcc9d Use SfxModalDialog class as Hyperlink dialog's base
Change-Id: I1f592fdb5825896ad8fbe55c182936ed4ed98efc
2017-11-29 10:16:53 +01:00
Noel Grandin
084ba859b4 loplugin:countusersofdefaultparams in sd
Change-Id: I6eb55d450d02615526e78fb69337c66c840ef8a3
Reviewed-on: https://gerrit.libreoffice.org/45463
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-29 10:12:22 +01:00
Caolán McNamara
dbd71116ea ofz#4406: don't increment ScCompressedArray::Iterator past end
Change-Id: I4975e0655b5ed3083244c63c86f29f3fcad48079
Reviewed-on: https://gerrit.libreoffice.org/45368
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-29 10:03:38 +01:00
Noel Grandin
6a3413a233 loplugin:countusersofdefaultparams in include/oox..vcl
Change-Id: If831bce4cd1fe2c5233159b31c239b813629e0de
Reviewed-on: https://gerrit.libreoffice.org/45420
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-29 10:01:45 +01:00
Miklos Vajna
4e0dd43f9a clang-format: don't pick up non-existing binary from PATH
When /opt/lo/bin/clang-format was missing, we "found" clang-format in
the last item of PATH, which doesn't make sense.

(Fix a spelling error in a formatted file to trigger the hook as part of
CI.)

Change-Id: I3b56a8ad02b4a55dba58e07286e31436a2842cf6
2017-11-29 09:21:16 +01:00
Miklos Vajna
793bbac379 EPUB export: implement font embedding support
Also avoid librevenge::RVNGBinaryData::appendBase64Data() for
performance reasons. Times with and without the XMLBase64ImportContext
rework for sw/qa/extras/odfexport/data/embedded-font-props.odt:

- before: 1m32.254s
- after: 0m7.045s

(Need to insvestigate macOS font embedding situation in general, later.)

Change-Id: I5aa56bfbfa8dc64f19c021202a1b87618b4b2775
Reviewed-on: https://gerrit.libreoffice.org/45385
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-11-29 09:17:04 +01:00
Pranav Kant
3ece8264b4 etags: pass the "-e" flag directly to ctag binary
'man ctags' says that emacs mode will be enabled if the ctags binary is
renamed as etags or '-e' flag is provided to ctags binary.

Before this patch, the script assumes that host system has an 'etags'
binary renamed from 'ctags' program. This is not always the case in all
hosts. Eg: In Fedora, 'etags' binary is provided by emacs-common package
which doesn't understand the flags given later in the script.

It is safe to just explicitly enable the emacs mode via '-e' flag to the
ctags binary.

Change-Id: Ic7ded56cff32683fc5e9d3fcc7405e79da4c23b7
Reviewed-on: https://gerrit.libreoffice.org/45358
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-11-29 09:10:39 +01:00
Szymon Kłos
76f28863e7 tdf#65955 Bookmarks on two paragraphs
Change-Id: I61fe660ee4fc5d3f6fc86c29e07369811eb38935
Reviewed-on: https://gerrit.libreoffice.org/45434
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2017-11-29 07:38:19 +01:00
Noel Grandin
a566fd1c1a loplugin:unusedmethods
Change-Id: I2efb5c0e5735c179314c6c5de87821cee3b033e1
Reviewed-on: https://gerrit.libreoffice.org/45386
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-29 07:28:57 +01:00
Julien Nabet
411260d836 Remove unused typedef B2DPolyPolygonList (filter/svg)
Change-Id: I9bd4fecabdd1cfa90648b285d659d6b491e544c8
Reviewed-on: https://gerrit.libreoffice.org/45439
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-11-29 07:03:35 +01:00
Michael Meeks
b819131347 Remove stray SAL_DEBUG.
Change-Id: I5961f5fec6fa757e21184ee15e8ef78eeb2ed459
2017-11-29 04:10:44 +00:00
Michael Meeks
91e283e42a Tile the writer surround rendering to avoid large image scaling.
This also fixes a potentially large memory leak depending on zoom,
and particularly with non-paginated rendering.

Change-Id: Ia24e0b7baea725020f000a369708b0be3fc20c95
Reviewed-on: https://gerrit.libreoffice.org/45414
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2017-11-29 04:36:02 +01:00
Tor Lillqvist
aa28b54ab5 Do as the FIXME suggested
Not exactly, though. The FIXME said "Make this a comparison operator
at the TokenArray?" but I think that would be misleading as the code
in question specifically does not check the TokenArrays for being
completely identical; it intentionally ignores the RPN part. So make
it a member function 'EqualTokens' instead.

Change-Id: I15d840c422844fa144415a76c1f8fcbd6cae3c83
Reviewed-on: https://gerrit.libreoffice.org/45404
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2017-11-28 23:55:48 +01:00
László Németh
217b1e8e94 Add comment to translators of "Grammar By" text entry box
Change-Id: Ifea74df8f113967c9df9703cf6582360ffdfa78d
Reviewed-on: https://gerrit.libreoffice.org/45410
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-28 21:58:48 +01:00
Stephan Bergmann
0f3b0ec973 Avoid C++17 mode for Coverity Scan
...see mail sub-thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-November/078966.html>
"Re: New Defects reported by Coverity Scan for LibreOffice" about cid#1424266 et
al; lets see if this makes Coverity happy again...

Change-Id: If488b9f61f084f2286b35326917741051ec8d5ce
Reviewed-on: https://gerrit.libreoffice.org/45403
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-28 21:54:52 +01:00
Caolán McNamara
34a7e1b871 not used with disable-dynloading
Change-Id: Idad8a7b9b984147b7a64caf7527d8ad21bdd55a2
Reviewed-on: https://gerrit.libreoffice.org/45433
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-28 21:28:41 +01:00
Caolán McNamara
c97d4caf43 ofz#4412 bail on failure in Formulacell too
Change-Id: Ie7f9e4309ae8468947dce12355201d038e7e63fa
Reviewed-on: https://gerrit.libreoffice.org/45428
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-28 21:27:46 +01:00
Bartosz Kosiorek
51a1fb0beb tdf#113271 Fix order of color's attributes import.
The order of import color is very important in case of more than one color attributes was provided.
This order (theme -> rgb -> indexed -> auto) is not documented
and was gathered experimentally based on MS Excel 2013.

Information about <fonts>:
https://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.fonts(v=office.14).aspx

Information about font:
https://msdn.microsoft.com/en-us/library/ff531892(v=office.12).aspx
https://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.font(v=office.14).aspx

More information about color class:
https://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.color(v=office.14).aspx
https://msdn.microsoft.com/en-us/library/ff532831(v=office.12).aspx

Example:
With indexed auto, colour, rgb and them,
<color auto="1" theme="1" rgb="FFFFFF" indexed="62" />

The priority is as follows:
1. theme
2. rgb
3. indexed
4. auto

Change-Id: I7bb5ab7d7b7a52091f0130fd6f21bac44eca7408
Reviewed-on: https://gerrit.libreoffice.org/45266
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-11-28 19:48:18 +01:00
Miklos Vajna
9914ca04ac ODF export: expose font style and weight of embedded fonts
We don't need this info ourselves, but when converting the flat ODF
output to other formats, this information is hard to find out, so state
them explicitly. Names correspond to existing CSS ones, where it's
necessary to state these explicitly. The EPUB export will make use of
these attributes.

(It is unclear why the test fails on the windows_msc_dbgutil_32 slave,
it works for me locally.)

Change-Id: I05030b6a14aca842e5a740786f3743e9ae838293
Reviewed-on: https://gerrit.libreoffice.org/45384
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-11-28 19:32:46 +01:00
Stephan Bergmann
c8e37ef268 external/libcmis: Falling back to C++03 is too drastic
e.g. when compiling against system libxml2, which in turn includes system
ICU include files, which may use C++11 chart16_t.  So assume that -std=gnu++14
is acceptable for any GCC version for which at least on of -std=gnu++17,
-std=gnu++1z, -std=c++17, -std=c++1z is acceptable, and just fall back to C++14.

Change-Id: Id9f07ab4f419e5683f4fb9c9b2d3bdda251cdd1b
Reviewed-on: https://gerrit.libreoffice.org/45409
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-11-28 18:48:47 +01:00
Andrea Gelmini
46f091f714 Fix typo
Change-Id: I4de461692ac261600c1b0b760ffb94156893fa0d
Reviewed-on: https://gerrit.libreoffice.org/45429
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-11-28 18:41:41 +01:00
Caolán McNamara
f6a2c667d1 add xlsx support to fftester
Change-Id: I07198f24a3e096fab67333cf6a98185d5b40fffc
Reviewed-on: https://gerrit.libreoffice.org/45399
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-28 17:53:53 +01:00
Caolán McNamara
97dabf63f6 ofz#4471 check sprm bounds
and don't reuse results of previous search

Change-Id: I15d55aba260377f2f43627d775adf1a01370ae3e
Reviewed-on: https://gerrit.libreoffice.org/45406
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-28 17:33:24 +01:00
Caolán McNamara
184f6dd697 ofz: ensure aCoordList has required elements
Change-Id: I6687f7e499907f2f44ade2b05b35e40570dabc6b
Reviewed-on: https://gerrit.libreoffice.org/45389
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-28 17:10:59 +01:00