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
360f16b4
Kaydet (Commit)
360f16b4
authored
Ock 31, 2005
tarafından
Rüdiger Timm
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS sdksample (1.3.124); FILE MERGED
2004/06/30 09:10:26 jsc 1.3.124.1: #i29308# use of new UNO features
üst
fd489e99
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
37 deletions
+32
-37
TestComponentA.java
...elopersGuide/Components/JavaComponent/TestComponentA.java
+3
-6
TestComponentB.java
...elopersGuide/Components/JavaComponent/TestComponentB.java
+3
-6
TestServiceProvider.java
...rsGuide/Components/JavaComponent/TestServiceProvider.java
+26
-25
No files found.
odk/examples/DevelopersGuide/Components/JavaComponent/TestComponentA.java
Dosyayı görüntüle @
360f16b4
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: TestComponentA.java,v $
*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
*
* last change: $Author:
hr $ $Date: 2003-06-30 15:14:13
$
* last change: $Author:
rt $ $Date: 2005-01-31 16:15:10
$
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
...
...
@@ -37,9 +37,6 @@
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*************************************************************************/
package
JavaComp
;
import
com.sun.star.lang.XMultiServiceFactory
;
import
com.sun.star.lib.uno.helper.WeakBase
;
import
com.sun.star.lang.XServiceInfo
;
...
...
@@ -48,7 +45,7 @@ import com.sun.star.uno.Type;
// TestComponentA use the implementation helper WeakBase
public
class
TestComponentA
extends
WeakBase
implements
XServiceInfo
,
XSomethingA
{
static
final
String
__serviceName
=
"
JavaTestComponent
A"
;
static
final
String
__serviceName
=
"
com.sun.star.test.Something
A"
;
static
byte
[]
_implementationId
;
...
...
odk/examples/DevelopersGuide/Components/JavaComponent/TestComponentB.java
Dosyayı görüntüle @
360f16b4
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: TestComponentB.java,v $
*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
*
* last change: $Author:
hr $ $Date: 2003-06-30 15:14
:25 $
* last change: $Author:
rt $ $Date: 2005-01-31 16:15
:25 $
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
...
...
@@ -37,9 +37,6 @@
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*************************************************************************/
package
JavaComp
;
import
com.sun.star.uno.XComponentContext
;
import
com.sun.star.lang.XTypeProvider
;
import
com.sun.star.lang.XServiceInfo
;
...
...
@@ -50,7 +47,7 @@ import com.sun.star.uno.Type;
// for demonstration. More convenient is to use the impelmentation WeakBase or
// ComponentBase, see implementation of TestComponentA.
public
class
TestComponentB
implements
XTypeProvider
,
XServiceInfo
,
XSomethingB
{
static
final
String
__serviceName
=
"
JavaTestComponent
B"
;
static
final
String
__serviceName
=
"
com.sun.star.test.Something
B"
;
static
byte
[]
_implementationId
;
private
XComponentContext
context
;
...
...
odk/examples/DevelopersGuide/Components/JavaComponent/TestServiceProvider.java
Dosyayı görüntüle @
360f16b4
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: TestServiceProvider.java,v $
*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
*
* last change: $Author:
hr $ $Date: 2003-06-30 15:14:37
$
* last change: $Author:
rt $ $Date: 2005-01-31 16:15:49
$
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
...
...
@@ -37,9 +37,6 @@
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*************************************************************************/
package
JavaComp
;
import
com.sun.star.lang.XMultiServiceFactory
;
import
com.sun.star.lang.XSingleServiceFactory
;
import
com.sun.star.registry.XRegistryKey
;
...
...
@@ -47,30 +44,34 @@ import com.sun.star.lang.XTypeProvider;
import
com.sun.star.lang.XServiceInfo
;
import
com.sun.star.comp.loader.FactoryHelper
;
public
class
TestServiceProvider
{
public
static
XSingleServiceFactory
__getServiceFactory
(
String
implName
,
XMultiServiceFactory
multiFactory
,
XRegistryKey
regKey
)
{
XSingleServiceFactory
xSingleServiceFactory
=
null
;
public
static
XSingleServiceFactory
__getServiceFactory
(
String
implName
,
XMultiServiceFactory
multiFactory
,
XRegistryKey
regKey
)
{
XSingleServiceFactory
xSingleServiceFactory
=
null
;
if
(
implName
.
equals
(
TestComponentA
.
class
.
getName
())
)
xSingleServiceFactory
=
FactoryHelper
.
getServiceFactory
(
TestComponentA
.
class
,
TestComponentA
.
__serviceName
,
multiFactory
,
regKey
);
else
if
(
implName
.
equals
(
TestComponentB
.
class
.
getName
()))
xSingleServiceFactory
=
FactoryHelper
.
getServiceFactory
(
TestComponentB
.
class
,
TestComponentB
.
__serviceName
,
multiFactory
,
regKey
);
return
xSingleServiceFactory
;
}
if
(
implName
.
equals
(
TestComponentA
.
class
.
getName
())
)
xSingleServiceFactory
=
FactoryHelper
.
getServiceFactory
(
TestComponentA
.
class
,
TestComponentA
.
__serviceName
,
multiFactory
,
regKey
);
else
if
(
implName
.
equals
(
TestComponentB
.
class
.
getName
()))
xSingleServiceFactory
=
FactoryHelper
.
getServiceFactory
(
TestComponentB
.
class
,
TestComponentB
.
__serviceName
,
multiFactory
,
regKey
);
return
xSingleServiceFactory
;
}
public
static
boolean
__writeRegistryServiceInfo
(
XRegistryKey
regKey
){
boolean
bregA
=
FactoryHelper
.
writeRegistryServiceInfo
(
TestComponentA
.
class
.
getName
(),
TestComponentA
.
__serviceName
,
regKey
);
boolean
bregB
=
FactoryHelper
.
writeRegistryServiceInfo
(
TestComponentB
.
class
.
getName
(),
TestComponentB
.
__serviceName
,
regKey
);
return
bregA
&&
bregB
;
}
public
static
boolean
__writeRegistryServiceInfo
(
XRegistryKey
regKey
){
boolean
bregA
=
FactoryHelper
.
writeRegistryServiceInfo
(
TestComponentA
.
class
.
getName
(),
TestComponentA
.
__serviceName
,
regKey
);
boolean
bregB
=
FactoryHelper
.
writeRegistryServiceInfo
(
TestComponentB
.
class
.
getName
(),
TestComponentB
.
__serviceName
,
regKey
);
return
bregA
&&
bregB
;
}
}
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