Commit Graph

154 Commits

Author SHA1 Message Date
b2096deaff various loplugin:passsequencebyref
Change-Id: Id1045a7f66b4fa10b6491587ba07246a31ceba72
2014-05-14 16:54:27 +02:00
08299e9111 add way for shape dumper to dump single shape
Change-Id: I031921d6869d3bbdef4ed11e4316b6cd977992ca
2014-04-25 20:02:21 +02:00
8bb2ce61c0 fixincludeguards.sh: some smaller dirs
Change-Id: Ic25bd678dc299627299b22145efd7bebcf2b39d0
2014-04-19 11:10:13 +02:00
c2e98d3cc9 drawinglayer: sal_Bool->bool
Change-Id: I893d00a61d314926f84fb3e94743aba2ef5622c4
2014-04-07 13:53:48 +02:00
86a32589e9 Find places where OUString and OString are passed by value.
It's not very efficient, because we generally end up copying it twice -
once into the parameter and again into the destination OUString.

So I create a clang plugin that finds such places and generates a
warning so that we can convert them to pass-by-reference.

Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-03-18 08:32:26 +02:00
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
0583c889c3 sd/qa: Remove InteropGrabBag property from XML dumps
The InteropGrabBag property adds a lot of noise to this tests and it
doesn't actually have any purpose, because we are building their own
tests for InteropGrabBag-supported document attributes.

We have removed this property by default but we left a flag to enable
it when it's convenient for debugging.

