6729 Commits

Author SHA1 Message Date
Tamás Zolnai
3fac6aa16e ChartDumpTest: Don't use variable value in a note
Change-Id: I06445065d138788652759b172436a7deb5f6c5c7
2017-02-14 22:43:27 +01:00
Tamás Zolnai
6d537d759b Remove these temporarily added defines
Changing font to a bundled one does not solve the issue.

Change-Id: I2606657a78115bc9b01cda9f0825b55ecfad3ab8
2017-02-14 21:34:04 +01:00
Stephan Bergmann
17825ecb66 Make CppunitTest_chart2_dump succeed in my macOS build
...by increasing the deltas to whatever ridiculously large values happen to make
the test pass.  Tamás said he'll take a look later.

Change-Id: Ia839608ef3899dfca71886ccf57c31d4eb8bd72d
2017-02-14 19:23:01 +01:00
Tamás Zolnai
5154f0c463 ChartDumpTest: Use english text in test docs
Change-Id: I87ca8286f586d5811e4db22ebe4df0317fab567f
2017-02-14 16:08:45 +01:00
Tamás Zolnai
8b198f9f09 ChartDumpTest: Try again to remove all Arial fonts from these test documents
Change-Id: I517fbb53db888276805e3c0d215337425d6cace1
2017-02-14 15:12:16 +01:00
Tamás Zolnai
bd96cbacb4 ChartDumpTest: Test pie charts
Change-Id: I936c24c4b1d6854fcfec86dc2642ef57a241b8ea
Reviewed-on: https://gerrit.libreoffice.org/34225
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-02-14 12:52:25 +00:00
Tamás Zolnai
5815ca4ef1 ChartDumpTest: Avoid using Arial font in test documents
Let's see whether this caused the position and size
differences between different machines.

Change-Id: I6cf0a2fff86d7ce8613d4ca4bbcfe6e001bd9f49
Reviewed-on: https://gerrit.libreoffice.org/34226
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-02-14 10:42:58 +00:00
Tomaž Vajngerl
8faff1ee9c chart2: remove unneeded includes
Change-Id: I49e15f57e8eddb53dbf4d1b7ddbf6d33fed116f2
Reviewed-on: https://gerrit.libreoffice.org/34172
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-02-13 21:09:50 +00:00
Tamás Zolnai
34c1d107d5 ChartDumpTest: Test percent stacked chart's axis labels
Change-Id: I9f682f976e22407cd47c61bd2874ddf7f6fbc144
Reviewed-on: https://gerrit.libreoffice.org/34188
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-02-13 10:49:17 +00:00
Andrea Gelmini
417bc89880 Fix typos
Change-Id: Iaf6bbe81f519d49b82f624282d786c8cc18d641c
Reviewed-on: https://gerrit.libreoffice.org/34199
Reviewed-by: Aleksandar Stefanović <theonewithideas@gmail.com>
Tested-by: Aleksandar Stefanović <theonewithideas@gmail.com>
2017-02-13 09:37:18 +00:00
Tamás Zolnai
da5194f730 ChartDumpTest: Test bar charts
Change-Id: If4b8b207ba4ab379977d1a64c572187f48c4b9b4
Reviewed-on: https://gerrit.libreoffice.org/34186
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-02-13 08:32:13 +00:00
Stephan Bergmann
6fe9017e9c -Werror,-Wunused-private-field
Change-Id: I5251e187e4923c05795a993194375f509c909e05
2017-02-13 08:02:20 +01:00
Tamás Zolnai
1d810b69a5 ChartDumpTest: Let's have a bigger delta
Change-Id: I2bbb2fb5470af3026441102980f026bc9ad753b0
2017-02-13 00:02:32 +01:00
Tomaž Vajngerl
608811c2cb chart2: simplify and/or clean-up and c++11 features
Change-Id: I4550d04ae4bf6e45f24e34dfb2babc0fdef8ba5a
Reviewed-on: https://gerrit.libreoffice.org/34006
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-02-12 23:00:59 +00:00
Tomaž Vajngerl
8cc8ffdb04 [API CHANGE] Add PopupRequest - a callback to open a pop-up win. in calc
Change-Id: Iea600e229deb69d1638a1a649008fc4738a5934a
Reviewed-on: https://gerrit.libreoffice.org/34005
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-02-12 22:22:06 +00:00
Tamás Zolnai
614f4b5a32 ChartDumpTest: Fix checking of transformations
Allow 1 point difference.

