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
dc65b024
Kaydet (Commit)
dc65b024
authored
May 17, 2015
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
astyle
Change-Id: I733f1f777bbe30f3ce8b15b60fe56b8dba240ffd
üst
773bb53d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
DirectoryStream.cxx
writerperfect/source/common/DirectoryStream.cxx
+32
-32
No files found.
writerperfect/source/common/DirectoryStream.cxx
Dosyayı görüntüle @
dc65b024
...
@@ -117,50 +117,50 @@ DirectoryStream::~DirectoryStream()
...
@@ -117,50 +117,50 @@ DirectoryStream::~DirectoryStream()
DirectoryStream
*
DirectoryStream
::
createForParent
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>
&
xContent
)
DirectoryStream
*
DirectoryStream
::
createForParent
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>
&
xContent
)
{
{
try
try
{
{
if
(
!
xContent
.
is
())
if
(
!
xContent
.
is
())
return
0
;
return
0
;
DirectoryStream
*
pDir
(
0
);
DirectoryStream
*
pDir
(
0
);
const
uno
::
Reference
<
container
::
XChild
>
xChild
(
xContent
,
uno
::
UNO_QUERY
);
const
uno
::
Reference
<
container
::
XChild
>
xChild
(
xContent
,
uno
::
UNO_QUERY
);
if
(
xChild
.
is
())
if
(
xChild
.
is
())
{
const
uno
::
Reference
<
ucb
::
XContent
>
xDirContent
(
xChild
->
getParent
(),
uno
::
UNO_QUERY
);
if
(
xDirContent
.
is
())
{
{
pDir
=
new
writerperfect
::
DirectoryStream
(
xDirContent
);
const
uno
::
Reference
<
ucb
::
XContent
>
xDirContent
(
xChild
->
getParent
(),
uno
::
UNO_QUERY
);
if
(
!
pDir
->
isStructured
())
if
(
xDirContent
.
is
())
{
{
delete
pDir
;
pDir
=
new
writerperfect
::
DirectoryStream
(
xDirContent
);
pDir
=
0
;
if
(
!
pDir
->
isStructured
())
{
delete
pDir
;
pDir
=
0
;
}
}
}
}
}
}
return
pDir
;
return
pDir
;
}
}
catch
(...)
catch
(...)
{
{
return
0
;
return
0
;
}
}
}
}
bool
DirectoryStream
::
isDirectory
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>
&
xContent
)
bool
DirectoryStream
::
isDirectory
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XContent
>
&
xContent
)
{
{
try
try
{
{
if
(
!
xContent
.
is
())
if
(
!
xContent
.
is
())
return
false
;
return
false
;
ucbhelper
::
Content
aContent
(
xContent
,
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
(),
comphelper
::
getProcessComponentContext
());
ucbhelper
::
Content
aContent
(
xContent
,
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
(),
comphelper
::
getProcessComponentContext
());
return
aContent
.
isFolder
();
return
aContent
.
isFolder
();
}
}
catch
(...)
catch
(...)
{
{
return
false
;
return
false
;
}
}
}
}
bool
DirectoryStream
::
isStructured
()
bool
DirectoryStream
::
isStructured
()
...
...
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