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
5b41f1c3
Kaydet (Commit)
5b41f1c3
authored
Şub 04, 2010
tarafından
Frank Schoenheit [fs]
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
autorecovery: commit resolved merge (after rebase to m71)
üst
6a35ea72
d9ed7227
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
ResourceCreator.java
odk/examples/DevelopersGuide/UCB/ResourceCreator.java
+8
-10
No files found.
odk/examples/DevelopersGuide/UCB/ResourceCreator.java
Dosyayı görüntüle @
5b41f1c3
...
@@ -43,7 +43,6 @@ import com.sun.star.uno.UnoRuntime;
...
@@ -43,7 +43,6 @@ import com.sun.star.uno.UnoRuntime;
import
com.sun.star.ucb.ContentInfo
;
import
com.sun.star.ucb.ContentInfo
;
import
com.sun.star.ucb.InsertCommandArgument
;
import
com.sun.star.ucb.InsertCommandArgument
;
import
com.sun.star.ucb.XContent
;
import
com.sun.star.ucb.XContent
;
import
com.sun.star.ucb.XContentCreator
;
import
com.sun.star.io.XInputStream
;
import
com.sun.star.io.XInputStream
;
...
@@ -154,18 +153,17 @@ public class ResourceCreator {
...
@@ -154,18 +153,17 @@ public class ResourceCreator {
boolean
result
=
false
;
boolean
result
=
false
;
if
(
stream
!=
null
&&
name
!=
null
&&
!
name
.
equals
(
""
))
{
if
(
stream
!=
null
&&
name
!=
null
&&
!
name
.
equals
(
""
))
{
// Obtain content creator interface.
// Note: The data for info may have been obtained from
XContentCreator
creator
=
(
XContentCreator
)
UnoRuntime
.
queryInterface
(
// property CreatableContentsInfo.
XContentCreator
.
class
,
m_content
);
// Note: The data for info may have been obtained using
// XContentCreator::queryCreatableContentsInfo().
ContentInfo
info
=
new
ContentInfo
();
ContentInfo
info
=
new
ContentInfo
();
info
.
Type
=
"application/vnd.sun.staroffice.fsys-file"
;
info
.
Type
=
"application/vnd.sun.staroffice.fsys-file"
;
info
.
Attributes
=
0
;
info
.
Attributes
=
0
;
// Create new, empty content.
// Create new, empty content (execute command "createNewContent").
XContent
newContent
=
creator
.
createNewContent
(
info
);
XContent
newContent
=
(
XContent
)
UnoRuntime
.
queryInterface
(
XContent
.
class
,
m_helper
.
executeCommand
(
m_content
,
"createNewContent"
,
info
)
);
if
(
newContent
!=
null
)
{
if
(
newContent
!=
null
)
{
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
...
@@ -181,7 +179,7 @@ public class ResourceCreator {
...
@@ -181,7 +179,7 @@ public class ResourceCreator {
props
[
0
]
=
prop
;
props
[
0
]
=
prop
;
// Execute command "setPropertyValues".
// Execute command "setPropertyValues".
m_helper
.
executeCommand
(
newContent
,
"setPropertyValues"
,
props
);
m_helper
.
executeCommand
(
newContent
,
"setPropertyValues"
,
props
);
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
// Write the new file to disk...
// Write the new file to disk...
...
...
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