Commit Graph

28 Commits

Author SHA1 Message Date
7daba09d02 Fix OpenGL chart reinitialiation
Problem after ChartWindow was disabled and enabled
again, OpenGL content was lost.

Two things:
-After setting a new OpenGLWindow the corresponding
IRenderer must be set (x3DWindowProvider->update)
-InitOpenGL() call should not depend on DummyChart, but on
OpenGLWindow (OpenGLContext).

Change-Id: If74e1945de9973d3921ceea1ca6fef39311add7a
2014-08-29 17:40:26 +02:00
c02e393c7d Revert "Fix OpenGL chart reinitializing"
This reverts commit cbc50c90ad63f0e59b8cf3bbfb6b5b1f61db09b9.
2014-07-23 22:19:27 +02:00
cbc50c90ad Fix OpenGL chart reinitializing
Problem after ChartWindow was disabled and enabled
again, OpenGL content was lost.

Two things:
-After setting a new OpenGLWindow the corresponding
IRenderer must be set (x3DWindowProvider->update)
-InitOpenGL() call should not depend on DummyChart, but on
OpenGLWindow (OpenGLContext).

Change-Id: If74e1945de9973d3921ceea1ca6fef39311add7a
2014-07-20 09:54:06 +02:00
3575dba98d remove whitespaces
Change-Id: I05ef3c1ffd4e2179e0142a21abf8a4578718102e
2014-07-02 23:03:07 +02:00
c2034f3993 fixincludeguards: fix include guards
Change-Id: Ie6e8d4272b0b1d0d2ce93bcbc2e818a9eac1a56b
Reviewed-on: https://gerrit.libreoffice.org/9629
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-06-06 19:16:40 +00:00
e7da55b6ed make the OpenglShapeFactory work with the new OpenGLWindow impl
Change-Id: Id97a61c67b55d6ef85b9752f7f4ac2c93aa5bf32
2014-06-01 17:21:14 +02:00
8822b255e5 move to OpenGLWindow step one
Change-Id: I9f019a397f8b0daf27f0969b1f23539438eb6422
2014-06-01 03:47:21 +02:00
168f26572a remove some crap that should not have been pushed
Change-Id: I92b9aa565fc04fb095cedc2a89df468b2f568ea1
2014-04-15 20:40:49 +02:00
3bd173af50 only render through OpenGL after successful context creation
Change-Id: I60ebceee2bf0eca1c7022e14fc43128347d682b5
2014-04-15 01:51:27 +02:00
4b243d2201 whitespace cleanup in chart2
Change-Id: I85fdb62ff0e6606e2ac8537f477e7cb5bec3827a
2014-04-06 17:19:55 +02:00
236d6cd67e chart2: prefer passing OUString by reference
Change-Id: I685b1dc3d7c735bc70be29252f55c082546f3cb1
2014-03-17 13:30:50 +02:00
f2cdf8848c Remove visual noise from chart2
Change-Id: Ic8dc71c2815df265e1935e629e0220396a50aaac
Reviewed-on: https://gerrit.libreoffice.org/8239
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-02-27 00:44:41 -06:00
4613f593a8 Pass Reference<XPropertySet> by const&
Change-Id: I8d7307b2a2d78cab737a710de33fe31a0798c555
2014-01-29 11:42:30 +01:00
4de61a662d fix missing clearing of rendering area
Now there are no artifacts left from earlier renderings.

Change-Id: I48e6585d838cdf9547c150e1484a967fc9b69329
2014-01-29 08:09:47 +01:00
f85199ddea add inital code for formatted strings
Change-Id: Ib82ee310f0eb326aefbb2c499a0aedb399f5a635
2014-01-29 08:09:38 +01:00
b2223335fc remove methods for old stateful time based approach
Change-Id: I0fe6090c055f3c6ab1e89930a7cdfb928924c04c
2014-01-29 08:09:37 +01:00
8cfcdfecf0 make it easier to draw with all properties
Change-Id: Ia563f703d5bc622f9577fee177b4f558c100be87
2014-01-29 08:09:22 +01:00
be0befbc5f initial work on showing the bitmap in Libreoffice
Change-Id: Id6543889509982bdb7487de484cf3d7f79c15f1e
2014-01-29 08:09:18 +01:00
10840ad753 fdo#72005: Insert the border rectangle to the bottom of the stack.
This will make the border and fill shape to be drawn first, then everything
else drawn on top.

This commit may look large, but it's actually a very trivial change. The
important part is in SvxShapeGroup where new methods have been added to allow
different insertion positions for the new shapes being inserted, and have
the chart2 code make use of it to insert the fill rectangle to the bottom
rather than to the top.

Change-Id: I999160daf6fc9ce3d7e641f57b1998543df1cc4e
2014-01-10 11:42:11 -05:00
7070318e0f it builds again
Change-Id: I969ff5ed6fd979e9fd126e8d0b79a518697e7915
2013-11-19 13:47:39 +01:00
b4c78680e0 adapt name of method
Change-Id: I02435256f747bb2bff63414735fa5af3b3413e82
2013-11-19 13:47:37 +01:00
0574f59c6a add methods to render whole data series at once
additionally we have now a method for timebased data series in the shape
factory. The method contains the two points in time and the rendering
backend should calculate intermitiate points for a good interpolation.

Change-Id: Id30e2039ec90a6c36e947b7a7f9bca65ef0e8961
2013-11-19 13:47:36 +01:00
11699eb826 no createInstance calls any more in chart2/source/view creating shapes
Change-Id: I7978d607ecd9170fff37ff0be02cdfbec7ebb89b
2013-11-19 13:47:34 +01:00
a3604b2496 use AbstractShapeFactory in more places
Change-Id: I1c34f6e56579c4a43e4ba28a81799c3f67d679cb
2013-11-19 13:47:34 +01:00
dde6b80473 more use of ShapeFactory and set Properties in factory if possible
Change-Id: I7d172fd7bde506233fc74ec07b9603ee29149e5c
2013-11-19 13:47:34 +01:00
b2b488e161 use the AbstractShapeFactory in more places
Change-Id: I992533b5e38ca5cb91f7688d94c35652f7dbaa38
2013-11-19 13:47:33 +01:00
ee5ef16d35 make it possible to switch between different ShapeFactories
Change-Id: I49f6b16182c25ead486a15ab86f722902b36933e
2013-11-19 13:47:33 +01:00
5c0a5503b6 create an AbstractFactory and add a DummyShapeFactory for testing 2013-11-19 13:47:33 +01:00