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
31547837
Kaydet (Commit)
31547837
authored
Mar 19, 2004
tarafından
Oliver Bolte
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS qadev16 (1.4.2); FILE MERGED
2004/02/11 11:42:27 sw 1.4.2.1: #i23469#
üst
e3860ef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
23 deletions
+45
-23
SvxUnoNumberingRules.java
qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.java
+45
-23
No files found.
qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.java
Dosyayı görüntüle @
31547837
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: SvxUnoNumberingRules.java,v $
*
* $Revision: 1.
4
$
* $Revision: 1.
5
$
*
* last change:$Date: 2004-0
1-05 19:52:25
$
* last change:$Date: 2004-0
3-19 14:37:50
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -58,51 +58,72 @@
*
*
************************************************************************/
package
mod
.
_svx
;
import
com.sun.star.beans.Property
;
import
com.sun.star.container.XIndexAccess
;
import
com.sun.star.lang.XComponent
;
import
com.sun.star.lang.XMultiServiceFactory
;
import
com.sun.star.uno.Exception
;
import
com.sun.star.uno.UnoRuntime
;
import
com.sun.star.uno.XInterface
;
import
java.io.PrintWriter
;
import
lib.StatusException
;
import
lib.TestCase
;
import
lib.TestEnvironment
;
import
lib.TestParameters
;
import
util.DrawTools
;
import
com.sun.star.lang.XComponent
;
import
com.sun.star.lang.XMultiServiceFactory
;
import
com.sun.star.uno.Exception
;
import
com.sun.star.uno.UnoRuntime
;
import
com.sun.star.uno.XInterface
;
public
class
SvxUnoNumberingRules
extends
TestCase
{
XComponent
xDrawDoc
;
protected
void
initialize
(
TestParameters
tParam
,
PrintWriter
log
)
{
log
.
println
(
"creating a drawdoc"
);
xDrawDoc
=
DrawTools
.
createDrawDoc
((
XMultiServiceFactory
)
tParam
.
getMSF
());
protected
void
initialize
(
TestParameters
tParam
,
PrintWriter
log
)
{
log
.
println
(
"creating a drawdoc"
);
xDrawDoc
=
DrawTools
.
createDrawDoc
(
(
XMultiServiceFactory
)
tParam
.
getMSF
());
}
protected
TestEnvironment
createTestEnvironment
(
TestParameters
tParam
,
PrintWriter
log
)
{
XMultiServiceFactory
docMSF
=
(
XMultiServiceFactory
)
UnoRuntime
.
queryInterface
(
XMultiServiceFactory
.
class
,
xDrawDoc
);
PrintWriter
log
)
{
XMultiServiceFactory
docMSF
=
(
XMultiServiceFactory
)
UnoRuntime
.
queryInterface
(
XMultiServiceFactory
.
class
,
xDrawDoc
);
XInterface
oObj
=
null
;
try
{
XInterface
xInt
=
(
XInterface
)
docMSF
.
createInstance
(
"com.sun.star.text.NumberingRules"
);
TestEnvironment
tEnv
=
new
TestEnvironment
(
xInt
);
return
tEnv
;
oObj
=
(
XInterface
)
docMSF
.
createInstance
(
"com.sun.star.text.NumberingRules"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Unexpected exception"
,
e
);
}
TestEnvironment
tEnv
=
new
TestEnvironment
(
oObj
);
log
.
println
(
"Implementationname: "
+
util
.
utils
.
getImplName
(
oObj
));
Object
NewRules
=
null
;
try
{
XIndexAccess
xIA
=
(
XIndexAccess
)
UnoRuntime
.
queryInterface
(
XIndexAccess
.
class
,
oObj
);
NewRules
=
xIA
.
getByIndex
(
2
);
}
catch
(
com
.
sun
.
star
.
lang
.
IndexOutOfBoundsException
e
)
{
log
.
println
(
"Couldn't get new Rules for XIndexReplace"
);
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
log
.
println
(
"Couldn't get new Rules for XIndexReplace"
);
}
tEnv
.
addObjRelation
(
"INSTANCE1"
,
NewRules
);
return
tEnv
;
}
protected
void
cleanup
(
TestParameters
tParam
,
PrintWriter
log
)
{
log
.
println
(
" disposing xDrawDoc "
);
protected
void
cleanup
(
TestParameters
tParam
,
PrintWriter
log
)
{
log
.
println
(
" disposing xDrawDoc "
);
util
.
DesktopTools
.
closeDoc
(
xDrawDoc
);
}
}
}
\ No newline at end of file
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