LibreOffice Module svtools (master)
1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Functions
a
d
e
g
i
l
o
s
u
w
Variables
Typedefs
Enumerations
Enumerator
a
b
c
d
f
g
h
l
o
q
r
s
t
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
h
l
m
n
o
p
s
t
u
w
x
Typedefs
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
c
d
f
g
i
l
m
o
s
t
u
Variables
a
b
c
d
e
f
g
h
j
m
n
p
r
s
t
w
x
Typedefs
Enumerations
Enumerator
r
s
t
v
Macros
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Examples
include
svtools
imagemgr.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
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/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
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 .
18
*/
19
20
#pragma once
21
22
#include <rtl/ustring.hxx>
23
#include <
svtools/svtdllapi.h
>
24
#include <
unotools/ucbhelper.hxx
>
25
#include <
vcl/vclenum.hxx
>
26
27
enum class
SvImageId
{
28
NONE
= 0,
29
START
= 3076,
// must match to old Id's in SFX!
30
31
Impress
=
START
+ 47,
32
Bitmap
=
START
+ 49,
33
Calc
=
START
+ 50,
34
CalcTemplate
=
START
+ 51,
35
Database
=
START
+ 53,
36
ImpressTemplate
=
START
+ 54,
37
GIF
=
START
+ 61,
38
HTML
=
START
+ 63,
39
JPG
=
START
+ 64,
40
WEBP
=
START
+ 65,
41
Math
=
START
+ 68,
42
MathTemplate
=
START
+ 69,
43
File
=
START
+ 74,
44
PCD
=
START
+ 76,
45
PCT
=
START
+ 77,
46
PCX
=
START
+ 78,
47
SIM
=
START
+ 79,
48
TextFile
=
START
+ 80,
49
TIFF
=
START
+ 82,
50
WMF
=
START
+ 84,
51
Writer
=
START
+ 86,
52
WriterTemplate
=
START
+ 87,
53
FixedDevice
=
START
+ 88,
54
RemoveableDevice
=
START
+ 89,
55
CDRomDevice
=
START
+ 90,
56
NetworkDevice
=
START
+ 91,
57
Table
=
START
+ 112,
58
Folder
=
START
+ 113,
59
DXF
=
START
+ 141,
60
MET
=
START
+ 142,
61
PNG
=
START
+ 143,
62
//retired SGF = START + 144,
63
//retired SGV = START + 145,
64
SVM
=
START
+ 146,
65
GlobalDoc
=
START
+ 150,
66
Draw
=
START
+ 151,
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,
80
};
81
82
83
class
Image
;
84
class
INetURLObject
;
85
86
namespace
svtools
{
87
88
struct
VolumeInfo
89
{
90
bool
m_bIsVolume
;
91
bool
m_bIsRemote
;
92
bool
m_bIsRemoveable
;
93
bool
m_bIsFloppy
;
94
bool
m_bIsCompactDisc
;
95
96
VolumeInfo
() :
97
m_bIsVolume
( false ),
98
m_bIsRemote
( false ),
99
m_bIsRemoveable
( false ),
100
m_bIsFloppy
( false ),
101
m_bIsCompactDisc
( false ) {}
102
103
VolumeInfo
(
bool
_bIsVolume,
104
bool
_bIsRemote,
105
bool
_bIsRemoveable,
106
bool
_bIsFloppy,
107
bool
_bIsCompactDisc ) :
108
m_bIsVolume
( _bIsVolume ),
109
m_bIsRemote
( _bIsRemote ),
110
m_bIsRemoveable
( _bIsRemoveable ),
111
m_bIsFloppy
( _bIsFloppy ),
112
m_bIsCompactDisc
( _bIsCompactDisc ) {}
113
};
114
115
}
116
117
class
SvFileInformationManager
118
{
119
private
:
120
static
OUString
GetDescription_Impl
(
const
INetURLObject
& rObject,
bool
bDetectFolder );
121
122
public
:
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 );
131
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 );
135
};
136
137
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
GraphicFileFormat::SVM
@ SVM
GraphicFileFormat::PCD
@ PCD
GraphicFileFormat::JPG
@ JPG
GraphicFileFormat::DXF
@ DXF
GraphicFileFormat::GIF
@ GIF
GraphicFileFormat::WEBP
@ WEBP
GraphicFileFormat::PCX
@ PCX
GraphicFileFormat::PCT
@ PCT
GraphicFileFormat::MET
@ MET
Bitmap
INetURLObject
Image
SvFileInformationManager
Definition:
imagemgr.hxx:118
SvFileInformationManager::GetDescription_Impl
static OUString GetDescription_Impl(const INetURLObject &rObject, bool bDetectFolder)
Definition:
imagemgr.cxx:751
SvFileInformationManager::GetImage
static SVT_DLLPUBLIC Image GetImage(const INetURLObject &rURL, bool bBig=false, css::uno::Reference< css::ucb::XCommandEnvironment > const &env=utl::UCBContentHelper::getDefaultCommandEnvironment())
Definition:
imagemgr.cxx:821
SvFileInformationManager::GetFolderDescription
static SVT_DLLPUBLIC OUString GetFolderDescription(const svtools::VolumeInfo &rInfo)
Definition:
imagemgr.cxx:877
SvFileInformationManager::GetDescription
static SVT_DLLPUBLIC OUString GetDescription(const INetURLObject &rObject)
Definition:
imagemgr.cxx:867
SvFileInformationManager::GetFileDescription
static SVT_DLLPUBLIC OUString GetFileDescription(const INetURLObject &rObject)
Definition:
imagemgr.cxx:872
SvFileInformationManager::GetImageId
static SVT_DLLPUBLIC OUString GetImageId(const INetURLObject &rURL, bool bBig=false)
Definition:
imagemgr.cxx:813
SvFileInformationManager::GetFolderImageId
static SVT_DLLPUBLIC OUString GetFolderImageId(const svtools::VolumeInfo &rInfo)
Definition:
imagemgr.cxx:850
SvFileInformationManager::GetImageNoDefault
static SVT_DLLPUBLIC Image GetImageNoDefault(const INetURLObject &rURL, vcl::ImageType eImageType=vcl::ImageType::Small)
Definition:
imagemgr.cxx:838
SvFileInformationManager::GetFileImageId
static SVT_DLLPUBLIC OUString GetFileImageId(const INetURLObject &rURL)
Definition:
imagemgr.cxx:830
Writer
WMF
WMF
PNG
PNG
SwFieldIds::Database
@ Database
SvImageId
SvImageId
Definition:
imagemgr.hxx:27
SvImageId::RemoveableDevice
@ RemoveableDevice
SvImageId::OO_CalcTemplate
@ OO_CalcTemplate
SvImageId::CalcTemplate
@ CalcTemplate
SvImageId::OO_DrawTemplate
@ OO_DrawTemplate
SvImageId::SIM
@ SIM
SvImageId::TextFile
@ TextFile
SvImageId::MathTemplate
@ MathTemplate
SvImageId::OO_ImpressTemplate
@ OO_ImpressTemplate
SvImageId::ImpressTemplate
@ ImpressTemplate
SvImageId::OO_WriterTemplate
@ OO_WriterTemplate
SvImageId::Extension
@ Extension
SvImageId::CDRomDevice
@ CDRomDevice
SvImageId::NetworkDevice
@ NetworkDevice
SvImageId::WriterTemplate
@ WriterTemplate
SvImageId::DrawTemplate
@ DrawTemplate
SvImageId::GlobalDoc
@ GlobalDoc
SvImageId::OO_WriterDoc
@ OO_WriterDoc
SvImageId::OO_CalcDoc
@ OO_CalcDoc
SvImageId::Folder
@ Folder
SvImageId::FixedDevice
@ FixedDevice
SvImageId::OO_DrawDoc
@ OO_DrawDoc
SvImageId::TIFF
@ TIFF
SvImageId::OO_GlobalDoc
@ OO_GlobalDoc
SvImageId::OO_ImpressDoc
@ OO_ImpressDoc
SvImageId::OO_DatabaseDoc
@ OO_DatabaseDoc
SvImageId::OO_MathDoc
@ OO_MathDoc
env
const css::uno::Reference< css::xml::crypto::XSecurityEnvironment > & env
MailTextFormats::HTML
@ HTML
NONE
NONE
svtools
utl::UCBContentHelper::getDefaultCommandEnvironment
UNOTOOLS_DLLPUBLIC css::uno::Reference< css::ucb::XCommandEnvironment > getDefaultCommandEnvironment()
START
START
vcl::ImageType
ImageType
vcl::ImageType::Small
@ Small
DocumentType::Impress
@ Impress
Table
svtools::VolumeInfo
Definition:
imagemgr.hxx:89
svtools::VolumeInfo::m_bIsRemoveable
bool m_bIsRemoveable
Definition:
imagemgr.hxx:92
svtools::VolumeInfo::m_bIsVolume
bool m_bIsVolume
Definition:
imagemgr.hxx:90
svtools::VolumeInfo::VolumeInfo
VolumeInfo()
Definition:
imagemgr.hxx:96
svtools::VolumeInfo::VolumeInfo
VolumeInfo(bool _bIsVolume, bool _bIsRemote, bool _bIsRemoveable, bool _bIsFloppy, bool _bIsCompactDisc)
Definition:
imagemgr.hxx:103
svtools::VolumeInfo::m_bIsRemote
bool m_bIsRemote
Definition:
imagemgr.hxx:91
svtools::VolumeInfo::m_bIsCompactDisc
bool m_bIsCompactDisc
Definition:
imagemgr.hxx:94
svtools::VolumeInfo::m_bIsFloppy
bool m_bIsFloppy
Definition:
imagemgr.hxx:93
svtdllapi.h
SVT_DLLPUBLIC
#define SVT_DLLPUBLIC
Definition:
svtdllapi.h:27
SwLabelType::Draw
@ Draw
SwTOOElements::Math
@ Math
SwTOOElements::Calc
@ Calc
ucbhelper.hxx
INetProtocol::File
@ File
vclenum.hxx
Generated on Sun Jul 30 2023 04:42:51 for LibreOffice Module svtools (master) by
1.9.3