summaryrefslogtreecommitdiff
path: root/chart2/source/model
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-06 06:16:56 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-07 21:22:28 +0200
commita28bcb6e57aef0a05e04195c9bdc52a4bc39bba1 (patch)
treee015cd138ac869c678f4b8c72b5fac6363e93f69 /chart2/source/model
parent42a47cd66eb6d277e5560efa341efa423f9e8fff (diff)
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
Diffstat (limited to 'chart2/source/model')
-rw-r--r--chart2/source/model/main/ChartModel.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx
index e386d7f41a79..a16f435ad069 100644
--- a/chart2/source/model/main/ChartModel.cxx
+++ b/chart2/source/model/main/ChartModel.cxx
@@ -33,6 +33,8 @@
#include "UndoManager.hxx"
#include "ChartView.hxx"
+#include <vcl/window.hxx>
+
#include <com/sun/star/chart/ChartDataRowSource.hpp>
#include <comphelper/InlineContainer.hxx>
@@ -1407,6 +1409,14 @@ uno::Reference< uno::XInterface > ChartModel::getChartView()
return xChartView;
}
+void ChartModel::setWindow( const sal_uInt64 nWindowPtr )
+ throw (uno::RuntimeException, std::exception)
+{
+ void* pPtr = (void*)nWindowPtr;
+ Window* pWindow = reinterpret_cast<Window*>(pPtr);
+ assert(pWindow);
+}
+
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */