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
b9f344ef
Kaydet (Commit)
b9f344ef
authored
Nis 25, 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_DEL(SwUndoSaveSections) to boost::ptr_vector
üst
cd9283ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
untbl.cxx
sw/source/core/undo/untbl.cxx
+9
-10
No files found.
sw/source/core/undo/untbl.cxx
Dosyayı görüntüle @
b9f344ef
...
...
@@ -87,8 +87,10 @@ extern void ClearFEShellTabCols();
typedef
SfxItemSet
*
SfxItemSetPtr
;
SV_DECL_PTRARR_DEL
(
SfxItemSets
,
SfxItemSetPtr
,
10
)
typedef
SwUndoSaveSection
*
SwUndoSaveSectionPtr
;
SV_DECL_PTRARR_DEL
(
SwUndoSaveSections
,
SwUndoSaveSectionPtr
,
0
)
class
SwUndoSaveSections
:
public
boost
::
ptr_vector
<
SwUndoSaveSection
>
{
public
:
SwUndoSaveSections
(
size_type
n
)
:
boost
::
ptr_vector
<
SwUndoSaveSection
>
(
n
)
{}
};
class
SwUndoMoves
:
public
boost
::
ptr_vector
<
SwUndoMove
>
{};
...
...
@@ -220,7 +222,6 @@ struct SwTblToTxtSave
};
SV_IMPL_PTRARR
(
SfxItemSets
,
SfxItemSetPtr
)
SV_IMPL_PTRARR
(
SwUndoSaveSections
,
SwUndoSaveSectionPtr
)
sal_uInt16
aSave_BoxCntntSet
[]
=
{
RES_CHRATR_COLOR
,
RES_CHRATR_CROSSEDOUT
,
...
...
@@ -1736,7 +1737,7 @@ void SwUndoTblNdsChg::SaveSection( SwStartNode* pSttNd )
SwUndoSaveSection
*
pSave
=
new
SwUndoSaveSection
;
pSave
->
SaveSection
(
pSttNd
->
GetDoc
(),
SwNodeIndex
(
*
pSttNd
));
pDelSects
->
Insert
(
pSave
,
pDelSects
->
Count
()
);
pDelSects
->
push_back
(
pSave
);
nSttNode
=
pTblNd
->
GetIndex
();
}
...
...
@@ -1768,9 +1769,9 @@ void SwUndoTblNdsChg::UndoImpl(::sw::UndoRedoContext & rContext)
SwTableBoxes
&
rLnBoxes
=
pCpyBox
->
GetUpper
()
->
GetTabBoxes
();
// die Sections wieder herstellen
for
(
sal_uInt16
n
=
pDelSects
->
Count
();
n
;
)
for
(
sal_uInt16
n
=
pDelSects
->
size
();
n
;
)
{
SwUndoSaveSection
*
pSave
=
(
*
pDelSects
)[
--
n
];
SwUndoSaveSection
*
pSave
=
&
(
*
pDelSects
)[
--
n
];
pSave
->
RestoreSection
(
&
rDoc
,
&
aIdx
,
SwTableBoxStartNode
);
if
(
pSave
->
GetHistory
()
)
pSave
->
GetHistory
()
->
Rollback
(
&
rDoc
);
...
...
@@ -1778,7 +1779,7 @@ void SwUndoTblNdsChg::UndoImpl(::sw::UndoRedoContext & rContext)
pCpyBox
->
GetUpper
()
);
rLnBoxes
.
C40_INSERT
(
SwTableBox
,
pBox
,
rLnBoxes
.
Count
()
);
}
pDelSects
->
DeleteAndDestroy
(
0
,
pDelSects
->
Count
()
);
pDelSects
->
clear
(
);
}
else
if
(
!
pNewSttNds
->
empty
()
)
{
...
...
@@ -1955,9 +1956,7 @@ void SwUndoTblNdsChg::RedoImpl(::sw::UndoRedoContext & rContext)
if
(
pUndo
)
{
pDelSects
->
Insert
(
pUndo
->
pDelSects
.
get
(),
0
);
pUndo
->
pDelSects
->
Remove
(
0
,
pUndo
->
pDelSects
->
Count
()
);
pDelSects
->
transfer
(
pDelSects
->
begin
(),
*
pUndo
->
pDelSects
.
get
()
);
delete
pUndo
;
}
rDoc
.
GetIDocumentUndoRedo
().
DoUndo
(
false
);
...
...
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