Change-Id: Ib7d6ca0db773872469f5fc5a0d0dadb4a101c7df
Reviewed-on: https://gerrit.libreoffice.org/34184
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-02-12 22:11:09 +00:00
Tamás Zolnai
125194ff4b ChartDumpTest: Test chart wall
Change-Id: I16b7da66c6a6bab160212c47a75ce22951f85f87
Reviewed-on: https://gerrit.libreoffice.org/34181
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-02-12 21:12:54 +00:00
Tomaž Vajngerl
1425067797 chart2: layout buttons in charts when data is present
This commit layouts the buttons in the chart when there is data
present. Currently this never shows them as other infrastructure
needs to be present to get the PT data.

Change-Id: If33c726eb057b2b938ccb3c00f0d5b671416f355
Reviewed-on: https://gerrit.libreoffice.org/34004
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-02-12 20:10:55 +00:00
Tomaž Vajngerl
30efd7cfda chart2: simple button (view) to add to a chart
Change-Id: I2001efe1e7eb9e92edb8f5e78535cea0e78935ad
Reviewed-on: https://gerrit.libreoffice.org/34003
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-02-12 20:08:52 +00:00
Tamás Zolnai
934e2d83e2 ChartDumpTest: Make position and size check a bit more robust
Some of tinderboxes shows these values can be variable
among machines.

Change-Id: I867cc5d124e537d5de16e2b8275f8eb6fdfde447
Reviewed-on: https://gerrit.libreoffice.org/34178
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-02-12 19:41:55 +00:00
Tamás Zolnai
49d7bdea17 ChartDumpTest: A new chart test suite for a more sistematic testing
A hibrid of dumper tests (xmlDump) and simple CppUnit tests.
Advantages:
* Easy to add a new test case
** Add a new test file and generate the reference
** Similar to dumper tests
* Easy to find out the root of the problem when test fails
** Assertion is not coming somewhere from an XML file
** Assertion are placed in the code, so if you read and
understand that code, you can find out easier why the test fails.
** Similar to simple CppUnit tests.
* One test checks only one smaller part of the whole document
** e.g. legend, chart data, grid

Change-Id: I7bba5a37efcc62d6358c84acece91963243a914f
Reviewed-on: https://gerrit.libreoffice.org/34154
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-02-12 16:43:06 +00:00
Julien Nabet
8aff36d87f Various typos about property
Change-Id: I7585a1346fb19a886240db8dd393554efee862cc
Reviewed-on: https://gerrit.libreoffice.org/34174
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-12 16:06:46 +00:00
Tor Lillqvist
20c43a23d1 "Unicode" is a proper noun and should not be used in plural
The 16-bit things that make up the UTF-16 encoding are called "code
units".

Change-Id: Iab2b83323783e518198c1a0553f7b053fc415985
2017-02-12 12:43:12 +02:00
Tor Lillqvist
3b94a463c5 The string "###" can be written as such, no need for a Special Const Variable
Change-Id: Ib9737acc8e0a9845fc03ed2c7de7969cef41f27c
2017-02-08 13:35:19 +02:00
Tor Lillqvist
4df2bc90cc A newline is not that special or hard to remember
Change-Id: I2960a59283a5a04c5c804a57e43bdb633c0e45cf
2017-02-08 13:35:19 +02:00
Noel Grandin
a3190d7201 remove unused SCHATTR_DIAGRAM_STYLE
and associated SvxChartStyleItem and SvxChartStyle

