bump product version to 4.2.0.1
[LibreOffice.git] / include / svtools / imagemgr.hxx
blob59735a037411518ba1a86a581493e49d7c3ee80c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 INCLUDED_SVTOOLS_IMAGEMGR_HXX
21 #define INCLUDED_SVTOOLS_IMAGEMGR_HXX
23 #include <svtools/svtdllapi.h>
24 #include <sal/types.h>
26 class Image;
27 namespace rtl {
28 class OUString;
30 class INetURLObject;
32 namespace svtools {
34 struct VolumeInfo
36 sal_Bool m_bIsVolume;
37 sal_Bool m_bIsRemote;
38 sal_Bool m_bIsRemoveable;
39 sal_Bool m_bIsFloppy;
40 sal_Bool m_bIsCompactDisc;
42 VolumeInfo() :
43 m_bIsVolume ( sal_False ),
44 m_bIsRemote ( sal_False ),
45 m_bIsRemoveable ( sal_False ),
46 m_bIsFloppy ( sal_False ),
47 m_bIsCompactDisc( sal_False ) {}
49 VolumeInfo( sal_Bool _bIsVolume,
50 sal_Bool _bIsRemote,
51 sal_Bool _bIsRemoveable,
52 sal_Bool _bIsFloppy,
53 sal_Bool _bIsCompactDisc ) :
54 m_bIsVolume ( _bIsVolume ),
55 m_bIsRemote ( _bIsRemote ),
56 m_bIsRemoveable ( _bIsRemoveable ),
57 m_bIsFloppy ( _bIsFloppy ),
58 m_bIsCompactDisc( _bIsCompactDisc ) {}
63 class SvFileInformationManager
65 private:
66 SVT_DLLPRIVATE static rtl::OUString GetDescription_Impl( const INetURLObject& rObject, sal_Bool bDetectFolder );
68 public:
69 SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, sal_Bool bBig = sal_False );
70 SVT_DLLPUBLIC static Image GetFileImage( const INetURLObject& rURL, sal_Bool bBig = sal_False );
71 SVT_DLLPUBLIC static Image GetImageNoDefault( const INetURLObject& rURL, sal_Bool bBig = sal_False );
72 SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, sal_Bool bBig = sal_False );
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 );
79 #endif
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */