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
0105ee23
Kaydet (Commit)
0105ee23
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
05a3fdd0
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
87 additions
and
31 deletions
+87
-31
ScIndexEnumeration_CellAnnotationsEnumeration.java
...od/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java
+10
-3
ScIndexEnumeration_CellAreaLinksEnumeration.java
.../mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java
+17
-9
ScIndexEnumeration_DDELinksEnumeration.java
.../java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java
+18
-6
ScIndexEnumeration_DataPilotFieldsEnumeration.java
...od/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration.java
+10
-3
ScIndexEnumeration_DataPilotTablesEnumeration.java
...od/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java
+10
-3
ScIndexEnumeration_DatabaseRangesEnumeration.java
...mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java
+12
-4
ScIndexEnumeration_NamedRangesEnumeration.java
...va/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java
+10
-3
No files found.
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java
Dosyayı görüntüle @
0105ee23
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScIndexEnumeration_CellAnnotationsEnumeration.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-0
1-27 18:16:2
7 $
* last change:$Date: 2003-0
2-03 12:49:0
7 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -78,6 +78,9 @@ import lib.TestEnvironment;
import
lib.TestParameters
;
import
util.SOfficeFactory
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
public
class
ScIndexEnumeration_CellAnnotationsEnumeration
extends
TestCase
{
XSpreadsheetDocument
xSheetDoc
=
null
;
...
...
@@ -122,13 +125,17 @@ public class ScIndexEnumeration_CellAnnotationsEnumeration 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"
);
...
...
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java
Dosyayı görüntüle @
0105ee23
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScIndexEnumeration_CellAreaLinksEnumeration.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-0
1-27 18:16:27
$
* last change:$Date: 2003-0
2-03 12:52:33
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -76,6 +76,9 @@ import lib.TestEnvironment;
import
lib.TestParameters
;
import
util.SOfficeFactory
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
public
class
ScIndexEnumeration_CellAreaLinksEnumeration
extends
TestCase
{
XSpreadsheetDocument
xSheetDoc
=
null
;
...
...
@@ -118,7 +121,8 @@ public class ScIndexEnumeration_CellAreaLinksEnumeration extends TestCase {
// creation of testobject here
XPropertySet
props
=
(
XPropertySet
)
UnoRuntime
.
queryInterface
(
XPropertySet
.
class
,
xSheetDoc
);
oObj
=
(
XInterface
)
props
.
getPropertyValue
(
"AreaLinks"
)
;
oObj
=
(
XInterface
)
AnyConverter
.
toObject
(
new
Type
(
XInterface
.
class
),
props
.
getPropertyValue
(
"AreaLinks"
))
;
XAreaLinks
links
=
null
;
// adding one link into collection (for best testing)
...
...
@@ -138,13 +142,17 @@ public class ScIndexEnumeration_CellAreaLinksEnumeration extends TestCase {
tEnv
.
addObjRelation
(
"ENUM"
,
ea
);
}
catch
(
com
.
sun
.
star
.
beans
.
UnknownPropertyException
e
)
{
log
.
println
(
"Exception occured while creating test Object."
)
;
e
.
printStackTrace
(
log
)
;
throw
new
StatusException
(
"Couldn't create test object"
,
e
);
log
.
println
(
"Exception occured while creating test Object."
)
;
e
.
printStackTrace
(
log
)
;
throw
new
StatusException
(
"Couldn't create test object"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
log
.
println
(
"Exception occured while creating test Object."
)
;
e
.
printStackTrace
(
log
)
;
throw
new
StatusException
(
"Couldn't create test object"
,
e
);
log
.
println
(
"Exception occured while creating test Object."
)
;
e
.
printStackTrace
(
log
)
;
throw
new
StatusException
(
"Couldn't create test object"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
e
)
{
log
.
println
(
"Exception occured while creating test Object."
)
;
e
.
printStackTrace
(
log
)
;
throw
new
StatusException
(
"Couldn't create test object"
,
e
);
}
return
tEnv
;
...
...
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java
Dosyayı görüntüle @
0105ee23
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScIndexEnumeration_DDELinksEnumeration.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-0
1-27 18:16:26
$
* last change:$Date: 2003-0
2-03 12:56:10
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -81,6 +81,9 @@ import lib.TestParameters;
import
util.SOfficeFactory
;
import
util.utils
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
public
class
ScIndexEnumeration_DDELinksEnumeration
extends
TestCase
{
XSpreadsheetDocument
xSheetDoc
=
null
;
XComponent
oDoc
=
null
;
...
...
@@ -161,13 +164,17 @@ public class ScIndexEnumeration_DDELinksEnumeration 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
);
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
);
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"
);
...
...
@@ -191,7 +198,8 @@ public class ScIndexEnumeration_DDELinksEnumeration extends TestCase {
// Getting named ranges.
XPropertySet
docProps
=
(
XPropertySet
)
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 - "
+
((
oObj
==
null
)
?
"FAILED"
:
"OK"
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
...
...
@@ -202,6 +210,10 @@ public class ScIndexEnumeration_DDELinksEnumeration 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
)
;
}
XEnumerationAccess
ea
=
(
XEnumerationAccess
)
...
...
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration.java
Dosyayı görüntüle @
0105ee23
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScIndexEnumeration_DataPilotFieldsEnumeration.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-0
1-27 18:16:26
$
* last change:$Date: 2003-0
2-03 12:58:58
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -81,6 +81,9 @@ import lib.TestEnvironment;
import
lib.TestParameters
;
import
util.SOfficeFactory
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
public
class
ScIndexEnumeration_DataPilotFieldsEnumeration
extends
TestCase
{
XSpreadsheetDocument
xSheetDoc
=
null
;
...
...
@@ -130,13 +133,17 @@ public class ScIndexEnumeration_DataPilotFieldsEnumeration 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
);
}
try
{
...
...
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java
Dosyayı görüntüle @
0105ee23
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScIndexEnumeration_DataPilotTablesEnumeration.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-0
1-27 18:16:26
$
* last change:$Date: 2003-0
2-03 13:01:15
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -81,6 +81,9 @@ import lib.TestEnvironment;
import
lib.TestParameters
;
import
util.SOfficeFactory
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
public
class
ScIndexEnumeration_DataPilotTablesEnumeration
extends
TestCase
{
XSpreadsheetDocument
xSheetDoc
=
null
;
...
...
@@ -130,13 +133,17 @@ public class ScIndexEnumeration_DataPilotTablesEnumeration 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
);
}
try
{
...
...
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java
Dosyayı görüntüle @
0105ee23
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScIndexEnumeration_DatabaseRangesEnumeration.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-0
1-27 18:16:25
$
* last change:$Date: 2003-0
2-03 13:04:09
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -76,6 +76,9 @@ import lib.TestEnvironment;
import
lib.TestParameters
;
import
util.SOfficeFactory
;
import
com.sun.star.uno.AnyConverter
;
import
com.sun.star.uno.Type
;
public
class
ScIndexEnumeration_DatabaseRangesEnumeration
extends
TestCase
{
XSpreadsheetDocument
xSheetDoc
=
null
;
...
...
@@ -122,8 +125,9 @@ public class ScIndexEnumeration_DatabaseRangesEnumeration extends TestCase {
XDatabaseRanges
dbRanges
=
null
;
try
{
dbRanges
=
(
XDatabaseRanges
)
docProps
.
getPropertyValue
(
"DatabaseRanges"
);
dbRanges
=
(
XDatabaseRanges
)
AnyConverter
.
toObject
(
new
Type
(
XDatabaseRanges
.
class
),
docProps
.
getPropertyValue
(
"DatabaseRanges"
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
e
.
printStackTrace
(
log
)
;
throw
new
StatusException
(
...
...
@@ -132,6 +136,10 @@ public class ScIndexEnumeration_DatabaseRangesEnumeration 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
)
;
}
log
.
println
(
"Adding at least one element for ElementAccess interface"
);
...
...
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java
Dosyayı görüntüle @
0105ee23
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: ScIndexEnumeration_NamedRangesEnumeration.java,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change:$Date: 2003-0
1-27 18:16
:24 $
* last change:$Date: 2003-0
2-03 13:07
:24 $
*
* 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
;
public
class
ScIndexEnumeration_NamedRangesEnumeration
extends
TestCase
{
XSpreadsheetDocument
xSheetDoc
=
null
;
...
...
@@ -124,13 +127,17 @@ public class ScIndexEnumeration_NamedRangesEnumeration extends TestCase {
XIndexAccess
oIndexSheets
=
(
XIndexAccess
)
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
oSheets
);
try
{
oSheet
=
(
XSpreadsheet
)
oIndexSheets
.
getByIndex
(
0
);
oSheet
=
(
XSpreadsheet
)
AnyConverter
.
toObject
(
new
Type
(
XSpreadsheet
.
class
),
oIndexSheets
.
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
);
}
// Getting named ranges.
...
...
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