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
327ed70f
Kaydet (Commit)
327ed70f
authored
Kas 04, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Mechanically sanitize indentation
Change-Id: Ide8817aff3a6b5d07b56b54cecb36f7dc1407743
üst
95b3a6c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
XMergeBridge.java
xmerge/source/bridge/java/XMergeBridge.java
+0
-29
No files found.
xmerge/source/bridge/java/XMergeBridge.java
Dosyayı görüntüle @
327ed70f
...
...
@@ -21,7 +21,6 @@
* http://api.libreoffice.org/docs/common/ref/com/sun/star/module-ix.html
*/
/*Java Uno Helper Classes*/
import
java.io.File
;
import
java.io.FileOutputStream
;
...
...
@@ -61,14 +60,12 @@ import com.sun.star.xml.sax.InputSource;
import
com.sun.star.xml.sax.XDocumentHandler
;
import
com.sun.star.xml.sax.XParser
;
/** This outer class provides an inner class to implement the service
* description and a method to instantiate the
* component on demand (__getServiceFactory()).
*/
public
class
XMergeBridge
{
private
static
XMultiServiceFactory
xMSF
;
private
static
XInputStream
xInStream
=
null
;
private
static
XOutputStream
xOutStream
=
null
;
...
...
@@ -94,8 +91,6 @@ public class XMergeBridge {
*/
private
static
final
String
__serviceName
=
"com.sun.star.documentconversion.XMergeBridge"
;
public
com
.
sun
.
star
.
uno
.
Type
[]
getTypes
()
{
Type
[]
typeReturn
=
{};
...
...
@@ -139,8 +134,6 @@ public class XMergeBridge {
return
name
;
}
public
boolean
importer
(
com
.
sun
.
star
.
beans
.
PropertyValue
[]
aSourceData
,
com
.
sun
.
star
.
xml
.
sax
.
XDocumentHandler
xDocHandler
,
String
[]
msUserData
)
throws
com
.
sun
.
star
.
uno
.
RuntimeException
{
...
...
@@ -169,11 +162,8 @@ public class XMergeBridge {
System
.
out
.
println
(
"\nIllegalArgumentException "
+
AnyExec
);
}
}
try
{
Object
xCfgMgrObj
=
xMSF
.
createInstance
(
"com.sun.star.config.SpecialConfigManager"
);
...
...
@@ -229,7 +219,6 @@ public class XMergeBridge {
for
(
int
i
=
0
;
i
<
pValue
.
length
;
i
++)
{
try
{
if
(
pValue
[
i
].
Name
.
equals
(
"OutputStream"
)){
xos
=(
com
.
sun
.
star
.
io
.
XOutputStream
)
AnyConverter
.
toObject
(
new
Type
(
com
.
sun
.
star
.
io
.
XOutputStream
.
class
),
pValue
[
i
].
Value
);
...
...
@@ -248,7 +237,6 @@ public class XMergeBridge {
}
}
if
(
sURL
==
null
){
sURL
=
""
;
}
...
...
@@ -277,8 +265,6 @@ public class XMergeBridge {
return
true
;
}
private
String
needsMask
(
String
origString
){
if
(
origString
.
contains
(
"&"
))
{
origString
=
origString
.
replace
(
"&"
,
"&"
);
...
...
@@ -295,8 +281,6 @@ public class XMergeBridge {
return
origString
;
}
public
void
startDocument
()
{
}
...
...
@@ -318,8 +302,6 @@ public class XMergeBridge {
}
}
public
void
startElement
(
String
str
,
com
.
sun
.
star
.
xml
.
sax
.
XAttributeList
xattribs
)
{
...
...
@@ -359,7 +341,6 @@ public class XMergeBridge {
System
.
out
.
println
(
"\n"
+
e
);
}
}
public
void
characters
(
String
str
){
str
=
needsMask
(
str
);
...
...
@@ -370,12 +351,10 @@ public class XMergeBridge {
System
.
out
.
println
(
"\n"
+
e
);
}
}
public
void
ignorableWhitespace
(
String
str
){
}
public
void
processingInstruction
(
String
aTarget
,
String
aData
){
...
...
@@ -385,11 +364,6 @@ public class XMergeBridge {
}
private
void
convert
(
com
.
sun
.
star
.
io
.
XInputStream
xml
,
com
.
sun
.
star
.
io
.
XOutputStream
device
,
boolean
convertFromOffice
,
String
pluginUrl
,
String
FileName
,
String
offMime
,
String
sdMime
)
throws
com
.
sun
.
star
.
uno
.
RuntimeException
,
IOException
{
...
...
@@ -400,7 +374,6 @@ public class XMergeBridge {
XInputStreamToInputStreamAdapter
xis
=
new
XInputStreamToInputStreamAdapter
(
xml
);
XOutputStreamToOutputStreamAdapter
newxos
=
new
XOutputStreamToOutputStreamAdapter
(
device
);
try
{
ConverterInfoReader
cir
=
new
ConverterInfoReader
(
jarName
,
false
);
...
...
@@ -445,7 +418,6 @@ public class XMergeBridge {
newxos
.
flush
();
newxos
.
close
();
int
i
=
1
;
while
(
docEnum
.
hasNext
()
&&
sURL
.
startsWith
(
"file:"
))
{
...
...
@@ -513,7 +485,6 @@ public class XMergeBridge {
throw
ex2
;
}
}
}
...
...
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