Change-Id: I1564a4583125dd32af71e4eff338dfcefc6517c4
Reviewed-on: https://gerrit.libreoffice.org/33988
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-08 08:12:56 +00:00
Caolán McNamara
5601c77e99 fix oss-fuzz build
Change-Id: I0e292bcca27035b316bcf0c93dbd6c87e3f93e3b
2017-02-07 12:35:21 +00:00
Stephan Bergmann
6dce9c6757 Add missing #includes
...and remove some unncessary using directives/declarations, in preparation of
removing now-unnecessary #includes from cppumaker-generated files, post
e57ca02849c3d87142ff5ff9099a212e72b8139c "Remove dynamic exception
specifications".

Change-Id: Iaf1f268871e2ee1d1c76cf90f03557527ebc9067
2017-02-06 17:21:16 +01:00
Caolán McNamara
d8a1059ef2 OpenGLWindow typeinfo unavailable without HAVE_FEATURE_OPENGL
Change-Id: Ie06c1121502db9b1a869f657f70d3b45db610e2f
2017-02-06 08:42:55 +00:00
Maxim Monastirsky
eb0b727b87 .uno:ScriptOrganizer should be menu:menuitem
... so it won't show as an empty submenu in the
customization dialog, and allow accidentally
overwriting it.

Change-Id: I9431e5240485a58f63a2333850a9052e475db63e
2017-02-05 22:08:43 +02:00
Maxim Monastirsky
88a0a17ae4 chart2: Remove empty labels from main menu
Change-Id: I600d5bd2d502ffce7d54a699f390d30874323ca8
2017-02-05 22:08:27 +02:00
Noel Grandin
83721f4365 makeAny->Any in basctl..chart2
Change-Id: Ief1cdffbfc59ab4e35ac945d020772ff84c50d61
Reviewed-on: https://gerrit.libreoffice.org/33867
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-03 08:50:50 +00:00
Gabor Kelemen
695c8bc98a tdf#105571 Drop toolbar:helpid attribute from toolbar definitions
These are no longer useful.
Made with:
git grep toolbar:helpid | cut -d : -f1 | sort -u | xargs sed -i -r -e 's/ toolbar:helpid="[0-9]*"//'
git grep toolbar:helpid | cut -d : -f1 | sort -u | xargs sed -i -r -e 's/ toolbar:helpid=""//'1

Change-Id: If1bf04265f4e03b44b6a92529f6133aff1589526
Reviewed-on: https://gerrit.libreoffice.org/33642
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-01-31 09:11:47 +00:00
Noel Grandin
1c3e84d819 teach lolugin:stringconstant about calling constructors
so we can remove unnecessary calls to the OUString(literal) constructor
when calling constructors like this:
   Foo(OUString("xxx"), 1)

Change-Id: I1de60ef561437c86b27dc9cb095a5deb2e103b36
Reviewed-on: https://gerrit.libreoffice.org/33698
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-31 08:56:20 +00:00
Noel Grandin
f1d83ac45f loplugin:stringconstant check for unnecessary OUString constructor..
..calls when creating exceptions

Change-Id: I3bc58a5aa4dc6f0508ecb88b3a843b96b8c7ebfe
Reviewed-on: https://gerrit.libreoffice.org/33617
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-28 09:22:55 +00:00
Tomaž Vajngerl
aaa0728d88 chart2: too long line
Change-Id: I1ed0b51156ef2d6231908f18be64e49b754789bd
2017-01-27 12:11:12 +01:00
Tomaž Vajngerl
8a8a946c88 chart2: some more for-loop changes in VLegend
Change-Id: I3c0c0b7463a45917c98f8dc766c781acf62da963
2017-01-27 12:11:12 +01:00
Tomaž Vajngerl
7e9d2ccdbb chart2: remove typedef for std::vector, remove commented code
Change-Id: I62c4cbd0f1ed3d7ea0715475d58e0ee130f3ca00
2017-01-27 12:11:11 +01:00
Tomaž Vajngerl
8529550435 chart2: use c++11 for-loop in VLegend
Change-Id: I8f42fa30f49a8c1dc271017dda826279c45460eb
2017-01-27 12:11:11 +01:00
Stephan Bergmann
e57ca02849 Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only).  See the mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html>
"Dynamic Exception Specifications" for details.

