Commit graph

85 commits

Author SHA1 Message Date
Thomas Arnhold
e6ea7d9329 warning C4373: 'chart::ChartModel::setWindow': virtual function overrides...
...'com::sun::chart2::X3DChartWindowProvider::setWindow', previous
versions of the compiler did not override when parameters only differed by
const/volatile qualifiers.

X3DChartWindowProvider.hdl defines it as:

virtual void SAL_CALL setWindow( ::sal_uInt64 window )

Change-Id: Ie1b9f940f54df8901c74402a3baf475a0165c5a2
2014-08-13 10:10:52 +02:00
Thomas Arnhold
7cc627ff79 update_pch
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-08-13 10:10:33 +02:00
Kohei Yoshida
f1531cdaae bnc#885825: Support borders around data labels.
Change-Id: Ib141413e523cbf73746876f727e9f80dda9f5f7c
2014-07-26 16:26:08 -04:00
Kohei Yoshida
b2ffa40c12 Compiler macro in lieu of literal "Label" to make it easier to track it.
Change-Id: I6bc694fcc8f97b308747c097c4fa977d20524377
2014-07-21 20:31:24 -04:00
Markus Mohrhard
355c3cbb16 fix invalid memory access in chart tests
Change-Id: I056101d146c939ff958c83efc57fd110e8d52509
2014-06-27 10:05:45 +02:00
Kohei Yoshida
c6da184295 Track all uses of ErrorBarX and ErrorBarY UNO property names.
Change-Id: I994424c98d977c3a8f9138cccc17348de813a9d7
2014-06-26 19:36:46 -04:00
Kohei Yoshida
2538e30ccc Use define constant to keep track of all NumberFormat property usage.
Change-Id: I2a544922e03ec8253290ac8bf5a89c9cdd72d8dd
2014-06-19 14:46:56 -04:00
Noel Grandin
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
Kohei Yoshida
c5539bb585 fdo#79676: Initialize with a default chart only from the UI.
When creating an embedded chart object during import, we don't want to
create a default chart which would only mess up the chart data.

With this change, ChartModel::initNew() is a no-op.

Change-Id: Id29659c3885ec1e06bed26d2c851123fb63072cc
2014-06-10 10:02:25 -04:00
Noel Grandin
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
Markus Mohrhard
389d8e9f52 fix refresh problem with 2D OpenGL chart and OpenGLWindow
Change-Id: I32f23967a826262051495d57a4dd529ca3694548
2014-06-04 07:49:12 +02:00
Markus Mohrhard
d9f93ced82 extract the rendering code in ChartView
We need it for the IOpenGLRenderer interface.

Change-Id: Ic9f425b44c0efdd30956eba13ef03ba7179d35a4
2014-06-01 17:38:39 +02:00
Thomas Arnhold
fcfdadc2cb update_pch: exclude OpenGLContext.hxx for now
Change-Id: I80ce89351e2a8dbb1d9d928b673a8589fd651584
2014-05-29 09:59:07 +02:00
Thomas Arnhold
5e62d30fa2 update_pch
Change-Id: I5316693452427ed76a7738b090de023b110caa40
2014-05-28 15:53:10 +02:00
Markus Mohrhard
e41c33b376 make sure that OpenGL charts are rendered after import
Change-Id: I3701a7593d7394abc39532a87b9aa50a3c92d457
2014-05-24 12:36:48 +02:00
Thomas Arnhold
2bd7767d01 Resolves fdo#70681: fixincludeguards.pl: all that's left
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5
Reviewed-on: https://gerrit.libreoffice.org/9360
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-15 12:50:46 +00:00
Kohei Yoshida
ef69c15bb9 Have ChartView keep the instance of GL3D chart object between rendering.
Change-Id: I49419d20bf283fba1c31d8516972b0ca7fddcb5b
2014-05-12 13:47:32 -04:00
Markus Mohrhard
30d6bf6f25 volatile does not make any sense here
Change-Id: I895f6d04bbd5bd1829ec72b2051e640cbc153b26
2014-05-12 09:03:00 +02:00
Markus Mohrhard
a7eba60df0 the rendering is working on-screen
I can't believe that I finally see something on the screen.

