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
6de1d613
Kaydet (Commit)
6de1d613
authored
Ock 31, 2003
tarafından
Stephan Wunderlich
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CHG: using AnyConverter instead of simple cast
üst
a1501051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
ScDDELinkObj.java
qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java
+21
-10
No files found.
qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java
Dosyayı görüntüle @
6de1d613
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScDDELinkObj.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-01-
27 18:16:35
$
* last change:$Date: 2003-01-
31 15:53:07
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -80,6 +80,9 @@ import lib.TestEnvironment;
import
lib.TestParameters
;
import
util.SOfficeFactory
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
/**
* Test for object which is represented by service
* <code>com.sun.star.sheet.DDELink</code>. <p>
...
...
@@ -161,8 +164,7 @@ public class ScDDELinkObj extends TestCase {
* @see com.sun.star.frame.Desktop
* @see com.sun.star.sheet.DDELink
*/
public
synchronized
TestEnvironment
createTestEnvironment
(
TestParameters
Param
,
PrintWriter
log
)
throws
StatusException
{
protected
synchronized
TestEnvironment
createTestEnvironment
(
TestParameters
Param
,
PrintWriter
log
)
{
Object
oInterface
=
null
;
XInterface
oObj
=
null
;
...
...
@@ -214,13 +216,17 @@ public class ScDDELinkObj extends TestCase {
XIndexAccess
oIndexAccess
=
(
XIndexAccess
)
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
xSpreadsheets
);
try
{
oSheet
=
(
XSpreadsheet
)
oIndexAccess
.
getByIndex
(
0
);
oSheet
=
(
XSpreadsheet
)
AnyConverter
.
toObject
(
new
Type
(
XSpreadsheet
.
class
),
oIndexAccess
.
getByIndex
(
0
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IndexOutOfBoundsException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
}
log
.
println
(
"filling some cells"
);
...
...
@@ -244,13 +250,14 @@ public class ScDDELinkObj extends TestCase {
// Getting named ranges.
XPropertySet
docProps
=
(
XPropertySet
)
UnoRuntime
.
queryInterface
(
XPropertySet
.
class
,
xSheetDoc
);
XNameAccess
links
=
(
XNameAccess
)
UnoRuntime
.
queryInterface
(
XNameAccess
.
class
,
docProps
.
getPropertyValue
(
"DDELinks"
)
);
XNameAccess
links
=
(
XNameAccess
)
AnyConverter
.
toObject
(
new
Type
(
XNameAccess
.
class
),
UnoRuntime
.
queryInterface
(
XNameAccess
.
class
,
docProps
.
getPropertyValue
(
"DDELinks"
)));
String
[]
linkNames
=
links
.
getElementNames
();
oObj
=
(
XInterface
)
links
.
getByName
(
linkNames
[
0
]);
oObj
=
(
XInterface
)
AnyConverter
.
toObject
(
new
Type
(
XInterface
.
class
),
links
.
getByName
(
linkNames
[
0
]));
log
.
println
(
"Creating object - "
+
((
oObj
==
null
)
?
"FAILED"
:
"OK"
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
...
...
@@ -265,6 +272,10 @@ public class ScDDELinkObj extends TestCase {
e
.
printStackTrace
(
log
)
;
throw
new
StatusException
(
"Error getting test object from spreadsheet document"
,
e
)
;
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
e
)
{
e
.
printStackTrace
(
log
)
;
throw
new
StatusException
(
"Error getting test object from spreadsheet document"
,
e
)
;
}
TestEnvironment
tEnv
=
new
TestEnvironment
(
oObj
);
...
...
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