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
b4cfc712
Kaydet (Commit)
b4cfc712
authored
Mar 03, 2010
tarafından
npower Developer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
npower13_objectmodule: tweak IDE to only run macros from cursor in VBA mode
üst
07716c77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
baside2.cxx
basctl/source/basicide/baside2.cxx
+10
-5
No files found.
basctl/source/basicide/baside2.cxx
Dosyayı görüntüle @
b4cfc712
...
@@ -336,7 +336,8 @@ BOOL ModulWindow::BasicExecute()
...
@@ -336,7 +336,8 @@ BOOL ModulWindow::BasicExecute()
AddStatus
(
BASWIN_RUNNINGBASIC
);
AddStatus
(
BASWIN_RUNNINGBASIC
);
USHORT
nStart
,
nEnd
,
nCurMethodStart
=
0
;
USHORT
nStart
,
nEnd
,
nCurMethodStart
=
0
;
TextSelection
aSel
=
GetEditView
()
->
GetSelection
();
TextSelection
aSel
=
GetEditView
()
->
GetSelection
();
nCurMethodStart
=
(
aSel
.
GetStart
().
GetPara
()
+
1
);
if
(
aDocument
.
isInVBAMode
()
)
nCurMethodStart
=
(
aSel
.
GetStart
().
GetPara
()
+
1
);
SbMethod
*
pMethod
=
0
;
SbMethod
*
pMethod
=
0
;
// erstes Macro, sonst blind "Main" (ExtSearch?)
// erstes Macro, sonst blind "Main" (ExtSearch?)
for
(
USHORT
nMacro
=
0
;
nMacro
<
xModule
->
GetMethods
()
->
Count
();
nMacro
++
)
for
(
USHORT
nMacro
=
0
;
nMacro
<
xModule
->
GetMethods
()
->
Count
();
nMacro
++
)
...
@@ -344,16 +345,20 @@ BOOL ModulWindow::BasicExecute()
...
@@ -344,16 +345,20 @@ BOOL ModulWindow::BasicExecute()
SbMethod
*
pM
=
(
SbMethod
*
)
xModule
->
GetMethods
()
->
Get
(
nMacro
);
SbMethod
*
pM
=
(
SbMethod
*
)
xModule
->
GetMethods
()
->
Get
(
nMacro
);
DBG_ASSERT
(
pM
,
"Method?"
);
DBG_ASSERT
(
pM
,
"Method?"
);
pM
->
GetLineRange
(
nStart
,
nEnd
);
pM
->
GetLineRange
(
nStart
,
nEnd
);
if
(
nCurMethodStart
>=
nStart
&&
nCurMethodStart
<=
nEnd
)
if
(
(
aDocument
.
isInVBAMode
()
&&
(
nCurMethodStart
>=
nStart
&&
nCurMethodStart
<=
nEnd
)
)
||
(
!
aDocument
.
isInVBAMode
()
&&
!
pMethod
)
)
{
{
pMethod
=
pM
;
pMethod
=
pM
;
break
;
break
;
}
}
}
}
if
(
!
pMethod
)
if
(
!
pMethod
)
return
(
BasicIDE
::
ChooseMacro
(
uno
::
Reference
<
frame
::
XModel
>
(),
FALSE
,
rtl
::
OUString
()
).
getLength
()
>
0
)
?
TRUE
:
FALSE
;
{
if
(
aDocument
.
isInVBAMode
()
)
else
return
(
BasicIDE
::
ChooseMacro
(
uno
::
Reference
<
frame
::
XModel
>
(),
FALSE
,
rtl
::
OUString
()
).
getLength
()
>
0
)
?
TRUE
:
FALSE
;
else
pMethod
=
(
SbMethod
*
)
xModule
->
Find
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Main"
)
),
SbxCLASS_METHOD
);
}
if
(
pMethod
)
{
{
pMethod
->
SetDebugFlags
(
aStatus
.
nBasicFlags
);
pMethod
->
SetDebugFlags
(
aStatus
.
nBasicFlags
);
BasicDLL
::
SetDebugMode
(
TRUE
);
BasicDLL
::
SetDebugMode
(
TRUE
);
...
...
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