Change-Id: Ic374c8a0d0fa5050b0701a5553136759c9c7602c
2014-05-07 21:23:04 +02:00
Markus Mohrhard
a28bcb6e57 provide the OpenGL window
This approach looks much better. We get size and position correct
without much work and can easily plug the window into the sc window
hierarchy.

We still have a crash on exit as the ScGridWindow goes out of scope and
the SystemChildWindow is still alive. We need to fix it and bind the
lifecycle of the SystemChildWindow to ScGridWindow.

Another open item is the OpenGL context work. Right now it looks like
the best way forward is to create a subclass of SystemChildWindow that
contains the OpenGLContext.

Change-Id: Ie0a74531e1b818cea92912345464c8fa219bbae2
2014-05-07 21:22:28 +02:00
Thomas Arnhold
6708457e2b update_pch for chartopengl
Change-Id: I3c27cd3cd44fae8924399a3eaccc6af2aced650e
2014-05-06 18:26:07 +02:00
Markus Mohrhard
a371f5de63 fix missing service factory during import, related fdo#74333, cp#1000057
Change-Id: I2cce561587d82b0434ef2d3e65e5d35b7ff99260
2014-04-25 20:02:21 +02:00
Thomas Arnhold
97a5ba4a71 remove comments why a file gets included
also remove some commented out code

Change-Id: Ia80c5c57d8d2a74418032de50eee95642cc0969d
2014-04-21 18:08:28 +02:00
Andras Timar
c79a5f87b1 remove executable bit
Change-Id: I91f6e861f6d0dbea1b57ac73857e0c706b27f681
2014-04-17 15:11:14 +02:00
Markus Mohrhard
168f26572a remove some crap that should not have been pushed
Change-Id: I92b9aa565fc04fb095cedc2a89df468b2f568ea1
2014-04-15 20:40:49 +02:00
Noel Grandin
329332ba52 chart2: sal_Bool->bool
Change-Id: I85751b4e636596ef88ef02bc958abdc6abf98427
2014-04-15 15:23:29 +02:00
Thomas Arnhold
8f7a1111ab update_pch
Change-Id: I099bff66a7796a5cf18e37e445467bdfb33de602
2014-04-14 20:21:10 +02:00
Thomas Arnhold
371e9da42c update_pch: fix precompiled_chartopengl
Change-Id: Iddc978672533d42e15ae901fc50c4adc53e65485
2014-04-14 20:21:09 +02:00
Markus Mohrhard
dfb2ab0cee add initial code for creating 3D bar shapes
Change-Id: I55489fad8723f204003fe502eea5e02de4c8d6ef
2014-04-08 04:38:19 +02:00
Noel Grandin
5babf1b903 remove unnecessary scope qualifier from sal_Bool uses
i.e. convert "::sal_Bool" to "sal_Bool"

Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-03 13:54:02 +02:00
Kohei Yoshida
ffaf640b73 Add API wrapper to handle properties of new GL3D chart type.
Now the new proprety gets properly imported and exported to and from ODF.

Also, more on replacing string literals with define macro constants.

Change-Id: I4b773d68610a8aeaeb239901dac166e4dc2dd80d
2014-03-29 00:47:21 -04:00
Kohei Yoshida
de7c0f31b5 Let's use define constants here rather than string values....
Easier to keep track of their call sites.

Change-Id: I5f874194425ae8f5043bef45cce63a5e1d51a400
2014-03-29 00:47:21 -04:00
Kohei Yoshida
68e20faf3f Start using common symbols for textural UNO property names.
This will make it easier to track all uses of a UNO property name using
symbol database lookup, which is much faster and more accurate than grepping.

