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
a4a61e52
Kaydet (Commit)
a4a61e52
authored
Şub 03, 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
6de1d613
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
ScDDELinksObj.java
qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java
+17
-6
No files found.
qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java
Dosyayı görüntüle @
a4a61e52
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: ScDDELinksObj.java,v $
* $RCSfile: ScDDELinksObj.java,v $
*
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
*
* last change:$Date: 2003-0
1-27 18:16:34
$
* last change:$Date: 2003-0
2-03 10:29:18
$
*
*
* 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
...
@@ -80,6 +80,9 @@ import lib.TestParameters;
...
@@ -80,6 +80,9 @@ import lib.TestParameters;
import
util.SOfficeFactory
;
import
util.SOfficeFactory
;
import
util.utils
;
import
util.utils
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
/**
/**
* Test for object which is represented by service
* Test for object which is represented by service
* <code>com.sun.star.sheet.DDELinks</code>. <p>
* <code>com.sun.star.sheet.DDELinks</code>. <p>
...
@@ -143,8 +146,7 @@ public class ScDDELinksObj extends TestCase {
...
@@ -143,8 +146,7 @@ public class ScDDELinksObj extends TestCase {
* @see com.sun.star.frame.Desktop
* @see com.sun.star.frame.Desktop
* @see com.sun.star.sheet.DDELinks
* @see com.sun.star.sheet.DDELinks
*/
*/
public
synchronized
TestEnvironment
createTestEnvironment
(
protected
synchronized
TestEnvironment
createTestEnvironment
(
TestParameters
Param
,
PrintWriter
log
)
{
TestParameters
Param
,
PrintWriter
log
)
throws
StatusException
{
Object
oInterface
=
null
;
Object
oInterface
=
null
;
XInterface
oObj
=
null
;
XInterface
oObj
=
null
;
...
@@ -192,13 +194,17 @@ public class ScDDELinksObj extends TestCase {
...
@@ -192,13 +194,17 @@ public class ScDDELinksObj extends TestCase {
XIndexAccess
oIndexAccess
=
(
XIndexAccess
)
XIndexAccess
oIndexAccess
=
(
XIndexAccess
)
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
xSpreadsheets
);
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
xSpreadsheets
);
try
{
try
{
oSheet
=
(
XSpreadsheet
)
oIndexAccess
.
getByIndex
(
0
);
oSheet
=
(
XSpreadsheet
)
AnyConverter
.
toObject
(
new
Type
(
XSpreadsheet
.
class
),
oIndexAccess
.
getByIndex
(
0
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
e
.
printStackTrace
(
log
);
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IndexOutOfBoundsException
e
)
{
}
catch
(
com
.
sun
.
star
.
lang
.
IndexOutOfBoundsException
e
)
{
e
.
printStackTrace
(
log
);
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get a spreadsheet"
,
e
);
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
);
}
}
testdoc
=
utils
.
getFullTestDocName
(
"ScDDELinksObj.sdc"
);
testdoc
=
utils
.
getFullTestDocName
(
"ScDDELinksObj.sdc"
);
...
@@ -222,7 +228,8 @@ public class ScDDELinksObj extends TestCase {
...
@@ -222,7 +228,8 @@ public class ScDDELinksObj extends TestCase {
// Getting named ranges.
// Getting named ranges.
XPropertySet
docProps
=
(
XPropertySet
)
XPropertySet
docProps
=
(
XPropertySet
)
UnoRuntime
.
queryInterface
(
XPropertySet
.
class
,
xSheetDoc
);
UnoRuntime
.
queryInterface
(
XPropertySet
.
class
,
xSheetDoc
);
oObj
=
(
XInterface
)
docProps
.
getPropertyValue
(
"DDELinks"
);
oObj
=
(
XInterface
)
AnyConverter
.
toObject
(
new
Type
(
XInterface
.
class
),
docProps
.
getPropertyValue
(
"DDELinks"
));
log
.
println
(
"Creating object - "
+
log
.
println
(
"Creating object - "
+
((
oObj
==
null
)
?
"FAILED"
:
"OK"
));
((
oObj
==
null
)
?
"FAILED"
:
"OK"
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
...
@@ -233,6 +240,10 @@ public class ScDDELinksObj extends TestCase {
...
@@ -233,6 +240,10 @@ public class ScDDELinksObj extends TestCase {
e
.
printStackTrace
(
log
)
;
e
.
printStackTrace
(
log
)
;
throw
new
StatusException
(
throw
new
StatusException
(
"Error getting test object from spreadsheet document"
,
e
)
;
"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
);
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