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
45cea9c2
Kaydet (Commit)
45cea9c2
authored
Ara 16, 2004
tarafından
Kurt Zenker
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS jl15 (1.2.20); FILE MERGED
2004/11/24 12:43:33 jl 1.2.20.1: #i37225#
üst
9e200fb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
2 deletions
+41
-2
vendorlist.cxx
jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
+41
-2
No files found.
jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
Dosyayı görüntüle @
45cea9c2
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: vendorlist.cxx,v $
* $RCSfile: vendorlist.cxx,v $
*
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
*
* last change: $Author:
hr $ $Date: 2004-07-23 11:53:22
$
* last change: $Author:
kz $ $Date: 2004-12-16 11:46:34
$
*
*
* 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
...
@@ -62,11 +62,19 @@
...
@@ -62,11 +62,19 @@
#include "vendorlist.hxx"
#include "vendorlist.hxx"
#include "sunjre.hxx"
#include "sunjre.hxx"
#include "otherjre.hxx"
#include "otherjre.hxx"
#include "osl/thread.h"
#include <stdio.h>
using
namespace
com
::
sun
::
star
::
uno
;
using
namespace
rtl
;
namespace
jfw_plugin
namespace
jfw_plugin
{
{
/* Note: The vendor strings must be UTF-8. For example, if
the string contains an a umlaut then it must be expressed
by "\xXX\xXX"
*/
BEGIN_VENDOR_MAP
()
BEGIN_VENDOR_MAP
()
VENDOR_MAP_ENTRY
(
"Sun Microsystems Inc."
,
SunInfo
)
VENDOR_MAP_ENTRY
(
"Sun Microsystems Inc."
,
SunInfo
)
VENDOR_MAP_ENTRY
(
"IBM Corporation"
,
OtherInfo
)
VENDOR_MAP_ENTRY
(
"IBM Corporation"
,
OtherInfo
)
...
@@ -75,4 +83,35 @@ BEGIN_VENDOR_MAP()
...
@@ -75,4 +83,35 @@ BEGIN_VENDOR_MAP()
END_VENDOR_MAP
()
END_VENDOR_MAP
()
Sequence
<
OUString
>
getVendorNames
()
{
const
size_t
count
=
sizeof
(
gVendorMap
)
/
sizeof
(
VendorSupportMapEntry
)
-
1
;
OUString
arNames
[
count
];
for
(
sal_Int32
pos
=
0
;
pos
<
count
;
++
pos
)
{
OString
sVendor
(
gVendorMap
[
pos
].
sVendorName
);
arNames
[
pos
]
=
OStringToOUString
(
sVendor
,
RTL_TEXTENCODING_UTF8
);
}
return
Sequence
<
OUString
>
(
arNames
,
count
);
}
bool
isVendorSupported
(
const
rtl
::
OUString
&
sVendor
)
{
Sequence
<
OUString
>
seqNames
=
getVendorNames
();
const
OUString
*
arNames
=
seqNames
.
getConstArray
();
sal_Int32
count
=
seqNames
.
getLength
();
for
(
int
i
=
0
;
i
<
count
;
i
++
)
{
if
(
sVendor
.
equals
(
arNames
[
i
]))
return
true
;
}
#if OSL_DEBUG_LEVEL >= 2
OString
sVendorName
=
OUStringToOString
(
sVendor
,
osl_getThreadTextEncoding
());
fprintf
(
stderr
,
"[Java frameworksunjavaplugin.so]sunjavaplugin does not support vendor: %s.
\n
"
,
sVendorName
.
getStr
());
#endif
return
false
;
}
}
}
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