1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: imagemgr.hxx,v $
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"
49 sal_Bool m_bIsRemoveable
;
51 sal_Bool m_bIsCompactDisc
;
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
,
62 sal_Bool _bIsRemoveable
,
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
77 SVT_DLLPRIVATE
static String
GetDescription_Impl( const INetURLObject
& rObject
, sal_Bool bDetectFolder
);
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
);