LCOV - code coverage report
Current view: top level - include/svtools - inetimg.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 9 0.0 %
Date: 2014-04-11 Functions: 0 6 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_SVTOOLS_INETIMG_HXX
      20             : #define INCLUDED_SVTOOLS_INETIMG_HXX
      21             : 
      22             : #include <tools/gen.hxx>
      23             : 
      24             : class SvData;
      25             : class SotDataObject;
      26             : 
      27             : 
      28             : 
      29           0 : class INetImage
      30             : {
      31             :     OUString        aImageURL;
      32             :     OUString        aTargetURL;
      33             :     OUString        aTargetFrame;
      34             :     OUString        aAlternateText;
      35             :     Size            aSizePixel;
      36             : 
      37             : protected:
      38             :     OUString        CopyExchange() const;
      39             :     void            PasteExchange( const OUString& rString );
      40             : 
      41             :     void            SetImageURL( const OUString& rS )     { aImageURL = rS; }
      42             :     void            SetTargetURL( const OUString& rS )    { aTargetURL = rS; }
      43             :     void            SetTargetFrame( const OUString& rS )  { aTargetFrame = rS; }
      44             :     void            SetAlternateText( const OUString& rS ){ aAlternateText = rS; }
      45             :     void            SetSizePixel( const Size& rSize )   { aSizePixel = rSize; }
      46             : 
      47             : public:
      48           0 :                     INetImage(
      49             :                         const OUString& rImageURL,
      50             :                         const OUString& rTargetURL,
      51             :                         const OUString& rTargetFrame,
      52             :                         const OUString& rAlternateText,
      53             :                         const Size& rSizePixel )
      54             :                     :   aImageURL( rImageURL ),
      55             :                         aTargetURL( rTargetURL ),
      56             :                         aTargetFrame( rTargetFrame ),
      57             :                         aAlternateText( rAlternateText ),
      58           0 :                         aSizePixel( rSizePixel )
      59           0 :                     {}
      60           0 :                     INetImage()
      61           0 :                     {}
      62             : 
      63           0 :     const OUString& GetImageURL() const { return aImageURL; }
      64           0 :     const OUString& GetTargetURL() const { return aTargetURL; }
      65           0 :     const OUString& GetTargetFrame() const { return aTargetFrame; }
      66             :     const OUString& GetAlternateText() const { return aAlternateText; }
      67             :     const Size&     GetSizePixel() const { return aSizePixel; }
      68             : 
      69             :     // Im-/Export
      70             :     bool Write( SvStream& rOStm, sal_uLong nFormat ) const;
      71             :     bool Read( SvStream& rIStm, sal_uLong nFormat );
      72             : };
      73             : 
      74             : #endif // INCLUDED_SVTOOLS_INETIMG_HXX
      75             : 
      76             : 
      77             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10