344974 Commits

Author SHA1 Message Date
Caolán McNamara
ec95de6198 coverity#738398 Uncaught exception
Change-Id: I51d0c9feaf34482382451d77ce39eec84d10f01f
2014-02-12 13:03:55 +00:00
Caolán McNamara
70e3691090 coverity#738400 Uncaught exception
Change-Id: I8567bda45c4f1c9d90dbbf69368a74e27b79d9b0
2014-02-12 13:03:55 +00:00
Caolán McNamara
0e0f99aed4 coverity#738402 Uncaught exception
Change-Id: Ic70b2b39d45a1e69be525071f9da214ccc4c5422
2014-02-12 13:03:54 +00:00
Caolán McNamara
7717150491 coverity#738403 Uncaught exception
Change-Id: Ie8b6586b29976abddd204ad5150edda13bf27230
2014-02-12 13:03:54 +00:00
Caolán McNamara
0321ebad56 coverity#738405 Uncaught exception
Change-Id: Id6a851ec0799e2064b4b20c4a5dcefa4d5b81ee1
2014-02-12 13:03:54 +00:00
Caolán McNamara
0fe9276724 coverity#738409 Uncaught exception
Change-Id: Ide9369142230f1f2732aff1e6242299580eb9e65
2014-02-12 13:03:54 +00:00
Caolán McNamara
5cd19ed6ed coverity#738411 Uncaught exception
Change-Id: I9ef08a451101a65816d3ee00d4bf6e27c536eb0e
2014-02-12 13:03:53 +00:00
Caolán McNamara
99ab7e44e4 coverity#738412 Uncaught exception
Change-Id: Iece48b2b8682b38854ca50f158587f9de050e71f
2014-02-12 13:03:53 +00:00
Caolán McNamara
e0abe02ed5 coverity#1079301 Uninitialized pointer field
Change-Id: I8b8ea2d56d5aac9e5577e60b44b4d2eddf265dce
2014-02-12 13:03:53 +00:00
Caolán McNamara
ced290dd02 coverity#1079302 Uninitialized pointer field
Change-Id: Icf395a9784ca0992e92f793bc556293a7d4870ce
2014-02-12 13:03:52 +00:00
Caolán McNamara
c92c8b28bd coverity#1093230 Dereference before null check
Change-Id: I6ec85d718726f874864be93268a88604fb84a2b2
2014-02-12 13:03:52 +00:00
Caolán McNamara
e414cdbf33 coverity#1103660 Division or modulo by zero
Change-Id: I468b218635e10e04bb25150b6275e187ba8a8316
2014-02-12 13:03:52 +00:00
Caolán McNamara
19cda6c79c coverity#1103661 Division or modulo by zero
Change-Id: I1506e4e0b1dccac1e9f3dc3094268eaa89d3f6be
2014-02-12 13:03:52 +00:00
Caolán McNamara
5429888560 coverity#1103671 Unchecked dynamic_cast
Change-Id: I7a0e483550b0f7bbe91f20acde5a09ca43eb02c2
2014-02-12 13:03:52 +00:00
Caolán McNamara
6f3fd680ea that delete of pWrapPolygon looks dodgy to me
seeing as it is only conditionally replaced later

Change-Id: I6801de8472b88f37a34aea260336750cb3c47015
2014-02-12 13:03:51 +00:00
Caolán McNamara
3337331359 coverity#1169881 Use after free
this method is *way* too long and convoluted

Change-Id: Ib34d400043358a5426bbf5652e0bb12f8c49312a
2014-02-12 13:03:51 +00:00
Caolán McNamara
2aa0a52303 SetCaptionFmt never called, so pCaptionFmt always NULL
Follow logical consequences of the always-NULL.

And, depressingly, big slabs of the IA2 caption code
in writer doesn't actually do anything.

Change-Id: I35f7ffac19db683010b656b3c88f81b65233b080
2014-02-12 13:03:51 +00:00
Caolán McNamara
0d3082dbf2 callcatcher: update unused code
Change-Id: Iaaad9302ef8edb47fa95ce8ca608b6f36449521b
2014-02-12 13:03:50 +00:00
Zolnai Tamás
2efd433478 drawingML import: picture with scheme color
Theme fragment must be loaded for pictures too.

Change-Id: If4c412926319df2beaecfc120065bd011fc3eb57
2014-02-12 13:20:31 +01:00
Zolnai Tamás
682ab83252 drawingML export\import: cropping of shape's fill texture
In Writer shapes had no cropping property so far. With this
commit this is introduced as a FillProperty and has the same
type as the cropping used for pictures
(Picture context menu > Picture > Crop).

Layout and UI will be an other step. On the UI it would be placed
on the Shape context menu -> Area, when Bitmap is selected as fill type.

Note: In case of picture/graphic, cropping property is imported from
and exported to a:srcRect instead of a:fillRect.

Change-Id: Idc1ed2d40cb20b6992e94f14e7e4d853e1f55d02
2014-02-12 13:20:31 +01:00
Noel Grandin
b16f90f331 remove code in dead HTML_BEHAVIOUR #define
git grep found nowhere in the codebase that this define is being
set.

Change-Id: I63e18e8f47b5e58ff96b075ddb4bc9a36e1dc80e
Reviewed-on: https://gerrit.libreoffice.org/8002
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12 11:13:25 +00:00
Maxim Monastirsky
501a0142ec Invalidate SID_TABLE_VERT_
Change-Id: I9538adf46e53b260beb002e9321a5c79673241c3
Reviewed-on: https://gerrit.libreoffice.org/7993
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12 11:12:03 +00:00
Maxim Monastirsky
729b386ee0 Add some missing commands
This will load icons for the relevant sidebar buttons (in
paragraph panel, used with a drawing object).

Change-Id: I5426a873db3b8b9f5d7a17c99c35529aceaf381d
Reviewed-on: https://gerrit.libreoffice.org/7992
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12 11:11:19 +00:00
Maxim Monastirsky
a90b2b20fb sc: refactor ScDrawTextObjectBar::ExecuteAttr
Avoid code duplication, and make some actions to not depend
on args.

Change-Id: Ie2b32864f567f636843fb552bb0763e527322551
Reviewed-on: https://gerrit.libreoffice.org/7991
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12 11:10:13 +00:00
Andrzej Hunt
c47db038f9 fdo#52547 SOT: Prefer embedding image data to embedding linked image.
When copying an image from e.g. Firefox or Chromium the clipboard
will contain both the image itself, and the url of the image --
presumably it makes more sense to store the image data itself if
it is available -- the order of the items in the *_FREE_AREA_Copy
defines the order of preference for which data in the clipboard
should be used.

Change-Id: Id8b862a9f2fce3a34adbb16509e9b7372500a239
Reviewed-on: https://gerrit.libreoffice.org/7928
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12 11:07:47 +00:00
Stephan Bergmann
307684b2c7 Clean-up svt::ToolboxController inheritance
...and fix its XTypeProvider::getTypes

Change-Id: Ic36b17b14da21a29ca5530dd5e2ad03ee3da0782
2014-02-12 12:03:29 +01:00
Stephan Bergmann
435a5e7071 Remove pointless "shizhoubo" comments
Change-Id: I50521b0dab7325313ed5a3303f09a0692d76d19d
2014-02-12 12:03:29 +01:00
Stephan Bergmann
f45183d26f Unwind comphelper::OPropertyContainer_Base typedef
Change-Id: Ied87e18f8297fb8e85fdbcab38d719664e3ed066
2014-02-12 12:03:28 +01:00
Vort
9616b786ad fdo#45003 PDF import: Implementing linejoin and linecap properties
Change-Id: I4b09cd7b970d5aca4500ae333edef0e4c2f618b9
Reviewed-on: https://gerrit.libreoffice.org/8009
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12 10:48:51 +00:00
Mihkel Tõnnov
51fc602184 corrected Estonian [et-EE] quote characters
Namely: Estonian has several sets of correct quote mark glyphs for double
quotes („”, „“, «» are all common), however the Institute of Estonian
Language [1] recommends using the first of these, i.e. „” (99 low, 99
high) [2]. As for single quotes, Estonian texts rarely use them, except in
a few fields such as linguistics and biology -- and both ‘’ (9-9) and ’’
(6-9) are considered correct [2, 3]. However, apostrophe in the beginning
of a word (which is effectively the same as a starting single quote) can
also be used to indicate omitted character(s) -- but there, only ’ (9) is
correct [3].

[1] Eesti Keele Instituut, the main official body which maintains and
studies the usage of Estonian language; http://en.eki.ee/index.php
[2] The last page of
https://docs.google.com/viewer?url=http://keeleabi.eki.ee/pdf/164.pdf (in
Estonian)
[3] Handbook of Estonian Language,
http://www.eki.ee/books/ekk09/index.php?p=2&p1=11&id=86 (in Estonian)

Change-Id: If88e6e03e3e4aa1919a25dbe2fa2ffc8c9a04f4a
2014-02-12 11:47:34 +01:00
Miklos Vajna
9e3e7f89a0 DOCX export: avoid 0 or 1 relativeHeight when it's a real value
The z-order can be any number, Word uses kind of random 32bit integers,
we count from 0. It turns out 0 and 1 may have some special meaning, as
counting from 2 (instead of 0) fixes the visibility the problems in the
bugdoc.

Change-Id: I695a625fc0ab8206cc09896bcf02ff7689f1defc
2014-02-12 11:31:20 +01:00
Jan-Marek Glogowski
1a12777f46 Export MailMerge cancel functionality via UNO.
If you start a mail merge jobs via UNO, there is no way to cancel
it. But the functionality is already implemented and used by the
LO internal mail merge dialogs.

This patch adds an optional XCancellable interface to the MailMerge
service and implements it in the SwXMailMerge class.

As the XJob::execute function already uses the SolarMutex to
prevent parallel runs, XCancellable::cancel can be implemented by
storing the SwNewDBMgr in the private variable m_pMgr, protected by
a mutex.

The bCancel member has to be converted from a bitfield value to a
real boolean, because otherwise all bitfield values would have to
be protected by a mutex. Bitfield assignments aren't atomic as you
always have to replace at least a byte.

Change-Id: I007cc23fdf04ccfca7d3cd6180b0e17e99f53061
Reviewed-on: https://gerrit.libreoffice.org/7190
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-12 10:23:05 +00:00
Adam Co
2eb142f420 Add unit-tests for DOCX preservation of 'table cell redline'
Added unit-tests to make sure that 'table cell redlines'
(e.g. - table cell was inserted \ removed) are being round
tripped correctly from a DOCX file.

Change-Id: I773cb51a39654d2640200489d5199361b56396c7
Reviewed-on: https://gerrit.libreoffice.org/7878
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 10:12:43 +00:00
Adam Co
795e71626e DOCX Export of 'Table Cell Redline' (like insert cell or delete cell)
This patch adds support in the DOCX exporter for exporting the
'table cell redlines', such as 'inserted a table cell',
or 'removed a table cell'.

Change-Id: Ic37d2550691f1090a580dae57d597c8fd09c7ad9
Reviewed-on: https://gerrit.libreoffice.org/7877
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 10:07:02 +00:00
Adam Co
c4c1fa1398 Add XML dumping of the new 'SwTableCellRedline'
Change-Id: I4072130ff0ce712f02d1dd8f12003170116216a2
Reviewed-on: https://gerrit.libreoffice.org/7876
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 10:01:55 +00:00
Adam Co
a8db386ad2 DOCX import sends 'table cell redline' to SW core, and core stores it
This patch adds support in the DOCX importer for the 'table cell redline'
to be sent from the DOCX importer, using UNO (as a property of the
table cell) to the SW core. Once it reaches the 'table cell' - the
'set property' detects this property - and creates an
'SwTableCellRedline' object for it, and adds it to the
'SwExtraRedlineTbl' object.

Change-Id: Iba038f4109d5505b94cea548e73c614b5cc1b637
Reviewed-on: https://gerrit.libreoffice.org/7875
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 09:57:40 +00:00
Adam Co
9010336d0e Add code in DOCX importer to handle 'table cell redline'
Change-Id: Ic1e2cb1873dc696311382108868abc4aee00baef
Reviewed-on: https://gerrit.libreoffice.org/7872
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 09:51:57 +00:00
Adam Co
c90bc80fee Rename 'makeTableRedline' to 'makeTableRowRedline'
Change-Id: I257ef3cc360c74fb83c65e4be9967e9f84ba9af3
Reviewed-on: https://gerrit.libreoffice.org/7874
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 09:46:04 +00:00
Adam Co
06a887ca92 Add support for 'Table Cell Redlines' in SW core
This patch adds support for 'Table Cell Redlines' (such as 'table cell inserted'
or 'table cell deleted' in SW core).
It adds the 'SwTableCellRedline' object, and adds a function for adding
objects of that type to the 'SwExtraRedlineTbl', which is the object
that holds all the redlines which are not 'Ranged' redlines.

Change-Id: Ic2e410be58683f171ea07d430b7544600780711e
Reviewed-on: https://gerrit.libreoffice.org/7873
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 09:38:50 +00:00
Adam Co
8805a3b77b Add tokens for 'table cell insert & delete' in DOCX's model.xml
Add appropriate tokens for importing the 'table cell insert'
and 'table cell delete' token in the DOCX's model.xml file.

Change-Id: I328dfde1cef42f1c61ea0c481552f07ea7683def
Reviewed-on: https://gerrit.libreoffice.org/7871
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 09:22:01 +00:00
Adam Co
6429d3f5ee Add some property IDs in the DOCX importer (for future table redline patch)
Change-Id: I54cfe0faac1fd3d75fb6931863008b9db86191d1
Reviewed-on: https://gerrit.libreoffice.org/7870
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 09:13:28 +00:00
Adam Co
5a99f7cf6a Add tokens for 'table cell' redlines (future patch)
This patch adds 2 tokens for future patche's use of table cell
redline preservation.

Change-Id: Ic0ec4122eeaf66c6f0ebff9251fbc38596877541
Reviewed-on: https://gerrit.libreoffice.org/7869
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 09:08:03 +00:00
Adam Co
8995956302 Add unit-tests for DOCX preservation of 'table row redline'
Added unit-tests to make sure that 'table row redlines'
(e.g. - table row was inserted \ removed) are being round
tripped correctly from a DOCX file.

Change-Id: I369dd32e7372d0cf0add19197f07d0ad604e9ef0
Reviewed-on: https://gerrit.libreoffice.org/7849
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-02-12 09:00:14 +00:00
Michael Stahl
49dde4cd42 normalize values of SYSTEM_RHINO, SYSTEM_LIBLANGTAG
Change-Id: I656e90024d35ef8189727e6a39815ef4e4fb330b
2014-02-12 09:53:12 +01:00
Michael Stahl
7d2f7c6d7e normalize values of SYSTEM_APACHE_COMMONS, SYSTEM_BSH
Change-Id: Ia6adb8ae07ec80e83bc67084dfbd0bc6136ed8b7
2014-02-12 09:53:11 +01:00
Michael Stahl
32db4993c4 normalize values of SYSTEM_POPPLER, SYSTEM_JFREEREPORT
Change-Id: I8034b6fdf85697b6b409143396983ef3170257b2
2014-02-12 09:53:11 +01:00
Michael Stahl
8555b37859 normalize values of SYSTEM_BLUEZ, SYSTEM_MESA_HEADERS
Change-Id: I166de66dd8cd58a05e1a9e8d2f25bf95b98297fb
2014-02-12 09:53:11 +01:00
Michael Stahl
ab586f14e0 normalize valuse of SYSTEM_MYTHES, SYSTEM_LPSOLVE
Change-Id: Ie61f6a0e572dcc3cdc4cbca698fb90d67f9a87ad
2014-02-12 09:53:11 +01:00
Michael Stahl
9fc9e9cfec normalize values of SYSTEM_HUNSPELL, SYSTEM_HYPH
Change-Id: Ib11dcf94263aefc68ae2e831baeeb957231793ae
2014-02-12 09:53:11 +01:00
Michael Stahl
187194b8ae normalize values of SYSTEM_NPAPI_HEADERS, SYSTEM_ICU
Change-Id: I7f1153e4a07a4116417a7734d867f2d0feda1ee4
2014-02-12 09:53:10 +01:00