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
2a44d106
Kaydet (Commit)
2a44d106
authored
Eki 29, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove remaining use of SvTreeEntryList.
Change-Id: Id29111b0dd9a14fc2dbb18447293b2ac01e20df4
üst
51ec031f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
19 deletions
+13
-19
treelistbox.cxx
svtools/source/contnr/treelistbox.cxx
+13
-19
No files found.
svtools/source/contnr/treelistbox.cxx
Dosyayı görüntüle @
2a44d106
...
...
@@ -689,7 +689,7 @@ sal_Bool SvTreeListBox::CopySelection( SvTreeListBox* pSource, SvTreeListEntry*
DBG_CHKTHIS
(
SvTreeListBox
,
0
);
nCurEntrySelPos
=
0
;
// selection counter for NotifyMoving/Copying
sal_Bool
bSuccess
=
sal_True
;
SvTreeEntryList
aList
;
std
::
vector
<
SvTreeListEntry
*>
aList
;
sal_Bool
bClone
=
(
sal_Bool
)(
(
sal_uLong
)(
pSource
->
GetModel
())
!=
(
sal_uLong
)
GetModel
()
);
Link
aCloneLink
(
pModel
->
GetCloneLink
()
);
pModel
->
SetCloneLink
(
LINK
(
this
,
SvTreeListBox
,
CloneHdl_Impl
));
...
...
@@ -705,10 +705,10 @@ sal_Bool SvTreeListBox::CopySelection( SvTreeListBox* pSource, SvTreeListEntry*
pSourceEntry
=
pSource
->
NextSelected
(
pSourceEntry
);
}
SvTreeEntryList
::
iterator
it
=
aList
.
begin
(),
itEnd
=
aList
.
end
();
std
::
vector
<
SvTreeListEntry
*>::
const_
iterator
it
=
aList
.
begin
(),
itEnd
=
aList
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
{
pSourceEntry
=
static_cast
<
SvTreeListEntry
*>
(
*
it
)
;
pSourceEntry
=
*
it
;
SvTreeListEntry
*
pNewParent
=
0
;
sal_uLong
nInsertionPos
=
ULONG_MAX
;
sal_Bool
bOk
=
NotifyCopying
(
pTarget
,
pSourceEntry
,
pNewParent
,
nInsertionPos
);
...
...
@@ -718,14 +718,12 @@ sal_Bool SvTreeListBox::CopySelection( SvTreeListBox* pSource, SvTreeListEntry*
{
sal_uLong
nCloneCount
=
0
;
pSourceEntry
=
(
SvTreeListEntry
*
)
pModel
->
Clone
(
(
SvTreeListEntry
*
)
pSourceEntry
,
nCloneCount
);
pModel
->
InsertTree
(
(
SvTreeListEntry
*
)
pSourceEntry
,
(
SvTreeListEntry
*
)
pNewParent
,
nInsertionPos
);
pModel
->
Clone
(
pSourceEntry
,
nCloneCount
);
pModel
->
InsertTree
(
pSourceEntry
,
pNewParent
,
nInsertionPos
);
}
else
{
sal_uLong
nListPos
=
pModel
->
Copy
(
(
SvTreeListEntry
*
)
pSourceEntry
,
(
SvTreeListEntry
*
)
pNewParent
,
nInsertionPos
);
sal_uLong
nListPos
=
pModel
->
Copy
(
pSourceEntry
,
pNewParent
,
nInsertionPos
);
pSourceEntry
=
GetEntry
(
pNewParent
,
nListPos
);
}
}
...
...
@@ -750,7 +748,7 @@ sal_Bool SvTreeListBox::MoveSelectionCopyFallbackPossible( SvTreeListBox* pSourc
DBG_CHKTHIS
(
SvTreeListBox
,
0
);
nCurEntrySelPos
=
0
;
// selection counter for NotifyMoving/Copying
sal_Bool
bSuccess
=
sal_True
;
SvTreeEntryList
aList
;
std
::
vector
<
SvTreeListEntry
*>
aList
;
sal_Bool
bClone
=
(
sal_Bool
)(
(
sal_uLong
)(
pSource
->
GetModel
())
!=
(
sal_uLong
)
GetModel
()
);
Link
aCloneLink
(
pModel
->
GetCloneLink
()
);
if
(
bClone
)
...
...
@@ -765,10 +763,10 @@ sal_Bool SvTreeListBox::MoveSelectionCopyFallbackPossible( SvTreeListBox* pSourc
pSourceEntry
=
pSource
->
NextSelected
(
pSourceEntry
);
}
SvTreeEntryList
::
iterator
it
=
aList
.
begin
(),
itEnd
=
aList
.
end
();
std
::
vector
<
SvTreeListEntry
*>::
const_
iterator
it
=
aList
.
begin
(),
itEnd
=
aList
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
{
pSourceEntry
=
static_cast
<
SvTreeListEntry
*>
(
*
it
)
;
pSourceEntry
=
*
it
;
SvTreeListEntry
*
pNewParent
=
0
;
sal_uLong
nInsertionPos
=
ULONG_MAX
;
...
...
@@ -785,19 +783,15 @@ sal_Bool SvTreeListBox::MoveSelectionCopyFallbackPossible( SvTreeListBox* pSourc
if
(
bClone
)
{
sal_uLong
nCloneCount
=
0
;
pSourceEntry
=
(
SvTreeListEntry
*
)
pModel
->
Clone
(
(
SvTreeListEntry
*
)
pSourceEntry
,
nCloneCount
);
pModel
->
InsertTree
(
(
SvTreeListEntry
*
)
pSourceEntry
,
(
SvTreeListEntry
*
)
pNewParent
,
nInsertionPos
);
pSourceEntry
=
pModel
->
Clone
(
pSourceEntry
,
nCloneCount
);
pModel
->
InsertTree
(
pSourceEntry
,
pNewParent
,
nInsertionPos
);
}
else
{
if
(
bOk
)
pModel
->
Move
(
(
SvTreeListEntry
*
)
pSourceEntry
,
(
SvTreeListEntry
*
)
pNewParent
,
nInsertionPos
);
pModel
->
Move
(
pSourceEntry
,
pNewParent
,
nInsertionPos
);
else
pModel
->
Copy
(
(
SvTreeListEntry
*
)
pSourceEntry
,
(
SvTreeListEntry
*
)
pNewParent
,
nInsertionPos
);
pModel
->
Copy
(
pSourceEntry
,
pNewParent
,
nInsertionPos
);
}
}
else
...
...
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