summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdoopengl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdoopengl.cxx')
-rw-r--r--svx/source/svdraw/svdoopengl.cxx65
1 files changed, 0 insertions, 65 deletions
diff --git a/svx/source/svdraw/svdoopengl.cxx b/svx/source/svdraw/svdoopengl.cxx
deleted file mode 100644
index 1b3398359c83..000000000000
--- a/svx/source/svdraw/svdoopengl.cxx
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#include <config_features.h>
-
-#include <svdoopengl.hxx>
-#include <sdr/contact/viewcontactofopenglobj.hxx>
-
-#include <vcl/opengl/IOpenGLRenderer.hxx>
-
-SdrOpenGLObj::SdrOpenGLObj()
- : SdrObject(),
- IOpenGLInfoProvider(),
- mpContext(NULL)
-{
-#if HAVE_FEATURE_DESKTOP
- mpContext = new OpenGLContext;
-#endif
-}
-
-SdrOpenGLObj::~SdrOpenGLObj()
-{
- delete mpContext;
-}
-
-sdr::contact::ViewContact* SdrOpenGLObj::CreateObjectSpecificViewContact()
-{
- return new sdr::contact::ViewContactOfOpenGLObj(*this);
-}
-
-
-void SdrOpenGLObj::NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact)
-{
- SdrObject::NbcResize(rRef, xFact, yFact);
-
- // now pass the information to the OpenGL context
- if (mpContext)
- mpContext->setWinSize(aOutRect.GetSize());
-
- SAL_WARN("svx.opengl", "resized opengl drawinglayer object");
-}
-
-void SdrOpenGLObj::setRenderer(IOpenGLRenderer* pRenderer)
-{
- mpRenderer.reset(pRenderer);
- mpRenderer->setInfoProvider(this);
-}
-
-IOpenGLRenderer* SdrOpenGLObj::getRenderer()
-{
- return mpRenderer.get();
-}
-
-bool SdrOpenGLObj::isOpenGLInitialized()
-{
- return mpContext && mpContext->isInitialized();
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */