viewobjectcontact.cxx (035a2f44) viewobjectcontact.cxx (49c58f9b)
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

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

308 {
309 // dervied primitiveList is animated, setup new PrimitiveAnimation
310 mpPrimitiveAnimation = new sdr::animation::PrimitiveAnimation(*this, aAnimatedExtractor.getPrimitive2DSequence());
311 }
312 }
313 }
314 }
315
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

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

308 {
309 // dervied primitiveList is animated, setup new PrimitiveAnimation
310 mpPrimitiveAnimation = new sdr::animation::PrimitiveAnimation(*this, aAnimatedExtractor.getPrimitive2DSequence());
311 }
312 }
313 }
314 }
315
316 drawinglayer::primitive2d::Primitive2DSequence ViewObjectContact::createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const
317 {
318 // get the view-independent Primitive from the viewContact
319 drawinglayer::primitive2d::Primitive2DSequence xRetval(GetViewContact().getViewIndependentPrimitive2DSequence());
316 drawinglayer::primitive2d::Primitive2DSequence ViewObjectContact::createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const
317 {
318 // get the view-independent Primitive from the viewContact
319 drawinglayer::primitive2d::Primitive2DSequence xRetval(GetViewContact().getViewIndependentPrimitive2DSequence());
320
320
321 if(xRetval.hasElements())
322 {
323 // handle GluePoint
324 if(!GetObjectContact().isOutputToPrinter() && GetObjectContact().AreGluePointsVisible())
325 {
326 const drawinglayer::primitive2d::Primitive2DSequence xGlue(GetViewContact().createGluePointPrimitive2DSequence());
321 if(xRetval.hasElements())
322 {
323 // handle GluePoint
324 if(!GetObjectContact().isOutputToPrinter() && GetObjectContact().AreGluePointsVisible())
325 {
326 const drawinglayer::primitive2d::Primitive2DSequence xGlue(GetViewContact().createGluePointPrimitive2DSequence());
327
327
328 if(xGlue.hasElements())
329 {
328 if(xGlue.hasElements())
329 {
330 drawinglayer::primitive2d::appendPrimitive2DSequenceToPrimitive2DSequence(xRetval, xGlue);
330 drawinglayer::primitive2d::appendPrimitive2DSequenceToPrimitive2DSequence(xRetval, xGlue);
331 }
332 }
331 }
332 }
333
333
334 // handle ghosted
335 if(isPrimitiveGhosted(rDisplayInfo))
336 {
337 const basegfx::BColor aRGBWhite(1.0, 1.0, 1.0);
338 const basegfx::BColorModifier aBColorModifier(aRGBWhite, 0.5, basegfx::BCOLORMODIFYMODE_INTERPOLATE);
339 const drawinglayer::primitive2d::Primitive2DReference xReference(new drawinglayer::primitive2d::ModifiedColorPrimitive2D(xRetval, aBColorModifier));
334 // handle ghosted
335 if(isPrimitiveGhosted(rDisplayInfo))
336 {
337 const basegfx::BColor aRGBWhite(1.0, 1.0, 1.0);
338 const basegfx::BColorModifierSharedPtr aBColorModifier(
339 new basegfx::BColorModifier_interpolate(
340 aRGBWhite,
341 0.5));
342 const drawinglayer::primitive2d::Primitive2DReference xReference(
343 new drawinglayer::primitive2d::ModifiedColorPrimitive2D(
344 xRetval,
345 aBColorModifier));
346
340 xRetval = drawinglayer::primitive2d::Primitive2DSequence(&xReference, 1);
347 xRetval = drawinglayer::primitive2d::Primitive2DSequence(&xReference, 1);
341 }
342 }
348 }
349 }
343
344 return xRetval;
345 }
346
347 drawinglayer::primitive2d::Primitive2DSequence ViewObjectContact::getPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const
348 {
349 drawinglayer::primitive2d::Primitive2DSequence xNewPrimitiveSequence;
350

--- 90 unchanged lines hidden ---
350
351 return xRetval;
352 }
353
354 drawinglayer::primitive2d::Primitive2DSequence ViewObjectContact::getPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const
355 {
356 drawinglayer::primitive2d::Primitive2DSequence xNewPrimitiveSequence;
357

--- 90 unchanged lines hidden ---