Change-Id: I97cc7ba171783222a57ab5a96e5755070b949505
2014-01-28 10:36:11 +01:00
a78f683b1e fdo#72260: guard against duplicate "name" attribute
Change-Id: I1ee4b82e04318a50db8bb54bd5c7e00c79177d37
Reviewed-on: https://gerrit.libreoffice.org/6984
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-12-08 07:35:11 +00:00
a9562d5e3c XShapeDumper: empty name should not be dumped
Change-Id: Ic1ab8840c9e543cebf322de922b01739684789ad
2013-12-08 14:18:56 +07:00
4c57554ff1 add vim modelines for drawinglayer/source/dumper/* 2013-12-08 14:18:53 +07:00
48268fa01a -Werror,-Wunused-variable
Change-Id: Icb19121e39565a3588c0acd14db114a8572b00fa
2013-10-02 17:34:00 +02:00
a2e73b061f drawinglayer: added dumping of InteropGrabBag prop
XShapeDumper is now also dumping the
InteropGrabBag property as a new empty element.

In the future, new "private" properties added to
the grab bag could be dumped too.

Updated the unit tests accordingly.

Change-Id: I7526dbd64bdc08915dc71f1167f05224118f17a6
Reviewed-on: https://gerrit.libreoffice.org/5848
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-09-09 09:27:48 +00:00
ac548958c6 WaE: unused function 'dumpInteropGrabBagAsElement'
Change-Id: I304b8021225c105f068c793ce04a447d4db4f7cf
2013-09-05 13:42:14 +03:00
43b84bbba2 svx: new InteropGrabBag UNO prop in Shape service
Added the new InteropGrabBag property to the Shape
service and modified the JUnit UNO unit tests for
it.

Added specific implementation in the svx module
for the SvxShape class.

This new property is intended by now for its usage
on preserving OOX's Smart-Art but it could also be
used for preserving other attributes for
interoperability among document formats.

Change-Id: Idc7a8e91592399ff05effd4da6eaa2935f8f4d42
Reviewed-on: https://gerrit.libreoffice.org/5769
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-09-05 08:40:13 +00:00
225b41088a XShapeDumper: Dump more values, to be able to test n#819614.
Change-Id: I19cbae855996bffb18206b9003e22a2bcc0c75d9
2013-05-16 04:57:15 +02:00
d84b22e9a8 sd unittests: Do not dump the font name, depends on installed fonts.
Change-Id: Id401feed7d629cbc0c24428b0c1273afdb31be89
2013-05-15 14:43:01 +02:00
826f28e64d sd unittests: Update XShapeDumper to dump also (some) font properties.
+ update the expected dumps together with that.

This allows testing of the other part (wrong text color and size, commit
55c63ccfd460895af22e91979967cec15d80b72d) of n#758621 too.

Change-Id: Ie93feb9d9d05eb4e11106bf9aa1f237947351b4e
2013-05-15 11:31:15 +02:00
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
b854de954f deprecate oustringostreaminserter.hxx
the intent of this header has canged over time. now it is already
systematically included with ustring.hxx and the operator overload it
provide fit nicely there...

Just to be safe, since that include as been added to the api during the
3.5 timeframe and therefore is already in 'production'
the header remain and simply attempt to include ustring.hxx
but a warning is issued indicating that this header should not be used
anymore... in a couple of major release we will thenr emove it completely

All internal users of that header are converted.

Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad
Reviewed-on: https://gerrit.libreoffice.org/634
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-18 10:10:06 +00:00
042686d3ea Work around bogus Mac GCC uninitialized warnings
Change-Id: I04f64b11b484be8c997e1dbab8de35282fa64289
2012-07-19 11:57:19 +02:00
5a3eb92216 Work around bogus Mac GCC uninitialized warnings
Change-Id: Ia735ee75b75b3e2dafe610cf5cd513dd7d4b7392
2012-07-19 11:32:05 +02:00
c8e0a0ce4a Work around bogus Mac GCC uninitialized warnings
Change-Id: I79731b0e8a991a96b87938749fa9898110fe2dde
2012-07-19 11:04:10 +02:00
9ae07fcc77 Work around bogus Mac GCC uninitialized warnings
Change-Id: If16ce75845383cf697a2f1e4cef438a8bc43c125
2012-07-19 10:46:49 +02:00
390a56b522 Work around bogus Mac GCC uninitialized warnings
Change-Id: I174b34835cc955c234a06618a48f61fc700e4400
2012-07-19 10:23:25 +02:00
5e21857cd4 -Werror,-Wunused-function
Change-Id: Ie0e37aae9be1c6fcf3f8c0b8d571dc3786f38205
2012-07-15 23:31:18 +02:00
6b15221e13 better error messages for exceptions in XShapeDumper.cxx
Change-Id: I37761931b9f8351036f360423f481f53a59855fb
2012-07-13 23:58:30 +02:00
f11bfe90f8 move EnhancedShapeDumper to a module local location
Change-Id: Idb4cd44da611973c92bda6de779daf3aa8425168
2012-07-13 06:01:52 +02:00
ea7cce1dd0 fix indentation
don't indent after namespace declaration

Change-Id: I3773521abd2463269c58162eae6a608085b1bf9f
2012-07-12 03:10:21 +02:00
c19a6dfa7b some small improvements for the dumper
Change-Id: I0a24a0e9c4a3b818c9144bc38857b67e49483915
2012-07-12 03:10:21 +02:00
f48bd974cb Added dumping TextPathMode & ScaleX properties
Change-Id: Ib31fc84424d4a57e8f3bcca2054016c5809b6f10
2012-07-12 03:10:20 +02:00
ec5b681bbe Started dumping EnhancedCustomShapeTextPath service & added TextPath property
Change-Id: I4945ee8cba2d9d4fc9f374cf0002dbdb99d6df28
2012-07-12 03:10:20 +02:00
cf7e4d3ced Added dumping of TextPathAllowed & SubViewSize properties
Change-Id: I4088e15cf010f2c0c4493b9a7781c9720d375480
2012-07-12 03:10:20 +02:00
72fc403a6f Added dumping of ExtrusionAllowed & ConcentricGradientFillAllowed properties
Change-Id: I696c7bfc6f0f7e50d0f0ae84a9e96c6b2f1bd554
2012-07-12 03:10:20 +02:00
8b79eeb818 Added dumping of GluePointLeavingDirections & GluePointType properties
Change-Id: Ie83dfd31196cc9777e4d582f45f27ff74482d2b4
2012-07-12 03:10:20 +02:00
85ff400da5 Added dumping of TextFrames & GluePoints properties
Change-Id: Ibaa5f782d511d406575bfec6267f95d6ae50b87c
2012-07-12 03:10:20 +02:00
4b4ca80302 Added dumping of StretchX & StretchY properties
Change-Id: Iddd10cb3baffbb3f40bd6af15e48bcfb7ea8317e
2012-07-12 03:10:19 +02:00
7cb81fc2eb Added dumping of Coordinates & Segments properties
Change-Id: I4acfe9f1d1ca9bb4f434376bd6fd23804b66a25f
2012-07-12 03:10:19 +02:00
be89451450 Started dumping of EnhancedCustomShapePath service
Change-Id: I11ded0e19f4a9f619546af2ff838ad7aeadd7429
2012-07-12 03:10:19 +02:00
3ab020c129 Added dumping of RadiusRangeMinimum & RadiusRangeMaximum properties
Change-Id: I8ba86df74939d1267c8be622d29c8fdcea9cdb19
2012-07-12 03:10:19 +02:00
d88f5256e7 Added dumping of RangeYMinimum & RangeYMaximum properties
Change-Id: I9ce489487676bd3182c6bdd4ce3969544d40c2ae
2012-07-12 03:10:19 +02:00
3b5c45c723 Added dumping of RangeXMinimum & RangeXMaximum properties
Change-Id: I5e5648a8aa4f8dd8942b87e36e5a85879d3ff0e8
2012-07-12 03:10:19 +02:00
5c99514f4a improval - Enhanced...ParameterPair() now use Enhanced...Parameter()
Change-Id: Ib19d92241c6fcd0edc00680bd876f43dac8bd5c3
2012-07-12 03:10:18 +02:00
585c5e09b9 Added auxiliary method for dumping EnhancedCustomShapeParameter
Change-Id: Icef3d19c36224f4afd1b1a08c08630e5d6522bf6
2012-07-12 03:10:18 +02:00
3d15d7060c Added dumping of RefAngle & RefR properties
Change-Id: Iabd1c00a33477ca92d7525f46ad5a9c732a35eee
2012-07-12 03:10:18 +02:00
13eb277734 Added dumping of Polar, RefX & RefY properties
Change-Id: I43e690fef87091bdb47a36d3365df35b7e1fcdcb
2012-07-12 03:10:18 +02:00
bd6f8d3f9e Added dumping of Switched & Position properties
Change-Id: Ice30218ba8ec66807089174058951c7607f9b6cb
2012-07-12 03:10:18 +02:00
a7cb63e3e7 Added dumping of MirroredX & MirroredY properties
Change-Id: Ic580cf7c7c7d75c8f1fa0fbba13f53318b285932
2012-07-12 03:10:18 +02:00
e6238a9cd7 Added dumping of EnhancedCustomShapeHandle service
Change-Id: I0b9d2b7abd966bf4d8e1cf579fdc0cf319978a6e
2012-07-12 03:10:17 +02:00
30b646a4cf Added Equations & Handles properties
Change-Id: I7912399d2864c964483bbbbc0a6afac3bfa64f66
2012-07-12 03:10:17 +02:00