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
b6ca3a82
Kaydet (Commit)
b6ca3a82
authored
Ock 28, 2012
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use defined macro instead of magic number
This also added a missing READONLY entry
üst
7f585002
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
runtime.hxx
basic/source/inc/runtime.hxx
+1
-0
methods.cxx
basic/source/runtime/methods.cxx
+7
-7
No files found.
basic/source/inc/runtime.hxx
Dosyayı görüntüle @
b6ca3a82
...
@@ -116,6 +116,7 @@ struct SbiGosubStack { // GOSUB-Stack:
...
@@ -116,6 +116,7 @@ struct SbiGosubStack { // GOSUB-Stack:
#define MAXRECURSION 500
#define MAXRECURSION 500
#define Sb_ATTR_NORMAL 0x0000
#define Sb_ATTR_NORMAL 0x0000
#define Sb_ATTR_READONLY 0x0001
#define Sb_ATTR_HIDDEN 0x0002
#define Sb_ATTR_HIDDEN 0x0002
#define Sb_ATTR_SYSTEM 0x0004
#define Sb_ATTR_SYSTEM 0x0004
#define Sb_ATTR_VOLUME 0x0008
#define Sb_ATTR_VOLUME 0x0008
...
...
basic/source/runtime/methods.cxx
Dosyayı görüntüle @
b6ca3a82
...
@@ -2877,11 +2877,11 @@ RTLFUNC(GetAttr)
...
@@ -2877,11 +2877,11 @@ RTLFUNC(GetAttr)
sal_Bool
bHidden
=
xSFI
->
isHidden
(
aPath
);
sal_Bool
bHidden
=
xSFI
->
isHidden
(
aPath
);
sal_Bool
bDirectory
=
xSFI
->
isFolder
(
aPath
);
sal_Bool
bDirectory
=
xSFI
->
isFolder
(
aPath
);
if
(
bReadOnly
)
if
(
bReadOnly
)
nFlags
|=
0x0001
;
// ATTR_READONLY
nFlags
|=
Sb_ATTR_READONLY
;
if
(
bHidden
)
if
(
bHidden
)
nFlags
|=
0x0002
;
// ATTR_HIDDEN
nFlags
|=
Sb_ATTR_HIDDEN
;
if
(
bDirectory
)
if
(
bDirectory
)
nFlags
|=
0x0010
;
// ATTR_DIRECTORY
nFlags
|=
Sb_ATTR_DIRECTORY
;
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
{
{
...
@@ -2901,9 +2901,9 @@ RTLFUNC(GetAttr)
...
@@ -2901,9 +2901,9 @@ RTLFUNC(GetAttr)
FileStatus
::
Type
aType
=
aFileStatus
.
getFileType
();
FileStatus
::
Type
aType
=
aFileStatus
.
getFileType
();
sal_Bool
bDirectory
=
isFolder
(
aType
);
sal_Bool
bDirectory
=
isFolder
(
aType
);
if
(
bReadOnly
)
if
(
bReadOnly
)
nFlags
|=
0x0001
;
// ATTR_READONLY
nFlags
|=
Sb_ATTR_READONLY
;
if
(
bDirectory
)
if
(
bDirectory
)
nFlags
|=
0x0010
;
// ATTR_DIRECTORY
nFlags
|=
Sb_ATTR_DIRECTORY
;
}
}
rPar
.
Get
(
0
)
->
PutInteger
(
nFlags
);
rPar
.
Get
(
0
)
->
PutInteger
(
nFlags
);
}
}
...
@@ -4259,9 +4259,9 @@ RTLFUNC(SetAttr)
...
@@ -4259,9 +4259,9 @@ RTLFUNC(SetAttr)
{
{
try
try
{
{
sal_Bool
bReadOnly
=
(
nFlags
&
0x0001
)
!=
0
;
// ATTR_READONLY
sal_Bool
bReadOnly
=
(
nFlags
&
Sb_ATTR_READONLY
)
!=
0
;
xSFI
->
setReadOnly
(
aStr
,
bReadOnly
);
xSFI
->
setReadOnly
(
aStr
,
bReadOnly
);
sal_Bool
bHidden
=
(
nFlags
&
0x0002
)
!=
0
;
// ATTR_HIDDEN
sal_Bool
bHidden
=
(
nFlags
&
Sb_ATTR_HIDDEN
)
!=
0
;
xSFI
->
setHidden
(
aStr
,
bHidden
);
xSFI
->
setHidden
(
aStr
,
bHidden
);
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
...
...
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