overlaymanager.cxx (a56bd57b) overlaymanager.cxx (1cd65da9)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 143 unchanged lines hidden (view full) ---

152 {
153 if(getOutputDevice().GetViewTransformation() != maViewTransformation)
154 {
155 basegfx::B2DRange aViewRange(maViewInformation2D.getViewport());
156
157 if(OUTDEV_WINDOW == getOutputDevice().GetOutDevType())
158 {
159 const Size aOutputSizePixel(getOutputDevice().GetOutputSizePixel());
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 143 unchanged lines hidden (view full) ---

152 {
153 if(getOutputDevice().GetViewTransformation() != maViewTransformation)
154 {
155 basegfx::B2DRange aViewRange(maViewInformation2D.getViewport());
156
157 if(OUTDEV_WINDOW == getOutputDevice().GetOutDevType())
158 {
159 const Size aOutputSizePixel(getOutputDevice().GetOutputSizePixel());
160 aViewRange = basegfx::B2DRange(0.0, 0.0, aOutputSizePixel.getWidth(), aOutputSizePixel.getHeight());
161 aViewRange.transform(getOutputDevice().GetInverseViewTransformation());
160
161 // only set when we *have* a output size, else let aViewRange
162 // stay on empty
163 if(aOutputSizePixel.Width() && aOutputSizePixel.Height())
164 {
165 aViewRange = basegfx::B2DRange(0.0, 0.0, aOutputSizePixel.getWidth(), aOutputSizePixel.getHeight());
166 aViewRange.transform(getOutputDevice().GetInverseViewTransformation());
167 }
162 }
163
164 OverlayManager* pThis = const_cast< OverlayManager* >(this);
165
166 pThis->maViewTransformation = getOutputDevice().GetViewTransformation();
167 pThis->maViewInformation2D = drawinglayer::geometry::ViewInformation2D(
168 maViewInformation2D.getObjectTransformation(),
169 maViewTransformation,

--- 195 unchanged lines hidden ---
168 }
169
170 OverlayManager* pThis = const_cast< OverlayManager* >(this);
171
172 pThis->maViewTransformation = getOutputDevice().GetViewTransformation();
173 pThis->maViewInformation2D = drawinglayer::geometry::ViewInformation2D(
174 maViewInformation2D.getObjectTransformation(),
175 maViewTransformation,

--- 195 unchanged lines hidden ---