1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef _SVTOOLS_IMAGEMGR_HXX
21 #define _SVTOOLS_IMAGEMGR_HXX
23 #include "svtools/svtdllapi.h"
24 #include "sal/types.h"
36 sal_Bool m_bIsRemoveable
;
38 sal_Bool m_bIsCompactDisc
;
41 m_bIsVolume ( sal_False
),
42 m_bIsRemote ( sal_False
),
43 m_bIsRemoveable ( sal_False
),
44 m_bIsFloppy ( sal_False
),
45 m_bIsCompactDisc( sal_False
) {}
47 VolumeInfo( sal_Bool _bIsVolume
,
49 sal_Bool _bIsRemoveable
,
51 sal_Bool _bIsCompactDisc
) :
52 m_bIsVolume ( _bIsVolume
),
53 m_bIsRemote ( _bIsRemote
),
54 m_bIsRemoveable ( _bIsRemoveable
),
55 m_bIsFloppy ( _bIsFloppy
),
56 m_bIsCompactDisc( _bIsCompactDisc
) {}
61 class SvFileInformationManager
64 SVT_DLLPRIVATE
static String
GetDescription_Impl( const INetURLObject
& rObject
, sal_Bool bDetectFolder
);
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
);
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
);
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */