update dev300-m57
[ooovba.git] / svtools / inc / imagemgr.hxx
blob7159e87064fe5831e5ed6b2f991d67202f671298
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: imagemgr.hxx,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SVTOOLS_IMAGEMGR_HXX
32 #define _SVTOOLS_IMAGEMGR_HXX
34 // includes ******************************************************************
36 #include "svtools/svtdllapi.h"
37 #include "sal/types.h"
39 class Image;
40 class String;
41 class INetURLObject;
43 namespace svtools {
45 struct VolumeInfo
47 sal_Bool m_bIsVolume;
48 sal_Bool m_bIsRemote;
49 sal_Bool m_bIsRemoveable;
50 sal_Bool m_bIsFloppy;
51 sal_Bool m_bIsCompactDisc;
53 VolumeInfo() :
54 m_bIsVolume ( sal_False ),
55 m_bIsRemote ( sal_False ),
56 m_bIsRemoveable ( sal_False ),
57 m_bIsFloppy ( sal_False ),
58 m_bIsCompactDisc( sal_False ) {}
60 VolumeInfo( sal_Bool _bIsVolume,
61 sal_Bool _bIsRemote,
62 sal_Bool _bIsRemoveable,
63 sal_Bool _bIsFloppy,
64 sal_Bool _bIsCompactDisc ) :
65 m_bIsVolume ( _bIsVolume ),
66 m_bIsRemote ( _bIsRemote ),
67 m_bIsRemoveable ( _bIsRemoveable ),
68 m_bIsFloppy ( _bIsFloppy ),
69 m_bIsCompactDisc( _bIsCompactDisc ) {}
74 class SvFileInformationManager
76 private:
77 SVT_DLLPRIVATE static String GetDescription_Impl( const INetURLObject& rObject, sal_Bool bDetectFolder );
79 public:
80 // depricated, because no high contrast mode
81 SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, sal_Bool bBig = sal_False );
82 static Image GetFileImage( const INetURLObject& rURL, sal_Bool bBig = sal_False );
83 static Image GetImageNoDefault( const INetURLObject& rURL, sal_Bool bBig = sal_False );
84 SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, sal_Bool bBig = sal_False );
86 // now with high contrast mode
87 SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, sal_Bool bBig, sal_Bool bHighContrast );
88 SVT_DLLPUBLIC static Image GetFileImage( const INetURLObject& rURL, sal_Bool bBig, sal_Bool bHighContrast );
89 SVT_DLLPUBLIC static Image GetImageNoDefault( const INetURLObject& rURL, sal_Bool bBig, sal_Bool bHighContrast );
90 SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, sal_Bool bBig, sal_Bool bHighContrast );
92 SVT_DLLPUBLIC static String GetDescription( const INetURLObject& rObject );
93 SVT_DLLPUBLIC static String GetFileDescription( const INetURLObject& rObject );
94 SVT_DLLPUBLIC static String GetFolderDescription( const svtools::VolumeInfo& rInfo );
97 #endif