viewcontactofsdrobj.cxx (f6e50924) viewcontactofsdrobj.cxx (025b0597)
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

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

33#include <svx/svdpage.hxx>
34#include <svx/sdr/contact/objectcontact.hxx>
35#include <basegfx/color/bcolor.hxx>
36#include <drawinglayer/primitive2d/markerarrayprimitive2d.hxx>
37#include <svx/sdr/contact/objectcontactofpageview.hxx>
38#include <svx/sdrpagewindow.hxx>
39#include <svx/sdrpaintwindow.hxx>
40#include <svx/sdr/primitive2d/sdrprimitivetools.hxx>
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

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

33#include <svx/svdpage.hxx>
34#include <svx/sdr/contact/objectcontact.hxx>
35#include <basegfx/color/bcolor.hxx>
36#include <drawinglayer/primitive2d/markerarrayprimitive2d.hxx>
37#include <svx/sdr/contact/objectcontactofpageview.hxx>
38#include <svx/sdrpagewindow.hxx>
39#include <svx/sdrpaintwindow.hxx>
40#include <svx/sdr/primitive2d/sdrprimitivetools.hxx>
41#include <drawinglayer/primitive2d/objectinfoprimitive2d.hxx>
41
42//////////////////////////////////////////////////////////////////////////////
43
44namespace sdr
45{
46 namespace contact
47 {
48 // Create a Object-Specific ViewObjectContact, set ViewContact and

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

178 drawinglayer::primitive2d::createDefaultGluepoint_7x7(aBackPen, aRGBFrontColor)));
179 xRetval = drawinglayer::primitive2d::Primitive2DSequence(&xReference, 1);
180 }
181 }
182 }
183
184 return xRetval;
185 }
42
43//////////////////////////////////////////////////////////////////////////////
44
45namespace sdr
46{
47 namespace contact
48 {
49 // Create a Object-Specific ViewObjectContact, set ViewContact and

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

179 drawinglayer::primitive2d::createDefaultGluepoint_7x7(aBackPen, aRGBFrontColor)));
180 xRetval = drawinglayer::primitive2d::Primitive2DSequence(&xReference, 1);
181 }
182 }
183 }
184
185 return xRetval;
186 }
187
188 drawinglayer::primitive2d::Primitive2DSequence ViewContactOfSdrObj::embedToObjectSpecificInformation(const drawinglayer::primitive2d::Primitive2DSequence& rSource) const
189 {
190 if(rSource.hasElements() &&
191 (GetSdrObject().GetName().Len() ||
192 GetSdrObject().GetTitle().Len() ||
193 GetSdrObject().GetDescription().Len()))
194 {
195 const drawinglayer::primitive2d::Primitive2DReference xRef(
196 new drawinglayer::primitive2d::ObjectInfoPrimitive2D(
197 rSource,
198 GetSdrObject().GetName(),
199 GetSdrObject().GetTitle(),
200 GetSdrObject().GetDescription()));
201
202 return drawinglayer::primitive2d::Primitive2DSequence(&xRef, 1);
203 }
204
205 return rSource;
206 }
207
186 } // end of namespace contact
187} // end of namespace sdr
188
189//////////////////////////////////////////////////////////////////////////////
190// eof
208 } // end of namespace contact
209} // end of namespace sdr
210
211//////////////////////////////////////////////////////////////////////////////
212// eof