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
08b921ef
Kaydet (Commit)
08b921ef
authored
Kas 30, 2011
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Enum member names live in the outer name scope.
üst
1f538764
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
29 deletions
+29
-29
basides1.cxx
basctl/source/basicide/basides1.cxx
+9
-9
basidesh.cxx
basctl/source/basicide/basidesh.cxx
+3
-3
basobj2.cxx
basctl/source/basicide/basobj2.cxx
+1
-1
basobj3.cxx
basctl/source/basicide/basobj3.cxx
+1
-1
bastype3.cxx
basctl/source/basicide/bastype3.cxx
+5
-5
moduldl2.cxx
basctl/source/basicide/moduldl2.cxx
+1
-1
moduldlg.cxx
basctl/source/basicide/moduldlg.cxx
+2
-2
basidesh.hxx
basctl/source/inc/basidesh.hxx
+1
-1
sbxitem.hxx
basctl/source/inc/sbxitem.hxx
+6
-6
No files found.
basctl/source/basicide/basides1.cxx
Dosyayı görüntüle @
08b921ef
...
...
@@ -615,9 +615,9 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
String
aName
(
rSbxItem
.
GetName
()
);
if
(
!
m_aCurLibName
.
Len
()
||
(
aDocument
==
m_aCurDocument
&&
aLibName
==
m_aCurLibName
)
)
{
if
(
rSbxItem
.
GetType
()
==
B
asicIDEType
::
Module
)
if
(
rSbxItem
.
GetType
()
==
B
ASICIDE_TYPE_MODULE
)
FindBasWin
(
aDocument
,
aLibName
,
aName
,
sal_True
);
else
if
(
rSbxItem
.
GetType
()
==
B
asicIDEType
::
Dialog
)
else
if
(
rSbxItem
.
GetType
()
==
B
ASICIDE_TYPE_DIALOG
)
FindDlgWin
(
aDocument
,
aLibName
,
aName
,
sal_True
);
}
}
...
...
@@ -641,15 +641,15 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq )
String
aName
(
rSbxItem
.
GetName
()
);
SetCurLib
(
aDocument
,
aLibName
);
IDEBaseWindow
*
pWin
=
0
;
if
(
rSbxItem
.
GetType
()
==
B
asicIDEType
::
Dialog
)
if
(
rSbxItem
.
GetType
()
==
B
ASICIDE_TYPE_DIALOG
)
{
pWin
=
FindDlgWin
(
aDocument
,
aLibName
,
aName
,
sal_True
);
}
else
if
(
rSbxItem
.
GetType
()
==
B
asicIDEType
::
Module
)
else
if
(
rSbxItem
.
GetType
()
==
B
ASICIDE_TYPE_MODULE
)
{
pWin
=
FindBasWin
(
aDocument
,
aLibName
,
aName
,
sal_True
);
}
else
if
(
rSbxItem
.
GetType
()
==
B
asicIDEType
::
Method
)
else
if
(
rSbxItem
.
GetType
()
==
B
ASICIDE_TYPE_METHOD
)
{
pWin
=
FindBasWin
(
aDocument
,
aLibName
,
aName
,
sal_True
);
((
ModulWindow
*
)
pWin
)
->
EditMacro
(
rSbxItem
.
GetMethodName
()
);
...
...
@@ -1137,7 +1137,7 @@ void BasicIDEShell::SetCurWindow( IDEBaseWindow* pNewWin, sal_Bool bUpdateTabBar
BasicIDEData
*
pData
=
BasicIDEGlobals
::
GetExtraData
();
if
(
pData
)
{
sal_uInt16
nCurrentType
=
pCurWin
->
IsA
(
TYPE
(
ModulWindow
)
)
?
B
asicIDEType
::
Module
:
BasicIDEType
::
Dialog
;
sal_uInt16
nCurrentType
=
pCurWin
->
IsA
(
TYPE
(
ModulWindow
)
)
?
B
ASICIDE_TYPE_MODULE
:
BASICIDE_TYPE_DIALOG
;
LibInfoItem
*
pLibInfoItem
=
new
LibInfoItem
(
pCurWin
->
GetDocument
(),
pCurWin
->
GetLibName
(),
pCurWin
->
GetName
(),
nCurrentType
);
pData
->
GetLibInfos
().
InsertInfo
(
pLibInfoItem
);
}
...
...
@@ -1247,14 +1247,14 @@ IDEBaseWindow* BasicIDEShell::FindWindow( const ScriptDocument& rDocument, const
{
if
(
!
pWin
->
IsSuspended
()
||
bFindSuspended
)
{
if
(
!
rLibName
.
Len
()
||
!
rName
.
Len
()
||
nType
==
B
asicIDEType
::
Unknown
)
if
(
!
rLibName
.
Len
()
||
!
rName
.
Len
()
||
nType
==
B
ASICIDE_TYPE_UNKNOWN
)
{
// return any non-suspended window
return
pWin
;
}
else
if
(
pWin
->
IsDocument
(
rDocument
)
&&
pWin
->
GetLibName
()
==
rLibName
&&
pWin
->
GetName
()
==
rName
&&
(
(
pWin
->
IsA
(
TYPE
(
ModulWindow
)
)
&&
nType
==
B
asicIDEType
::
Module
)
||
(
pWin
->
IsA
(
TYPE
(
DialogWindow
)
)
&&
nType
==
B
asicIDEType
::
Dialog
)
)
)
(
(
pWin
->
IsA
(
TYPE
(
ModulWindow
)
)
&&
nType
==
B
ASICIDE_TYPE_MODULE
)
||
(
pWin
->
IsA
(
TYPE
(
DialogWindow
)
)
&&
nType
==
B
ASICIDE_TYPE_DIALOG
)
)
)
{
return
pWin
;
}
...
...
basctl/source/basicide/basidesh.cxx
Dosyayı görüntüle @
08b921ef
...
...
@@ -131,7 +131,7 @@ public:
rtl
::
OUString
sModuleName
;
if
(
mpShell
&&
(
Event
.
Accessor
>>=
sModuleName
)
)
{
IDEBaseWindow
*
pWin
=
mpShell
->
FindWindow
(
mpShell
->
m_aCurDocument
,
mpShell
->
m_aCurLibName
,
sModuleName
,
B
asicIDEType
::
Module
,
sal_True
);
IDEBaseWindow
*
pWin
=
mpShell
->
FindWindow
(
mpShell
->
m_aCurDocument
,
mpShell
->
m_aCurLibName
,
sModuleName
,
B
ASICIDE_TYPE_MODULE
,
sal_True
);
if
(
pWin
)
mpShell
->
RemoveWindow
(
pWin
,
sal_True
,
sal_True
);
}
...
...
@@ -804,7 +804,7 @@ void BasicIDEShell::UpdateWindows()
if
(
!
pWin
)
pWin
=
CreateBasWin
(
*
doc
,
aLibName
,
aModName
);
if
(
!
pNextActiveWindow
&&
pLibInfoItem
&&
pLibInfoItem
->
GetCurrentName
()
==
aModName
&&
pLibInfoItem
->
GetCurrentType
()
==
B
asicIDEType
::
Module
)
pLibInfoItem
->
GetCurrentType
()
==
B
ASICIDE_TYPE_MODULE
)
{
pNextActiveWindow
=
(
IDEBaseWindow
*
)
pWin
;
}
...
...
@@ -835,7 +835,7 @@ void BasicIDEShell::UpdateWindows()
if
(
!
pWin
)
pWin
=
CreateDlgWin
(
*
doc
,
aLibName
,
aDlgName
);
if
(
!
pNextActiveWindow
&&
pLibInfoItem
&&
pLibInfoItem
->
GetCurrentName
()
==
aDlgName
&&
pLibInfoItem
->
GetCurrentType
()
==
B
asicIDEType
::
Dialog
)
pLibInfoItem
->
GetCurrentType
()
==
B
ASICIDE_TYPE_DIALOG
)
{
pNextActiveWindow
=
(
IDEBaseWindow
*
)
pWin
;
}
...
...
basctl/source/basicide/basobj2.cxx
Dosyayı görüntüle @
08b921ef
...
...
@@ -197,7 +197,7 @@ bool RenameModule( Window* pErrorParent, const ScriptDocument& rDocument, const
BasicIDEShell
*
pIDEShell
=
BasicIDEGlobals
::
GetShell
();
if
(
pIDEShell
)
{
IDEBaseWindow
*
pWin
=
pIDEShell
->
FindWindow
(
rDocument
,
rLibName
,
rNewName
,
B
asicIDEType
::
Module
,
sal_True
);
IDEBaseWindow
*
pWin
=
pIDEShell
->
FindWindow
(
rDocument
,
rLibName
,
rNewName
,
B
ASICIDE_TYPE_MODULE
,
sal_True
);
if
(
pWin
)
{
// set new name in window
...
...
basctl/source/basicide/basobj3.cxx
Dosyayı görüntüle @
08b921ef
...
...
@@ -197,7 +197,7 @@ bool RenameDialog( Window* pErrorParent, const ScriptDocument& rDocument, const
}
BasicIDEShell
*
pIDEShell
=
BasicIDEGlobals
::
GetShell
();
IDEBaseWindow
*
pWin
=
pIDEShell
?
pIDEShell
->
FindWindow
(
rDocument
,
rLibName
,
rOldName
,
B
asicIDEType
::
Dialog
,
sal_False
)
:
NULL
;
IDEBaseWindow
*
pWin
=
pIDEShell
?
pIDEShell
->
FindWindow
(
rDocument
,
rLibName
,
rOldName
,
B
ASICIDE_TYPE_DIALOG
,
sal_False
)
:
NULL
;
Reference
<
XNameContainer
>
xExistingDialog
;
if
(
pWin
)
xExistingDialog
=
((
DialogWindow
*
)
pWin
)
->
GetEditor
()
->
GetDialog
();
...
...
basctl/source/basicide/bastype3.cxx
Dosyayı görüntüle @
08b921ef
...
...
@@ -383,27 +383,27 @@ BasicIDEType BasicTreeListBox::ConvertType( BasicEntryType eType )
{
case
OBJ_TYPE_DOCUMENT
:
{
nType
=
B
asicIDEType
::
Shell
;
nType
=
B
ASICIDE_TYPE_SHELL
;
}
break
;
case
OBJ_TYPE_LIBRARY
:
{
nType
=
B
asicIDEType
::
Library
;
nType
=
B
ASICIDE_TYPE_LIBRARY
;
}
break
;
case
OBJ_TYPE_MODULE
:
{
nType
=
B
asicIDEType
::
Module
;
nType
=
B
ASICIDE_TYPE_MODULE
;
}
break
;
case
OBJ_TYPE_DIALOG
:
{
nType
=
B
asicIDEType
::
Dialog
;
nType
=
B
ASICIDE_TYPE_DIALOG
;
}
break
;
case
OBJ_TYPE_METHOD
:
{
nType
=
B
asicIDEType
::
Method
;
nType
=
B
ASICIDE_TYPE_METHOD
;
}
break
;
default
:
;
...
...
basctl/source/basicide/moduldl2.cxx
Dosyayı görüntüle @
08b921ef
...
...
@@ -1681,7 +1681,7 @@ void createLibImpl( Window* pWin, const ScriptDocument& rDocument,
if
(
!
rDocument
.
createModule
(
aLibName
,
aModName
,
sal_True
,
sModuleCode
)
)
throw
Exception
();
SbxItem
aSbxItem
(
SID_BASICIDE_ARG_SBX
,
rDocument
,
aLibName
,
aModName
,
B
asicIDEType
::
Module
);
SbxItem
aSbxItem
(
SID_BASICIDE_ARG_SBX
,
rDocument
,
aLibName
,
aModName
,
B
ASICIDE_TYPE_MODULE
);
BasicIDEShell
*
pIDEShell
=
BasicIDEGlobals
::
GetShell
();
SfxViewFrame
*
pViewFrame
=
pIDEShell
?
pIDEShell
->
GetViewFrame
()
:
NULL
;
SfxDispatcher
*
pDispatcher
=
pViewFrame
?
pViewFrame
->
GetDispatcher
()
:
NULL
;
...
...
basctl/source/basicide/moduldlg.cxx
Dosyayı görüntüle @
08b921ef
...
...
@@ -838,7 +838,7 @@ void ObjectPage::NewDialog()
if
(
!
aDocument
.
createDialog
(
aLibName
,
aDlgName
,
xISP
)
)
return
;
SbxItem
aSbxItem
(
SID_BASICIDE_ARG_SBX
,
aDocument
,
aLibName
,
aDlgName
,
B
asicIDEType
::
Dialog
);
SbxItem
aSbxItem
(
SID_BASICIDE_ARG_SBX
,
aDocument
,
aLibName
,
aDlgName
,
B
ASICIDE_TYPE_DIALOG
);
BasicIDEShell
*
pIDEShell
=
BasicIDEGlobals
::
GetShell
();
SfxViewFrame
*
pViewFrame
=
pIDEShell
?
pIDEShell
->
GetViewFrame
()
:
NULL
;
SfxDispatcher
*
pDispatcher
=
pViewFrame
?
pViewFrame
->
GetDispatcher
()
:
NULL
;
...
...
@@ -1000,7 +1000,7 @@ SbModule* createModImpl( Window* pWin, const ScriptDocument& rDocument,
StarBASIC
*
pBasic
=
pBasMgr
?
pBasMgr
->
GetLib
(
aLibName
)
:
0
;
if
(
pBasic
)
pModule
=
pBasic
->
FindModule
(
aModName
);
SbxItem
aSbxItem
(
SID_BASICIDE_ARG_SBX
,
rDocument
,
aLibName
,
aModName
,
B
asicIDEType
::
Module
);
SbxItem
aSbxItem
(
SID_BASICIDE_ARG_SBX
,
rDocument
,
aLibName
,
aModName
,
B
ASICIDE_TYPE_MODULE
);
BasicIDEShell
*
pIDEShell
=
BasicIDEGlobals
::
GetShell
();
SfxViewFrame
*
pViewFrame
=
pIDEShell
?
pIDEShell
->
GetViewFrame
()
:
NULL
;
SfxDispatcher
*
pDispatcher
=
pViewFrame
?
pViewFrame
->
GetDispatcher
()
:
NULL
;
...
...
basctl/source/inc/basidesh.hxx
Dosyayı görüntüle @
08b921ef
...
...
@@ -211,7 +211,7 @@ public:
ModulWindowLayout
*
GetLayoutWindow
()
const
{
return
pModulLayout
;
}
IDEBaseWindow
*
FindWindow
(
const
ScriptDocument
&
rDocument
,
const
String
&
rLibName
=
String
(),
const
String
&
rName
=
String
(),
BasicIDEType
nType
=
B
asicIDEType
::
Unknown
,
sal_Bool
bFindSuspended
=
sal_False
);
IDEBaseWindow
*
FindWindow
(
const
ScriptDocument
&
rDocument
,
const
String
&
rLibName
=
String
(),
const
String
&
rName
=
String
(),
BasicIDEType
nType
=
B
ASICIDE_TYPE_UNKNOWN
,
sal_Bool
bFindSuspended
=
sal_False
);
DialogWindow
*
FindDlgWin
(
const
ScriptDocument
&
rDocument
,
const
String
&
rLibName
,
const
String
&
rDlgName
,
sal_Bool
bCreateIfNotExist
,
sal_Bool
bFindSuspended
=
sal_False
);
IDEBaseWindow
*
FindApplicationWindow
();
sal_Bool
NextPage
(
sal_Bool
bPrev
=
sal_False
);
...
...
basctl/source/inc/sbxitem.hxx
Dosyayı görüntüle @
08b921ef
...
...
@@ -33,12 +33,12 @@
enum
BasicIDEType
{
Unknown
,
Shell
,
Library
,
Module
,
Dialog
,
Method
BASICIDE_TYPE_UNKNOWN
,
BASICIDE_TYPE_SHELL
,
BASICIDE_TYPE_LIBRARY
,
BASICIDE_TYPE_MODULE
,
BASICIDE_TYPE_DIALOG
,
BASICIDE_TYPE_METHOD
};
class
SbxItem
:
public
SfxPoolItem
...
...
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