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

Generated by: LCOV version 1.10