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
70f0bc6b
Kaydet (Commit)
70f0bc6b
authored
Nis 08, 2010
tarafından
npower Developer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
npower13_objectmodule: fold in review comments ( for basctl )
üst
7fc42230
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
23 deletions
+36
-23
baside2.cxx
basctl/source/basicide/baside2.cxx
+8
-0
basides1.cxx
basctl/source/basicide/basides1.cxx
+2
-0
basidesh.cxx
basctl/source/basicide/basidesh.cxx
+1
-1
bastype2.cxx
basctl/source/basicide/bastype2.cxx
+9
-8
bastypes.cxx
basctl/source/basicide/bastypes.cxx
+16
-14
No files found.
basctl/source/basicide/baside2.cxx
Dosyayı görüntüle @
70f0bc6b
...
...
@@ -210,6 +210,14 @@ ModulWindow::ModulWindow( ModulWindowLayout* pParent, const ScriptDocument& rDoc
SbModuleRef
ModulWindow
::
XModule
()
{
// ModuleWindows can now be created as a result of the
// modules getting created via the api. This is a result of an
// elementInserted event from the BasicLibrary container.
// However the SbModule is also created from a different listener to
// the same event ( in basmgr ) Therefore it is possible when we look
// for xModule it may not yet be available, here we keep tring to access
// the module until such time as it exists
if
(
!
xModule
.
Is
()
)
{
BasicManager
*
pBasMgr
=
GetDocument
().
getBasicManager
();
...
...
basctl/source/basicide/basides1.cxx
Dosyayı görüntüle @
70f0bc6b
...
...
@@ -1201,7 +1201,9 @@ IDEBaseWindow* BasicIDEShell::FindWindow( const ScriptDocument& rDocument, const
else
if
(
pWin
->
IsDocument
(
rDocument
)
&&
pWin
->
GetLibName
()
==
rLibName
&&
pWin
->
GetName
()
==
rName
&&
(
(
pWin
->
IsA
(
TYPE
(
ModulWindow
)
)
&&
nType
==
BASICIDE_TYPE_MODULE
)
||
(
pWin
->
IsA
(
TYPE
(
DialogWindow
)
)
&&
nType
==
BASICIDE_TYPE_DIALOG
)
)
)
{
return
pWin
;
}
}
pWin
=
aIDEWindowTable
.
Next
();
}
...
...
basctl/source/basicide/basidesh.cxx
Dosyayı görüntüle @
70f0bc6b
...
...
@@ -282,7 +282,7 @@ __EXPORT BasicIDEShell::~BasicIDEShell()
delete
pObjectCatalog
;
DestroyModulWindowLayout
();
ContainerListenerImpl
*
pListener
=
dynam
ic_cast
<
ContainerListenerImpl
*
>
(
m_xLibListener
.
get
()
);
ContainerListenerImpl
*
pListener
=
stat
ic_cast
<
ContainerListenerImpl
*
>
(
m_xLibListener
.
get
()
);
// Destroy all ContainerListeners for Basic Container.
if
(
pListener
)
pListener
->
removeContainerListener
(
m_aCurDocument
,
m_aCurLibName
);
...
...
basctl/source/basicide/bastype2.cxx
Dosyayı görüntüle @
70f0bc6b
...
...
@@ -395,14 +395,15 @@ void BasicTreeListBox::ImpCreateLibSubEntries( SvLBoxEntry* pLibRootEntry, const
void
BasicTreeListBox
::
ImpCreateLibSubEntriesInVBAMode
(
SvLBoxEntry
*
pLibRootEntry
,
const
ScriptDocument
&
rDocument
,
const
String
&
rLibName
)
{
::
std
::
map
<
BasicEntryType
,
::
rtl
::
OUString
>
aEntryMap
;
aEntryMap
.
insert
(
::
std
::
make_pair
(
OBJ_TYPE_DOCUMENT_OBJECTS
,
String
(
IDEResId
(
RID_STR_DOCUMENT_OBJECTS
)
)
)
);
aEntryMap
.
insert
(
::
std
::
make_pair
(
OBJ_TYPE_USERFORMS
,
String
(
IDEResId
(
RID_STR_USERFORMS
)
)
)
);
aEntryMap
.
insert
(
::
std
::
make_pair
(
OBJ_TYPE_NORMAL_MODULES
,
String
(
IDEResId
(
RID_STR_NORMAL_MODULES
)
)
)
);
aEntryMap
.
insert
(
::
std
::
make_pair
(
OBJ_TYPE_CLASS_MODULES
,
String
(
IDEResId
(
RID_STR_CLASS_MODULES
)
)
)
);
::
std
::
map
<
BasicEntryType
,
::
rtl
::
OUString
>::
iterator
iter
;
for
(
iter
=
aEntryMap
.
begin
();
iter
!=
aEntryMap
.
end
();
++
iter
)
::
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_USERFORMS
,
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_CLASS_MODULES
,
String
(
IDEResId
(
RID_STR_CLASS_MODULES
)
)
)
);
::
std
::
vector
<
std
::
pair
<
BasicEntryType
,
::
rtl
::
OUString
>
>::
iterator
iter
;
for
(
iter
=
aEntries
.
begin
();
iter
!=
aEntries
.
end
();
++
iter
)
{
BasicEntryType
eType
=
iter
->
first
;
::
rtl
::
OUString
aEntryName
=
iter
->
second
;
...
...
basctl/source/basicide/bastypes.cxx
Dosyayı görüntüle @
70f0bc6b
...
...
@@ -585,24 +585,26 @@ void __EXPORT BasicIDETabBar::Command( const CommandEvent& rCEvt )
aPopup
.
EnableItem
(
SID_BASICIDE_RENAMECURRENT
,
FALSE
);
aPopup
.
RemoveDisabledEntries
();
}
// disable to delete or remove object modules in IDE
BasicManager
*
pBasMgr
=
aDocument
.
getBasicManager
();
if
(
pBasMgr
)
if
(
aDocument
.
isInVBAMode
()
)
{
StarBASIC
*
pBasic
=
pBasMgr
->
GetLib
(
aOULibName
);
if
(
pBasic
)
// disable to delete or remove object modules in IDE
BasicManager
*
pBasMgr
=
aDocument
.
getBasicManager
();
if
(
pBasMgr
)
{
IDEWindowTable
&
aIDEWindowTable
=
pIDEShell
->
GetIDEWindowTable
();
IDEBaseWindow
*
pWin
=
aIDEWindowTable
.
Get
(
GetCurPageId
()
);
if
(
pWin
&&
pWin
->
ISA
(
ModulWindow
)
)
StarBASIC
*
pBasic
=
pBasMgr
->
GetLib
(
aOULibName
);
if
(
pBasic
)
{
SbModule
*
pActiveModule
=
(
SbModule
*
)
pBasic
->
FindModule
(
pWin
->
GetName
()
);
if
(
pActiveModule
&&
(
pActiveModule
->
GetModuleType
()
==
script
::
ModuleType
::
Document
)
)
IDEWindowTable
&
aIDEWindowTable
=
pIDEShell
->
GetIDEWindowTable
();
IDEBaseWindow
*
pWin
=
aIDEWindowTable
.
Get
(
GetCurPageId
()
);
if
(
pWin
&&
pWin
->
ISA
(
ModulWindow
)
)
{
aPopup
.
EnableItem
(
SID_BASICIDE_DELETECURRENT
,
FALSE
);
aPopup
.
EnableItem
(
SID_BASICIDE_RENAMECURRENT
,
FALSE
);
}
SbModule
*
pActiveModule
=
(
SbModule
*
)
pBasic
->
FindModule
(
pWin
->
GetName
()
);
if
(
pActiveModule
&&
(
pActiveModule
->
GetModuleType
()
==
script
::
ModuleType
::
Document
)
)
{
aPopup
.
EnableItem
(
SID_BASICIDE_DELETECURRENT
,
FALSE
);
aPopup
.
EnableItem
(
SID_BASICIDE_RENAMECURRENT
,
FALSE
);
}
}
}
}
}
...
...
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