Change-Id: I8c2857504c29bcce01eb8c1f406dcbfb24331510
2014-03-29 00:47:19 -04:00
Stephan Bergmann
567ef6d578 Second batch of adding SAL_OVERRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-27 18:12:18 +01:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Caolán McNamara
6d43fd9c9f coverity#737047 Uncaught exception
Change-Id: Icdb50f632654f0e46c41fa3e98741a00dfbc0feb
2014-02-08 20:48:27 +00:00
Caolán McNamara
4fe6abdf69 coverity#737046 Uncaught exception
Change-Id: Icc089ca0b320c7db0e00b48a787e1657d65514ae
2014-02-07 20:47:18 +00:00
Markus Mohrhard
01a56100a4 make glew a normal external shared project
Change-Id: I6306e23b3f20817de87951a8848de373fc5dbf85
2014-01-29 08:09:37 +01:00
Markus Mohrhard
c209ac1c79 some improvements for text rendering
Change-Id: Ifa52fbd0f5359c505f12d12281ec7bdfb959d8c5
2014-01-29 08:09:33 +01:00
Markus Mohrhard
750b46025c give up with the nice solutions and enjoy the ugly hack
I was always hitting a corner case so it seems that this need some
drastic measures.

Change-Id: I3fdd278b9c3fed178513d653ef24ad8adf20cbd2
2014-01-29 08:09:30 +01:00
Markus Mohrhard
55656ee2e8 some improvements for the time based charting
The updating seems to work. It just does not update the references yet.

Change-Id: I0a971dbe2beb113c1c3e9ef103d77d5d8c7174a0
2014-01-29 08:09:30 +01:00
Markus Mohrhard
2d6e556abd first try at implementing time based updates in new chart implementation
Change-Id: I3d03e44a415023ca12548ea99a3732cba49c8074
2014-01-29 08:09:30 +01:00
Markus Mohrhard
a07cce8d06 remaining chart work for time based charting
Change-Id: Iac33c81df199a942ddf073f9eb1b34e147a34f3c
2014-01-29 08:09:29 +01:00
Markus Mohrhard
91e1d305a1 implement time based charting based on new approach
The old approach does not work with the current implementation of the
OpenGL backend. We now need to repaing every time the whole chart.

Change-Id: I2151a3f016c6ceecaec2d45db0cb967cfee59af6
2014-01-29 08:09:28 +01:00
Markus Mohrhard
8cfcdfecf0 make it easier to draw with all properties
Change-Id: Ia563f703d5bc622f9577fee177b4f558c100be87
2014-01-29 08:09:22 +01:00
Markus Mohrhard
c3c8ba862a remove unused method
Change-Id: Ifad7334a50eff0b4cd5c08f4b4907a98f09bd104
2014-01-29 08:09:17 +01:00
Alexandre Vicenzi
336b25e622 fdo#63154 Removed unused solar.h reference in chart2
Change-Id: I4a16cd5492ced3c067fb037f31cb74a6d8068de1
Reviewed-on: https://gerrit.libreoffice.org/7603
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-24 16:10:03 +00:00
Norbert Thiebaud
f3cc79a0b5 coverity#738570 coverity#738571 : Uninit scalar (unused in fact)
Change-Id: Id1f14669c3e88e5abf92a9b1443245d81f360e62
2014-01-19 23:10:07 -06:00
Matúš Kukan
f7936b021f Do not use SvxShapeCollection directly.
Change-Id: I1dd51df0e78a3cc89cdfcaec91ffd9a753393e2e
2014-01-08 14:30:53 +01:00
Jelle van der Waa
c69b6417af fdo#72598 Remove SunStudio cruft from code base
Change-Id: Ia6799c852eb95d496fbc8dcfdabde62dffc263a6
Reviewed-on: https://gerrit.libreoffice.org/7066
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2013-12-13 09:07:07 +00:00