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
9ebfe82e
Kaydet (Commit)
9ebfe82e
authored
Eki 12, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: Ib0a0d596ce262783b8850d4d9c0142391cc59284
üst
3d94310d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
UndoTable.hxx
sw/source/core/inc/UndoTable.hxx
+1
-1
untbl.cxx
sw/source/core/undo/untbl.cxx
+9
-8
No files found.
sw/source/core/inc/UndoTable.hxx
Dosyayı görüntüle @
9ebfe82e
...
...
@@ -220,7 +220,7 @@ class SwUndoTableMerge : public SwUndo, private SwUndRng
_SaveTable
*
pSaveTable
;
std
::
set
<
sal_uLong
>
m_Boxes
;
std
::
vector
<
sal_uLong
>
aNewSttNds
;
SwUndoMoves
*
pMoves
;
SwUndoMoves
*
m_
pMoves
;
SwHistory
*
pHistory
;
public
:
...
...
sw/source/core/undo/untbl.cxx
Dosyayı görüntüle @
9ebfe82e
...
...
@@ -88,7 +88,7 @@ public:
explicit
SwUndoSaveSections
(
size_type
n
)
:
boost
::
ptr_vector
<
SwUndoSaveSection
>
(
n
)
{}
};
class
SwUndoMoves
:
public
boost
::
ptr_vector
<
SwUndoMove
>
{};
class
SwUndoMoves
:
public
std
::
vector
<
std
::
unique_ptr
<
SwUndoMove
>
>
{};
struct
SwTableToTextSave
;
class
SwTableToTextSaves
:
public
boost
::
ptr_vector
<
SwTableToTextSave
>
{
...
...
@@ -1927,19 +1927,20 @@ void SwUndoTableNdsChg::RedoImpl(::sw::UndoRedoContext & rContext)
}
SwUndoTableMerge
::
SwUndoTableMerge
(
const
SwPaM
&
rTableSel
)
:
SwUndo
(
UNDO_TABLE_MERGE
),
SwUndRng
(
rTableSel
),
pHistory
(
0
)
:
SwUndo
(
UNDO_TABLE_MERGE
),
SwUndRng
(
rTableSel
)
,
m_pMoves
(
new
SwUndoMoves
)
,
pHistory
(
nullptr
)
{
const
SwTableNode
*
pTableNd
=
rTableSel
.
GetNode
().
FindTableNode
();
OSL_ENSURE
(
pTableNd
,
"Where is the TableNode?"
);
pSaveTable
=
new
_SaveTable
(
pTableNd
->
GetTable
()
);
pMoves
=
new
SwUndoMoves
;
nTableNode
=
pTableNd
->
GetIndex
();
}
SwUndoTableMerge
::~
SwUndoTableMerge
()
{
delete
pSaveTable
;
delete
pMoves
;
delete
m_
pMoves
;
delete
pHistory
;
}
...
...
@@ -2003,11 +2004,11 @@ CHECKTABLE(pTableNd->GetTable())
*
pBox
->
GetSttNd
()
->
EndOfSectionNode
()
),
pColl
);
// this was the separator -> restore moved ones
for
(
size_t
i
=
pMoves
->
size
();
i
;
)
for
(
size_t
i
=
m_
pMoves
->
size
();
i
;
)
{
SwTextNode
*
pTextNd
=
0
;
sal_Int32
nDelPos
=
0
;
SwUndoMove
*
pUndo
=
&
(
*
pMoves
)[
--
i
]
;
SwUndoMove
*
const
pUndo
=
(
*
m_pMoves
)[
--
i
].
get
()
;
if
(
!
pUndo
->
IsMoveRange
()
)
{
pTextNd
=
rDoc
.
GetNodes
()[
pUndo
->
GetDestSttNode
()
]
->
GetTextNode
();
...
...
@@ -2097,7 +2098,7 @@ void SwUndoTableMerge::RedoImpl(::sw::UndoRedoContext & rContext)
void
SwUndoTableMerge
::
MoveBoxContent
(
SwDoc
*
pDoc
,
SwNodeRange
&
rRg
,
SwNodeIndex
&
rPos
)
{
SwNodeIndex
aTmp
(
rRg
.
aStart
,
-
1
),
aTmp2
(
rPos
,
-
1
);
SwUndoMove
*
pUndo
=
new
SwUndoMove
(
pDoc
,
rRg
,
rPos
);
std
::
unique_ptr
<
SwUndoMove
>
pUndo
(
new
SwUndoMove
(
pDoc
,
rRg
,
rPos
)
);
::
sw
::
UndoGuard
const
undoGuard
(
pDoc
->
GetIDocumentUndoRedo
());
pDoc
->
getIDocumentContentOperations
().
MoveNodeRange
(
rRg
,
rPos
,
pSaveTable
->
IsNewModel
()
?
SwMoveFlags
::
NO_DELFRMS
:
...
...
@@ -2106,7 +2107,7 @@ void SwUndoTableMerge::MoveBoxContent( SwDoc* pDoc, SwNodeRange& rRg, SwNodeInde
++
aTmp2
;
pUndo
->
SetDestRange
(
aTmp2
,
rPos
,
aTmp
);
pMoves
->
push_back
(
pUndo
);
m_pMoves
->
push_back
(
std
::
move
(
pUndo
)
);
}
void
SwUndoTableMerge
::
SetSelBoxes
(
const
SwSelBoxes
&
rBoxes
)
...
...
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