6729 Commits

Author SHA1 Message Date
Stephan Bergmann
a53808c0ed loplugin:dllprivate
Change-Id: I1fe70a39c50aba8b84c117653185fc37dbbfeab0
2016-09-13 22:26:22 +02:00
Stephan Bergmann
91dd2db17b loplugin:override: No more need for the "MSVC dtor override" workaround
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark
overriding destructors as 'virtual'" appears to no longer be a problem with
MSVC 2013.

(The little change in the rewriting code of compilerplugins/clang/override.cxx
was necessary to prevent an endless loop when adding "override" to

  OOO_DLLPUBLIC_CHARTTOOLS    virtual ~CloseableLifeTimeManager();

in chart2/source/inc/LifeTime.hxx, getting stuck in the leading
OOO_DLLPUBLIC_CHARTTOOLS macro.  Can't remember what that
isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.)

Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-09-13 13:19:22 +02:00
Noel Grandin
c3c3e5b055 loplugin:constantparam in svtools
Change-Id: I04caae0c9ae621c55e16d3bdc014a4729617feb3
Reviewed-on: https://gerrit.libreoffice.org/28757
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-09-09 08:49:59 +00:00
Noel Grandin
8bfcb53c3d loplugin:constantparam in svx
Change-Id: Id08850b90a0e286ff837dd6b0c1691fa7dc793fa
Reviewed-on: https://gerrit.libreoffice.org/28746
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-09-09 06:43:43 +00:00
Jochen Nitschke
4d0b71be75 remove reimplementations of SfxItemPool::ReleaseDefaults()
use method from base class SfxItemPool to release and remove the
static pool of default items.
SdrItemPool is child of XOutdevItemPool using the same static pool,
no need for own code in dtor.

~SfxItemPool has a Delete() call too but with conditions.
leave child's unconditional Delete() for now.

Change-Id: Ife4e6398b7b0fa69483bc3c795719778c5efcc51
Reviewed-on: https://gerrit.libreoffice.org/28632
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-09-04 09:06:36 +00:00
Miklos Vajna
1e1eb87f36 sd lok: implement SfxViewShell::NotifyCursor() API
The same API is already implemented in sw and sc already, the sd
implementation allows selecting a shape in one view, then creating a
second view, and seeing the selection of the first view in the second
view, without de-selecting and re-selecting the shape in question in the
first view.

Change-Id: Ia36e4772584d132f1ff6a7eb07ca4cadaa384ee9
Reviewed-on: https://gerrit.libreoffice.org/28623
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-09-02 17:21:56 +00:00
Noel Grandin
03f14c7760 std::list<float> -> std::deque
Change-Id: I698b8e35ec0a22390b42c03699155e48b5ccedba
2016-09-01 11:05:21 +02:00
Laurent Balland-Poirier
488c8053dc Improve polynomial trendline equation representation
Insert a blank between x variable and its coefficient
Aplly also to linear trendline

Change-Id: I7d1e61f12aa1cf98b4181df6a4849df1e5293793
Reviewed-on: https://gerrit.libreoffice.org/27265
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-31 07:18:51 +00:00
Caolán McNamara
a7b18aaa46 no point in these dtors being virtual
nothing inherits from these classes

Change-Id: Ic887ac8a046b8697e310e19b6e7fdf9efae8f074
2016-08-30 19:26:41 +01:00
Caolán McNamara
2b8b8740f2 default assignment operator is fine
Change-Id: I0b63abbfe7d29c35cf7c7dd047527b20ad46c538
2016-08-30 19:26:41 +01:00
Laurent Balland-Poirier
022a58136d tdf#64145 Add empty subtitle string as default
Only empty Title create automatic title.
Empty subtitle has no other effect than remove subtitle
if it is kept empty

