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
5b8377f8
Kaydet (Commit)
5b8377f8
authored
Nis 04, 2013
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix selection change event firing
Change-Id: I64e8b684dd5462e1a742ba47b5480951b4e3a4c4
üst
959d1dc0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
4 deletions
+51
-4
viewuno.hxx
sc/inc/viewuno.hxx
+2
-1
viewuno.cxx
sc/source/ui/unoobj/viewuno.cxx
+46
-3
vbacontrol.cxx
vbahelper/source/msforms/vbacontrol.cxx
+3
-0
No files found.
sc/inc/viewuno.hxx
Dosyayı görüntüle @
5b8377f8
...
@@ -205,7 +205,8 @@ private:
...
@@ -205,7 +205,8 @@ private:
void
EndMouseListening
();
void
EndMouseListening
();
void
StartActivationListening
();
void
StartActivationListening
();
void
EndActivationListening
();
void
EndActivationListening
();
bool
mbLeftMousePressed
;
bool
mbPendingSelectionChanged
;
ScTabViewObj
();
// disabled
ScTabViewObj
();
// disabled
public
:
public
:
ScTabViewObj
(
ScTabViewShell
*
pViewSh
);
ScTabViewObj
(
ScTabViewShell
*
pViewSh
);
...
...
sc/source/ui/unoobj/viewuno.cxx
Dosyayı görüntüle @
5b8377f8
...
@@ -463,7 +463,9 @@ ScTabViewObj::ScTabViewObj( ScTabViewShell* pViewSh ) :
...
@@ -463,7 +463,9 @@ ScTabViewObj::ScTabViewObj( ScTabViewShell* pViewSh ) :
aMouseClickHandlers
(
0
),
aMouseClickHandlers
(
0
),
aActivationListeners
(
0
),
aActivationListeners
(
0
),
nPreviousTab
(
0
),
nPreviousTab
(
0
),
bDrawSelModeSet
(
false
)
bDrawSelModeSet
(
false
),
mbLeftMousePressed
(
false
),
mbPendingSelectionChanged
(
false
)
{
{
if
(
pViewSh
)
if
(
pViewSh
)
nPreviousTab
=
pViewSh
->
GetViewData
()
->
GetTabNo
();
nPreviousTab
=
pViewSh
->
GetViewData
()
->
GetTabNo
();
...
@@ -1184,13 +1186,17 @@ bool ScTabViewObj::IsMouseListening() const
...
@@ -1184,13 +1186,17 @@ bool ScTabViewObj::IsMouseListening() const
SCTAB
nTab
=
pViewData
->
GetTabNo
();
SCTAB
nTab
=
pViewData
->
GetTabNo
();
return
return
pDoc
->
HasSheetEventScript
(
nTab
,
SC_SHEETEVENT_RIGHTCLICK
,
true
)
||
pDoc
->
HasSheetEventScript
(
nTab
,
SC_SHEETEVENT_RIGHTCLICK
,
true
)
||
pDoc
->
HasSheetEventScript
(
nTab
,
SC_SHEETEVENT_DOUBLECLICK
,
true
);
pDoc
->
HasSheetEventScript
(
nTab
,
SC_SHEETEVENT_DOUBLECLICK
,
true
)
||
pDoc
->
HasSheetEventScript
(
nTab
,
SC_SHEETEVENT_SELECT
,
true
);
}
}
sal_Bool
ScTabViewObj
::
MousePressed
(
const
awt
::
MouseEvent
&
e
)
sal_Bool
ScTabViewObj
::
MousePressed
(
const
awt
::
MouseEvent
&
e
)
throw
(
::
uno
::
RuntimeException
)
throw
(
::
uno
::
RuntimeException
)
{
{
sal_Bool
bReturn
(
false
);
sal_Bool
bReturn
(
false
);
if
(
e
.
Buttons
==
::
com
::
sun
::
star
::
awt
::
MouseButton
::
LEFT
)
mbLeftMousePressed
=
true
;
uno
::
Reference
<
uno
::
XInterface
>
xTarget
=
GetClickedObject
(
Point
(
e
.
X
,
e
.
Y
));
uno
::
Reference
<
uno
::
XInterface
>
xTarget
=
GetClickedObject
(
Point
(
e
.
X
,
e
.
Y
));
if
(
!
aMouseClickHandlers
.
empty
()
&&
xTarget
.
is
())
if
(
!
aMouseClickHandlers
.
empty
()
&&
xTarget
.
is
())
...
@@ -1281,6 +1287,26 @@ sal_Bool ScTabViewObj::MousePressed( const awt::MouseEvent& e )
...
@@ -1281,6 +1287,26 @@ sal_Bool ScTabViewObj::MousePressed( const awt::MouseEvent& e )
sal_Bool
ScTabViewObj
::
MouseReleased
(
const
awt
::
MouseEvent
&
e
)
sal_Bool
ScTabViewObj
::
MouseReleased
(
const
awt
::
MouseEvent
&
e
)
throw
(
uno
::
RuntimeException
)
throw
(
uno
::
RuntimeException
)
{
{
if
(
e
.
Buttons
==
::
com
::
sun
::
star
::
awt
::
MouseButton
::
LEFT
)
{
try
{
mbPendingSelectionChanged
=
false
;
ScTabViewShell
*
pViewSh
=
GetViewShell
();
ScViewData
*
pViewData
=
pViewSh
->
GetViewData
();
ScDocShell
*
pDocSh
=
pViewData
->
GetDocShell
();
ScDocument
*
pDoc
=
pDocSh
->
GetDocument
();
uno
::
Reference
<
script
::
vba
::
XVBAEventProcessor
>
xVbaEvents
(
pDoc
->
GetVbaEventProcessor
(),
uno
::
UNO_SET_THROW
);
uno
::
Sequence
<
uno
::
Any
>
aArgs
(
1
);
aArgs
[
0
]
<<=
getSelection
();
xVbaEvents
->
processVbaEvent
(
ScSheetEvents
::
GetVbaSheetEventId
(
SC_SHEETEVENT_SELECT
),
aArgs
);
}
catch
(
uno
::
Exception
&
)
{
}
mbLeftMousePressed
=
false
;
}
sal_Bool
bReturn
(
false
);
sal_Bool
bReturn
(
false
);
if
(
!
aMouseClickHandlers
.
empty
())
if
(
!
aMouseClickHandlers
.
empty
())
...
@@ -1746,7 +1772,24 @@ void ScTabViewObj::SelectionChanged()
...
@@ -1746,7 +1772,24 @@ void ScTabViewObj::SelectionChanged()
/*ErrCode eRet =*/
pDocSh
->
CallXScript
(
*
pScript
,
aParams
,
aRet
,
aOutArgsIndex
,
aOutArgs
);
/*ErrCode eRet =*/
pDocSh
->
CallXScript
(
*
pScript
,
aParams
,
aRet
,
aOutArgsIndex
,
aOutArgs
);
}
}
}
}
// Removed Sun/Oracle code intentionally, it doesn't work properly ( selection should be fired after mouse release )
if
(
!
mbLeftMousePressed
)
// selection still in progress
{
mbPendingSelectionChanged
=
false
;
try
{
uno
::
Reference
<
script
::
vba
::
XVBAEventProcessor
>
xVbaEvents
(
pDoc
->
GetVbaEventProcessor
(),
uno
::
UNO_SET_THROW
);
uno
::
Sequence
<
uno
::
Any
>
aArgs
(
1
);
aArgs
[
0
]
<<=
getSelection
();
xVbaEvents
->
processVbaEvent
(
ScSheetEvents
::
GetVbaSheetEventId
(
SC_SHEETEVENT_SELECT
),
aArgs
);
}
catch
(
uno
::
Exception
&
)
{
}
}
else
{
mbPendingSelectionChanged
=
true
;
}
}
}
...
...
vbahelper/source/msforms/vbacontrol.cxx
Dosyayı görüntüle @
5b8377f8
...
@@ -192,11 +192,14 @@ void SAL_CALL ScVbaControl::setEnabled( sal_Bool bVisible ) throw (uno::RuntimeE
...
@@ -192,11 +192,14 @@ void SAL_CALL ScVbaControl::setEnabled( sal_Bool bVisible ) throw (uno::RuntimeE
sal_Bool
SAL_CALL
ScVbaControl
::
getVisible
()
throw
(
uno
::
RuntimeException
)
sal_Bool
SAL_CALL
ScVbaControl
::
getVisible
()
throw
(
uno
::
RuntimeException
)
{
{
sal_Bool
bVisible
(
sal_True
);
sal_Bool
bVisible
(
sal_True
);
m_xProps
->
getPropertyValue
(
"EnableVisible"
)
>>=
bVisible
;
uno
::
Reference
<
drawing
::
XControlShape
>
xControlShape
(
m_xControl
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XControlShape
>
xControlShape
(
m_xControl
,
uno
::
UNO_QUERY
);
if
(
xControlShape
.
is
()
)
if
(
xControlShape
.
is
()
)
{
{
bool
bEnableVisible
=
bVisible
;
uno
::
Reference
<
beans
::
XPropertySet
>
xProps
(
m_xControl
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xProps
(
m_xControl
,
uno
::
UNO_QUERY_THROW
);
xProps
->
getPropertyValue
(
"Visible"
)
>>=
bVisible
;
xProps
->
getPropertyValue
(
"Visible"
)
>>=
bVisible
;
bVisible
=
bVisible
&&
bEnableVisible
;
}
}
else
else
m_xProps
->
getPropertyValue
(
"EnableVisible"
)
>>=
bVisible
;
m_xProps
->
getPropertyValue
(
"EnableVisible"
)
>>=
bVisible
;
...
...
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