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
f00d6099
Kaydet (Commit)
f00d6099
authored
Nis 17, 2012
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
replaced String by rtl::OUString
üst
45b57a9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
bastype2.cxx
basctl/source/basicide/bastype2.cxx
+7
-7
bastype3.cxx
basctl/source/basicide/bastype3.cxx
+4
-6
No files found.
basctl/source/basicide/bastype2.cxx
Dosyayı görüntüle @
f00d6099
...
@@ -332,7 +332,7 @@ void BasicTreeListBox::ImpCreateLibSubEntries( SvLBoxEntry* pLibRootEntry, const
...
@@ -332,7 +332,7 @@ void BasicTreeListBox::ImpCreateLibSubEntries( SvLBoxEntry* pLibRootEntry, const
for
(
sal_Int32
i
=
0
;
i
<
nModCount
;
i
++
)
for
(
sal_Int32
i
=
0
;
i
<
nModCount
;
i
++
)
{
{
String
aModName
=
pModNames
[
i
];
::
rtl
::
OU
String
aModName
=
pModNames
[
i
];
SvLBoxEntry
*
pModuleEntry
=
FindEntry
(
pLibRootEntry
,
aModName
,
OBJ_TYPE_MODULE
);
SvLBoxEntry
*
pModuleEntry
=
FindEntry
(
pLibRootEntry
,
aModName
,
OBJ_TYPE_MODULE
);
if
(
!
pModuleEntry
)
if
(
!
pModuleEntry
)
pModuleEntry
=
AddEntry
(
pModuleEntry
=
AddEntry
(
...
@@ -408,10 +408,10 @@ void BasicTreeListBox::ImpCreateLibSubEntriesInVBAMode( SvLBoxEntry* pLibRootEnt
...
@@ -408,10 +408,10 @@ void BasicTreeListBox::ImpCreateLibSubEntriesInVBAMode( SvLBoxEntry* pLibRootEnt
{
{
::
std
::
vector
<
std
::
pair
<
BasicEntryType
,
::
rtl
::
OUString
>
>
aEntries
;
::
std
::
vector
<
std
::
pair
<
BasicEntryType
,
::
rtl
::
OUString
>
>
aEntries
;
aEntries
.
push_back
(
::
std
::
make_pair
(
OBJ_TYPE_DOCUMENT_OBJECTS
,
String
(
IDEResId
(
RID_STR_DOCUMENT_OBJECTS
)
)
)
);
aEntries
.
push_back
(
::
std
::
make_pair
(
OBJ_TYPE_DOCUMENT_OBJECTS
,
ResId
::
to
String
(
IDEResId
(
RID_STR_DOCUMENT_OBJECTS
)
)
)
);
aEntries
.
push_back
(
::
std
::
make_pair
(
OBJ_TYPE_USERFORMS
,
String
(
IDEResId
(
RID_STR_USERFORMS
)
)
)
);
aEntries
.
push_back
(
::
std
::
make_pair
(
OBJ_TYPE_USERFORMS
,
ResId
::
to
String
(
IDEResId
(
RID_STR_USERFORMS
)
)
)
);
aEntries
.
push_back
(
::
std
::
make_pair
(
OBJ_TYPE_NORMAL_MODULES
,
String
(
IDEResId
(
RID_STR_NORMAL_MODULES
)
)
)
);
aEntries
.
push_back
(
::
std
::
make_pair
(
OBJ_TYPE_NORMAL_MODULES
,
ResId
::
to
String
(
IDEResId
(
RID_STR_NORMAL_MODULES
)
)
)
);
aEntries
.
push_back
(
::
std
::
make_pair
(
OBJ_TYPE_CLASS_MODULES
,
String
(
IDEResId
(
RID_STR_CLASS_MODULES
)
)
)
);
aEntries
.
push_back
(
::
std
::
make_pair
(
OBJ_TYPE_CLASS_MODULES
,
ResId
::
to
String
(
IDEResId
(
RID_STR_CLASS_MODULES
)
)
)
);
::
std
::
vector
<
std
::
pair
<
BasicEntryType
,
::
rtl
::
OUString
>
>::
iterator
iter
;
::
std
::
vector
<
std
::
pair
<
BasicEntryType
,
::
rtl
::
OUString
>
>::
iterator
iter
;
for
(
iter
=
aEntries
.
begin
();
iter
!=
aEntries
.
end
();
++
iter
)
for
(
iter
=
aEntries
.
begin
();
iter
!=
aEntries
.
end
();
++
iter
)
...
@@ -798,8 +798,8 @@ void BasicTreeListBox::SetCurrentEntry( BasicEntryDescriptor& rDesc )
...
@@ -798,8 +798,8 @@ void BasicTreeListBox::SetCurrentEntry( BasicEntryDescriptor& rDesc )
{
{
aDesc
=
BasicEntryDescriptor
(
aDesc
=
BasicEntryDescriptor
(
ScriptDocument
::
getApplicationScriptDocument
(),
ScriptDocument
::
getApplicationScriptDocument
(),
LIBRARY_LOCATION_USER
,
String
::
CreateFromAscii
(
"Standard"
)
,
LIBRARY_LOCATION_USER
,
"Standard"
,
String
(),
String
::
CreateFromAscii
(
"."
)
,
OBJ_TYPE_UNKNOWN
);
::
rtl
::
OUString
(),
"."
,
OBJ_TYPE_UNKNOWN
);
}
}
ScriptDocument
aDocument
(
aDesc
.
GetDocument
()
);
ScriptDocument
aDocument
(
aDesc
.
GetDocument
()
);
OSL_ENSURE
(
aDocument
.
isValid
(),
"BasicTreeListBox::SetCurrentEntry: invalid document!"
);
OSL_ENSURE
(
aDocument
.
isValid
(),
"BasicTreeListBox::SetCurrentEntry: invalid document!"
);
...
...
basctl/source/basicide/bastype3.cxx
Dosyayı görüntüle @
f00d6099
...
@@ -67,8 +67,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
...
@@ -67,8 +67,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
}
}
else
if
(
eType
==
OBJ_TYPE_LIBRARY
)
else
if
(
eType
==
OBJ_TYPE_LIBRARY
)
{
{
String
aLibName
(
aDesc
.
GetLibName
()
);
::
rtl
::
OUString
aOULibName
(
aDesc
.
GetLibName
()
);
::
rtl
::
OUString
aOULibName
(
aLibName
);
// check password
// check password
sal_Bool
bOK
=
sal_True
;
sal_Bool
bOK
=
sal_True
;
...
@@ -79,7 +78,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
...
@@ -79,7 +78,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOULibName
)
)
if
(
xPasswd
.
is
()
&&
xPasswd
->
isLibraryPasswordProtected
(
aOULibName
)
&&
!
xPasswd
->
isLibraryPasswordVerified
(
aOULibName
)
)
{
{
::
rtl
::
OUString
aPassword
;
::
rtl
::
OUString
aPassword
;
bOK
=
QueryPassword
(
xModLibContainer
,
aLibName
,
aPassword
);
bOK
=
QueryPassword
(
xModLibContainer
,
a
OU
LibName
,
aPassword
);
}
}
}
}
...
@@ -115,7 +114,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
...
@@ -115,7 +114,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
if
(
bModLibLoaded
||
bDlgLibLoaded
)
if
(
bModLibLoaded
||
bDlgLibLoaded
)
{
{
// create the sub entries
// create the sub entries
ImpCreateLibSubEntries
(
pEntry
,
aDocument
,
aLibName
);
ImpCreateLibSubEntries
(
pEntry
,
aDocument
,
a
OU
LibName
);
// exchange image
// exchange image
bool
bDlgMode
=
(
nMode
&
BROWSEMODE_DIALOGS
)
&&
!
(
nMode
&
BROWSEMODE_MODULES
);
bool
bDlgMode
=
(
nMode
&
BROWSEMODE_DIALOGS
)
&&
!
(
nMode
&
BROWSEMODE_MODULES
);
...
@@ -133,7 +132,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
...
@@ -133,7 +132,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
||
eType
==
OBJ_TYPE_NORMAL_MODULES
||
eType
==
OBJ_TYPE_NORMAL_MODULES
||
eType
==
OBJ_TYPE_CLASS_MODULES
)
||
eType
==
OBJ_TYPE_CLASS_MODULES
)
{
{
String
aLibName
(
aDesc
.
GetLibName
()
);
::
rtl
::
OU
String
aLibName
(
aDesc
.
GetLibName
()
);
ImpCreateLibSubSubEntriesInVBAMode
(
pEntry
,
aDocument
,
aLibName
);
ImpCreateLibSubSubEntriesInVBAMode
(
pEntry
,
aDocument
,
aLibName
);
}
}
else
{
else
{
...
@@ -178,7 +177,6 @@ SbxVariable* BasicTreeListBox::FindVariable( SvLBoxEntry* pEntry )
...
@@ -178,7 +177,6 @@ SbxVariable* BasicTreeListBox::FindVariable( SvLBoxEntry* pEntry )
if
(
!
pEntry
)
if
(
!
pEntry
)
return
0
;
return
0
;
String
aLib
,
aModOrObj
,
aSubOrPropOrSObj
,
aPropOrSubInSObj
;
ScriptDocument
aDocument
(
ScriptDocument
::
getApplicationScriptDocument
()
);
ScriptDocument
aDocument
(
ScriptDocument
::
getApplicationScriptDocument
()
);
EntryArray
aEntries
;
EntryArray
aEntries
;
...
...
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