Most changes have been done automatically by the rewriting loplugin:dynexcspec
(after enabling the rewriting mode, to be committed shortly).  The way it only
removes exception specs from declarations if it also sees a definition, it
identified some dead declarations-w/o-definitions (that have been removed
manually) and some cases where a definition appeared in multiple include files
(which have also been cleaned up manually).  There's also been cases of macro
paramters (that were used to abstract over exception specs) that have become
unused now (and been removed).

Furthermore, some code needed to be cleaned up manually
(avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no
configurations available that would actually build that code.  Missing @throws
documentation has not been applied in such manual clean-up.

Change-Id: I3408691256c9b0c12bc5332de976743626e13960
Reviewed-on: https://gerrit.libreoffice.org/33574
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-26 12:54:43 +00:00
Stephan Bergmann
80cec5faa5 AccStatisticsObject is apparently dead code
Change-Id: I4e04b13538d1242ea38d1400df0ced813171bc5e
2017-01-24 13:37:59 +01:00
Noel Grandin
bd281dc6e1 use rtl::Reference in AccessibleBase
instead of storing both a raw pointer and an uno::Reference

Change-Id: I583de7a25893baa65363aa6d3199564f63f4fa60
2017-01-24 07:03:11 +02:00
Noel Grandin
33319078e9 use rtl::Reference in ControllerCommandDispatch
rather than storing both a raw pointer and an uno::Reference

Change-Id: I46496da508689d82211940da765d53378f72fd7a
2017-01-24 07:03:11 +02:00
Noel Grandin
8d611dcc31 use rtl::Reference in ChartModel
instead of storing both a raw pointer and an uno::Reference

Change-Id: I86846c2c756255eb5627a4b1e5144c41865db895
2017-01-24 07:03:11 +02:00
Noel Grandin
5145f60cc9 loplugin: unnecessary destructor: basctl..codemaker
Change-Id: Iadcfa9bc4fe9efb8d24d6d6afaf2b9b3def0bc3c
Reviewed-on: https://gerrit.libreoffice.org/33452
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-24 04:59:44 +00:00
Jan-Marek Glogowski
bf110d40ef Change all Idle* LINKs to be Timer*
Seem UBSAN doesn't like my forced reinterpret_cast to set the Idles
Link in the Timer class. Now there are two possible solution:

  1. convert all (DECL|IMPL).*_LINK call sites to use a Timer* or
  2. split the inheritance of Idle from Timer again to maintain
     different Link<>s and move all common code into a TimerBase.

While the 1st is more correct, the 2nd has a better indicator for
Idles. This implements the first solution.

And while at it, this also converts all call sites of SetTimeoutHdl
and SetIdleHdl to SetInvokeHandler and gets rid of some local Link
objects, which are just passed to the SetInvokeHandler call.

It also introduces ClearInvokeHandler() and replaces the respective
call sites of SetInvokeHandler( Link<Timer *, void>() ).

Change-Id: I40c4167b1493997b7f136add4dad2f4ff5504b69
2017-01-23 20:49:05 +01:00
Jochen Nitschke
abc8057ab1 pass ownership by pointer
to show the intend of the code.

assert on invalid objects.
remove useless OSL_ENSURE.
make sure list of owning pointers can't be copied.

Change-Id: I3cccf8ea87585ec9fe62921203a4d12e617ce15c
Reviewed-on: https://gerrit.libreoffice.org/33393
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-01-23 13:50:45 +00:00
Tomaž Vajngerl
df98a363f3 chart2: replace custom Deg2Rad/Rad2Deg for basegfx functions
Change-Id: Idbc843b54b3037bd55199a8918b06d21eb7b2f2c
Reviewed-on: https://gerrit.libreoffice.org/33343
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-01-20 14:27:13 +00:00
Noel Grandin
46a0ce8032 use rtl::Reference in TheModelRef
instead of manual acquire/release

Change-Id: I7a5ae0337fc8fa1465ac716050e7187aa1accb87
2017-01-20 08:51:08 +02:00
Stephan Bergmann
ea88107a65 New loplugin:dynexcspec: Add @throws documentation, chart2
Change-Id: I9b558b713186c64054914ebfc4c122ff769b71a1
2017-01-19 18:03:24 +01:00