Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4a4c6b53
Kaydet (Commit)
4a4c6b53
authored
Haz 04, 2003
tarafından
Vladimir Glazounov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS vcl10 (1.2.108); FILE MERGED
2003/05/19 13:51:47 pl 1.2.108.1: #109337# export mimetype via model
üst
42e9ac66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
13 deletions
+31
-13
plmodel.cxx
extensions/source/plugin/base/plmodel.cxx
+31
-13
No files found.
extensions/source/plugin/base/plmodel.cxx
Dosyayı görüntüle @
4a4c6b53
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: plmodel.cxx,v $
* $RCSfile: plmodel.cxx,v $
*
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
*
* last change: $Author:
pl $ $Date: 2001-09-11 12:06:16
$
* last change: $Author:
vg $ $Date: 2003-06-04 11:35:23
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -120,7 +120,8 @@ Sequence< ::rtl::OUString > PluginModel::getSupportedServiceNames_Static(void) t
...
@@ -120,7 +120,8 @@ Sequence< ::rtl::OUString > PluginModel::getSupportedServiceNames_Static(void) t
}
}
static
char
*
aCreationURL
=
"URL"
;
static
const
char
*
aCreationURL
=
"URL"
;
static
const
char
*
aMime
=
"TYPE"
;
static
::
osl
::
Mutex
aPropertyMutex
;
static
::
osl
::
Mutex
aPropertyMutex
;
...
@@ -128,7 +129,12 @@ static ::com::sun::star::beans::Property aProps[] =
...
@@ -128,7 +129,12 @@ static ::com::sun::star::beans::Property aProps[] =
{
{
::
com
::
sun
::
star
::
beans
::
Property
(
::
com
::
sun
::
star
::
beans
::
Property
(
::
rtl
::
OUString
::
createFromAscii
(
aCreationURL
),
::
rtl
::
OUString
::
createFromAscii
(
aCreationURL
),
-
1
,
1
,
::
getCppuType
((
const
::
rtl
::
OUString
*
)
0
),
::
com
::
sun
::
star
::
beans
::
PropertyAttribute
::
BOUND
),
::
com
::
sun
::
star
::
beans
::
Property
(
::
rtl
::
OUString
::
createFromAscii
(
aMime
),
2
,
::
getCppuType
((
const
::
rtl
::
OUString
*
)
0
),
::
getCppuType
((
const
::
rtl
::
OUString
*
)
0
),
::
com
::
sun
::
star
::
beans
::
PropertyAttribute
::
BOUND
)
::
com
::
sun
::
star
::
beans
::
PropertyAttribute
::
BOUND
)
};
};
...
@@ -140,11 +146,12 @@ PluginModel::PluginModel() :
...
@@ -140,11 +146,12 @@ PluginModel::PluginModel() :
{
{
}
}
PluginModel
::
PluginModel
(
const
::
rtl
::
OUString
&
rURL
)
:
PluginModel
::
PluginModel
(
const
::
rtl
::
OUString
&
rURL
,
const
rtl
::
OUString
&
rMimeType
)
:
BroadcasterHelperHolder
(
aPropertyMutex
),
BroadcasterHelperHolder
(
aPropertyMutex
),
OPropertySetHelper
(
m_aHelper
),
OPropertySetHelper
(
m_aHelper
),
OPropertyArrayHelper
(
aProps
,
1
),
OPropertyArrayHelper
(
aProps
,
1
),
m_aCreationURL
(
rURL
)
m_aCreationURL
(
rURL
),
m_aMimeType
(
rMimeType
)
{
{
}
}
...
@@ -169,12 +176,17 @@ sal_Bool PluginModel::convertFastPropertyValue( Any & rConvertedValue,
...
@@ -169,12 +176,17 @@ sal_Bool PluginModel::convertFastPropertyValue( Any & rConvertedValue,
sal_Int32
nHandle
,
sal_Int32
nHandle
,
const
Any
&
rValue
)
throw
()
const
Any
&
rValue
)
throw
()
{
{
if
(
rValue
.
getValueTypeClass
()
==
typelib_TypeClass_STRING
)
if
(
nHandle
==
1
||
nHandle
==
2
)
{
{
rConvertedValue
=
rValue
;
if
(
rValue
.
getValueTypeClass
()
==
typelib_TypeClass_STRING
)
rOldValue
<<=
m_aCreationURL
;
{
return
sal_True
;
rConvertedValue
=
rValue
;
if
(
nHandle
=
1
)
rOldValue
<<=
m_aCreationURL
;
else
if
(
nHandle
==
2
)
rOldValue
<<=
m_aMimeType
;
return
sal_True
;
}
}
}
return
sal_False
;
return
sal_False
;
}
}
...
@@ -186,7 +198,10 @@ void PluginModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle,
...
@@ -186,7 +198,10 @@ void PluginModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle,
if
(
rValue
.
getValueTypeClass
()
==
typelib_TypeClass_STRING
)
if
(
rValue
.
getValueTypeClass
()
==
typelib_TypeClass_STRING
)
{
{
rValue
>>=
m_aCreationURL
;
if
(
nHandle
==
1
)
rValue
>>=
m_aCreationURL
;
else
if
(
nHandle
==
2
)
rValue
>>=
m_aMimeType
;
}
}
else
else
throw
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
();
throw
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
();
...
@@ -194,7 +209,10 @@ void PluginModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle,
...
@@ -194,7 +209,10 @@ void PluginModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle,
void
PluginModel
::
getFastPropertyValue
(
Any
&
rValue
,
sal_Int32
nHandle
)
const
throw
()
void
PluginModel
::
getFastPropertyValue
(
Any
&
rValue
,
sal_Int32
nHandle
)
const
throw
()
{
{
rValue
<<=
m_aCreationURL
;
if
(
nHandle
==
1
)
rValue
<<=
m_aCreationURL
;
else
if
(
nHandle
==
2
)
rValue
<<=
m_aMimeType
;
}
}
//---- ::com::sun::star::lang::XComponent ----------------------------------------------------------------------------------
//---- ::com::sun::star::lang::XComponent ----------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment