Commit Graph

349099 Commits

Author SHA1 Message Date
David Tardon
b1d00137f2 remove unnecessary util dir
Change-Id: I66e1882d14c59abeb6aa01b662dfc3a89238d3c0
2014-03-23 23:03:58 +01:00
David Tardon
c768cc508e put all targets into one gb_Module_add_targets call
Change-Id: I2bbd9e46c9b7bee68085d7aa7f1fa273f7bc1abf
2014-03-23 23:03:58 +01:00
Caolán McNamara
9b1b0c82ee presumably this label and combobox should be in the search frame
Change-Id: I1153aeca7d2b9b99da7b4fbca955133c1dfae289
2014-03-23 21:12:54 +00:00
Caolán McNamara
1961f1bac6 Updated core
Project: help  f73beaa903965e771f3cbaf50325743ced641ab1
2014-03-23 21:09:18 +00:00
Christian M. Heller
57837aba91 fdo#39468 Translate German Comments - css1atr.cxx
Change-Id: I9e7ea1ba276fc83df834fed7478fd4481a43e54d
Reviewed-on: https://gerrit.libreoffice.org/8728
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-23 20:57:29 +00:00
Szymon Kłos
91ddf5e09f RID_SVXDLG_SEARCHFORM dialog convert
Change-Id: I6c5f1d83733c17a561ec2218f6260794b0c4de37
Reviewed-on: https://gerrit.libreoffice.org/8718
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-23 20:56:37 +00:00
Luboš Luňák
35720eac8b fix $(MAKE) usage in a make define
$(FOO) is expanded already during the $call, $$(FOO) will become $(FOO).

Change-Id: Ia5d6966c16c57e4ec688f2c7623315cc2c74c78d
2014-03-23 21:22:36 +01:00
Takeshi Abe
4cd8a6fbaa Using a local type as a template argument is a C++11-ism
Change-Id: I1eddd4382f5ebaf9db43cd4351fc02e66b2cc9ad
2014-03-24 03:50:17 +09:00
Tomaž Vajngerl
45c1c85354 oox: cast to avoid compile error
Change-Id: I1ef4f4917f2b97d44c9b39f36fd17b0be6995a4e
2014-03-23 19:35:22 +01:00
Takeshi Abe
f516cff220 Avoid possible resource leaks by boost::scoped_array
Change-Id: I7b72c5680d5665b3f1f720f50a2d3ea6fc0c3e39
2014-03-24 03:10:18 +09:00
Tomaž Vajngerl
970517af3e oox: add Digest class which uses NSS or OpenSSL for digest calc.
Document encryption and decryption uses either NSS or OpenSSL to
calculate digest. Digest class hides the implementation details
between the two implementations. Previously, functions sha1 and
sha512 were used for this, but were less generic.

Change-Id: I60119e2ab9c5c1f4a2b02bc417c3c89c53a63fda
2014-03-23 18:36:59 +01:00
Tor Lillqvist
346a5e85bb WaE: unused variables
Change-Id: Ieac3cd6bf9ef883cbc3b295e25867a76ac68b88f
2014-03-23 19:25:55 +02:00
Luboš Luňák
f8062812ae use $(MAKE) for recursive make invocation
That's apparently the only proper way (to get e.g. -j right), and
even the toplevel Makefile is so full of gmake-ism that it simply
has to be invoked using GNU make already, hence $GNUMAKE is pointless
except for usage in configure (which says to start the build by
invoking it).

Change-Id: I6060da6f1dad2afc5845ac29b8ac02348c057d3d
2014-03-23 17:54:45 +01:00
Tor Lillqvist
f22a30dbb2 WaE: 'WW8_BRC' defined as a struct here but previously declared as a class
Change-Id: I342f92120ea5a8c2cea4abd80651c828f387cdd4
2014-03-23 17:30:13 +02:00
Luboš Luňák
11e881a638 make it possible to do 'make -C sw/' even with builddir!=srcdir
The change in partial_build.mk assumes all the Makefile's using it
are in builddir/<module>/ , but that seems to be the case.

