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
d7c5d9e3
Kaydet (Commit)
d7c5d9e3
authored
Mar 26, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
basic: sal_Bool->bool
Change-Id: Idfe18863b2c6f60da5192d661f66e85a2bac09e5
üst
21dcef53
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
104 additions
and
104 deletions
+104
-104
basmgr.cxx
basic/source/basmgr/basmgr.cxx
+82
-82
scriptcont.hxx
basic/source/inc/scriptcont.hxx
+1
-1
modsizeexceeded.cxx
basic/source/uno/modsizeexceeded.cxx
+2
-2
scriptcont.cxx
basic/source/uno/scriptcont.cxx
+1
-1
basmgr.hxx
include/basic/basmgr.hxx
+15
-15
modsizeexceeded.hxx
include/basic/modsizeexceeded.hxx
+2
-2
docsh2.cxx
sw/source/core/uibase/app/docsh2.cxx
+1
-1
No files found.
basic/source/basmgr/basmgr.cxx
Dosyayı görüntüle @
d7c5d9e3
...
@@ -83,12 +83,12 @@ typedef WeakImplHelper1< script::XStarBasicAccess > StarBasicAccessHelper;
...
@@ -83,12 +83,12 @@ typedef WeakImplHelper1< script::XStarBasicAccess > StarBasicAccessHelper;
// sal_uIntPtr nEndPos
// sal_uIntPtr nEndPos
// sal_uInt16 nId
// sal_uInt16 nId
// sal_uInt16 nVer
// sal_uInt16 nVer
//
sal_B
ool bDoLoad
//
b
ool bDoLoad
// String LibName
// String LibName
// String AbsStorageName
// String AbsStorageName
// String RelStorageName
// String RelStorageName
// Version 2
// Version 2
// +
sal_B
ool bReference
// +
b
ool bReference
static
const
char
szStdLibName
[]
=
"Standard"
;
static
const
char
szStdLibName
[]
=
"Standard"
;
static
const
char
szBasicStorage
[]
=
"StarBASIC"
;
static
const
char
szBasicStorage
[]
=
"StarBASIC"
;
...
@@ -235,7 +235,7 @@ void BasMgrContainerListenerImpl::addLibraryModulesImpl( BasicManager* pMgr,
...
@@ -235,7 +235,7 @@ void BasMgrContainerListenerImpl::addLibraryModulesImpl( BasicManager* pMgr,
pLib
->
MakeModule32
(
aModuleName
,
aMod
);
pLib
->
MakeModule32
(
aModuleName
,
aMod
);
}
}
pLib
->
SetModified
(
sal_F
alse
);
pLib
->
SetModified
(
f
alse
);
}
}
}
}
...
@@ -292,7 +292,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementInserted( const container::Con
...
@@ -292,7 +292,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementInserted( const container::Con
}
}
else
else
pLib
->
MakeModule32
(
aName
,
aMod
);
pLib
->
MakeModule32
(
aName
,
aMod
);
pLib
->
SetModified
(
sal_F
alse
);
pLib
->
SetModified
(
f
alse
);
}
}
}
}
}
}
...
@@ -324,7 +324,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementReplaced( const container::Con
...
@@ -324,7 +324,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementReplaced( const container::Con
else
else
pLib
->
MakeModule32
(
aName
,
aMod
);
pLib
->
MakeModule32
(
aName
,
aMod
);
pLib
->
SetModified
(
sal_F
alse
);
pLib
->
SetModified
(
f
alse
);
}
}
}
}
...
@@ -343,7 +343,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementRemoved( const container::Cont
...
@@ -343,7 +343,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementRemoved( const container::Cont
if
(
pLib
)
if
(
pLib
)
{
{
sal_uInt16
nLibId
=
mpMgr
->
GetLibId
(
aName
);
sal_uInt16
nLibId
=
mpMgr
->
GetLibId
(
aName
);
mpMgr
->
RemoveLib
(
nLibId
,
sal_F
alse
);
mpMgr
->
RemoveLib
(
nLibId
,
f
alse
);
}
}
}
}
else
else
...
@@ -353,7 +353,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementRemoved( const container::Cont
...
@@ -353,7 +353,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementRemoved( const container::Cont
if
(
pMod
)
if
(
pMod
)
{
{
pLib
->
Remove
(
pMod
);
pLib
->
Remove
(
pMod
);
pLib
->
SetModified
(
sal_F
alse
);
pLib
->
SetModified
(
f
alse
);
}
}
}
}
}
}
...
@@ -384,9 +384,9 @@ private:
...
@@ -384,9 +384,9 @@ private:
OUString
aRelStorageName
;
OUString
aRelStorageName
;
OUString
aPassword
;
OUString
aPassword
;
sal_Bool
bDoLoad
;
bool
bDoLoad
;
sal_Bool
bReference
;
bool
bReference
;
sal_Bool
bPasswordVerified
;
bool
bPasswordVerified
;
// Lib represents library in new UNO library container
// Lib represents library in new UNO library container
uno
::
Reference
<
script
::
XLibraryContainer
>
mxScriptCont
;
uno
::
Reference
<
script
::
XLibraryContainer
>
mxScriptCont
;
...
@@ -394,39 +394,39 @@ private:
...
@@ -394,39 +394,39 @@ private:
public
:
public
:
BasicLibInfo
();
BasicLibInfo
();
sal_Bool
IsReference
()
const
{
return
bReference
;
}
bool
IsReference
()
const
{
return
bReference
;
}
sal_Bool
&
IsReference
()
{
return
bReference
;
}
bool
&
IsReference
()
{
return
bReference
;
}
sal_Bool
IsExtern
()
const
{
return
!
aStorageName
.
equalsAscii
(
szImbedded
);
}
bool
IsExtern
()
const
{
return
!
aStorageName
.
equalsAscii
(
szImbedded
);
}
void
SetStorageName
(
const
OUString
&
rName
)
{
aStorageName
=
rName
;
}
void
SetStorageName
(
const
OUString
&
rName
)
{
aStorageName
=
rName
;
}
const
OUString
&
GetStorageName
()
const
{
return
aStorageName
;
}
const
OUString
&
GetStorageName
()
const
{
return
aStorageName
;
}
void
SetRelStorageName
(
const
OUString
&
rN
)
{
aRelStorageName
=
rN
;
}
void
SetRelStorageName
(
const
OUString
&
rN
)
{
aRelStorageName
=
rN
;
}
const
OUString
&
GetRelStorageName
()
const
{
return
aRelStorageName
;
}
const
OUString
&
GetRelStorageName
()
const
{
return
aRelStorageName
;
}
StarBASICRef
GetLib
()
const
StarBASICRef
GetLib
()
const
{
{
if
(
mxScriptCont
.
is
()
&&
mxScriptCont
->
hasByName
(
aLibName
)
&&
if
(
mxScriptCont
.
is
()
&&
mxScriptCont
->
hasByName
(
aLibName
)
&&
!
mxScriptCont
->
isLibraryLoaded
(
aLibName
)
)
!
mxScriptCont
->
isLibraryLoaded
(
aLibName
)
)
return
StarBASICRef
();
return
StarBASICRef
();
return
xLib
;
return
xLib
;
}
}
StarBASICRef
&
GetLibRef
()
{
return
xLib
;
}
StarBASICRef
&
GetLibRef
()
{
return
xLib
;
}
void
SetLib
(
StarBASIC
*
pBasic
)
{
xLib
=
pBasic
;
}
void
SetLib
(
StarBASIC
*
pBasic
)
{
xLib
=
pBasic
;
}
const
OUString
&
GetLibName
()
const
{
return
aLibName
;
}
const
OUString
&
GetLibName
()
const
{
return
aLibName
;
}
void
SetLibName
(
const
OUString
&
rName
)
{
aLibName
=
rName
;
}
void
SetLibName
(
const
OUString
&
rName
)
{
aLibName
=
rName
;
}
// Only temporary for Load/Save
// Only temporary for Load/Save
sal_Bool
DoLoad
()
{
return
bDoLoad
;
}
bool
DoLoad
()
{
return
bDoLoad
;
}
sal_Bool
HasPassword
()
const
{
return
!
aPassword
.
isEmpty
();
}
bool
HasPassword
()
const
{
return
!
aPassword
.
isEmpty
();
}
const
OUString
&
GetPassword
()
const
{
return
aPassword
;
}
const
OUString
&
GetPassword
()
const
{
return
aPassword
;
}
void
SetPassword
(
const
OUString
&
rNewPassword
)
void
SetPassword
(
const
OUString
&
rNewPassword
)
{
aPassword
=
rNewPassword
;
}
{
aPassword
=
rNewPassword
;
}
sal_Bool
IsPasswordVerified
()
const
{
return
bPasswordVerified
;
}
bool
IsPasswordVerified
()
const
{
return
bPasswordVerified
;
}
void
SetPasswordVerified
()
{
bPasswordVerified
=
sal_T
rue
;
}
void
SetPasswordVerified
()
{
bPasswordVerified
=
t
rue
;
}
static
BasicLibInfo
*
Create
(
SotStorageStream
&
rSStream
);
static
BasicLibInfo
*
Create
(
SotStorageStream
&
rSStream
);
...
@@ -529,9 +529,9 @@ BasicLibInfo* BasicLibs::Remove( BasicLibInfo* LibInfo )
...
@@ -529,9 +529,9 @@ BasicLibInfo* BasicLibs::Remove( BasicLibInfo* LibInfo )
BasicLibInfo
::
BasicLibInfo
()
BasicLibInfo
::
BasicLibInfo
()
{
{
bReference
=
sal_F
alse
;
bReference
=
f
alse
;
bPasswordVerified
=
sal_F
alse
;
bPasswordVerified
=
f
alse
;
bDoLoad
=
sal_F
alse
;
bDoLoad
=
f
alse
;
mxScriptCont
=
NULL
;
mxScriptCont
=
NULL
;
aStorageName
=
szImbedded
;
aStorageName
=
szImbedded
;
aRelStorageName
=
szImbedded
;
aRelStorageName
=
szImbedded
;
...
@@ -553,8 +553,8 @@ BasicLibInfo* BasicLibInfo::Create( SotStorageStream& rSStream )
...
@@ -553,8 +553,8 @@ BasicLibInfo* BasicLibInfo::Create( SotStorageStream& rSStream )
if
(
nId
==
LIBINFO_ID
)
if
(
nId
==
LIBINFO_ID
)
{
{
// Reload?
// Reload?
sal_B
ool
bDoLoad
;
b
ool
bDoLoad
;
rSStream
.
Read
UChar
(
bDoLoad
);
rSStream
.
Read
CharAsBool
(
bDoLoad
);
pInfo
->
bDoLoad
=
bDoLoad
;
pInfo
->
bDoLoad
=
bDoLoad
;
// The name of the lib...
// The name of the lib...
...
@@ -571,8 +571,8 @@ BasicLibInfo* BasicLibInfo::Create( SotStorageStream& rSStream )
...
@@ -571,8 +571,8 @@ BasicLibInfo* BasicLibInfo::Create( SotStorageStream& rSStream )
if
(
nVer
>=
2
)
if
(
nVer
>=
2
)
{
{
sal_B
ool
bReferenz
;
b
ool
bReferenz
;
rSStream
.
Read
UChar
(
bReferenz
);
rSStream
.
Read
CharAsBool
(
bReferenz
);
pInfo
->
IsReference
()
=
bReferenz
;
pInfo
->
IsReference
()
=
bReferenz
;
}
}
...
@@ -614,7 +614,7 @@ BasicManager::BasicManager( SotStorage& rStorage, const OUString& rBaseURL, Star
...
@@ -614,7 +614,7 @@ BasicManager::BasicManager( SotStorage& rStorage, const OUString& rBaseURL, Star
xStdLib
->
SetName
(
OUString
(
szStdLibName
)
);
xStdLib
->
SetName
(
OUString
(
szStdLibName
)
);
pStdLibInfo
->
SetLibName
(
OUString
(
szStdLibName
)
);
pStdLibInfo
->
SetLibName
(
OUString
(
szStdLibName
)
);
xStdLib
->
SetFlag
(
SBX_DONTSTORE
|
SBX_EXTSEARCH
);
xStdLib
->
SetFlag
(
SBX_DONTSTORE
|
SBX_EXTSEARCH
);
xStdLib
->
SetModified
(
sal_F
alse
);
xStdLib
->
SetModified
(
f
alse
);
}
}
else
else
{
{
...
@@ -630,7 +630,7 @@ BasicManager::BasicManager( SotStorage& rStorage, const OUString& rBaseURL, Star
...
@@ -630,7 +630,7 @@ BasicManager::BasicManager( SotStorage& rStorage, const OUString& rBaseURL, Star
}
}
}
}
// Modified through insert
// Modified through insert
pStdLib
->
SetModified
(
sal_F
alse
);
pStdLib
->
SetModified
(
f
alse
);
}
}
// #91626 Save all stream data to save it unmodified if basic isn't modified
// #91626 Save all stream data to save it unmodified if basic isn't modified
...
@@ -748,7 +748,7 @@ void BasicManager::SetLibraryContainerInfo( const LibraryContainerInfo& rInfo )
...
@@ -748,7 +748,7 @@ void BasicManager::SetLibraryContainerInfo( const LibraryContainerInfo& rInfo )
StarBASIC
*
pLib
=
pBasLibInfo
->
GetLib
();
StarBASIC
*
pLib
=
pBasLibInfo
->
GetLib
();
if
(
!
pLib
)
if
(
!
pLib
)
{
{
sal_Bool
bLoaded
=
ImpLoadLibrary
(
pBasLibInfo
,
NULL
,
sal_F
alse
);
bool
bLoaded
=
ImpLoadLibrary
(
pBasLibInfo
,
NULL
,
f
alse
);
if
(
bLoaded
)
if
(
bLoaded
)
pLib
=
pBasLibInfo
->
GetLib
();
pLib
=
pBasLibInfo
->
GetLib
();
}
}
...
@@ -793,7 +793,7 @@ BasicManager::BasicManager( StarBASIC* pSLib, OUString* pLibPath, bool bDocMgr )
...
@@ -793,7 +793,7 @@ BasicManager::BasicManager( StarBASIC* pSLib, OUString* pLibPath, bool bDocMgr )
pSLib
->
SetFlag
(
SBX_DONTSTORE
|
SBX_EXTSEARCH
);
pSLib
->
SetFlag
(
SBX_DONTSTORE
|
SBX_EXTSEARCH
);
// Save is only necessary if basic has changed
// Save is only necessary if basic has changed
xStdLib
->
SetModified
(
sal_F
alse
);
xStdLib
->
SetModified
(
f
alse
);
}
}
void
BasicManager
::
ImpMgrNotLoaded
(
const
OUString
&
rStorageName
)
void
BasicManager
::
ImpMgrNotLoaded
(
const
OUString
&
rStorageName
)
...
@@ -810,7 +810,7 @@ void BasicManager::ImpMgrNotLoaded( const OUString& rStorageName )
...
@@ -810,7 +810,7 @@ void BasicManager::ImpMgrNotLoaded( const OUString& rStorageName )
xStdLib
->
SetName
(
OUString
(
szStdLibName
)
);
xStdLib
->
SetName
(
OUString
(
szStdLibName
)
);
pStdLibInfo
->
SetLibName
(
OUString
(
szStdLibName
)
);
pStdLibInfo
->
SetLibName
(
OUString
(
szStdLibName
)
);
xStdLib
->
SetFlag
(
SBX_DONTSTORE
|
SBX_EXTSEARCH
);
xStdLib
->
SetFlag
(
SBX_DONTSTORE
|
SBX_EXTSEARCH
);
xStdLib
->
SetModified
(
sal_F
alse
);
xStdLib
->
SetModified
(
f
alse
);
}
}
...
@@ -824,7 +824,7 @@ void BasicManager::ImpCreateStdLib( StarBASIC* pParentFromStdLib )
...
@@ -824,7 +824,7 @@ void BasicManager::ImpCreateStdLib( StarBASIC* pParentFromStdLib )
pStdLib
->
SetFlag
(
SBX_DONTSTORE
|
SBX_EXTSEARCH
);
pStdLib
->
SetFlag
(
SBX_DONTSTORE
|
SBX_EXTSEARCH
);
}
}
void
BasicManager
::
LoadBasicManager
(
SotStorage
&
rStorage
,
const
OUString
&
rBaseURL
,
sal_B
ool
bLoadLibs
)
void
BasicManager
::
LoadBasicManager
(
SotStorage
&
rStorage
,
const
OUString
&
rBaseURL
,
b
ool
bLoadLibs
)
{
{
DBG_CHKTHIS
(
BasicManager
,
0
);
DBG_CHKTHIS
(
BasicManager
,
0
);
...
@@ -983,7 +983,7 @@ void BasicManager::LoadOldBasicManager( SotStorage& rStorage )
...
@@ -983,7 +983,7 @@ void BasicManager::LoadOldBasicManager( SotStorage& rStorage )
}
}
if
(
xStorageRef
.
Is
()
)
if
(
xStorageRef
.
Is
()
)
{
{
AddLib
(
*
xStorageRef
,
aLibName
,
sal_F
alse
);
AddLib
(
*
xStorageRef
,
aLibName
,
f
alse
);
}
}
else
else
{
{
...
@@ -1049,7 +1049,7 @@ BasicLibInfo* BasicManager::CreateLibInfo()
...
@@ -1049,7 +1049,7 @@ BasicLibInfo* BasicManager::CreateLibInfo()
return
pInf
;
return
pInf
;
}
}
sal_Bool
BasicManager
::
ImpLoadLibrary
(
BasicLibInfo
*
pLibInfo
,
SotStorage
*
pCurStorage
,
sal_B
ool
bInfosOnly
)
bool
BasicManager
::
ImpLoadLibrary
(
BasicLibInfo
*
pLibInfo
,
SotStorage
*
pCurStorage
,
b
ool
bInfosOnly
)
{
{
DBG_CHKTHIS
(
BasicManager
,
0
);
DBG_CHKTHIS
(
BasicManager
,
0
);
...
@@ -1101,7 +1101,7 @@ sal_Bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurS
...
@@ -1101,7 +1101,7 @@ sal_Bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurS
}
}
else
else
{
{
sal_Bool
bLoaded
=
sal_F
alse
;
bool
bLoaded
=
f
alse
;
if
(
xBasicStream
->
Seek
(
STREAM_SEEK_TO_END
)
!=
0
)
if
(
xBasicStream
->
Seek
(
STREAM_SEEK_TO_END
)
!=
0
)
{
{
if
(
!
bInfosOnly
)
if
(
!
bInfosOnly
)
...
@@ -1116,7 +1116,7 @@ sal_Bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurS
...
@@ -1116,7 +1116,7 @@ sal_Bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurS
xBasicStream
->
SetBufferSize
(
0
);
xBasicStream
->
SetBufferSize
(
0
);
StarBASICRef
xStdLib
=
pLibInfo
->
GetLib
();
StarBASICRef
xStdLib
=
pLibInfo
->
GetLib
();
xStdLib
->
SetName
(
pLibInfo
->
GetLibName
()
);
xStdLib
->
SetName
(
pLibInfo
->
GetLibName
()
);
xStdLib
->
SetModified
(
sal_F
alse
);
xStdLib
->
SetModified
(
f
alse
);
xStdLib
->
SetFlag
(
SBX_DONTSTORE
);
xStdLib
->
SetFlag
(
SBX_DONTSTORE
);
}
}
else
else
...
@@ -1125,7 +1125,7 @@ sal_Bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurS
...
@@ -1125,7 +1125,7 @@ sal_Bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurS
xBasicStream
->
Seek
(
STREAM_SEEK_TO_BEGIN
);
xBasicStream
->
Seek
(
STREAM_SEEK_TO_BEGIN
);
ImplEncryptStream
(
*
xBasicStream
);
ImplEncryptStream
(
*
xBasicStream
);
SbxBase
::
Skip
(
*
xBasicStream
);
SbxBase
::
Skip
(
*
xBasicStream
);
bLoaded
=
sal_T
rue
;
bLoaded
=
t
rue
;
}
}
}
}
if
(
!
bLoaded
)
if
(
!
bLoaded
)
...
@@ -1152,20 +1152,20 @@ sal_Bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurS
...
@@ -1152,20 +1152,20 @@ sal_Bool BasicManager::ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurS
return
bLoaded
;
return
bLoaded
;
}
}
}
}
return
sal_F
alse
;
return
f
alse
;
}
}
sal_B
ool
BasicManager
::
ImplEncryptStream
(
SvStream
&
rStrm
)
const
b
ool
BasicManager
::
ImplEncryptStream
(
SvStream
&
rStrm
)
const
{
{
sal_Size
nPos
=
rStrm
.
Tell
();
sal_Size
nPos
=
rStrm
.
Tell
();
sal_uInt32
nCreator
;
sal_uInt32
nCreator
;
rStrm
.
ReadUInt32
(
nCreator
);
rStrm
.
ReadUInt32
(
nCreator
);
rStrm
.
Seek
(
nPos
);
rStrm
.
Seek
(
nPos
);
sal_Bool
bProtected
=
sal_F
alse
;
bool
bProtected
=
f
alse
;
if
(
nCreator
!=
SBXCR_SBX
)
if
(
nCreator
!=
SBXCR_SBX
)
{
{
// Should only be the case for encrypted Streams
// Should only be the case for encrypted Streams
bProtected
=
sal_T
rue
;
bProtected
=
t
rue
;
rStrm
.
SetCryptMaskKey
(
szCryptingKey
);
rStrm
.
SetCryptMaskKey
(
szCryptingKey
);
rStrm
.
RefreshBuffer
();
rStrm
.
RefreshBuffer
();
}
}
...
@@ -1174,11 +1174,11 @@ sal_Bool BasicManager::ImplEncryptStream( SvStream& rStrm ) const
...
@@ -1174,11 +1174,11 @@ sal_Bool BasicManager::ImplEncryptStream( SvStream& rStrm ) const
// This code is necessary to load the BASIC of Beta 1
// This code is necessary to load the BASIC of Beta 1
// TODO: Which Beta 1?
// TODO: Which Beta 1?
sal_B
ool
BasicManager
::
ImplLoadBasic
(
SvStream
&
rStrm
,
StarBASICRef
&
rOldBasic
)
const
b
ool
BasicManager
::
ImplLoadBasic
(
SvStream
&
rStrm
,
StarBASICRef
&
rOldBasic
)
const
{
{
sal_B
ool
bProtected
=
ImplEncryptStream
(
rStrm
);
b
ool
bProtected
=
ImplEncryptStream
(
rStrm
);
SbxBaseRef
xNew
=
SbxBase
::
Load
(
rStrm
);
SbxBaseRef
xNew
=
SbxBase
::
Load
(
rStrm
);
sal_Bool
bLoaded
=
sal_F
alse
;
bool
bLoaded
=
f
alse
;
if
(
xNew
.
Is
()
)
if
(
xNew
.
Is
()
)
{
{
if
(
xNew
->
IsA
(
TYPE
(
StarBASIC
)
)
)
if
(
xNew
->
IsA
(
TYPE
(
StarBASIC
)
)
)
...
@@ -1199,8 +1199,8 @@ sal_Bool BasicManager::ImplLoadBasic( SvStream& rStrm, StarBASICRef& rOldBasic )
...
@@ -1199,8 +1199,8 @@ sal_Bool BasicManager::ImplLoadBasic( SvStream& rStrm, StarBASICRef& rOldBasic )
// Fill new libray container (5.2 -> 6.0)
// Fill new libray container (5.2 -> 6.0)
copyToLibraryContainer
(
pNew
,
mpImpl
->
maContainerInfo
);
copyToLibraryContainer
(
pNew
,
mpImpl
->
maContainerInfo
);
pNew
->
SetModified
(
sal_F
alse
);
pNew
->
SetModified
(
f
alse
);
bLoaded
=
sal_T
rue
;
bLoaded
=
t
rue
;
}
}
}
}
if
(
bProtected
)
if
(
bProtected
)
...
@@ -1210,13 +1210,13 @@ sal_Bool BasicManager::ImplLoadBasic( SvStream& rStrm, StarBASICRef& rOldBasic )
...
@@ -1210,13 +1210,13 @@ sal_Bool BasicManager::ImplLoadBasic( SvStream& rStrm, StarBASICRef& rOldBasic )
return
bLoaded
;
return
bLoaded
;
}
}
void
BasicManager
::
CheckModules
(
StarBASIC
*
pLib
,
sal_B
ool
bReference
)
const
void
BasicManager
::
CheckModules
(
StarBASIC
*
pLib
,
b
ool
bReference
)
const
{
{
if
(
!
pLib
)
if
(
!
pLib
)
{
{
return
;
return
;
}
}
sal_B
ool
bModified
=
pLib
->
IsModified
();
b
ool
bModified
=
pLib
->
IsModified
();
for
(
sal_uInt16
nMod
=
0
;
nMod
<
pLib
->
GetModules
()
->
Count
();
nMod
++
)
for
(
sal_uInt16
nMod
=
0
;
nMod
<
pLib
->
GetModules
()
->
Count
();
nMod
++
)
{
{
...
@@ -1233,11 +1233,11 @@ void BasicManager::CheckModules( StarBASIC* pLib, sal_Bool bReference ) const
...
@@ -1233,11 +1233,11 @@ void BasicManager::CheckModules( StarBASIC* pLib, sal_Bool bReference ) const
if
(
!
bModified
&&
bReference
)
if
(
!
bModified
&&
bReference
)
{
{
OSL_FAIL
(
"Referenced basic library is not compiled!"
);
OSL_FAIL
(
"Referenced basic library is not compiled!"
);
pLib
->
SetModified
(
sal_F
alse
);
pLib
->
SetModified
(
f
alse
);
}
}
}
}
StarBASIC
*
BasicManager
::
AddLib
(
SotStorage
&
rStorage
,
const
OUString
&
rLibName
,
sal_B
ool
bReference
)
StarBASIC
*
BasicManager
::
AddLib
(
SotStorage
&
rStorage
,
const
OUString
&
rLibName
,
b
ool
bReference
)
{
{
DBG_CHKTHIS
(
BasicManager
,
0
);
DBG_CHKTHIS
(
BasicManager
,
0
);
...
@@ -1260,7 +1260,7 @@ StarBASIC* BasicManager::AddLib( SotStorage& rStorage, const OUString& rLibName,
...
@@ -1260,7 +1260,7 @@ StarBASIC* BasicManager::AddLib( SotStorage& rStorage, const OUString& rLibName,
// Set StorageName before load because it is compared with pCurStorage
// Set StorageName before load because it is compared with pCurStorage
pLibInfo
->
SetStorageName
(
aStorageName
);
pLibInfo
->
SetStorageName
(
aStorageName
);
sal_B
ool
bLoaded
=
ImpLoadLibrary
(
pLibInfo
,
&
rStorage
);
b
ool
bLoaded
=
ImpLoadLibrary
(
pLibInfo
,
&
rStorage
);
if
(
bLoaded
)
if
(
bLoaded
)
{
{
...
@@ -1270,19 +1270,19 @@ StarBASIC* BasicManager::AddLib( SotStorage& rStorage, const OUString& rLibName,
...
@@ -1270,19 +1270,19 @@ StarBASIC* BasicManager::AddLib( SotStorage& rStorage, const OUString& rLibName,
}
}
if
(
bReference
)
if
(
bReference
)
{
{
pLibInfo
->
GetLib
()
->
SetModified
(
sal_F
alse
);
// Don't save in this case
pLibInfo
->
GetLib
()
->
SetModified
(
f
alse
);
// Don't save in this case
pLibInfo
->
SetRelStorageName
(
OUString
()
);
pLibInfo
->
SetRelStorageName
(
OUString
()
);
pLibInfo
->
IsReference
()
=
sal_T
rue
;
pLibInfo
->
IsReference
()
=
t
rue
;
}
}
else
else
{
{
pLibInfo
->
GetLib
()
->
SetModified
(
sal_T
rue
);
// Must be saved after Add!
pLibInfo
->
GetLib
()
->
SetModified
(
t
rue
);
// Must be saved after Add!
pLibInfo
->
SetStorageName
(
OUString
(
szImbedded
)
);
// Save in BasicManager-Storage
pLibInfo
->
SetStorageName
(
OUString
(
szImbedded
)
);
// Save in BasicManager-Storage
}
}
}
}
else
else
{
{
RemoveLib
(
nLibId
,
sal_F
alse
);
RemoveLib
(
nLibId
,
f
alse
);
pLibInfo
=
0
;
pLibInfo
=
0
;
}
}
...
@@ -1290,7 +1290,7 @@ StarBASIC* BasicManager::AddLib( SotStorage& rStorage, const OUString& rLibName,
...
@@ -1290,7 +1290,7 @@ StarBASIC* BasicManager::AddLib( SotStorage& rStorage, const OUString& rLibName,
}
}
sal_B
ool
BasicManager
::
IsReference
(
sal_uInt16
nLib
)
b
ool
BasicManager
::
IsReference
(
sal_uInt16
nLib
)
{
{
DBG_CHKTHIS
(
BasicManager
,
0
);
DBG_CHKTHIS
(
BasicManager
,
0
);
...
@@ -1300,16 +1300,16 @@ sal_Bool BasicManager::IsReference( sal_uInt16 nLib )
...
@@ -1300,16 +1300,16 @@ sal_Bool BasicManager::IsReference( sal_uInt16 nLib )
{
{
return
pLibInfo
->
IsReference
();
return
pLibInfo
->
IsReference
();
}
}
return
sal_F
alse
;
return
f
alse
;
}
}
sal_B
ool
BasicManager
::
RemoveLib
(
sal_uInt16
nLib
)
b
ool
BasicManager
::
RemoveLib
(
sal_uInt16
nLib
)
{
{
// Only pyhsical deletion if no reference
// Only pyhsical deletion if no reference
return
RemoveLib
(
nLib
,
!
IsReference
(
nLib
)
);
return
RemoveLib
(
nLib
,
!
IsReference
(
nLib
)
);
}
}
sal_Bool
BasicManager
::
RemoveLib
(
sal_uInt16
nLib
,
sal_B
ool
bDelBasicFromStorage
)
bool
BasicManager
::
RemoveLib
(
sal_uInt16
nLib
,
b
ool
bDelBasicFromStorage
)
{
{
DBG_CHKTHIS
(
BasicManager
,
0
);
DBG_CHKTHIS
(
BasicManager
,
0
);
DBG_ASSERT
(
nLib
,
"Standard-Lib cannot be removed!"
);
DBG_ASSERT
(
nLib
,
"Standard-Lib cannot be removed!"
);
...
@@ -1321,7 +1321,7 @@ sal_Bool BasicManager::RemoveLib( sal_uInt16 nLib, sal_Bool bDelBasicFromStorage
...
@@ -1321,7 +1321,7 @@ sal_Bool BasicManager::RemoveLib( sal_uInt16 nLib, sal_Bool bDelBasicFromStorage
{
{
StringErrorInfo
*
pErrInf
=
new
StringErrorInfo
(
ERRCODE_BASMGR_REMOVELIB
,
OUString
(),
ERRCODE_BUTTON_OK
);
StringErrorInfo
*
pErrInf
=
new
StringErrorInfo
(
ERRCODE_BASMGR_REMOVELIB
,
OUString
(),
ERRCODE_BUTTON_OK
);
aErrors
.
push_back
(
BasicError
(
*
pErrInf
,
BASERR_REASON_STDLIB
,
pLibInfo
->
GetLibName
()));
aErrors
.
push_back
(
BasicError
(
*
pErrInf
,
BASERR_REASON_STDLIB
,
pLibInfo
->
GetLibName
()));
return
sal_F
alse
;
return
f
alse
;
}
}
// If one of the streams cannot be opened, this is not an error,
// If one of the streams cannot be opened, this is not an error,
...
@@ -1384,7 +1384,7 @@ sal_Bool BasicManager::RemoveLib( sal_uInt16 nLib, sal_Bool bDelBasicFromStorage
...
@@ -1384,7 +1384,7 @@ sal_Bool BasicManager::RemoveLib( sal_uInt16 nLib, sal_Bool bDelBasicFromStorage
GetStdLib
()
->
Remove
(
pLibInfo
->
GetLib
()
);
GetStdLib
()
->
Remove
(
pLibInfo
->
GetLib
()
);
}
}
delete
pLibs
->
Remove
(
pLibInfo
);
delete
pLibs
->
Remove
(
pLibInfo
);
return
sal_T
rue
;
// Remove was successful, del unimportant
return
t
rue
;
// Remove was successful, del unimportant
}
}
sal_uInt16
BasicManager
::
GetLibCount
()
const
sal_uInt16
BasicManager
::
GetLibCount
()
const
...
@@ -1444,7 +1444,7 @@ sal_uInt16 BasicManager::GetLibId( const OUString& rName ) const
...
@@ -1444,7 +1444,7 @@ sal_uInt16 BasicManager::GetLibId( const OUString& rName ) const
return
LIB_NOTFOUND
;
return
LIB_NOTFOUND
;
}
}
sal_B
ool
BasicManager
::
HasLib
(
const
OUString
&
rName
)
const
b
ool
BasicManager
::
HasLib
(
const
OUString
&
rName
)
const
{
{
DBG_CHKTHIS
(
BasicManager
,
0
);
DBG_CHKTHIS
(
BasicManager
,
0
);
...
@@ -1453,14 +1453,14 @@ sal_Bool BasicManager::HasLib( const OUString& rName ) const
...
@@ -1453,14 +1453,14 @@ sal_Bool BasicManager::HasLib( const OUString& rName ) const
{
{
if
(
pInf
->
GetLibName
().
equalsIgnoreAsciiCase
(
rName
))
if
(
pInf
->
GetLibName
().
equalsIgnoreAsciiCase
(
rName
))
{
{
return
sal_T
rue
;
return
t
rue
;
}
}
pInf
=
pLibs
->
Next
();
pInf
=
pLibs
->
Next
();
}
}
return
sal_F
alse
;
return
f
alse
;
}
}
sal_B
ool
BasicManager
::
SetLibName
(
sal_uInt16
nLib
,
const
OUString
&
rName
)
b
ool
BasicManager
::
SetLibName
(
sal_uInt16
nLib
,
const
OUString
&
rName
)
{
{
DBG_CHKTHIS
(
BasicManager
,
0
);
DBG_CHKTHIS
(
BasicManager
,
0
);
...
@@ -1473,11 +1473,11 @@ sal_Bool BasicManager::SetLibName( sal_uInt16 nLib, const OUString& rName )
...
@@ -1473,11 +1473,11 @@ sal_Bool BasicManager::SetLibName( sal_uInt16 nLib, const OUString& rName )
{
{
StarBASICRef
xStdLib
=
pLibInfo
->
GetLib
();
StarBASICRef
xStdLib
=
pLibInfo
->
GetLib
();
xStdLib
->
SetName
(
rName
);
xStdLib
->
SetName
(
rName
);
xStdLib
->
SetModified
(
sal_T
rue
);
xStdLib
->
SetModified
(
t
rue
);
}
}
return
sal_T
rue
;
return
t
rue
;
}
}
return
sal_F
alse
;
return
f
alse
;
}
}
OUString
BasicManager
::
GetLibName
(
sal_uInt16
nLib
)
OUString
BasicManager
::
GetLibName
(
sal_uInt16
nLib
)
...
@@ -1493,11 +1493,11 @@ OUString BasicManager::GetLibName( sal_uInt16 nLib )
...
@@ -1493,11 +1493,11 @@ OUString BasicManager::GetLibName( sal_uInt16 nLib )
return
OUString
();
return
OUString
();
}
}
sal_B
ool
BasicManager
::
LoadLib
(
sal_uInt16
nLib
)
b
ool
BasicManager
::
LoadLib
(
sal_uInt16
nLib
)
{
{
DBG_CHKTHIS
(
BasicManager
,
0
);
DBG_CHKTHIS
(
BasicManager
,
0
);
sal_Bool
bDone
=
sal_F
alse
;
bool
bDone
=
f
alse
;
BasicLibInfo
*
pLibInfo
=
pLibs
->
GetObject
(
nLib
);
BasicLibInfo
*
pLibInfo
=
pLibs
->
GetObject
(
nLib
);
DBG_ASSERT
(
pLibInfo
,
"Lib?!"
);
DBG_ASSERT
(
pLibInfo
,
"Lib?!"
);
if
(
pLibInfo
)
if
(
pLibInfo
)
...
@@ -1511,7 +1511,7 @@ sal_Bool BasicManager::LoadLib( sal_uInt16 nLib )
...
@@ -1511,7 +1511,7 @@ sal_Bool BasicManager::LoadLib( sal_uInt16 nLib )
}
}
else
else
{
{
bDone
=
ImpLoadLibrary
(
pLibInfo
,
NULL
,
sal_F
alse
);
bDone
=
ImpLoadLibrary
(
pLibInfo
,
NULL
,
f
alse
);
StarBASIC
*
pLib
=
GetLib
(
nLib
);
StarBASIC
*
pLib
=
GetLib
(
nLib
);
if
(
pLib
)
if
(
pLib
)
{
{
...
@@ -1558,7 +1558,7 @@ StarBASIC* BasicManager::CreateLib( const OUString& rLibName, const OUString& Pa
...
@@ -1558,7 +1558,7 @@ StarBASIC* BasicManager::CreateLib( const OUString& rLibName, const OUString& Pa
SotStorageRef
xStorage
=
new
SotStorage
(
false
,
LinkTargetURL
,
STREAM_READ
|
STREAM_SHARE_DENYWRITE
);
SotStorageRef
xStorage
=
new
SotStorage
(
false
,
LinkTargetURL
,
STREAM_READ
|
STREAM_SHARE_DENYWRITE
);
if
(
!
xStorage
->
GetError
()
)
if
(
!
xStorage
->
GetError
()
)
{
{
pLib
=
AddLib
(
*
xStorage
,
rLibName
,
sal_T
rue
);
pLib
=
AddLib
(
*
xStorage
,
rLibName
,
t
rue
);
}
}
DBG_ASSERT
(
pLib
,
"XML Import: Linked basic library could not be loaded"
);
DBG_ASSERT
(
pLib
,
"XML Import: Linked basic library could not be loaded"
);
...
@@ -1614,7 +1614,7 @@ BasicLibInfo* BasicManager::FindLibInfo( StarBASIC* pBasic ) const
...
@@ -1614,7 +1614,7 @@ BasicLibInfo* BasicManager::FindLibInfo( StarBASIC* pBasic ) const
}
}
sal_B
ool
BasicManager
::
IsBasicModified
()
const
b
ool
BasicManager
::
IsBasicModified
()
const
{
{
DBG_CHKTHIS
(
BasicManager
,
0
);
DBG_CHKTHIS
(
BasicManager
,
0
);
...
@@ -1623,11 +1623,11 @@ sal_Bool BasicManager::IsBasicModified() const
...
@@ -1623,11 +1623,11 @@ sal_Bool BasicManager::IsBasicModified() const
{
{
if
(
pInf
->
GetLib
().
Is
()
&&
pInf
->
GetLib
()
->
IsModified
()
)
if
(
pInf
->
GetLib
().
Is
()
&&
pInf
->
GetLib
()
->
IsModified
()
)
{
{
return
sal_T
rue
;
return
t
rue
;
}
}
pInf
=
pLibs
->
Next
();
pInf
=
pLibs
->
Next
();
}
}
return
sal_F
alse
;
return
f
alse
;
}
}
std
::
vector
<
BasicError
>&
BasicManager
::
GetErrors
()
std
::
vector
<
BasicError
>&
BasicManager
::
GetErrors
()
...
@@ -2136,7 +2136,7 @@ sal_Bool DialogContainer_Impl::hasElements()
...
@@ -2136,7 +2136,7 @@ sal_Bool DialogContainer_Impl::hasElements()
SbxVariable
*
pVar
=
mpLib
->
GetObjects
()
->
Get
(
nObj
);
SbxVariable
*
pVar
=
mpLib
->
GetObjects
()
->
Get
(
nObj
);
if
(
pVar
->
ISA
(
SbxObject
)
&&
(
((
SbxObject
*
)
pVar
)
->
GetSbxId
()
==
SBXID_DIALOG
)
)
if
(
pVar
->
ISA
(
SbxObject
)
&&
(
((
SbxObject
*
)
pVar
)
->
GetSbxId
()
==
SBXID_DIALOG
)
)
{
{
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
break
;
break
;
}
}
}
}
...
@@ -2193,7 +2193,7 @@ sal_Bool DialogContainer_Impl::hasByName( const OUString& aName )
...
@@ -2193,7 +2193,7 @@ sal_Bool DialogContainer_Impl::hasByName( const OUString& aName )
if
(
pVar
&&
pVar
->
ISA
(
SbxObject
)
&&
if
(
pVar
&&
pVar
->
ISA
(
SbxObject
)
&&
(
((
SbxObject
*
)
pVar
)
->
GetSbxId
()
==
SBXID_DIALOG
)
)
(
((
SbxObject
*
)
pVar
)
->
GetSbxId
()
==
SBXID_DIALOG
)
)
{
{
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
}
}
return
bRet
;
return
bRet
;
}
}
...
...
basic/source/inc/scriptcont.hxx
Dosyayı görüntüle @
d7c5d9e3
...
@@ -84,7 +84,7 @@ class SfxScriptLibraryContainer : public SfxLibraryContainer, public OldBasicPas
...
@@ -84,7 +84,7 @@ class SfxScriptLibraryContainer : public SfxLibraryContainer, public OldBasicPas
virtual
void
setLibraryPassword
(
const
OUString
&
rLibraryName
,
const
OUString
&
rPassword
)
SAL_OVERRIDE
;
virtual
void
setLibraryPassword
(
const
OUString
&
rLibraryName
,
const
OUString
&
rPassword
)
SAL_OVERRIDE
;
virtual
OUString
getLibraryPassword
(
const
OUString
&
rLibraryName
)
SAL_OVERRIDE
;
virtual
OUString
getLibraryPassword
(
const
OUString
&
rLibraryName
)
SAL_OVERRIDE
;
virtual
void
clearLibraryPassword
(
const
OUString
&
rLibraryName
)
SAL_OVERRIDE
;
virtual
void
clearLibraryPassword
(
const
OUString
&
rLibraryName
)
SAL_OVERRIDE
;
virtual
sal_B
ool
hasLibraryPassword
(
const
OUString
&
rLibraryName
)
SAL_OVERRIDE
;
virtual
b
ool
hasLibraryPassword
(
const
OUString
&
rLibraryName
)
SAL_OVERRIDE
;
virtual
const
sal_Char
*
SAL_CALL
getInfoFileName
()
const
SAL_OVERRIDE
;
virtual
const
sal_Char
*
SAL_CALL
getInfoFileName
()
const
SAL_OVERRIDE
;
virtual
const
sal_Char
*
SAL_CALL
getOldInfoFileName
()
const
SAL_OVERRIDE
;
virtual
const
sal_Char
*
SAL_CALL
getOldInfoFileName
()
const
SAL_OVERRIDE
;
...
...
basic/source/uno/modsizeexceeded.cxx
Dosyayı görüntüle @
d7c5d9e3
...
@@ -40,14 +40,14 @@ ModuleSizeExceeded::ModuleSizeExceeded( const uno::Sequence< OUString >& sModule
...
@@ -40,14 +40,14 @@ ModuleSizeExceeded::ModuleSizeExceeded( const uno::Sequence< OUString >& sModule
m_lContinuations
[
1
]
=
m_xAbort
;
m_lContinuations
[
1
]
=
m_xAbort
;
}
}
sal_B
ool
b
ool
ModuleSizeExceeded
::
isAbort
()
const
ModuleSizeExceeded
::
isAbort
()
const
{
{
comphelper
::
OInteractionAbort
*
pBase
=
static_cast
<
comphelper
::
OInteractionAbort
*
>
(
m_xAbort
.
get
()
);
comphelper
::
OInteractionAbort
*
pBase
=
static_cast
<
comphelper
::
OInteractionAbort
*
>
(
m_xAbort
.
get
()
);
return
pBase
->
wasSelected
();
return
pBase
->
wasSelected
();
}
}
sal_B
ool
b
ool
ModuleSizeExceeded
::
isApprove
()
const
ModuleSizeExceeded
::
isApprove
()
const
{
{
comphelper
::
OInteractionApprove
*
pBase
=
static_cast
<
comphelper
::
OInteractionApprove
*
>
(
m_xApprove
.
get
()
);
comphelper
::
OInteractionApprove
*
pBase
=
static_cast
<
comphelper
::
OInteractionApprove
*
>
(
m_xApprove
.
get
()
);
...
...
basic/source/uno/scriptcont.cxx
Dosyayı görüntüle @
d7c5d9e3
...
@@ -120,7 +120,7 @@ void SfxScriptLibraryContainer::clearLibraryPassword( const OUString& rLibraryNa
...
@@ -120,7 +120,7 @@ void SfxScriptLibraryContainer::clearLibraryPassword( const OUString& rLibraryNa
catch
(
const
NoSuchElementException
&
)
{}
catch
(
const
NoSuchElementException
&
)
{}
}
}
sal_B
ool
SfxScriptLibraryContainer
::
hasLibraryPassword
(
const
OUString
&
rLibraryName
)
b
ool
SfxScriptLibraryContainer
::
hasLibraryPassword
(
const
OUString
&
rLibraryName
)
{
{
SfxLibrary
*
pImplLib
=
getImplLib
(
rLibraryName
);
SfxLibrary
*
pImplLib
=
getImplLib
(
rLibraryName
);
return
pImplLib
->
mbPasswordProtected
;
return
pImplLib
->
mbPasswordProtected
;
...
...
include/basic/basmgr.hxx
Dosyayı görüntüle @
d7c5d9e3
...
@@ -76,7 +76,7 @@ public:
...
@@ -76,7 +76,7 @@ public:
virtual
void
setLibraryPassword
(
const
OUString
&
rLibraryName
,
const
OUString
&
rPassword
)
=
0
;
virtual
void
setLibraryPassword
(
const
OUString
&
rLibraryName
,
const
OUString
&
rPassword
)
=
0
;
virtual
OUString
getLibraryPassword
(
const
OUString
&
rLibraryName
)
=
0
;
virtual
OUString
getLibraryPassword
(
const
OUString
&
rLibraryName
)
=
0
;
virtual
void
clearLibraryPassword
(
const
OUString
&
rLibraryName
)
=
0
;
virtual
void
clearLibraryPassword
(
const
OUString
&
rLibraryName
)
=
0
;
virtual
sal_Bool
hasLibraryPassword
(
const
OUString
&
rLibraryName
)
=
0
;
virtual
bool
hasLibraryPassword
(
const
OUString
&
rLibraryName
)
=
0
;
protected
:
protected
:
~
OldBasicPassword
()
{}
~
OldBasicPassword
()
{}
...
@@ -130,17 +130,17 @@ private:
...
@@ -130,17 +130,17 @@ private:
BASIC_DLLPRIVATE
void
Init
();
BASIC_DLLPRIVATE
void
Init
();
protected
:
protected
:
sal_Bool
ImpLoadLibrary
(
BasicLibInfo
*
pLibInfo
)
const
;
bool
ImpLoadLibrary
(
BasicLibInfo
*
pLibInfo
)
const
;
sal_Bool
ImpLoadLibrary
(
BasicLibInfo
*
pLibInfo
,
SotStorage
*
pCurStorage
,
sal_Bool
bInfosOnly
=
sal_F
alse
);
bool
ImpLoadLibrary
(
BasicLibInfo
*
pLibInfo
,
SotStorage
*
pCurStorage
,
bool
bInfosOnly
=
f
alse
);
void
ImpCreateStdLib
(
StarBASIC
*
pParentFromStdLib
);
void
ImpCreateStdLib
(
StarBASIC
*
pParentFromStdLib
);
void
ImpMgrNotLoaded
(
const
OUString
&
rStorageName
);
void
ImpMgrNotLoaded
(
const
OUString
&
rStorageName
);
BasicLibInfo
*
CreateLibInfo
();
BasicLibInfo
*
CreateLibInfo
();
void
LoadBasicManager
(
SotStorage
&
rStorage
,
const
OUString
&
rBaseURL
,
sal_Bool
bLoadBasics
=
sal_T
rue
);
void
LoadBasicManager
(
SotStorage
&
rStorage
,
const
OUString
&
rBaseURL
,
bool
bLoadBasics
=
t
rue
);
void
LoadOldBasicManager
(
SotStorage
&
rStorage
);
void
LoadOldBasicManager
(
SotStorage
&
rStorage
);
sal_Bool
ImplLoadBasic
(
SvStream
&
rStrm
,
StarBASICRef
&
rOldBasic
)
const
;
bool
ImplLoadBasic
(
SvStream
&
rStrm
,
StarBASICRef
&
rOldBasic
)
const
;
sal_Bool
ImplEncryptStream
(
SvStream
&
rStream
)
const
;
bool
ImplEncryptStream
(
SvStream
&
rStream
)
const
;
BasicLibInfo
*
FindLibInfo
(
StarBASIC
*
pBasic
)
const
;
BasicLibInfo
*
FindLibInfo
(
StarBASIC
*
pBasic
)
const
;
void
CheckModules
(
StarBASIC
*
pBasic
,
sal_B
ool
bReference
)
const
;
void
CheckModules
(
StarBASIC
*
pBasic
,
b
ool
bReference
)
const
;
~
BasicManager
();
~
BasicManager
();
public
:
public
:
...
@@ -182,11 +182,11 @@ public:
...
@@ -182,11 +182,11 @@ public:
const
::
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
script
::
XPersistentLibraryContainer
>&
const
::
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
script
::
XPersistentLibraryContainer
>&
GetScriptLibraryContainer
()
const
;
GetScriptLibraryContainer
()
const
;
sal_Bool
LoadLib
(
sal_uInt16
nLib
);
bool
LoadLib
(
sal_uInt16
nLib
);
sal_Bool
RemoveLib
(
sal_uInt16
nLib
,
sal_B
ool
bDelBasicFromStorage
);
bool
RemoveLib
(
sal_uInt16
nLib
,
b
ool
bDelBasicFromStorage
);
// Modify-Flag will be reset only during save.
// Modify-Flag will be reset only during save.
sal_Bool
IsBasicModified
()
const
;
bool
IsBasicModified
()
const
;
std
::
vector
<
BasicError
>&
GetErrors
();
std
::
vector
<
BasicError
>&
GetErrors
();
...
@@ -215,14 +215,14 @@ public:
...
@@ -215,14 +215,14 @@ public:
ErrCode
ExecuteMacro
(
OUString
const
&
i_fullyQualifiedName
,
OUString
const
&
i_commaSeparatedArgs
,
SbxValue
*
i_retValue
);
ErrCode
ExecuteMacro
(
OUString
const
&
i_fullyQualifiedName
,
OUString
const
&
i_commaSeparatedArgs
,
SbxValue
*
i_retValue
);
private
:
private
:
BASIC_DLLPRIVATE
sal_B
ool
IsReference
(
sal_uInt16
nLib
);
BASIC_DLLPRIVATE
b
ool
IsReference
(
sal_uInt16
nLib
);
BASIC_DLLPRIVATE
sal_B
ool
SetLibName
(
sal_uInt16
nLib
,
const
OUString
&
rName
);
BASIC_DLLPRIVATE
b
ool
SetLibName
(
sal_uInt16
nLib
,
const
OUString
&
rName
);
BASIC_DLLPRIVATE
StarBASIC
*
GetStdLib
()
const
;
BASIC_DLLPRIVATE
StarBASIC
*
GetStdLib
()
const
;
BASIC_DLLPRIVATE
StarBASIC
*
AddLib
(
SotStorage
&
rStorage
,
const
OUString
&
rLibName
,
sal_B
ool
bReference
);
BASIC_DLLPRIVATE
StarBASIC
*
AddLib
(
SotStorage
&
rStorage
,
const
OUString
&
rLibName
,
b
ool
bReference
);
BASIC_DLLPRIVATE
sal_B
ool
RemoveLib
(
sal_uInt16
nLib
);
BASIC_DLLPRIVATE
b
ool
RemoveLib
(
sal_uInt16
nLib
);
BASIC_DLLPRIVATE
sal_B
ool
HasLib
(
const
OUString
&
rName
)
const
;
BASIC_DLLPRIVATE
b
ool
HasLib
(
const
OUString
&
rName
)
const
;
BASIC_DLLPRIVATE
StarBASIC
*
CreateLibForLibContainer
(
const
OUString
&
rLibName
,
BASIC_DLLPRIVATE
StarBASIC
*
CreateLibForLibContainer
(
const
OUString
&
rLibName
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
script
::
XLibraryContainer
>&
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
script
::
XLibraryContainer
>&
...
...
include/basic/modsizeexceeded.hxx
Dosyayı görüntüle @
d7c5d9e3
...
@@ -30,8 +30,8 @@ class BASIC_DLLPUBLIC ModuleSizeExceeded : public ::cppu::WeakImplHelper1< ::com
...
@@ -30,8 +30,8 @@ class BASIC_DLLPUBLIC ModuleSizeExceeded : public ::cppu::WeakImplHelper1< ::com
public
:
public
:
ModuleSizeExceeded
(
const
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>&
sModules
);
ModuleSizeExceeded
(
const
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>&
sModules
);
sal_B
ool
isAbort
()
const
;
b
ool
isAbort
()
const
;
sal_B
ool
isApprove
()
const
;
b
ool
isApprove
()
const
;
// UNO interface
// UNO interface
public
:
public
:
...
...
sw/source/core/uibase/app/docsh2.cxx
Dosyayı görüntüle @
d7c5d9e3
...
@@ -1317,7 +1317,7 @@ void SwDocShell::ReloadFromHtml( const OUString& rStreamName, SwSrcView* pSrcVie
...
@@ -1317,7 +1317,7 @@ void SwDocShell::ReloadFromHtml( const OUString& rStreamName, SwSrcView* pSrcVie
// Only the modules are deleted from the standard-lib
// Only the modules are deleted from the standard-lib
if
(
nLibCount
)
if
(
nLibCount
)
pBasicMan
->
RemoveLib
(
nLibCount
,
sal_T
rue
);
pBasicMan
->
RemoveLib
(
nLibCount
,
t
rue
);
else
else
pBasic
->
Clear
();
pBasic
->
Clear
();
}
}
...
...
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