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
b587a758
Kaydet (Commit)
b587a758
authored
Haz 25, 2008
tarafından
Kurt Zenker
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS dba30d (1.80.10); FILE MERGED
2008/06/01 20:57:49 fs 1.80.10.1: minor re-factoring during #i80943#
üst
55b32060
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
dsbrowserDnD.cxx
dbaccess/source/ui/browser/dsbrowserDnD.cxx
+9
-8
No files found.
dbaccess/source/ui/browser/dsbrowserDnD.cxx
Dosyayı görüntüle @
b587a758
...
...
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dsbrowserDnD.cxx,v $
* $Revision: 1.8
0
$
* $Revision: 1.8
1
$
*
* This file is part of OpenOffice.org.
*
...
...
@@ -50,6 +50,7 @@
#include <connectivity/dbexception.hxx>
#include <connectivity/dbtools.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <svtools/treelist.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <tools/diagnose_ex.h>
...
...
@@ -84,7 +85,7 @@ namespace dbaui
::
osl
::
MutexGuard
aGuard
(
m_aEntryMutex
);
::
rtl
::
OUString
aName
=
GetEntryText
(
_pApplyTo
);
::
rtl
::
OUString
aDSName
=
getDataSourceAcessor
(
m_pTreeView
->
getListBox
()
->
GetRootLevelParent
(
_pApplyTo
)
);
::
rtl
::
OUString
aDSName
=
getDataSourceAcessor
(
m_pTreeView
->
getListBox
()
.
GetRootLevelParent
(
_pApplyTo
)
);
ODataClipboard
*
pData
=
NULL
;
SharedConnection
xConnection
;
...
...
@@ -114,7 +115,7 @@ namespace dbaui
sal_Int8
SbaTableQueryBrowser
::
queryDrop
(
const
AcceptDropEvent
&
_rEvt
,
const
DataFlavorExVector
&
_rFlavors
)
{
// check if we're a table or query container
SvLBoxEntry
*
pHitEntry
=
m_pTreeView
->
getListBox
()
->
GetEntry
(
_rEvt
.
maPosPixel
);
SvLBoxEntry
*
pHitEntry
=
m_pTreeView
->
getListBox
()
.
GetEntry
(
_rEvt
.
maPosPixel
);
if
(
pHitEntry
)
// no drop if no entry was hit ....
{
...
...
@@ -136,7 +137,7 @@ namespace dbaui
// -----------------------------------------------------------------------------
sal_Int8
SbaTableQueryBrowser
::
executeDrop
(
const
ExecuteDropEvent
&
_rEvt
)
{
SvLBoxEntry
*
pHitEntry
=
m_pTreeView
->
getListBox
()
->
GetEntry
(
_rEvt
.
maPosPixel
);
SvLBoxEntry
*
pHitEntry
=
m_pTreeView
->
getListBox
()
.
GetEntry
(
_rEvt
.
maPosPixel
);
EntryType
eEntryType
=
getEntryType
(
pHitEntry
);
if
(
!
isContainer
(
eEntryType
))
{
...
...
@@ -198,7 +199,7 @@ namespace dbaui
{
// get the affected list entry
// ensure that the entry which the user clicked at is selected
SvLBoxEntry
*
pHitEntry
=
m_pTreeView
->
getListBox
()
->
GetEntry
(
_rPosPixel
);
SvLBoxEntry
*
pHitEntry
=
m_pTreeView
->
getListBox
()
.
GetEntry
(
_rPosPixel
);
if
(
!
pHitEntry
)
// no drag of no entry was hit ....
return
sal_False
;
...
...
@@ -212,7 +213,7 @@ namespace dbaui
Reference
<
XTransferable
>
xEnsureDelete
=
pTransfer
;
if
(
pTransfer
)
pTransfer
->
StartDrag
(
m_pTreeView
->
getListBox
(),
DND_ACTION_COPY
);
pTransfer
->
StartDrag
(
&
m_pTreeView
->
getListBox
(),
DND_ACTION_COPY
);
return
NULL
!=
pTransfer
;
}
...
...
@@ -253,7 +254,7 @@ namespace dbaui
SharedConnection
xDestConnection
;
if
(
ensureConnection
(
m_aAsyncDrop
.
pDroppedAt
,
xDestConnection
)
&&
xDestConnection
.
is
()
)
{
SvLBoxEntry
*
pDataSourceEntry
=
m_pTreeView
->
getListBox
()
->
GetRootLevelParent
(
m_aAsyncDrop
.
pDroppedAt
);
SvLBoxEntry
*
pDataSourceEntry
=
m_pTreeView
->
getListBox
()
.
GetRootLevelParent
(
m_aAsyncDrop
.
pDroppedAt
);
m_aTableCopyHelper
.
asyncCopyTagTable
(
m_aAsyncDrop
,
getDataSourceAcessor
(
pDataSourceEntry
),
xDestConnection
);
}
}
...
...
@@ -271,7 +272,7 @@ namespace dbaui
SvLBoxEntry
*
pEntryLoop
=
m_pTreeModel
->
First
();
while
(
pEntryLoop
)
{
DBTreeList
Model
::
DBTreeListUserData
*
pData
=
static_cast
<
DBTreeListModel
::
DBTreeListUserData
*>
(
pEntryLoop
->
GetUserData
());
DBTreeList
UserData
*
pData
=
static_cast
<
DBTreeListUserData
*>
(
pEntryLoop
->
GetUserData
());
if
(
pData
)
{
pEntryLoop
->
SetUserData
(
NULL
);
...
...
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