svdpntv.cxx (a56bd57b) svdpntv.cxx (9f63b866)
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

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

64#include <svl/whiter.hxx>
65#include <svl/style.hxx>
66#include <svx/sdrpagewindow.hxx>
67#include <svx/svdouno.hxx>
68#include <vcl/svapp.hxx>
69#include <com/sun/star/awt/XWindow.hpp>
70#include <com/sun/star/awt/PosSize.hpp>
71#include <com/sun/star/awt/XControl.hpp>
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

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

64#include <svl/whiter.hxx>
65#include <svl/style.hxx>
66#include <svx/sdrpagewindow.hxx>
67#include <svx/svdouno.hxx>
68#include <vcl/svapp.hxx>
69#include <com/sun/star/awt/XWindow.hpp>
70#include <com/sun/star/awt/PosSize.hpp>
71#include <com/sun/star/awt/XControl.hpp>
72
73// #i38135#
74#include <svx/sdr/contact/objectcontact.hxx>
75#include <svx/sdr/animation/objectanimator.hxx>
76#include <svx/sdr/contact/viewcontact.hxx>
72#include <svx/sdr/contact/objectcontact.hxx>
73#include <svx/sdr/animation/objectanimator.hxx>
74#include <svx/sdr/contact/viewcontact.hxx>
75#include <drawinglayer/primitive2d/metafileprimitive2d.hxx>
76#include <basegfx/matrix/b2dhommatrixtools.hxx>
77
78using namespace ::rtl;
79using namespace ::com::sun::star;
80
81////////////////////////////////////////////////////////////////////////////////////////////////////
82// #114409#-3 Migrate Encirclement
83class ImplEncirclementOverlay
84{

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

204SvxViewHint::HintType SvxViewHint::GetHintType (void) const
205{
206 return meHintType;
207}
208
209
210////////////////////////////////////////////////////////////////////////////////////////////////////
211
77
78using namespace ::rtl;
79using namespace ::com::sun::star;
80
81////////////////////////////////////////////////////////////////////////////////////////////////////
82// #114409#-3 Migrate Encirclement
83class ImplEncirclementOverlay
84{

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

204SvxViewHint::HintType SvxViewHint::GetHintType (void) const
205{
206 return meHintType;
207}
208
209
210////////////////////////////////////////////////////////////////////////////////////////////////////
211
212BitmapEx convertMetafileToBitmapEx(
213 const GDIMetaFile& rMtf,
214 const basegfx::B2DRange& rTargetRange,
215 const sal_uInt32 nMaximumQuadraticPixels)
216{
217 BitmapEx aBitmapEx;
218
219 if(rMtf.GetActionCount())
220 {
221 const drawinglayer::primitive2d::Primitive2DReference aMtf(
222 new drawinglayer::primitive2d::MetafilePrimitive2D(
223 basegfx::tools::createScaleTranslateB2DHomMatrix(
224 rTargetRange.getRange(),
225 rTargetRange.getMinimum()),
226 rMtf));
227 aBitmapEx = convertPrimitive2DSequenceToBitmapEx(
228 drawinglayer::primitive2d::Primitive2DSequence(&aMtf, 1),
229 rTargetRange,
230 nMaximumQuadraticPixels);
231 }
232
233 return aBitmapEx;
234}
235
236////////////////////////////////////////////////////////////////////////////////////////////////////
237
212TYPEINIT2(SdrPaintView,SfxListener,SfxRepeatTarget);
213
214DBG_NAME(SdrPaintView);
215
216void SdrPaintView::ImpClearVars()
217{
218#ifdef DBG_UTIL
219 pItemBrowser=NULL;

--- 1288 unchanged lines hidden ---
238TYPEINIT2(SdrPaintView,SfxListener,SfxRepeatTarget);
239
240DBG_NAME(SdrPaintView);
241
242void SdrPaintView::ImpClearVars()
243{
244#ifdef DBG_UTIL
245 pItemBrowser=NULL;

--- 1288 unchanged lines hidden ---