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
adfc96f3
Kaydet (Commit)
adfc96f3
authored
May 17, 2006
tarafından
Vladimir Glazounov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS qadev26 (1.7.4); FILE MERGED
2006/03/24 13:53:43 sw 1.7.4.1: #i22890#
üst
02a43bdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
9 deletions
+35
-9
SdUnoPresView.java
qadevOOo/tests/java/mod/_sd/SdUnoPresView.java
+35
-9
No files found.
qadevOOo/tests/java/mod/_sd/SdUnoPresView.java
Dosyayı görüntüle @
adfc96f3
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: SdUnoPresView.java,v $
*
* $Revision: 1.
7
$
* $Revision: 1.
8
$
*
* last change: $Author:
kz $ $Date: 2005-11-02 18:14:16
$
* last change: $Author:
vg $ $Date: 2006-05-17 13:39:19
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -36,6 +36,7 @@
package
mod
.
_sd
;
import
java.io.PrintWriter
;
import
java.util.Comparator
;
import
lib.StatusException
;
import
lib.TestCase
;
...
...
@@ -188,8 +189,11 @@ public class SdUnoPresView extends TestCase {
oDrawPage
=
(
XDrawPage
)
AnyConverter
.
toObject
(
new
Type
(
XDrawPage
.
class
),
oDPi
.
getByIndex
(
0
));
the_pages
.
insertNewByIndex
(
0
);
secondDrawPage
=
(
XDrawPage
)
AnyConverter
.
toObject
(
new
Type
(
XDrawPage
.
class
),
oDPi
.
getByIndex
(
1
));
the_pages
.
insertNewByIndex
(
0
);
the_pages
.
insertNewByIndex
(
0
);
the_pages
.
insertNewByIndex
(
0
);
secondDrawPage
=
(
XDrawPage
)
AnyConverter
.
toObject
(
new
Type
(
XDrawPage
.
class
),
oDPi
.
getByIndex
(
3
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't get DrawPage"
,
e
);
...
...
@@ -206,11 +210,14 @@ public class SdUnoPresView extends TestCase {
XShapes
oShapes
=
(
XShapes
)
UnoRuntime
.
queryInterface
(
XShapes
.
class
,
oDrawPage
);
XShape
shape1
=
SOF
.
createShape
(
xImpressDoc
,
3000
,
4500
,
15000
,
1000
,
"Ellipse"
);
XShape
shape2
=
SOF
.
createShape
(
xImpressDoc
,
5000
,
3500
,
7500
,
5000
,
"Rectangle"
);
oShapes
.
add
(
shape1
);
oShapes
.
add
(
shape2
);
oShapes
=
(
XShapes
)
UnoRuntime
.
queryInterface
(
XShapes
.
class
,
secondDrawPage
);
shape1
=
SOF
.
createShape
(
xImpressDoc
,
3000
,
4500
,
15000
,
1000
,
"Ellipse"
);
oShapes
.
add
(
shape1
);
XModel
aModel
=
(
XModel
)
UnoRuntime
.
queryInterface
(
XModel
.
class
,
xImpressDoc
);
...
...
@@ -230,11 +237,30 @@ public class SdUnoPresView extends TestCase {
tEnv
.
addObjRelation
(
"XWindow.AnotherWindow"
,
anotherWindow
);
}
tEnv
.
addObjRelation
(
"Selections"
,
new
Object
[]
{
oDrawPage
,
secondDrawPage
});
tEnv
.
addObjRelation
(
"Comparer"
,
new
Comparator
()
{
public
int
compare
(
Object
o1
,
Object
o2
)
{
XIndexAccess
indAc1
=
(
XIndexAccess
)
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
o1
);
XIndexAccess
indAc2
=
(
XIndexAccess
)
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
o2
);
if
(
indAc1
==
null
||
indAc2
==
null
)
return
-
1
;
if
(
indAc1
.
getCount
()
==
indAc2
.
getCount
())
{
return
0
;
}
return
1
;
}
public
boolean
equals
(
Object
obj
)
{
return
compare
(
this
,
obj
)
==
0
;
}
});
tEnv
.
addObjRelation
(
"FirstPage"
,
oDrawPage
);
tEnv
.
addObjRelation
(
"SecondPage"
,
secondDrawPage
);
tEnv
.
addObjRelation
(
"First"
,
shape1
);
tEnv
.
addObjRelation
(
"Second"
,
shape2
);
//
tEnv.addObjRelation("First", shape1);
//
tEnv.addObjRelation("Second", shape2);
tEnv
.
addObjRelation
(
"Pages"
,
the_pages
);
...
...
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