LCOV - code coverage report
Current view: top level - include/svx/sdr/contact - viewcontactofsdrobj.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 2 100.0 %
Date: 2015-06-13 12:38:46 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFSDROBJ_HXX
      21             : #define INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFSDROBJ_HXX
      22             : 
      23             : #include <sal/types.h>
      24             : #include <svx/sdr/contact/viewcontact.hxx>
      25             : #include <svx/sdtakitm.hxx>
      26             : #include <svx/svxdllapi.h>
      27             : 
      28             : class SdrObject;
      29             : class GeoStat;
      30             : class Bitmap;
      31             : 
      32             : namespace sdr { namespace contact {
      33             : 
      34             : class SVX_DLLPUBLIC ViewContactOfSdrObj : public ViewContact
      35             : {
      36             : protected:
      37             :     // the owner of this ViewContact. Set from constructor and not
      38             :     // to be changed in any way.
      39             :     SdrObject&                                      mrObject;
      40             : 
      41             :     // Remember AnimationKind of object. Used to find out if that kind
      42             :     // has changed in ActionChanged()
      43             :     SdrTextAniKind                                  meRememberedAnimationKind;
      44             : 
      45             :     // Create a Object-Specific ViewObjectContact, set ViewContact and
      46             :     // ObjectContact. Always needs to return something.
      47             :     virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) SAL_OVERRIDE;
      48             : 
      49             : public:
      50             :     // access to SdrObject
      51     4973361 :     SdrObject& GetSdrObject() const
      52             :     {
      53     4973361 :         return mrObject;
      54             :     }
      55             : 
      56             :     // basic constructor, used from SdrObject.
      57             :     explicit ViewContactOfSdrObj(SdrObject& rObj);
      58             :     virtual ~ViewContactOfSdrObj();
      59             : 
      60             :     // Access to possible sub-hierarchy
      61             :     virtual sal_uInt32 GetObjectCount() const SAL_OVERRIDE;
      62             :     virtual ViewContact& GetViewContact(sal_uInt32 nIndex) const SAL_OVERRIDE;
      63             :     virtual ViewContact* GetParentContact() const SAL_OVERRIDE;
      64             : 
      65             :     // React on changes of the object of this ViewContact
      66             :     virtual void ActionChanged() SAL_OVERRIDE;
      67             : 
      68             :     /// override for accessing the SdrObject
      69             :     virtual SdrObject* TryToGetSdrObject() const SAL_OVERRIDE;
      70             : 
      71             : 
      72             :     // primitive stuff
      73             : 
      74             :     // add Gluepoints (if available)
      75             :     virtual drawinglayer::primitive2d::Primitive2DSequence createGluePointPrimitive2DSequence() const SAL_OVERRIDE;
      76             : 
      77             :     // allow embedding if needed (e.g. for SdrObjects, evtl. Name, Title and description get added). This
      78             :     // is a helper normally used from getViewIndependentPrimitive2DSequence(), but there is one exception
      79             :     // for 3D scenes
      80             :     virtual drawinglayer::primitive2d::Primitive2DSequence embedToObjectSpecificInformation(const drawinglayer::primitive2d::Primitive2DSequence& rSource) const SAL_OVERRIDE;
      81             : };
      82             : 
      83             : }}
      84             : 
      85             : #endif // INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFSDROBJ_HXX
      86             : 
      87             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11