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
73a9e800
Kaydet (Commit)
73a9e800
authored
Haz 19, 2013
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i122497 Filter D&D flags for calc D&D
üst
ff8c8d3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
gridwin.cxx
sc/source/ui/view/gridwin.cxx
+10
-4
No files found.
sc/source/ui/view/gridwin.cxx
Dosyayı görüntüle @
73a9e800
...
...
@@ -3565,6 +3565,13 @@ sal_Int8 ScGridWindow::AcceptDrop( const AcceptDropEvent& rEvt )
{
sal_Int8
nMyAction
=
rEvt
.
mnAction
;
// clear DND_ACTION_LINK when other actions are set. The usage below cannot handle
// multiple set values
if
((
nMyAction
&
DND_ACTION_LINK
)
&&
(
nMyAction
&
(
DND_ACTION_COPYMOVE
)))
{
nMyAction
&=
~
DND_ACTION_LINK
;
}
if
(
!
rData
.
pDrawTransfer
||
!
IsMyModel
(
rData
.
pDrawTransfer
->
GetDragSourceView
())
)
// drawing within the document
if
(
rEvt
.
mbDefault
&&
nMyAction
==
DND_ACTION_MOVE
)
...
...
@@ -3573,7 +3580,7 @@ sal_Int8 ScGridWindow::AcceptDrop( const AcceptDropEvent& rEvt )
ScDocument
*
pThisDoc
=
pViewData
->
GetDocument
();
SdrObject
*
pHitObj
=
pThisDoc
->
GetObjectAtPoint
(
pViewData
->
GetTabNo
(),
PixelToLogic
(
rEvt
.
maPosPixel
)
);
if
(
pHitObj
&&
nMyAction
==
DND_ACTION_LINK
&&
!
rData
.
pDrawTransfer
)
if
(
pHitObj
&&
nMyAction
==
DND_ACTION_LINK
)
//
&& !rData.pDrawTransfer )
{
if
(
IsDropFormatSupported
(
SOT_FORMATSTR_ID_SVXB
)
||
IsDropFormatSupported
(
SOT_FORMAT_GDIMETAFILE
)
...
...
@@ -4191,8 +4198,9 @@ sal_Int8 ScGridWindow::ExecuteDrop( const ExecuteDropEvent& rEvt )
}
Point
aLogicPos
=
PixelToLogic
(
aPos
);
sal_Bool
bIsLink
=
(
rEvt
.
mnAction
==
DND_ACTION_LINK
);
if
(
rData
.
pDrawTransfer
)
if
(
!
bIsLink
&&
rData
.
pDrawTransfer
)
{
sal_uInt16
nFlags
=
rData
.
pDrawTransfer
->
GetDragSourceFlags
();
...
...
@@ -4228,8 +4236,6 @@ sal_Int8 ScGridWindow::ExecuteDrop( const ExecuteDropEvent& rEvt )
}
}
sal_Bool
bIsLink
=
(
rEvt
.
mnAction
==
DND_ACTION_LINK
);
ScDocument
*
pThisDoc
=
pViewData
->
GetDocument
();
SdrObject
*
pHitObj
=
pThisDoc
->
GetObjectAtPoint
(
pViewData
->
GetTabNo
(),
PixelToLogic
(
aPos
)
);
if
(
pHitObj
&&
bIsLink
)
...
...
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