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
25d018c0
Kaydet (Commit)
25d018c0
authored
Nis 26, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
May 09, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR(SwUndoSortList) to std::vector
üst
de4d4eb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
UndoSort.hxx
sw/source/core/inc/UndoSort.hxx
+1
-1
unsort.cxx
sw/source/core/undo/unsort.cxx
+8
-5
No files found.
sw/source/core/inc/UndoSort.hxx
Dosyayı görüntüle @
25d018c0
...
...
@@ -68,7 +68,7 @@ struct SwSortUndoElement
};
SV_DECL_PTRARR_DEL
(
SwSortList
,
SwSortUndoElement
*
,
10
)
SV_DECL_PTRARR
(
SwUndoSortList
,
SwNodeIndex
*
,
10
)
typedef
std
::
vector
<
SwNodeIndex
*>
SwUndoSortList
;
class
SwUndoSort
:
public
SwUndo
,
private
SwUndRng
{
...
...
sw/source/core/undo/unsort.cxx
Dosyayı görüntüle @
25d018c0
...
...
@@ -48,7 +48,6 @@
SV_IMPL_PTRARR
(
SwSortList
,
SwSortUndoElement
*
)
SV_IMPL_PTRARR
(
SwUndoSortList
,
SwNodeIndex
*
)
SwSortUndoElement
::~
SwSortUndoElement
()
...
...
@@ -151,7 +150,7 @@ void SwUndoSort::UndoImpl(::sw::UndoRedoContext & rContext)
{
SwNodeIndex
*
pIdx
=
new
SwNodeIndex
(
rDoc
.
GetNodes
(),
aSortList
[
ii
]
->
SORT_TXT_TBL
.
TXT
.
nTarget
);
aIdxList
.
C40_INSERT
(
SwNodeIndex
,
pIdx
,
i
);
aIdxList
.
insert
(
aIdxList
.
begin
()
+
i
,
pIdx
);
break
;
}
...
...
@@ -163,7 +162,9 @@ void SwUndoSort::UndoImpl(::sw::UndoRedoContext & rContext)
IDocumentContentOperations
::
DOC_MOVEDEFAULT
);
}
// Indixes loeschen
aIdxList
.
DeleteAndDestroy
(
0
,
aIdxList
.
Count
());
for
(
SwUndoSortList
::
const_iterator
it
=
aIdxList
.
begin
();
it
!=
aIdxList
.
end
();
++
it
)
delete
*
it
;
aIdxList
.
clear
();
SetPaM
(
rPam
,
true
);
}
}
...
...
@@ -226,7 +227,7 @@ void SwUndoSort::RedoImpl(::sw::UndoRedoContext & rContext)
{
// aktuelle Pos ist die Ausgangslage
SwNodeIndex
*
pIdx
=
new
SwNodeIndex
(
rDoc
.
GetNodes
(),
aSortList
[
i
]
->
SORT_TXT_TBL
.
TXT
.
nSource
);
aIdxList
.
C40_INSERT
(
SwNodeIndex
,
pIdx
,
i
);
aIdxList
.
insert
(
aIdxList
.
begin
()
+
i
,
pIdx
);
}
for
(
i
=
0
;
i
<
aSortList
.
Count
();
++
i
)
...
...
@@ -237,7 +238,9 @@ void SwUndoSort::RedoImpl(::sw::UndoRedoContext & rContext)
IDocumentContentOperations
::
DOC_MOVEDEFAULT
);
}
// Indixes loeschen
aIdxList
.
DeleteAndDestroy
(
0
,
aIdxList
.
Count
());
for
(
SwUndoSortList
::
const_iterator
it
=
aIdxList
.
begin
();
it
!=
aIdxList
.
end
();
++
it
)
delete
*
it
;
aIdxList
.
clear
();
SetPaM
(
rPam
,
true
);
SwTxtNode
const
*
const
pTNd
=
rPam
.
GetNode
()
->
GetTxtNode
();
if
(
pTNd
)
...
...
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