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
9c2f9c79
Kaydet (Commit)
9c2f9c79
authored
Ara 09, 2011
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String->OUString
üst
7ffca8ed
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
33 deletions
+33
-33
basides1.cxx
basctl/source/basicide/basides1.cxx
+1
-1
bastype2.cxx
basctl/source/basicide/bastype2.cxx
+1
-1
bastype3.cxx
basctl/source/basicide/bastype3.cxx
+1
-1
bastypes.cxx
basctl/source/basicide/bastypes.cxx
+20
-20
moduldl2.cxx
basctl/source/basicide/moduldl2.cxx
+3
-3
moduldlg.cxx
basctl/source/basicide/moduldlg.cxx
+1
-1
bastypes.hxx
basctl/source/inc/bastypes.hxx
+6
-6
No files found.
basctl/source/basicide/basides1.cxx
Dosyayı görüntüle @
9c2f9c79
...
@@ -550,7 +550,7 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
...
@@ -550,7 +550,7 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aLibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aLibName
)
)
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aLibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aLibName
)
)
{
{
String
aPassword
;
::
rtl
::
OU
String
aPassword
;
bOK
=
QueryPassword
(
xModLibContainer
,
aLibName
,
aPassword
);
bOK
=
QueryPassword
(
xModLibContainer
,
aLibName
,
aPassword
);
}
}
}
}
...
...
basctl/source/basicide/bastype2.cxx
Dosyayı görüntüle @
9c2f9c79
...
@@ -661,7 +661,7 @@ long BasicTreeListBox::ExpandingHdl()
...
@@ -661,7 +661,7 @@ long BasicTreeListBox::ExpandingHdl()
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aLibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aLibName
)
)
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aLibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aLibName
)
)
{
{
String
aPassword
;
::
rtl
::
OU
String
aPassword
;
bOK
=
QueryPassword
(
xModLibContainer
,
aLibName
,
aPassword
);
bOK
=
QueryPassword
(
xModLibContainer
,
aLibName
,
aPassword
);
}
}
}
}
...
...
basctl/source/basicide/bastype3.cxx
Dosyayı görüntüle @
9c2f9c79
...
@@ -78,7 +78,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
...
@@ -78,7 +78,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOULibName
)
)
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOULibName
)
)
{
{
String
aPassword
;
::
rtl
::
OU
String
aPassword
;
bOK
=
QueryPassword
(
xModLibContainer
,
aLibName
,
aPassword
);
bOK
=
QueryPassword
(
xModLibContainer
,
aLibName
,
aPassword
);
}
}
}
}
...
...
basctl/source/basicide/bastypes.cxx
Dosyayı görüntüle @
9c2f9c79
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <basic/basmgr.hxx>
#include <basic/basmgr.hxx>
#include <com/sun/star/script/ModuleType.hpp>
#include <com/sun/star/script/ModuleType.hpp>
#include <com/sun/star/script/XLibraryContainerPassword.hpp>
#include <com/sun/star/script/XLibraryContainerPassword.hpp>
#include <comphelper/string.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/passwd.hxx>
#include <sfx2/passwd.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/viewfrm.hxx>
...
@@ -756,43 +757,43 @@ LibInfoItem* LibInfos::GetInfo( const LibInfoKey& rKey )
...
@@ -756,43 +757,43 @@ LibInfoItem* LibInfos::GetInfo( const LibInfoKey& rKey )
return
pItem
;
return
pItem
;
}
}
bool
QueryDel
(
const
String
&
rName
,
const
ResId
&
rId
,
Window
*
pParent
)
bool
QueryDel
(
const
::
rtl
::
OU
String
&
rName
,
const
ResId
&
rId
,
Window
*
pParent
)
{
{
String
aQuery
(
rId
);
::
rtl
::
OUString
aQuery
(
ResId
::
toString
(
rId
)
);
String
aName
(
rName
);
::
rtl
::
OUStringBuffer
aNameBuf
(
rName
);
aName
+=
'\''
;
aName
Buf
.
append
(
'\''
)
;
aName
.
Insert
(
'\''
,
0
);
aName
Buf
.
insert
(
0
,
'\''
);
aQuery
.
SearchAndReplace
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"XX"
)
),
aName
);
aQuery
=
::
comphelper
::
string
::
replace
(
aQuery
,
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"XX"
)),
aNameBuf
.
makeStringAndClear
()
);
QueryBox
aQueryBox
(
pParent
,
WB_YES_NO
|
WB_DEF_YES
,
aQuery
);
QueryBox
aQueryBox
(
pParent
,
WB_YES_NO
|
WB_DEF_YES
,
aQuery
);
return
(
aQueryBox
.
Execute
()
==
RET_YES
);
return
(
aQueryBox
.
Execute
()
==
RET_YES
);
}
}
bool
QueryDelMacro
(
const
String
&
rName
,
Window
*
pParent
)
bool
QueryDelMacro
(
const
::
rtl
::
OU
String
&
rName
,
Window
*
pParent
)
{
{
return
QueryDel
(
rName
,
IDEResId
(
RID_STR_QUERYDELMACRO
),
pParent
);
return
QueryDel
(
rName
,
IDEResId
(
RID_STR_QUERYDELMACRO
),
pParent
);
}
}
bool
QueryReplaceMacro
(
const
String
&
rName
,
Window
*
pParent
)
bool
QueryReplaceMacro
(
const
::
rtl
::
OU
String
&
rName
,
Window
*
pParent
)
{
{
return
QueryDel
(
rName
,
IDEResId
(
RID_STR_QUERYREPLACEMACRO
),
pParent
);
return
QueryDel
(
rName
,
IDEResId
(
RID_STR_QUERYREPLACEMACRO
),
pParent
);
}
}
bool
QueryDelDialog
(
const
String
&
rName
,
Window
*
pParent
)
bool
QueryDelDialog
(
const
::
rtl
::
OU
String
&
rName
,
Window
*
pParent
)
{
{
return
QueryDel
(
rName
,
IDEResId
(
RID_STR_QUERYDELDIALOG
),
pParent
);
return
QueryDel
(
rName
,
IDEResId
(
RID_STR_QUERYDELDIALOG
),
pParent
);
}
}
bool
QueryDelLib
(
const
String
&
rName
,
bool
bRef
,
Window
*
pParent
)
bool
QueryDelLib
(
const
::
rtl
::
OU
String
&
rName
,
bool
bRef
,
Window
*
pParent
)
{
{
return
QueryDel
(
rName
,
IDEResId
(
bRef
?
RID_STR_QUERYDELLIBREF
:
RID_STR_QUERYDELLIB
),
pParent
);
return
QueryDel
(
rName
,
IDEResId
(
bRef
?
RID_STR_QUERYDELLIBREF
:
RID_STR_QUERYDELLIB
),
pParent
);
}
}
bool
QueryDelModule
(
const
String
&
rName
,
Window
*
pParent
)
bool
QueryDelModule
(
const
::
rtl
::
OU
String
&
rName
,
Window
*
pParent
)
{
{
return
QueryDel
(
rName
,
IDEResId
(
RID_STR_QUERYDELMODULE
),
pParent
);
return
QueryDel
(
rName
,
IDEResId
(
RID_STR_QUERYDELMODULE
),
pParent
);
}
}
bool
QueryPassword
(
const
Reference
<
script
::
XLibraryContainer
>&
xLibContainer
,
const
String
&
rLibName
,
String
&
rPassword
,
bool
bRepeat
,
bool
bNewTitle
)
bool
QueryPassword
(
const
Reference
<
script
::
XLibraryContainer
>&
xLibContainer
,
const
::
rtl
::
OUString
&
rLibName
,
::
rtl
::
OU
String
&
rPassword
,
bool
bRepeat
,
bool
bNewTitle
)
{
{
bool
bOK
=
false
;
bool
bOK
=
false
;
sal_uInt16
nRet
=
0
;
sal_uInt16
nRet
=
0
;
...
@@ -806,8 +807,8 @@ bool QueryPassword( const Reference< script::XLibraryContainer >& xLibContainer,
...
@@ -806,8 +807,8 @@ bool QueryPassword( const Reference< script::XLibraryContainer >& xLibContainer,
// set new title
// set new title
if
(
bNewTitle
)
if
(
bNewTitle
)
{
{
String
aTitle
(
IDEResId
(
RID_STR_ENTERPASSWORD
)
);
::
rtl
::
OUString
aTitle
(
ResId
::
toString
(
IDEResId
(
RID_STR_ENTERPASSWORD
))
);
aTitle
.
SearchAndReplace
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"XX"
)
),
rLibName
);
aTitle
=
::
comphelper
::
string
::
replace
(
aTitle
,
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"XX"
)),
rLibName
);
pDlg
->
SetText
(
aTitle
);
pDlg
->
SetText
(
aTitle
);
}
}
...
@@ -817,19 +818,18 @@ bool QueryPassword( const Reference< script::XLibraryContainer >& xLibContainer,
...
@@ -817,19 +818,18 @@ bool QueryPassword( const Reference< script::XLibraryContainer >& xLibContainer,
// verify password
// verify password
if
(
nRet
==
RET_OK
)
if
(
nRet
==
RET_OK
)
{
{
::
rtl
::
OUString
aOULibName
(
rLibName
);
if
(
xLibContainer
.
is
()
&&
xLibContainer
->
hasByName
(
rLibName
)
)
if
(
xLibContainer
.
is
()
&&
xLibContainer
->
hasByName
(
aOULibName
)
)
{
{
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xLibContainer
,
UNO_QUERY
);
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xLibContainer
,
UNO_QUERY
);
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOU
LibName
)
)
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
rLibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
r
LibName
)
)
{
{
rPassword
=
pDlg
->
GetPassword
();
rPassword
=
pDlg
->
GetPassword
();
::
rtl
::
OUString
aOUPassword
(
rPassword
);
//
::rtl::OUString aOUPassword( rPassword );
bOK
=
xPasswd
->
verifyLibraryPassword
(
aOULibName
,
aOU
Password
);
bOK
=
xPasswd
->
verifyLibraryPassword
(
rLibName
,
r
Password
);
if
(
!
bOK
)
if
(
!
bOK
)
{
{
ErrorBox
aErrorBox
(
Application
::
GetDefDialogParent
(),
WB_OK
,
String
(
IDEResId
(
RID_STR_WRONGPASSWORD
)
)
);
ErrorBox
aErrorBox
(
Application
::
GetDefDialogParent
(),
WB_OK
,
ResId
::
to
String
(
IDEResId
(
RID_STR_WRONGPASSWORD
)
)
);
aErrorBox
.
Execute
();
aErrorBox
.
Execute
();
}
}
}
}
...
...
basctl/source/basicide/moduldl2.cxx
Dosyayı görüntüle @
9c2f9c79
...
@@ -313,7 +313,7 @@ sal_Bool BasicCheckBox::EditingEntry( SvLBoxEntry* pEntry, Selection& )
...
@@ -313,7 +313,7 @@ sal_Bool BasicCheckBox::EditingEntry( SvLBoxEntry* pEntry, Selection& )
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOULibName
)
)
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOULibName
)
)
{
{
String
aPassword
;
::
rtl
::
OU
String
aPassword
;
Reference
<
script
::
XLibraryContainer
>
xModLibContainer1
(
xModLibContainer
,
UNO_QUERY
);
Reference
<
script
::
XLibraryContainer
>
xModLibContainer1
(
xModLibContainer
,
UNO_QUERY
);
bOK
=
QueryPassword
(
xModLibContainer1
,
aLibName
,
aPassword
);
bOK
=
QueryPassword
(
xModLibContainer1
,
aLibName
,
aPassword
);
}
}
...
@@ -1006,7 +1006,7 @@ void LibPage::InsertLib()
...
@@ -1006,7 +1006,7 @@ void LibPage::InsertLib()
// check, if the library is password protected
// check, if the library is password protected
sal_Bool
bOK
=
sal_False
;
sal_Bool
bOK
=
sal_False
;
String
aPassword
;
::
rtl
::
OU
String
aPassword
;
if
(
xModLibContImport
.
is
()
&&
xModLibContImport
->
hasByName
(
aOULibName
)
)
if
(
xModLibContImport
.
is
()
&&
xModLibContImport
->
hasByName
(
aOULibName
)
)
{
{
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContImport
,
UNO_QUERY
);
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContImport
,
UNO_QUERY
);
...
@@ -1200,7 +1200,7 @@ void LibPage::Export( void )
...
@@ -1200,7 +1200,7 @@ void LibPage::Export( void )
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOULibName
)
)
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOULibName
)
)
{
{
String
aPassword
;
::
rtl
::
OU
String
aPassword
;
Reference
<
script
::
XLibraryContainer
>
xModLibContainer1
(
xModLibContainer
,
UNO_QUERY
);
Reference
<
script
::
XLibraryContainer
>
xModLibContainer1
(
xModLibContainer
,
UNO_QUERY
);
bOK
=
QueryPassword
(
xModLibContainer1
,
aLibName
,
aPassword
);
bOK
=
QueryPassword
(
xModLibContainer1
,
aLibName
,
aPassword
);
}
}
...
...
basctl/source/basicide/moduldlg.cxx
Dosyayı görüntüle @
9c2f9c79
...
@@ -771,7 +771,7 @@ bool ObjectPage::GetSelection( ScriptDocument& rDocument, String& rLibName )
...
@@ -771,7 +771,7 @@ bool ObjectPage::GetSelection( ScriptDocument& rDocument, String& rLibName )
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
Reference
<
script
::
XLibraryContainerPassword
>
xPasswd
(
xModLibContainer
,
UNO_QUERY
);
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOULibName
)
)
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOULibName
)
)
{
{
String
aPassword
;
::
rtl
::
OU
String
aPassword
;
bOK
=
QueryPassword
(
xModLibContainer
,
rLibName
,
aPassword
);
bOK
=
QueryPassword
(
xModLibContainer
,
rLibName
,
aPassword
);
}
}
...
...
basctl/source/inc/bastypes.hxx
Dosyayı görüntüle @
9c2f9c79
...
@@ -274,12 +274,12 @@ void CutLines( ::rtl::OUString& rStr, sal_Int32 nStartLine, sal_Int32
...
@@ -274,12 +274,12 @@ void CutLines( ::rtl::OUString& rStr, sal_Int32 nStartLine, sal_Int32
String
CreateMgrAndLibStr
(
const
String
&
rMgrName
,
const
String
&
rLibName
);
String
CreateMgrAndLibStr
(
const
String
&
rMgrName
,
const
String
&
rLibName
);
sal_uLong
CalcLineCount
(
SvStream
&
rStream
);
sal_uLong
CalcLineCount
(
SvStream
&
rStream
);
bool
QueryReplaceMacro
(
const
String
&
rName
,
Window
*
pParent
=
0
);
bool
QueryReplaceMacro
(
const
::
rtl
::
OU
String
&
rName
,
Window
*
pParent
=
0
);
bool
QueryDelMacro
(
const
String
&
rName
,
Window
*
pParent
=
0
);
bool
QueryDelMacro
(
const
::
rtl
::
OU
String
&
rName
,
Window
*
pParent
=
0
);
bool
QueryDelDialog
(
const
String
&
rName
,
Window
*
pParent
=
0
);
bool
QueryDelDialog
(
const
::
rtl
::
OU
String
&
rName
,
Window
*
pParent
=
0
);
bool
QueryDelModule
(
const
String
&
rName
,
Window
*
pParent
=
0
);
bool
QueryDelModule
(
const
::
rtl
::
OU
String
&
rName
,
Window
*
pParent
=
0
);
bool
QueryDelLib
(
const
String
&
rName
,
bool
bRef
=
sal_F
alse
,
Window
*
pParent
=
0
);
bool
QueryDelLib
(
const
::
rtl
::
OUString
&
rName
,
bool
bRef
=
f
alse
,
Window
*
pParent
=
0
);
bool
QueryPassword
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
script
::
XLibraryContainer
>&
xLibContainer
,
const
String
&
rLibName
,
String
&
rPassword
,
bool
bRepeat
=
false
,
bool
bNewTitle
=
false
);
bool
QueryPassword
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
script
::
XLibraryContainer
>&
xLibContainer
,
const
::
rtl
::
OUString
&
rLibName
,
::
rtl
::
OU
String
&
rPassword
,
bool
bRepeat
=
false
,
bool
bNewTitle
=
false
);
class
ModuleInfoHelper
class
ModuleInfoHelper
{
{
...
...
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