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
8eb9f980
Kaydet (Commit)
8eb9f980
authored
May 10, 2010
tarafından
Lars Langhans
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gfxcmp02: #159601# cleanups
üst
049d8555
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
20 deletions
+33
-20
Tolerance.java
qadevOOo/runner/graphical/Tolerance.java
+23
-0
OfficeProvider.java
qadevOOo/runner/helper/OfficeProvider.java
+10
-20
No files found.
qadevOOo/runner/graphical/Tolerance.java
0 → 100644
Dosyayı görüntüle @
8eb9f980
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package
graphical
;
/**
*
* @author ll93751
*/
public
class
Tolerance
{
private
int
m_nTolerance
;
public
Tolerance
(
int
_nAccept
)
{
m_nTolerance
=
_nAccept
;
}
public
int
getAccept
()
{
return
m_nTolerance
;
}
}
qadevOOo/runner/helper/OfficeProvider.java
Dosyayı görüntüle @
8eb9f980
...
@@ -130,9 +130,7 @@ public class OfficeProvider implements AppProvider
...
@@ -130,9 +130,7 @@ public class OfficeProvider implements AppProvider
try
try
{
{
desk
=
(
XDesktop
)
UnoRuntime
.
queryInterface
(
XDesktop
.
class
,
desk
=
UnoRuntime
.
queryInterface
(
XDesktop
.
class
,
msf
.
createInstance
(
"com.sun.star.frame.Desktop"
));
msf
.
createInstance
(
"com.sun.star.frame.Desktop"
));
}
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
ue
)
catch
(
com
.
sun
.
star
.
uno
.
Exception
ue
)
{
{
...
@@ -341,18 +339,15 @@ public class OfficeProvider implements AppProvider
...
@@ -341,18 +339,15 @@ public class OfficeProvider implements AppProvider
{
{
// Get component context
// Get component context
final
XComponentContext
xcomponentcontext
=
com
.
sun
.
star
.
comp
.
helper
.
Bootstrap
.
createInitialComponentContext
(
final
XComponentContext
xcomponentcontext
=
com
.
sun
.
star
.
comp
.
helper
.
Bootstrap
.
createInitialComponentContext
(
null
);
null
);
// initial serviceManager
// initial serviceManager
final
XMultiComponentFactory
xLocalServiceManager
=
xcomponentcontext
.
getServiceManager
();
final
XMultiComponentFactory
xLocalServiceManager
=
xcomponentcontext
.
getServiceManager
();
// create a connector, so that it can contact the office
// create a connector, so that it can contact the office
// XUnoUrlResolver urlResolver = UnoUrlResolver.create(xcomponentcontext);
// XUnoUrlResolver urlResolver = UnoUrlResolver.create(xcomponentcontext);
final
Object
xUrlResolver
=
xLocalServiceManager
.
createInstanceWithContext
(
final
Object
xUrlResolver
=
xLocalServiceManager
.
createInstanceWithContext
(
"com.sun.star.bridge.UnoUrlResolver"
,
xcomponentcontext
);
"com.sun.star.bridge.UnoUrlResolver"
,
xcomponentcontext
);
final
XUnoUrlResolver
urlResolver
=
UnoRuntime
.
queryInterface
(
XUnoUrlResolver
.
class
,
xUrlResolver
);
final
XUnoUrlResolver
urlResolver
=
(
XUnoUrlResolver
)
UnoRuntime
.
queryInterface
(
XUnoUrlResolver
.
class
,
xUrlResolver
);
final
Object
rInitialObject
=
urlResolver
.
resolve
(
connectStr
);
final
Object
rInitialObject
=
urlResolver
.
resolve
(
connectStr
);
...
@@ -363,8 +358,7 @@ public class OfficeProvider implements AppProvider
...
@@ -363,8 +358,7 @@ public class OfficeProvider implements AppProvider
debug
=
true
;
debug
=
true
;
dbg
(
"resolved url"
);
dbg
(
"resolved url"
);
xMSF
=
(
XMultiServiceFactory
)
UnoRuntime
.
queryInterface
(
xMSF
=
UnoRuntime
.
queryInterface
(
XMultiServiceFactory
.
class
,
rInitialObject
);
XMultiServiceFactory
.
class
,
rInitialObject
);
}
}
return
xMSF
;
return
xMSF
;
...
@@ -485,7 +479,7 @@ public class OfficeProvider implements AppProvider
...
@@ -485,7 +479,7 @@ public class OfficeProvider implements AppProvider
try
try
{
{
Object
quickStarter
=
msf
.
createInstance
(
"com.sun.star.office.Quickstart"
);
Object
quickStarter
=
msf
.
createInstance
(
"com.sun.star.office.Quickstart"
);
XFastPropertySet
fps
=
(
XFastPropertySet
)
UnoRuntime
.
queryInterface
(
XFastPropertySet
.
class
,
quickStarter
);
XFastPropertySet
fps
=
UnoRuntime
.
queryInterface
(
XFastPropertySet
.
class
,
quickStarter
);
fps
.
setFastPropertyValue
(
0
,
false
);
fps
.
setFastPropertyValue
(
0
,
false
);
}
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
ex
)
catch
(
com
.
sun
.
star
.
uno
.
Exception
ex
)
...
@@ -495,9 +489,7 @@ public class OfficeProvider implements AppProvider
...
@@ -495,9 +489,7 @@ public class OfficeProvider implements AppProvider
try
try
{
{
desk
=
(
XDesktop
)
UnoRuntime
.
queryInterface
(
XDesktop
.
class
,
desk
=
UnoRuntime
.
queryInterface
(
XDesktop
.
class
,
msf
.
createInstance
(
"com.sun.star.frame.Desktop"
));
msf
.
createInstance
(
"com.sun.star.frame.Desktop"
));
msf
=
null
;
msf
=
null
;
if
(
desk
!=
null
)
if
(
desk
!=
null
)
...
@@ -616,9 +608,7 @@ public class OfficeProvider implements AppProvider
...
@@ -616,9 +608,7 @@ public class OfficeProvider implements AppProvider
{
{
while
(
compEnum
.
hasMoreElements
())
while
(
compEnum
.
hasMoreElements
())
{
{
final
XCloseable
closer
=
(
XCloseable
)
UnoRuntime
.
queryInterface
(
final
XCloseable
closer
=
UnoRuntime
.
queryInterface
(
XCloseable
.
class
,
compEnum
.
nextElement
());
XCloseable
.
class
,
compEnum
.
nextElement
());
if
(
closer
!=
null
)
if
(
closer
!=
null
)
{
{
...
@@ -658,8 +648,7 @@ public class OfficeProvider implements AppProvider
...
@@ -658,8 +648,7 @@ public class OfficeProvider implements AppProvider
if
(
xPathSubst
!=
null
)
if
(
xPathSubst
!=
null
)
{
{
return
(
XStringSubstitution
)
UnoRuntime
.
queryInterface
(
return
UnoRuntime
.
queryInterface
(
XStringSubstitution
.
class
,
xPathSubst
);
XStringSubstitution
.
class
,
xPathSubst
);
}
}
else
else
{
{
...
@@ -790,6 +779,7 @@ public class OfficeProvider implements AppProvider
...
@@ -790,6 +779,7 @@ public class OfficeProvider implements AppProvider
this
.
ow
=
ow
;
this
.
ow
=
ow
;
}
}
@Override
public
void
run
()
public
void
run
()
{
{
System
.
out
.
println
(
utils
.
getDateTime
()
+
"OfficeProvider:Owp: start "
);
System
.
out
.
println
(
utils
.
getDateTime
()
+
"OfficeProvider:Owp: start "
);
...
...
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