Commit Graph

7279 Commits

Author SHA1 Message Date
Caolán McNamara
5a308b1239 V801: Decreased performance
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
2015-03-09 12:41:09 +00:00
Julien Nabet
27bc6714df tdf#50133: Wrong underlining in Reports
Change-Id: Ia1d37d150c2186f014733cd87179445722b54346
Reviewed-on: https://gerrit.libreoffice.org/14789
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2015-03-08 02:45:07 +00:00
Caolán McNamara
32f95a3551 V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-03-04 13:07:40 +00:00
Julien Nabet
d35d893c3d Typos
Change-Id: I0aef0c185457687aa0e40a4a1e8024d9e691093f
2015-03-03 23:27:39 +01:00
David Tardon
6e69d9b866 make this a bit less cryptic
Change-Id: I800735cf4dd10af8e6cd2e2581b18bcb71eb2872
2015-03-01 17:33:58 +01:00
David Tardon
0821dd79b7 remove duplicate line
Change-Id: I80239379cfba8fa9d13554a693f0aa3e8610ef55
2015-03-01 17:33:57 +01:00
David Tardon
7a1e6d73dc i assume this is what is wanted
Change-Id: I619c57b07ccde25257f7848bd2bdf55ac78c9171
2015-03-01 17:33:56 +01:00
Caolán McNamara
bcce2502a3 cppcheck: redundantAssignment
Change-Id: Iee0fcb8e2b91a6554bedc7e3989c0585a1679a61
2015-02-26 14:45:38 +00:00
Noel Grandin
2f928b2d09 remove NUMBERFORMAT_ constants
.. in favour of just using the underlying constants from
css::util::NumberFormat

Change-Id: I0c6b128b66c91b268f5ae300f9c17c7792df5e99
2015-02-25 10:34:27 +02:00
Julien Nabet
70bd1cc779 Change var name: propertie->propertyState
Change-Id: I85397752e2660088b378d8ec71765a4167f5183a
2015-02-18 22:56:04 +01:00
Stephan Bergmann
420fc7d1ad Missing include
Change-Id: I067a83ef97e55afc27673c59b0bdae974d7f3232
2015-02-18 09:59:08 +01:00
Caolán McNamara
3744d8506e boost->std
Change-Id: I8371b942d915f777a29ca01cd0aed674db0ca853
2015-02-17 16:24:05 +00:00
Caolán McNamara
a1ceacc17e boost::foo_ptr->std::foo_ptr
Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
2015-02-16 12:54:44 +00:00
Caolán McNamara
b279f8a655 cppcheck: cstyleCast
Change-Id: I0b5caeac629527112e3c7129b274b076da467d8d
2015-02-10 21:46:38 +00:00
Caolán McNamara
bf0c43f0d2 cppcheck: variableScope
Change-Id: I8a2262e6e27f0ea5f43837d5a10cb23525fe6ca5
2015-02-10 21:46:38 +00:00
Michael Stahl
3a6c04eef5 xmloff: replace legacy DBG_WARNINGs
Change-Id: I79f20f67e623b8d9607374e8be9a78fa10dc9af6
2015-02-09 18:09:18 +01:00
Miklos Vajna
36e492823e OFormsRootImport::CreateChildContext: survive a missing css.form.Forms
At least moz406390-1.odt has an unreferenced (so uninteresting in
practice) <form:form> block. Till there is a real benefit of it, better
not add form/database components to the Android component list but teach
the user of such code to fail gracefully.

Change-Id: I165a09fefa887da7b78a917c43ecc17d8f0ba3e2
2015-02-09 08:09:27 +01:00
Matthew Pottage
4f7a1f5b94 fdo#75757: Remove inheritance from std::vector
Deprecated comphelper/sequenceasvector.hxx.

Rewritten code using it. Using instead the functions containerToSequence and
sequenceToContainer, found in include/comphelper/sequence.hxx.

One class that inherits from it (in framework/inc/stdtypes.h), and
the code using that has been left.

Signed-off-by: Michael Stahl <mstahl@redhat.com>

Conflicts:
	writerfilter/source/dmapper/DomainMapper.cxx
	writerfilter/source/dmapper/TblStylePrHandler.hxx
	writerfilter/source/dmapper/WrapPolygonHandler.hxx

Change-Id: Ice61c94ffb052e389281aebb7cdf185134221061
2015-02-06 23:06:58 +01:00
Lionel Elie Mamane
7129176134 Revert "ODF export: don't write invalid "group-name" attribute"
This reverts commit 2d4b87f0c1.

The reverted commit leads to the following regressions:

 - Basic dialogs
   (which were not targeted, but impacted, by the reverted commit)
   with several RadioButtons sharing a group-name (as they will have a
   tendency to do) cannot be loaded anymore, since the implementation
   assumes (and checks) that names are unique.

 - Even in forms, where a RadioButton had both a form:name and a
   form:group-name attribute, the form:name attribute wins and thus
   RadioButtons that has the same group-name but different form:name
   (as they will tend to do) will not anymore be mutually exclusive,
   which defeats their point.

Additionally, since it did not change the UI parts (property editor
window), the user was still presented with two different editable
properties "Name" and "Group Name", where "Group Name" was empty...

Change-Id: I1bff532a5a7336cf2eb0579bcd4e2d16be6480fe
2015-02-05 21:46:26 +01:00
Lionel Elie Mamane
ebf98688ef Revert "xmloff: dead code gives MSVC fits"
This reverts commit 29e1b2f1ca
in preparation for reverting 2d4b87f0c1
2015-02-05 21:46:25 +01:00
Miklos Vajna
f1f6b6db73 xmloff: write character borders in the extension namespace for now
Change-Id: Ia112cf626126149ea9cf09c5d6ff812d5d5ffec5
2015-02-03 19:36:36 +01:00
Tsutomu Uchino
f2ae6d2053 Resolves: #i114416# use default service name for scroll bar...
if failed to detect the control-implementation

(cherry picked from commit 23e16b91ad69a123e795d63f2d4862d94412d582)

Conflicts:
	xmloff/source/forms/elementimport.cxx
	xmloff/source/forms/elementimport.hxx

Change-Id: I0ab4f9ff909ceba18a74d38488f6d0bdb3126110
2015-02-01 22:10:40 +00:00
Stephan Bergmann
cead54b6e5 Use vector::data
...in some places where it is obvious that it does not hurt that for an empty
vector the obtained pointer is not necessarily a nullptr.

Change-Id: Id5d66b1559ca8b8955d379bcdbfae6986ef46a51
2015-01-28 17:56:18 +01:00
Noel Grandin
fe480d8136 remove unused typedefs
found with some minor modifications to find/find-unused-defines.sh

