Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : */
9 :
10 : #include <svx/svdoopengl.hxx>
11 : #include <svx/sdr/contact/viewcontactofopenglobj.hxx>
12 :
13 0 : sdr::contact::ViewContact* SdrOpenGLObj::CreateObjectSpecificViewContact()
14 : {
15 0 : return new sdr::contact::ViewContactOfOpenGLObj(*this);
16 : }
17 :
18 0 : OpenGLContext& SdrOpenGLObj::getOpenGLContext()
19 : {
20 0 : return maContext;
21 : }
22 :
23 0 : void SdrOpenGLObj::NbcResize(const Point& rRef, const Fraction& xFact, const Fraction& yFact)
24 : {
25 0 : SdrObject::NbcResize(rRef, xFact, yFact);
26 :
27 : //now pass the information to the OpenGL context
28 0 : maContext.setWinSize(aOutRect.GetSize());
29 : SAL_WARN("svx.opengl", "resized opengl drawinglayer object");
30 0 : }
31 :
32 :
33 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|