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 .
22 #include <rtl/ustring.hxx>
23 #include <svtools/svtdllapi.h>
24 #include <unotools/ucbhelper.hxx>
25 #include <vcl/vclenum.hxx>
27 enum class SvImageId
{
29 START
= 3076, // must match to old Id's in SFX!
34 CalcTemplate
= START
+ 51,
35 Database
= START
+ 53,
36 ImpressTemplate
= START
+ 54,
42 MathTemplate
= START
+ 69,
48 TextFile
= START
+ 80,
52 WriterTemplate
= START
+ 87,
53 FixedDevice
= START
+ 88,
54 RemoveableDevice
= START
+ 89,
55 CDRomDevice
= START
+ 90,
56 NetworkDevice
= START
+ 91,
62 //retired SGF = START + 144,
63 //retired SGV = START + 145,
65 GlobalDoc
= START
+ 150,
67 DrawTemplate
= START
+ 152,
68 OO_DatabaseDoc
= START
+ 169,
69 OO_DrawDoc
= START
+ 170,
70 OO_MathDoc
= START
+ 171,
71 OO_GlobalDoc
= START
+ 172,
72 OO_ImpressDoc
= START
+ 173,
73 OO_CalcDoc
= START
+ 174,
74 OO_WriterDoc
= START
+ 175,
75 OO_DrawTemplate
= START
+ 176,
76 OO_ImpressTemplate
= START
+ 177,
77 OO_CalcTemplate
= START
+ 178,
78 OO_WriterTemplate
= START
+ 179,
79 Extension
= START
+ 180,
94 bool m_bIsCompactDisc
;
97 m_bIsVolume ( false ),
98 m_bIsRemote ( false ),
99 m_bIsRemoveable ( false ),
100 m_bIsFloppy ( false ),
101 m_bIsCompactDisc( false ) {}
103 VolumeInfo( bool _bIsVolume
,
107 bool _bIsCompactDisc
) :
108 m_bIsVolume ( _bIsVolume
),
109 m_bIsRemote ( _bIsRemote
),
110 m_bIsRemoveable ( _bIsRemoveable
),
111 m_bIsFloppy ( _bIsFloppy
),
112 m_bIsCompactDisc( _bIsCompactDisc
) {}
117 class SvFileInformationManager
120 static OUString
GetDescription_Impl( const INetURLObject
& rObject
, bool bDetectFolder
);
123 SVT_DLLPUBLIC
static OUString
GetImageId( const INetURLObject
& rURL
, bool bBig
= false );
124 SVT_DLLPUBLIC
static Image
GetImage(
125 const INetURLObject
& rURL
, bool bBig
= false,
126 css::uno::Reference
<css::ucb::XCommandEnvironment
> const & env
127 = utl::UCBContentHelper::getDefaultCommandEnvironment());
128 SVT_DLLPUBLIC
static OUString
GetFileImageId( const INetURLObject
& rURL
);
129 SVT_DLLPUBLIC
static Image
GetImageNoDefault(const INetURLObject
& rURL
, vcl::ImageType eImageType
= vcl::ImageType::Small
);
130 SVT_DLLPUBLIC
static OUString
GetFolderImageId( const svtools::VolumeInfo
& rInfo
);
132 SVT_DLLPUBLIC
static OUString
GetDescription( const INetURLObject
& rObject
);
133 SVT_DLLPUBLIC
static OUString
GetFileDescription( const INetURLObject
& rObject
);
134 SVT_DLLPUBLIC
static OUString
GetFolderDescription( const svtools::VolumeInfo
& rInfo
);
137 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */