summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chart2/source/model/main/ChartModel.cxx4
-rw-r--r--sc/Library_sc.mk1
-rw-r--r--sc/source/ui/drawfunc/fuins2.cxx4
3 files changed, 5 insertions, 4 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx
index a16f435ad069..cf52cacd37cf 100644
--- a/chart2/source/model/main/ChartModel.cxx
+++ b/chart2/source/model/main/ChartModel.cxx
@@ -33,7 +33,7 @@
#include "UndoManager.hxx"
#include "ChartView.hxx"
-#include <vcl/window.hxx>
+#include <vcl/openglwin.hxx>
#include <com/sun/star/chart/ChartDataRowSource.hpp>
@@ -1413,7 +1413,7 @@ void ChartModel::setWindow( const sal_uInt64 nWindowPtr )
throw (uno::RuntimeException, std::exception)
{
void* pPtr = (void*)nWindowPtr;
- Window* pWindow = reinterpret_cast<Window*>(pPtr);
+ OpenGLWindow* pWindow = reinterpret_cast<OpenGLWindow*>(pPtr);
assert(pWindow);
}
diff --git a/sc/Library_sc.mk b/sc/Library_sc.mk
index eb4ace5f0432..e8ab3b4f5978 100644
--- a/sc/Library_sc.mk
+++ b/sc/Library_sc.mk
@@ -88,6 +88,7 @@ $(eval $(call gb_Library_use_libraries,sc,\
$(if $(filter TRUE,$(DISABLE_SCRIPTING)),, \
vbahelper) \
vcl \
+ vclopengl \
xo \
$(gb_UWINAPI) \
))
diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx
index dde50891601d..873588d36f4a 100644
--- a/sc/source/ui/drawfunc/fuins2.cxx
+++ b/sc/source/ui/drawfunc/fuins2.cxx
@@ -32,7 +32,7 @@
#include <tools/urlobj.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/syschild.hxx>
-#include <vcl/sysdata.hxx>
+#include <vcl/openglwin.hxx>
#include <svl/urihelper.hxx>
#include <unotools/moduleoptions.hxx>
#include <svtools/insdlg.hxx>
@@ -544,7 +544,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, Window* pWin, ScDrawView*
ScDocument* pScDoc = pScDocSh->GetDocument();
bool bUndo (pScDoc->IsUndoEnabled());
- SystemChildWindow* pChildWindow = new SystemChildWindow(pData->GetActiveWin(), 0);
+ OpenGLWindow* pChildWindow = new OpenGLWindow(pData->GetActiveWin());
Size aWindowSize = pChildWindow->LogicToPixel( aSize, MapMode( MAP_100TH_MM ) );
pChildWindow->SetSizePixel(aWindowSize);
Wallpaper aBackground = pChildWindow->GetBackground();