Change-Id: I7e7de198585885866efea24de3a66c26d3e340ae
Reviewed-on: https://gerrit.libreoffice.org/27904
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-08-30 15:14:31 +00:00
Stephan Bergmann
6f821ca4a1 loplugin:stringconstant: adapt to improved OUStringLiteral1 (chart2)
Change-Id: Id8699d6923f8c3e1133db5ef66a21d939b9c5668
2016-08-30 15:27:05 +02:00
Noel Grandin
b62f4c2cd9 convert RECT_POINT to scoped enum
Change-Id: I3f0304d69d5d638230b64135c73497192dc00cb3
2016-08-30 08:40:03 +02:00
Noel Grandin
2c86c131f7 convert ActionDescriptionProvider::ActionType to scoped enum
and remove an unused constant

Change-Id: I8d46d16d3f575aa416bfc5a965986ee5dfb1f93c
2016-08-30 08:40:03 +02:00
Stephan Bergmann
5536aea822 Let OUStringLiteral1 take its arg as ctor arg, not template arg
...which makes it more flexible, can now also be used on non-const arguments.
The drawback of the argument no longer being a compile-time constant is remedied
by making the ctor constexpr.

Change-Id: Ia4903a2cc86791fece92eac0cb8406b6659dd19d
2016-08-30 07:43:52 +02:00
Stephan Bergmann
2c10714426 Make OUStringLiteral1 a wrapper around UTF-16 instead of just ASCII
...not merely an ASCII character

Change-Id: Id2b381b35fe3a15574728ed973d60263dfef7249
Reviewed-on: https://gerrit.libreoffice.org/28446
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-08-29 11:44:31 +00:00
Jochen Nitschke
c922161117 tdf#95416 remove ../ style include
move (default) dtors to source files, where members are complete

Change-Id: I9f3273d322b62cb01e546ff30d9fb4d37747bb3b
Reviewed-on: https://gerrit.libreoffice.org/28400
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-08-26 13:14:41 +00:00
Noel Grandin
ce51b64947 convert SvxChartStyle to scoped enum
Change-Id: I007dc799777524ccfabbb1ce52b9495437ff9156
2016-08-25 08:40:00 +02:00
Noel Grandin
ac32de2506 convert SvxChartTextOrder to scoped enum
Change-Id: I09094152cdf4a2756a5775d651dab92042386ee3
2016-08-25 08:40:00 +02:00
Noel Grandin
7db7666f01 convert SvxChartKindError to scoped enum
Change-Id: Ibf6798fb1bdb7d16801402798414171876da915d
2016-08-25 08:40:00 +02:00
Noel Grandin
9781212b55 convert SvxChartIndicate to scoped enum
Change-Id: I65183bd4ce21544608397164fc2660830378d975
2016-08-25 08:40:00 +02:00
Noel Grandin
2927a5c1c7 convert SvxChartRegress to scoped enum
Change-Id: Ibdaad10c7936a0e53ab61c2016c8c9f3ac278767
2016-08-25 08:40:00 +02:00
Noel Grandin
6fc92adb8f convert SdrHdlKind to scoped enum
Change-Id: Ib0a06d94f8b51cce1f29f20d1c00d54be939c076
2016-08-23 09:54:16 +02:00
Noel Grandin
e0b61fdd35 convert SdrIterMode to scoped enum
Change-Id: Iaa4631039e6b96627d8e547f21136f107e157d8a
2016-08-23 09:54:16 +02:00
Noel Grandin
0552ec9828 convert SdrHintKind to scoped enum
Change-Id: I77ad33425d440263a71bc94f41d8e141f16dfb78
2016-08-22 08:24:48 +02:00
Noel Grandin
e382aa1445 convert SdrHitKind to scoped enum
Change-Id: Ia7a18814fed7787e47ac2d3c02654a3648c5491e
2016-08-22 08:24:48 +02:00
Caolán McNamara
396138a6bc Resolves: coverity#705366 Mixing enum types
and

coverity#705367 Mixing enum types
coverity#705371 Mixing enum types
coverity#982694 Mixing enum types
coverity#1027717 Mixing enum types
coverity#1371228 Mixing enum types
coverity#1371242 Mixing enum types
coverity#1371280 Mixing enum types
coverity#1371310 Mixing enum types

MapUnit and SfxMapUnit share the same values and
are freely cast from one to the other.

Now that

commit d30a4298bdb5ba53cd1fe659f2b742f218a2e527
Date:   Thu Aug 11 15:02:19 2016 +0200

    loplugin:unusedenumconstants in package..svtools

removed the SfxMapUnit entries that were directly unused, they
don't match anymore and casting from one to the other is dangerous.

Why there was two of these anyway escapes me, get rid of SfxMapUnit
and just use MapUnit universally

Change-Id: I4db5dcd04b59be2f85b62b728f96c90afe00c57e
Reviewed-on: https://gerrit.libreoffice.org/28234
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-08-19 11:25:18 +00:00
Noel Grandin
eba160af21 convert SdrCreateCmd to scoped enum
Change-Id: I8772032dee25c790314384750b8c7277c4879318
2016-08-19 08:18:37 +02:00
Noel Grandin
fc518ed954 convert SdrDragMode to scoped enum
Change-Id: I244132d2240a46f42f14d453e5987968d274e907
2016-08-19 08:18:37 +02:00
Laurent Balland-Poirier
07b25764a4 Trend Line UI: R² was hidden
Un-hide correlation coefficient
better choice of shortcut

Change-Id: I85acd8a91de2d337d8619ba164dcd14d1939fac9
Reviewed-on: https://gerrit.libreoffice.org/28212
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-08-18 16:03:08 +00:00
Caolán McNamara
4630157e29 cppcheck: passedByValue
Change-Id: I3ffcfe1294a1cbb06aadd3a1a79e9259876e38cc
2016-08-18 14:24:11 +01:00
Armin Le Grand
ce6cbf86a5 screenshots: add new global make target
Up to now the screenshot creation was added/dependent of
target slowcheck. Since quite some modules have added screenshot
creations now, I added an own target 'screenshot' to allow to keep
current slowcheck and screenshot creation separated

Change-Id: I80a49a0db607edf8e0405672d570f624d29912e7
2016-08-18 02:39:15 +02:00
Armin Le Grand
2a5ac6f634 screenshots: unify dumping of dialog test batch file
Change-Id: Ia1e79216d9537c65f8b7362778a2e1ad3ec6c2c2
2016-08-18 02:39:15 +02:00
Armin Le Grand
56336f9762 screenshots: add dialog test cases for chart2
All *.ui files create a screenshot, but not all look useful

Change-Id: I90d977ae84a65e9576ba9cc9b178407997e4ba79
2016-08-18 02:39:12 +02:00
Noel Grandin
d5de00cc73 loplugin:unusedenumconstants in basctl..editeng
Change-Id: I49a23a197969d58a3a2d6b2be1fbe4a647c7fa08
2016-08-17 09:43:52 +02:00
Noel Grandin
d5ad8f9619 convert SvxBreak to scoped enum
Change-Id: If8b79ed617e5662550bd73bd1506d047217f2313
2016-08-17 08:45:15 +02:00
Laurent Balland-Poirier
428711f03c Start tdf#100547 Trendline equation: customize X, Y names
Change trend line UI to add fields: X name and Y name
to change "x" and "f(x)" in equation representation

Next to be done: save it to ODF file

Change-Id: I0680ee1bbfbbb74016ecc858917e10d6790ac63a
Reviewed-on: https://gerrit.libreoffice.org/27069
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
2016-08-16 20:54:54 +00:00
Noel Grandin
127f70d66a new loplugin to check for static OUStrings
that are better declared as OUStringLiteral

Change-Id: Ifb5d9a12bb31a68641940bec16971a8181a46567
Reviewed-on: https://gerrit.libreoffice.org/27377
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-16 06:30:09 +00:00
Jochen Nitschke
2b68e03348 tdf#100782 have XPropertyList hold unique_ptr
Change-Id: I928f297e1be76b965898d83cb3dd2e79b23b7974
Reviewed-on: https://gerrit.libreoffice.org/28095
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-15 07:49:37 +00:00
Olivier Hallot
20469b5650 tdf#96015 (part) links to Askbot in the Help menu
Add the entry "~Get help online" to the modules
Help menu.

on click, the system browser opens
http://hub.libreoffice.org/forum/?&LOlang=<lang>

<lang> is obtained from .getLocale()

That in turn will redirect to e.g. askbot (but only few languages are
using it at the moment) or other nl-specific resources.
(nl-projects can request corresponding targets from infa, without the
need to change the code – cf rdm#1983)

The link can/should be extended to also include the version of LO and
the currently used module to allow finer grained redirects.

Change-Id: I56108dba4dd2684405623c4586103fc8ff9bea56
Reviewed-on: https://gerrit.libreoffice.org/27028
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-08-11 14:23:28 +00:00
Muhammet Kara
e50a95b829 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in chart2 module

Change-Id: I9c6f2efd59b3796e0e6f5389467fe888f4465586
Reviewed-on: https://gerrit.libreoffice.org/27895
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-05 12:45:48 +00:00
Noel Grandin
7fa183cb1a loplugin:countusersofdefaultparams in chart2..desktop
Change-Id: Iaca94acd6ef91f07ed0c0085390500c418099dee
Reviewed-on: https://gerrit.libreoffice.org/27896
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-05 10:28:25 +00:00
Noel Grandin
f22fa99460 loplugin:countusersofdefaultparams in canvas,chart2
Change-Id: Id66a706171b73affeb508812744028d9f30133af
Reviewed-on: https://gerrit.libreoffice.org/27868
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-05 06:26:59 +00:00
Markus Mohrhard
a04ccc9417 fix loplugin:cppunitassertequals in chart2
Change-Id: Iefcbc438159046adef8fce216e5c9477e11e2931
Reviewed-on: https://gerrit.libreoffice.org/27841
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-08-03 23:55:18 +00:00
Tor Lillqvist
e13aead8a1 Reduce ENABLE_OPENGL / ENABLE_HEADLESS confusion
ENABLE_OPENGL means whether to enable the OpenGL slideshow transition
code. It does not mean whether to enable use of OpenGL in general. So
rename it to ENABLE_OPENGL_TRANSITIONS while at it.

ENABLE_HEADLESS means whether to disable use of X11 and OpenGL on X11
(and Wayland) platforms, I think, meaning Linux and maybe Solaris and
the BSDs. Maybe it should be renamed to DISABLE_X11_AND_OPENGL.

Change-Id: Ibb30f51646b1bcc477fe691a3fa38c7a1e3944ae
2016-08-03 22:36:36 +03:00
nadith
efef273e2c tdf#100726: Improve readability of OUString concatenation
this bug fixed in the modules between canvas - cppu

Change-Id: I2022b022897dafde20251352376e3facdb9b8d75
Reviewed-on: https://gerrit.libreoffice.org/27663
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-01 06:12:30 +00:00
Caolán McNamara
2e6d96408e Revert "temp tinderbox fix"
This reverts commit d4cb9c3a8851cb874fd8b6c77d4d7521da7579b7.

Change-Id: Ifd11427ea6b4137d0e0c007e7f140fbc6caa3f31
2016-07-28 13:35:04 +01:00
Caolán McNamara
cb4279efa7 returning reference to local breaks crashtesting build
since..

commit 508c95f1b655d9cfa6be37a5a9de9aff6fd383bf
Author: Noel Grandin <noel@peralex.com>
Date:   Mon Jul 18 09:22:27 2016 +0200

    improve passstuffbyref return analysis

Change-Id: I29b2751c17df9ef7b4b3421d42575dbf001e6784
2016-07-28 11:52:23 +01:00
Caolán McNamara
b32d3f24bb add uui component to some other places
Change-Id: Ia1e449f8f52e7d353944b8e80f9fc586f1eab2f7
2016-07-27 21:33:20 +01:00
Noel Grandin
508c95f1b6 improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c
Reviewed-on: https://gerrit.libreoffice.org/27317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-27 06:48:25 +00:00