LCOV - code coverage report
Current view: top level - libreoffice/svx/inc/svx/sdr/contact - viewcontactofsdrmediaobj.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-12-27 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 _SDR_CONTACT_VIEWCONTACTOFSDRMEDIAOBJ_HXX
      21             : #define _SDR_CONTACT_VIEWCONTACTOFSDRMEDIAOBJ_HXX
      22             : 
      23             : #include <svx/sdr/contact/viewcontactofsdrobj.hxx>
      24             : #include "svx/svxdllapi.h"
      25             : 
      26             : //////////////////////////////////////////////////////////////////////////////
      27             : // predeclarations
      28             : 
      29             : class SdrMediaObj;
      30             : namespace avmedia { class MediaItem; }
      31             : 
      32             : //////////////////////////////////////////////////////////////////////////////
      33             : 
      34             : namespace sdr
      35             : {
      36             :     namespace contact
      37             :     {
      38             :         class SVX_DLLPUBLIC ViewContactOfSdrMediaObj : public ViewContactOfSdrObj
      39             :         {
      40             :             friend class ViewObjectContactOfSdrMediaObj;
      41             : 
      42             :         public:
      43             : 
      44             :             // basic constructor, used from SdrObject.
      45             :             explicit ViewContactOfSdrMediaObj( SdrMediaObj& rMediaObj );
      46             :             virtual ~ViewContactOfSdrMediaObj();
      47             : 
      48             :         public:
      49             : 
      50             :             // access to SdrMediaObj
      51           0 :             SdrMediaObj& GetSdrMediaObj() const
      52             :             {
      53           0 :                 return (SdrMediaObj&)GetSdrObject();
      54             :             }
      55             : 
      56             :             Size    getPreferredSize() const;
      57             : 
      58             :             void    updateMediaItem( ::avmedia::MediaItem& rItem ) const;
      59             :             void    executeMediaItem( const ::avmedia::MediaItem& rItem );
      60             : 
      61             :         protected:
      62             : 
      63             :             // Create a Object-Specific ViewObjectContact, set ViewContact and
      64             :             // ObjectContact. Always needs to return something.
      65             :             virtual ViewObjectContact& CreateObjectSpecificViewObjectContact(ObjectContact& rObjectContact);
      66             : 
      67             :             // get notified if some properties have changed
      68             :             virtual void mediaPropertiesChanged( const ::avmedia::MediaItem& rNewState );
      69             : 
      70             :         protected:
      71             :             // This method is responsible for creating the graphical visualisation data
      72             :             // ONLY based on model data
      73             :             virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const;
      74             :         };
      75             :     } // end of namespace contact
      76             : } // end of namespace sdr
      77             : 
      78             : //////////////////////////////////////////////////////////////////////////////
      79             : 
      80             : #endif //_SDR_CONTACT_VIEWCONTACTOFSDRMEDIAOBJ_HXX
      81             : 
      82             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10