Change-Id: I18cc479adedc7a0dada68a4aeef08300e62631dd
Reviewed-on: https://gerrit.libreoffice.org/14194
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-28 06:19:49 +00:00
Stephan Bergmann
598d8194b0 Visible function type RTTI for Clang -fsanitize=function
...by adding some further SAL_DLLPUBLIC_RTTI type annotations (cf.
b4f6b26b5a "SAL_DLLPUBLIC_RTTI for proper RTTI
visibility for LLVM") and by making sure relevant function types do not use
incomplete types in their parameter and return types (which would make the RTTI
hidden).

Change-Id: Id7aadcbc0704b9759968ae36266fc9ce11a2e340
2015-01-26 15:17:28 +01:00
Noel Grandin
b44cbb26ef new loplugin: change virtual methods to non-virtual
Where we can prove that the virtual method is never overriden.

In the case of pure-virtual methods, we remove the method entirely.
Sometimes this leads to entire methods and fields being
eliminated.

Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
2015-01-26 08:42:28 +02:00
Michael Stahl
9964b40879 fix 64-bit build after OUStringBuffer change
Change-Id: I6c5295110292ae48ff0cb3472e4dbea287645d2a
2015-01-23 15:50:28 +01:00
Michael Stahl
853c2fc71a sal: try to avoid abuse of OUStringBuffer(int) ctor
... to avoid bugs like commit f0d6e0e1e2.

Change-Id: I1e41d421609e09bf62a7a04ba34f3a8e8d118fd3
2015-01-23 14:04:25 +01:00
Stephan Bergmann
b388b9fc48 Some more loplugin:cstylecast: xmloff
Change-Id: I45cb9467c618eed929c84656a26293c8d6087378
2015-01-20 09:06:54 +01:00
Michael Weghorn
bfe79b50bc fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings.

Change-Id: If7ad3584b3124ed0b337836071af1a5bd0451d85
Reviewed-on: https://gerrit.libreoffice.org/13972
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-19 08:39:32 +00:00
Caolán McNamara
5e6a4591d3 LeakSanitizer: leak detected in ooo56669-1.odt
Change-Id: Ifdd98068762762316dbfd50fb465ed3c970f53d9
2015-01-11 20:35:03 +00:00
Michael Stahl
2f69e16c72 override the overloading of "overload" to decrease cognitive (over-)load
Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
2015-01-09 00:00:47 +01:00
David Tardon
5672dab6b5 Revert "Don't assume that the ZOrder property of shapes is an enumeration"
This reverts commit 66c7dbbf7d.

See https://gerrit.libreoffice.org/#/c/13554/ .

Conflicts:
	include/xmloff/shapeexport.hxx
	reportdesign/source/filter/xml/xmlExport.cxx
	sc/source/filter/xml/xmlexprt.cxx
	xmloff/source/draw/shapeexport.cxx

Change-Id: I14fed9ad043a756a9e2d390c76fa907c349c3a2e
2015-01-08 16:08:11 +01:00
David Tardon
f86a1dbf2a fdo#78921 save embedded fonts in Flat ODF
Change-Id: I9d8614a5c20bab8e3b3d7c40e2504348c4386b64
2015-01-06 16:12:29 +01:00
Noel Grandin
64cccf36f2 fdo#84938: convert SEF_EXPORT_ #defines to 'enum class'
Change-Id: I7165d0f1b6b4af4de5e5b39a21f36d726a1b0e30
2015-01-06 10:59:42 +02:00
Noel Grandin
8447eeb192 fdo#84938: convert ERROR_ #defines to 'enum class'
Change-Id: Ie76bac6b91a9faa4f9ff7dbdf2b455ea9016cf72
2015-01-06 10:59:42 +02:00
Noel Grandin
c29657e0d6 fdo#84938: convert EXPORT_ #defines to 'enum class'
Change-Id: I2ed239fa073b5fa8fb56c1af9d4b0bac89acfacf
2015-01-06 10:59:42 +02:00
Noel Grandin
ec5bf66d36 fdo#84938: convert XML_EXPORT_FLAG_ to 'enum class'
Change-Id: I43d778e0eee19a56ea37898ec1c4309d3407775e
2015-01-06 10:59:41 +02:00
Noel Grandin
dc28e90d20 fdo#84938: convert IMPORT_ constants to 'enum class'
Change-Id: Idaa8f07c62b3ba93c27ca5fe286720254baac10d
2015-01-06 10:59:41 +02:00
Noel Grandin
d1ce6effb6 fdo#84938: convert TEXT_PROP_MAP #defines to 'enum class'
Change-Id: Ia8c5913c60e3d509a906965d813c8d1380396dc6
2015-01-06 10:59:40 +02:00
David Tardon
2862ef7e65 export format of embedded font too
Change-Id: Ife7dbb298861a71987501f3847d3b931c7e83715
2015-01-05 18:59:08 +01:00
David Tardon
0a04968589 read embedded fonts from Flat ODF
Change-Id: Ic94608f4afac9d8ac05ec3140d195b0526e9420a
2015-01-05 18:59:08 +01:00
Andrea Gelmini
3a2b1af87d Fix simple typos.
Change-Id: I1fdbe47ed7a6e05d2cf20f4c296bffad4bbc6599
Reviewed-on: https://gerrit.libreoffice.org/13719
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2015-01-02 20:23:51 +00:00
Caolán McNamara
fd1372ba8b boost::unordered_map->std::unordered_map
you can get debug stl this way

Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2015-01-02 16:14:36 +00:00
Andras Timar
4cd048d98f Revert "Resolves: #i124452# correct svg:viewBox for EnhancedCustomShape..."
This reverts commit c6e316f520.
The bug #i124452# was in AOO only, no need to fix it in LibreOffice.
Especially when the "fix" causes regression. The related fdo#76334
should be fixed one day, but that is a different issue.

Conflicts:
	xmloff/source/draw/ximpcustomshape.cxx

Change-Id: Ice0bf378f97e2caf0ee8386d0b5c0b8abcbcd1c2
2014-12-28 17:04:47 +01:00
Miklos Vajna
62391c28fa fdo#84714 ODT import: read <loext:table> inside <draw:custom-shape>
A later version of ODF will hopefully allow <table:table> here as well,
but read <loext:table> in the meantime.

Change-Id: I42a461e0a6e9eff9387379acbab9660a155ecefe
2014-12-27 12:13:50 +01:00
Lionel Elie Mamane
aeeff83595 fix build
Change-Id: Ia528bd301e2f2ee1f7f3b009e3b9c3f395a4dcdb
2014-12-20 00:20:58 +01:00
Lionel Elie Mamane
c2cca8439d correct function name in debug message
Change-Id: I9c02fdd99504bdee6654d1072559a4afac6532a3
2014-12-19 23:35:18 +01:00
Lionel Elie Mamane
be2aa71a2c survive "TextBox" having no value
Change-Id: Iebed41cfcc5899387e3defb8d8a0792276349098
2014-12-19 23:35:17 +01:00
Lionel Elie Mamane
66c7dbbf7d Don't assume that the ZOrder property of shapes is an enumeration
...at least when we can easily not assume it.

shapes = shapes of the same XShapes
an enumeration = it is the sequence 0, 1, 2, 3, ..., XShapes->getCount()-1

We replace the ZOrder property by the index of the XShape in the
XShapes (the same XShapes that is passed to seekShapes()... when that
is easy to find. Else, use ZOrder and hope for the best.

ZOrders are not always an enumeration. For example, in documents
(forms) created by the Base forms wizard, it is not the case.

The wrong assumptions was leading to the following bugs in the Base
form wizard:

 - Only the first two controls in the form were successfully saved. The
   others were just dropped.

 - Whereas the labels had the proper style (background and text
   colour) applied while creating the document, these were not saved
   successfully

Change-Id: I15b9a3ef3b16eafa9698332e35d82d51d51627f8
2014-12-19 23:33:33 +01:00