LCOV - code coverage report
Current view: top level - filter/source/msfilter - viscache.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 17 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 7 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             : #ifndef INCLUDED_FILTER_SOURCE_MSFILTER_VISCACHE_HXX
      20             : #define INCLUDED_FILTER_SOURCE_MSFILTER_VISCACHE_HXX
      21             : 
      22             : #include <sfx2/objsh.hxx>
      23             : #include <tools/stream.hxx>
      24             : #include <vcl/gdimtf.hxx>
      25             : #include <vcl/bitmap.hxx>
      26             : 
      27             : class Impl_OlePres
      28             : {
      29             :     SotClipboardFormatId nFormat;
      30             :     sal_uInt16      nAspect;
      31             :     Bitmap *        pBmp;
      32             :     GDIMetaFile *   pMtf;
      33             : 
      34             :     sal_uInt32      nAdvFlags;
      35             :     sal_Int32       nJobLen;
      36             :     sal_uInt8*      pJob;
      37             :     Size            aSize;      // Groesse in 100TH_MM
      38             : public:
      39           0 :                     Impl_OlePres( SotClipboardFormatId nF )
      40             :                         : nFormat( nF )
      41             :                         , nAspect( ASPECT_CONTENT )
      42             :                         , pBmp( NULL )
      43             :                         , pMtf( NULL )
      44             :                         , nAdvFlags( 0x2 )  // in Dokument gefunden
      45             :                         , nJobLen( 0 )
      46           0 :                         , pJob( NULL )
      47           0 :                     {}
      48           0 :                     ~Impl_OlePres()
      49             :                     {
      50           0 :                         delete pJob;
      51           0 :                         delete pBmp;
      52           0 :                         delete pMtf;
      53           0 :                     }
      54           0 :     void    SetMtf( const GDIMetaFile & rMtf )
      55             :             {
      56           0 :                 if( pMtf )
      57           0 :                     delete pMtf;
      58           0 :                 pMtf = new GDIMetaFile( rMtf );
      59           0 :             }
      60             :     Bitmap              *GetBitmap() const { return pBmp; }
      61             :     GDIMetaFile         *GetMetaFile() const { return pMtf; }
      62           0 :     SotClipboardFormatId GetFormat() const { return nFormat; }
      63           0 :     void                 SetAspect( sal_uInt16 nAsp ) { nAspect = nAsp; }
      64             :     sal_uLong            GetAdviseFlags() const { return nAdvFlags; }
      65           0 :     void                 SetAdviseFlags( sal_uLong nAdv ) { nAdvFlags = nAdv; }
      66           0 :     void                 SetSize( const Size & rSize ) { aSize = rSize; }
      67             :     void                 Write( SvStream & rStm );
      68             : };
      69             : 
      70             : #endif // INCLUDED_FILTER_SOURCE_MSFILTER_VISCACHE_HXX
      71             : 
      72             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11