Change-Id: Iddc8fa2ec0842f181780f7491cf5a2244efd014a
2014-03-23 16:26:59 +01:00
Luboš Luňák
f605cfc73d make it possible to build without the obnoxious forced -j to make
Rework --with-parallelism to not add any extra -j to make if 0
or --without is used. This requires explicit -j usage, which
- builds even compilerplugins in parallel
- builds 'make -C sw/' in parallel (since you don't forget the -j)
- avoids jobserver disabling if -j is explicitly passed to the toplevel make

IMO this is just a relic of the old build system and the option should
be dumped altogether, but I don't feel like arguing right now.

Change-Id: I71479391bcfc84aa5e9fd9696880702da496d45c
2014-03-23 16:26:56 +01:00
Luboš Luňák
f7859e5282 fix filename detection in clang plugins
SourceManager::getFilename() returns "<stdin>" whenever icecream is used.

Change-Id: I4e3e1b90880c5fd2b53f20e4ce3e38e3a0486973
2014-03-23 16:26:53 +01:00
Miklos Vajna
59698a4797 DocxSdrExport: fix indentation
Change-Id: I8318caf6a80fe5fd0dbe98ef5877103f9250f616
2014-03-23 15:54:37 +01:00
Miklos Vajna
5e01f04cf3 a -> r prefix for references
Change-Id: I62d54ba948a78dceef1d50fa684e2051111a9709
2014-03-23 15:47:59 +01:00
Adam Co
7f4f5cd71c Remove table-related redlines when table,row,cell removed
A table, a row or a cell might have redlines objects attached to it.
This patch makes sure than when a table\row\cell are removed -
any redlines that are attached to them are removed from the
'SwExtraRedlineTbl' object. This is to prevent any 'orphaned'
redline objects.

Conflicts:
	sw/source/core/doc/docredln.cxx
Reviewed on:
	https://gerrit.libreoffice.org/8726

Change-Id: I992e3fb4aadeb891ffd472b5d638d337a8609c01
2014-03-23 15:40:57 +01:00
Bjoern Michaelsen
31b76e83d7 fdo#74981: cutting nothing should do nothing, should fix field dupes
Change-Id: I8a8c9bfcd0943904384bb12b510a050ef8df9adf
2014-03-23 15:01:37 +01:00
Tomaž Vajngerl
66ebce7bb4 fdo#75955 use SHA1 from openssl/nss instead of rtl_digest_sha1
Change-Id: I92186b2ed8426d59e31080cfb629beb02cd01c41
2014-03-23 14:20:10 +01:00
Tomaž Vajngerl
e5ee33d7f0 sal: add boost for rt_digest tests
Change-Id: Icced4134ecaa4ac2b3ae90253a4e91f1ea613669
2014-03-23 14:04:10 +01:00
Luke Deller
ad51d4952d Full colour borders in .doc import/export
The BRC (BoRder Control) structure used in .doc files to specify border
properties has undergone several revisions over time.  LibreOffice
supports the WW6 and WW8 (Word '97) BRC versions, which allow the border
colour to be selected from a palette of only 16 colours.

This changeset adds support for the WW9 (Word 2000) BRC version, along
with some new SPRMs (Single PRoperty Modifiers) which use it, so that
border colours are preserved accurately in .doc import/export.

This change covers:
- page borders
- paragraph borders
- borders around a sequence of characters
- table / table cell borders (import only)

Further work is required to extend coverage to borders of pictures and
export of borders in tables.

The LO code was using the same class WW8_BRC to store the bits for either
the WW6 or WW8 BRC.  This becomes a bit unmanagable when adding a third
BRC version, so I have split this into a separate class for each version.

Fixes fdo#68475, fdo#50185

Change-Id: I7ebc15236497cbab9312d8659fe7ed0bee2c59ed
Reviewed-on: https://gerrit.libreoffice.org/8646
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-03-23 12:57:52 +00:00
Tomaž Vajngerl
8d2da0b94a sal: Add rtl_digest_SHA1 which shows wrong sha1 calculation
This test shows wrong sha1 calculation after 52 bytes of input
data. For now this test is commented.

Change-Id: Id6df40ecc4059d4a4f9e1646a2c1bb7242f4cf69
2014-03-23 13:11:59 +01:00
Tomaž Vajngerl
7d3e8c5217 sal: Rewrite digest tests to be simpler, enable them in check
Change-Id: I610e615be498237e5cd9dd963bca60c7f8f62aac
2014-03-23 13:11:59 +01:00
Vort
53cbca6ee1 fdo#44710 PDF Import: Correction of position of rotated text
Change-Id: Ie53b25a6cec88c07a317c50bd0965282fac64ff0
Reviewed-on: https://gerrit.libreoffice.org/8725
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-23 11:42:39 +00:00
Caolán McNamara
5350f03a24 WaE: -Werror=maybe-uninitialized
Change-Id: I3271aaba6d0c6bcbdfc87b1f63a0c311463aad1e
2014-03-23 11:34:20 +00:00
Caolán McNamara
f8ebaca07c include vector
Change-Id: Ief3e0475f4a5ef85ce8ab92ef7a20d7697a1523d
2014-03-23 11:32:04 +00:00
sushil_shinde
23b65a84fd fdo#76356 : Docx file contianing chart in footer/header gets corrupted.
-  Docx file with chart in footer/header or .bin file referred in chart
       was getting corrupted.
    -  Embedded file for footer.xml was not grabbaged.
    -  .bin embedded files were not grab baged.
    -  Added grab bag support for both case.
    -  Added UT to check .bin files are grab baged properly.

Reviewed on:
	https://gerrit.libreoffice.org/8674

Change-Id: I221e3867798fc2a3a42f6385d687e80b80a3678f
2014-03-23 11:02:16 +01:00
Tor Lillqvist
cfde7ea8ee WaE: passing OUString by value, rather pass by reference [loplugin]
Change-Id: I7894d34d33efbf7689454ec25386b5d741ed3c42
2014-03-23 09:05:17 +02:00
Tor Lillqvist
e96e3aa0f1 WaE: passing OUString by value, rather pass by reference [loplugin]
Change-Id: Ib2c0469155874134c0a43c5c8982e40cf3c57208
2014-03-23 08:37:46 +02:00
Tor Lillqvist
e00136005d WaE: unused variable 'it'
Change-Id: Ib98e20284a2311db5b93412be7c59026deeefee2
2014-03-23 08:29:24 +02:00
Tor Lillqvist
23eccddfc3 WaE: implicit conversion from bool to 'int' [loplugin:implicitboolconversion]
Change-Id: I7116fda40f6bc4c86b9eb5273774e928d018f64c
2014-03-23 08:21:52 +02:00
David Tardon
1a67b7cc3d init only required items
Change-Id: Iccbdea89fe2b5142bdd5213bb90e7656fc7eda8a
2014-03-23 06:57:07 +01:00
David Tardon
363119a9f2 avoid infinite loop when setting vert. text dir.
Change-Id: I8ff1d61af9ff383f00062894ad10efca534318bd
2014-03-23 06:57:07 +01:00
Armin Le Grand
33c310b6ff i123932 Init only needed items in 2014-03-23 06:57:07 +01:00
Armin Le Grand
872b5642f9 i123573 corrected reaction on ItemChanges for CustomShapes
Conflicts:
	svx/source/sdr/properties/customshapeproperties.cxx

Change-Id: I9f37893bab72b2d9b9f8874f6827ca6bee5dfbe1
2014-03-23 06:57:06 +01:00
Armin Le Grand
d74fc692a9 i115391 corected from SetObejctItem to usage of local SfxItemSet 2014-03-23 06:57:06 +01:00
David Tardon
acd03d7050 fix unit test 2014-03-23 06:57:05 +01:00
Armin Le Grand
120e469d17 i#115391 better support for MinTextSize settings
... for TextShapes and CustomShapes

Conflicts:
	include/svx/svdotext.hxx
	svx/source/sdr/properties/customshapeproperties.cxx
	svx/source/svdraw/svdoashp.cxx
	svx/source/svdraw/svdotext.cxx
	svx/source/svdraw/svdotxdr.cxx
	svx/source/svdraw/svdotxtr.cxx

Change-Id: Ie6f490801b6887568135ed5f83c8bbe7ab6daa08
2014-03-23 06:57:05 +01:00
Jacobo Aragunde Pérez
8931ab3fc2 ooxml: preserve rich text sdt controls
These controls don't have a special property, like for example
unformatted text controls have. So we use the id property as a
marker; we will grab-bag it together with other sdt properties and
use the existing mechanism to write the sdt block on export.

A grab bag that only contains an id property is for sure a rich text
control so we add it to the character props and not to the paragraph
props, like in the case of the unformatted text control.

Word doesn't allow us to write an empty <w:id/> tag, so we fill
it with a random number.

Finally, modified an existing unit test to add a rich text control and
check it is exported correctly.

Change-Id: If403a4a2393d4ee069a628645e364d21f104a859
2014-03-22 23:58:16 +01:00
Jacobo Aragunde Pérez
452469f1b8 ooxml: preserve text sdt property
Change-Id: I46b857298ae5d86fe6055efb86d046da48882e8a
2014-03-22 23:58:16 +01:00
Jacobo Aragunde Pérez
b825b336ca Fix indentation
Change-Id: I380138438171c009a953cfc8afb2cc13e1c1e6a6
2014-03-22 23:58:16 +01:00
Jacobo Aragunde Pérez
e55a4222e6 ooxml: Make SdtHelper grab bag more generic
Flexibilize the way the grab bag in SdtHelper works, enabling it to
store several children of SdtPr.

For every tag inside SdtPr, we enable the DomainMapper grab bag,
store the children properties there, and insert the full grab bag
inside the SdtHelper grab bag. In this way, the SdtHelper grab bag
becomes a Sequence of pairs "SdtPr token name" -> "Bag with children
tokens and values".

The first advantage of this implementation is that we can preserve
dataBinding sdt property plus another one of those supported; until
now the second property overwrote the first one in SdtHelper bag. In
further patches we will add support for other tags.

Some lines are incorrectly indented to make the purpose of this patch
more evident, and will be corrected in the next patch.

Change-Id: I0ec7be7b96dca455bbbeb03fc2fed230df04c52a
2014-03-22 23:58:15 +01:00
Jacobo Aragunde Pérez
c6ff03f37a fdo#70838: apply rotation transformations to DML anchor position
Used the same algorithm that we had for VML to update the position of
the DML anchor taking into account the rotation of the shape.

Complemented the unit test to check the values in the generated DML.

Change-Id: Ie0293c3cf4d1309fad58c0387f1589e69071fd9a
2014-03-22 23:58:15 +01:00
Jacobo Aragunde Pérez
1b922da415 sw/qa: Code refactor.
Change-Id: I552b5111901a2e1011a2bd0acaf0231dadd56614
2014-03-22 23:58:15 +01:00
Jacobo Aragunde Pérez
d3e15e0cb1 qa: Added SwModelTestBase::getXPathContent
Equivalent to assertXPathContent but returning the string.

Change-Id: I06ae4ba7c17db188af64d152b9c2807cc84535ce
2014-03-22 23:58:14 +01:00
Khaled Hosny
4e642a3f6b No need for these (void)s
Change-Id: I946009c4ffacf51c7f144acf85060ccd4a31620a
2014-03-23 00:38:04 +02:00
Julien Nabet
ac466bc94e cppcheck: fix reassigned vars
Change-Id: I9038045b5756ca956febe5d2ab7b05d15c4a7bca
2014-03-22 23:15:59 +01:00