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
05f786fd
Kaydet (Commit)
05f786fd
authored
May 24, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More clueless test hacking
Change-Id: I2623625380b11f3d6bf720387504b23ccce529e1
üst
4ff08c21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
8 deletions
+24
-8
DocumentLoader.java
.../src/org/libreoffice/android/examples/DocumentLoader.java
+24
-8
No files found.
android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java
Dosyayı görüntüle @
05f786fd
...
...
@@ -105,14 +105,14 @@ public class DocumentLoader
// Load the wanted document(s)
String
[]
inputs
=
input
.
split
(
":"
);
for
(
int
i
=
0
;
i
<
inputs
.
length
;
i
++)
{
com
.
sun
.
star
.
beans
.
PropertyValue
propertyValue
s
[]
=
com
.
sun
.
star
.
beans
.
PropertyValue
loadProp
s
[]
=
new
com
.
sun
.
star
.
beans
.
PropertyValue
[
2
];
propertyValue
s
[
0
]
=
new
com
.
sun
.
star
.
beans
.
PropertyValue
();
propertyValue
s
[
0
].
Name
=
"Hidden"
;
propertyValue
s
[
0
].
Value
=
new
Boolean
(
true
);
propertyValue
s
[
1
]
=
new
com
.
sun
.
star
.
beans
.
PropertyValue
();
propertyValue
s
[
1
].
Name
=
"ReadOnly"
;
propertyValue
s
[
1
].
Value
=
new
Boolean
(
true
);
loadProp
s
[
0
]
=
new
com
.
sun
.
star
.
beans
.
PropertyValue
();
loadProp
s
[
0
].
Name
=
"Hidden"
;
loadProp
s
[
0
].
Value
=
new
Boolean
(
true
);
loadProp
s
[
1
]
=
new
com
.
sun
.
star
.
beans
.
PropertyValue
();
loadProp
s
[
1
].
Name
=
"ReadOnly"
;
loadProp
s
[
1
].
Value
=
new
Boolean
(
true
);
String
sUrl
=
"file://"
+
inputs
[
i
];
...
...
@@ -120,7 +120,7 @@ public class DocumentLoader
Object
oDoc
=
xCompLoader
.
loadComponentFromURL
(
sUrl
,
"_blank"
,
0
,
propertyValue
s
);
(
sUrl
,
"_blank"
,
0
,
loadProp
s
);
Log
.
i
(
TAG
,
"oDoc is "
+
(
oDoc
!=
null
?
oDoc
.
toString
()
:
"null"
));
com
.
sun
.
star
.
lang
.
XTypeProvider
typeProvider
=
(
com
.
sun
.
star
.
lang
.
XTypeProvider
)
UnoRuntime
.
queryInterface
(
com
.
sun
.
star
.
lang
.
XTypeProvider
.
class
,
oDoc
);
...
...
@@ -134,6 +134,22 @@ public class DocumentLoader
}
}
}
com
.
sun
.
star
.
view
.
XRenderable
renderBabe
=
(
com
.
sun
.
star
.
view
.
XRenderable
)
UnoRuntime
.
queryInterface
(
com
.
sun
.
star
.
view
.
XRenderable
.
class
,
oDoc
);
Log
.
i
(
TAG
,
"renderBabe is "
+
(
renderBabe
!=
null
?
renderBabe
.
toString
()
:
"null"
));
com
.
sun
.
star
.
beans
.
PropertyValue
renderProps
[]
=
new
com
.
sun
.
star
.
beans
.
PropertyValue
[
1
];
renderProps
[
0
]
=
new
com
.
sun
.
star
.
beans
.
PropertyValue
();
renderProps
[
0
].
Name
=
"IsPrinter"
;
renderProps
[
0
].
Value
=
new
Boolean
(
true
);
// renderProps[1] = new com.sun.star.beans.PropertyValue();
// renderProps[1].Name = "View";
// renderProps[1].Value = no idea where to get an XController...
Log
.
i
(
TAG
,
"getRendererCount: "
+
renderBabe
.
getRendererCount
(
oDoc
,
renderProps
));
renderBabe
.
render
(
0
,
oDoc
,
renderProps
);
}
}
catch
(
Exception
e
)
{
...
...
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