LCOV - code coverage report
Current view: top level - svx/inc/sdr/contact - viewcontactofsdrole2obj.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_INC_SDR_CONTACT_VIEWCONTACTOFSDROLE2OBJ_HXX
      21             : #define INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFSDROLE2OBJ_HXX
      22             : 
      23             : #include <svx/sdr/contact/viewcontactofsdrrectobj.hxx>
      24             : #include <svx/svdoole2.hxx>
      25             : #include <basegfx/matrix/b2dhommatrix.hxx>
      26             : 
      27             : class Graphic;
      28             : 
      29             : namespace sdr { namespace contact {
      30             : 
      31             : class ViewContactOfSdrOle2Obj : public ViewContactOfSdrRectObj
      32             : {
      33             : private:
      34             :     // #i123539# allow local buffering of chart data (if chart)
      35             :     drawinglayer::primitive2d::Primitive2DReference mxChartContent;
      36             : 
      37             : protected:
      38             :     // Create a Object-Specific ViewObjectContact, set ViewContact and
      39             :     // ObjectContact. Always needs to return something.
      40             :     virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact) SAL_OVERRIDE;
      41             : 
      42             : public:
      43             :     // access to SdrOle2Obj
      44        3621 :     const SdrOle2Obj& GetOle2Obj() const
      45             :     {
      46        3621 :         return static_cast<const SdrOle2Obj&>(GetSdrObject());
      47             :     }
      48             : 
      49             :     /// helper to create transformation from SdrObject
      50             :     basegfx::B2DHomMatrix createObjectTransform() const;
      51             : 
      52             :     // basic constructor, used from SdrObject.
      53             :     explicit ViewContactOfSdrOle2Obj(SdrOle2Obj& rOle2Obj);
      54             :     virtual ~ViewContactOfSdrOle2Obj();
      55             : 
      56             :     // helper for creating a OLE sequence for this object. It takes care od attributes, needed
      57             :     // scaling (e.g. for EmptyPresObj's), the correct graphic and other stuff. It is used from
      58             :     // createViewIndependentPrimitive2DSequence with false, and with evtl. HighContrast true
      59             :     // from the VOC which knows that
      60             :     drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequenceWithParameters() const;
      61             : 
      62             :     // #i123539# get rid of buffered chart content (if there) on change
      63             :     virtual void ActionChanged() SAL_OVERRIDE;
      64             : 
      65             :     virtual basegfx::B2DRange getRange( const drawinglayer::geometry::ViewInformation2D& rViewInfo2D ) const SAL_OVERRIDE;
      66             : 
      67             : protected:
      68             :     // This method is responsible for creating the graphical visualisation data
      69             :     // ONLY based on model data, just wraps to call createPrimitive2DSequenceWithParameters(false)
      70             :     virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const SAL_OVERRIDE;
      71             : };
      72             : 
      73             : }}
      74             : 
      75             : 
      76             : 
      77             : #endif // INCLUDED_SVX_INC_SDR_CONTACT_VIEWCONTACTOFSDROLE2OBJ_HXX
      78             : 
      79             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11