opengl charts: Move the init from sc to chart2, to have the right parent.

Conflicts:
	chart2/source/view/charttypes/GL3DBarChart.cxx

Change-Id: I1e23329345e00e7d8e1f269c832e84d015824c0a
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
Add a method to check whether an XEmbeddedObject is a chart

Change-Id: I6f860b9f1bce200c5366df0a32650705cf429a80
ChartHelper::IsChart is useless

EmbeddedObjectRef has an own IsChart method with the same
behavior.

Change-Id: Ib06699186466bf3da2bd67d7c631a5216463fb14
Make opengl chart window always active

Fortunately there is a special ole object group with
the MS_EMBED_ACTIVATEWHENVISIBLE flag which define this
behaviour.
Problem is that both Aspect and EmbedMisc are MS specific
enums so we can't use them directly for non-MS objects. But we
can handle opengl charts the same as this ole object group.

Change-Id: I49abeffce319cbb775709a72ba198a1f76b65374
It seems better if the caller allocates the memory for the RGBA buffer.

For example it allows to use std::vector<> and call the method

Change-Id: Id4b8e33838d358dd242d0176e42558505fa8d4a3
Mirror vertically the texture bitmaps for OpenGL

In case of glTF models it saves a Mirror() call.
In case of OpenGL charts it avoid flipped texts.

Change-Id: I1ac980e16bcb5ba6a9a025b638aaac3b08b4aab3
Fix regression in rendering of GL3DBarChart

Change-Id: Ibf8f4a57cbc85f77a73054873030fcef321f5518
This OpenGL window is useless

Change-Id: Ied9914c9a317dc3945c29b984d2a68957275fc52
Add a border to opengl chart to make it easier to handle.

Change-Id: I74bc636dc0a37d70f45fe2eac0b8b60e3f6318bb
Stop flickering in rendering of charts in Writer

Change-Id: I52efa9cd7851f480ee2abcaa1646735c6f518f3a
Fix rendering of GL3DBarCharts after ODF import

OpenGL window need to have a valid size before
rendering.

Change-Id: I3ce3dbf653f0dc101de3acc4d634d7fe6c3be9ad
Don't create an OpenGL window in case of normal charts.

Change-Id: Idb4506712d3902c12aa881a85ddf69a281edff82
Reinitialize GL3D renderer when OpenGL window is changed

Without it when we switch sheets in Calc or slides in Impress
and go back to that page where the GL3DBar chart is then the
renderer does not work.

Change-Id: I9aa6203ed5aa7f94627d886b2f2e5ad34d493843
Update chart when chart type is changed in edit mode

Regression to master.
In long term it would be better to define ChartWindow as an
OpenGL window and not creating a new window inside the chart
window, becasue otherwise all events which was handled well
by the chart window will be broken (catched by the OpenGL
window so no effect on ChartWindow (defining the behavior of
charts in general) or catched by the ChartWindow and so no
effect on the OpenGLWindow (like invalidating in this case).

Change-Id: I234f469f70914e01f030c8edae9cb5aacea112bf
Call resetCurrent as soon as possible to avoid conflict with other thread

Change-Id: Ie3edc252135301ba5b85b80edcdbe75537d0da16
CHART_DUMMY_FACTORY should not control the OpenGL window

Change-Id: Ic6c640f7d37606b357672f2b73f95d51d1daba67
Revert "Stop flickering in rendering of charts in Writer"

Hide when it's actually a normal chart.

This reverts commit b79b862927d937d695b31df4bdb85d1fc8774f39.

Change-Id: Ib7aee142cea979293864f3916eb0580a82605b2b
Store env variable in a static variable instead

Change-Id: I5d6067806645722faac3fe90cbec01b6963f7283
Oops, static was forgotten.

Change-Id: I0c316581ab8bfb0a49420006a0801d13021bd1ca