LCOV - code coverage report
Current view: top level - include/svx/sdr/contact - viewcontactofsdrole2obj.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 1 0.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_VIEWCONTACTOFSDROLE2OBJ_HXX
      21             : #define INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFSDROLE2OBJ_HXX
      22             : 
      23             : #include <svx/sdr/contact/viewcontactofsdrrectobj.hxx>
      24             : #include <basegfx/matrix/b2dhommatrix.hxx>
      25             : 
      26             : 
      27             : // predeclarations
      28             : 
      29             : class SdrOle2Obj;
      30             : class Graphic;
      31             : 
      32             : 
      33             : 
      34             : namespace sdr
      35             : {
      36             :     namespace contact
      37             :     {
      38             :         class ViewContactOfSdrOle2Obj : public ViewContactOfSdrRectObj
      39             :         {
      40             :         private:
      41             :             // #i123539# allow local buffering of chart data (if chart)
      42             :             drawinglayer::primitive2d::Primitive2DReference mxChartContent;
      43             : 
      44             :         protected:
      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 SdrOle2Obj
      51           0 :             SdrOle2Obj& GetOle2Obj() const
      52             :             {
      53           0 :                 return (SdrOle2Obj&)GetSdrObject();
      54             :             }
      55             : 
      56             :             /// helper to create transformation from SdrObject
      57             :             basegfx::B2DHomMatrix createObjectTransform() const;
      58             : 
      59             :             // basic constructor, used from SdrObject.
      60             :             explicit ViewContactOfSdrOle2Obj(SdrOle2Obj& rOle2Obj);
      61             :             virtual ~ViewContactOfSdrOle2Obj();
      62             : 
      63             :             // helper for creating a OLE sequence for this object. It takes care od attributes, needed
      64             :             // scaling (e.g. for EmptyPresObj's), the correct graphic and other stuff. It is used from
      65             :             // createViewIndependentPrimitive2DSequence with false, and with evtl. HighContrast true
      66             :             // from the VOC which knows that
      67             :             drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequenceWithParameters() const;
      68             : 
      69             :             // #i123539# get rid of buffered chart content (if there) on change
      70             :             virtual void ActionChanged() SAL_OVERRIDE;
      71             : 
      72             :         protected:
      73             :             // This method is responsible for creating the graphical visualisation data
      74             :             // ONLY based on model data, just wraps to call createPrimitive2DSequenceWithParameters(false)
      75             :             virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const SAL_OVERRIDE;
      76             :         };
      77             :     } // end of namespace contact
      78             : } // end of namespace sdr
      79             : 
      80             : 
      81             : 
      82             : #endif // INCLUDED_SVX_SDR_CONTACT_VIEWCONTACTOFSDROLE2OBJ_HXX
      83             : 
      84             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10