LCOV - code coverage report
Current view: top level - include/svtools - imagemgr.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 4 0.0 %
Date: 2014-04-14 Functions: 0 2 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_SVTOOLS_IMAGEMGR_HXX
      21             : #define INCLUDED_SVTOOLS_IMAGEMGR_HXX
      22             : 
      23             : #include <svtools/svtdllapi.h>
      24             : #include <sal/types.h>
      25             : 
      26             : class Image;
      27             : namespace rtl {
      28             :   class OUString;
      29             : };
      30             : class INetURLObject;
      31             : 
      32             : namespace svtools {
      33             : 
      34             : struct VolumeInfo
      35             : {
      36             :     bool    m_bIsVolume;
      37             :     bool    m_bIsRemote;
      38             :     bool    m_bIsRemoveable;
      39             :     bool    m_bIsFloppy;
      40             :     bool    m_bIsCompactDisc;
      41             : 
      42           0 :     VolumeInfo() :
      43             :         m_bIsVolume     ( false ),
      44             :         m_bIsRemote     ( false ),
      45             :         m_bIsRemoveable ( false ),
      46             :         m_bIsFloppy     ( false ),
      47           0 :         m_bIsCompactDisc( false ) {}
      48             : 
      49           0 :     VolumeInfo( bool _bIsVolume,
      50             :                 bool _bIsRemote,
      51             :                 bool _bIsRemoveable,
      52             :                 bool _bIsFloppy,
      53             :                 bool _bIsCompactDisc ) :
      54             :         m_bIsVolume     ( _bIsVolume ),
      55             :         m_bIsRemote     ( _bIsRemote ),
      56             :         m_bIsRemoveable ( _bIsRemoveable ),
      57             :         m_bIsFloppy     ( _bIsFloppy ),
      58           0 :         m_bIsCompactDisc( _bIsCompactDisc ) {}
      59             : };
      60             : 
      61             : }
      62             : 
      63             : class SvFileInformationManager
      64             : {
      65             : private:
      66             :     SVT_DLLPRIVATE static rtl::OUString    GetDescription_Impl( const INetURLObject& rObject, bool bDetectFolder );
      67             : 
      68             : public:
      69             :     SVT_DLLPUBLIC static Image  GetImage( const INetURLObject& rURL, bool bBig = false );
      70             :     SVT_DLLPUBLIC static Image  GetFileImage( const INetURLObject& rURL, bool bBig = false );
      71             :     SVT_DLLPUBLIC static Image  GetImageNoDefault( const INetURLObject& rURL, bool bBig = false );
      72             :     SVT_DLLPUBLIC static Image  GetFolderImage( const svtools::VolumeInfo& rInfo, bool bBig = false );
      73             : 
      74             :     SVT_DLLPUBLIC static rtl::OUString GetDescription( const INetURLObject& rObject );
      75             :     SVT_DLLPUBLIC static rtl::OUString GetFileDescription( const INetURLObject& rObject );
      76             :     SVT_DLLPUBLIC static rtl::OUString GetFolderDescription( const svtools::VolumeInfo& rInfo );
      77             : };
      78             : 
      79             : #endif
      80             : 
      81             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10