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
9aa36a1a
Kaydet (Commit)
9aa36a1a
authored
Eki 09, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move this one to a common place too.
Change-Id: I7f4e007cfc861dc323b42be353c6ba11091e8fa1
üst
7adef94b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
11 deletions
+29
-11
docfunc.cxx
sc/source/ui/docshell/docfunc.cxx
+3
-5
docfuncutil.cxx
sc/source/ui/docshell/docfuncutil.cxx
+15
-0
docfuncutil.hxx
sc/source/ui/inc/docfuncutil.hxx
+8
-0
viewfunc.cxx
sc/source/ui/view/viewfunc.cxx
+3
-6
No files found.
sc/source/ui/docshell/docfunc.cxx
Dosyayı görüntüle @
9aa36a1a
...
...
@@ -637,11 +637,9 @@ bool ScDocFunc::DeleteContents( const ScMarkData& rMark, InsertDeleteFlags nFlag
// add undo action after drawing undo is complete (objects and note captions)
if
(
bRecord
)
{
ScUndoDeleteContents
*
pUndo
=
new
ScUndoDeleteContents
(
&
rDocShell
,
aMultiMark
,
aExtendedRange
,
pUndoDoc
,
bMulti
,
nFlags
,
bDrawUndo
);
rDocShell
.
GetUndoManager
()
->
AddUndoAction
(
pUndo
);
pUndo
->
SetDataSpans
(
pDataSpans
);
sc
::
DocFuncUtil
::
addDeleteContentsUndo
(
rDocShell
.
GetUndoManager
(),
&
rDocShell
,
aMultiMark
,
aExtendedRange
,
pUndoDoc
,
nFlags
,
pDataSpans
,
bMulti
,
bDrawUndo
);
}
if
(
!
AdjustRowHeight
(
aExtendedRange
))
...
...
sc/source/ui/docshell/docfuncutil.cxx
Dosyayı görüntüle @
9aa36a1a
...
...
@@ -22,6 +22,7 @@
#include <markdata.hxx>
#include <undobase.hxx>
#include <global.hxx>
#include <undoblk.hxx>
#include <memory>
...
...
@@ -70,6 +71,20 @@ ScDocument* DocFuncUtil::createDeleteContentsUndoDoc(
return
pUndoDoc
.
release
();
}
void
DocFuncUtil
::
addDeleteContentsUndo
(
svl
::
IUndoManager
*
pUndoMgr
,
ScDocShell
*
pDocSh
,
const
ScMarkData
&
rMark
,
const
ScRange
&
rRange
,
ScDocument
*
pUndoDoc
,
InsertDeleteFlags
nFlags
,
const
boost
::
shared_ptr
<
ScSimpleUndo
::
DataSpansType
>&
pSpans
,
bool
bMulti
,
bool
bDrawUndo
)
{
std
::
unique_ptr
<
ScUndoDeleteContents
>
pUndo
(
new
ScUndoDeleteContents
(
pDocSh
,
rMark
,
rRange
,
pUndoDoc
,
bMulti
,
nFlags
,
bDrawUndo
));
pUndo
->
SetDataSpans
(
pSpans
);
pUndoMgr
->
AddUndoAction
(
pUndo
.
release
());
}
ScSimpleUndo
::
DataSpansType
*
DocFuncUtil
::
getNonEmptyCellSpans
(
const
ScDocument
&
rDoc
,
const
ScMarkData
&
rMark
,
const
ScRange
&
rRange
)
{
...
...
sc/source/ui/inc/docfuncutil.hxx
Dosyayı görüntüle @
9aa36a1a
...
...
@@ -10,6 +10,8 @@
#include <undobase.hxx>
#include <boost/shared_ptr.hpp>
class
ScDocument
;
class
ScMarkData
;
class
ScRange
;
...
...
@@ -27,6 +29,12 @@ public:
ScDocument
&
rDoc
,
const
ScMarkData
&
rMark
,
const
ScRange
&
rRange
,
InsertDeleteFlags
nFlags
,
bool
bOnlyMarked
);
static
void
addDeleteContentsUndo
(
svl
::
IUndoManager
*
pUndoMgr
,
ScDocShell
*
pDocSh
,
const
ScMarkData
&
rMark
,
const
ScRange
&
rRange
,
ScDocument
*
pUndoDoc
,
InsertDeleteFlags
nFlags
,
const
boost
::
shared_ptr
<
ScSimpleUndo
::
DataSpansType
>&
pSpans
,
bool
bMulti
,
bool
bDrawUndo
);
static
ScSimpleUndo
::
DataSpansType
*
getNonEmptyCellSpans
(
const
ScDocument
&
rDoc
,
const
ScMarkData
&
rMark
,
const
ScRange
&
rRange
);
};
...
...
sc/source/ui/view/viewfunc.cxx
Dosyayı görüntüle @
9aa36a1a
...
...
@@ -1850,12 +1850,9 @@ void ScViewFunc::DeleteContents( InsertDeleteFlags nFlags, bool bRecord )
if
(
bRecord
)
{
ScUndoDeleteContents
*
pUndo
=
new
ScUndoDeleteContents
(
pDocSh
,
aFuncMark
,
aExtendedRange
,
pUndoDoc
,
bMulti
,
nFlags
,
bDrawUndo
);
pUndo
->
SetDataSpans
(
pDataSpans
);
pDocSh
->
GetUndoManager
()
->
AddUndoAction
(
pUndo
);
sc
::
DocFuncUtil
::
addDeleteContentsUndo
(
pDocSh
->
GetUndoManager
(),
pDocSh
,
aFuncMark
,
aExtendedRange
,
pUndoDoc
,
nFlags
,
pDataSpans
,
bMulti
,
bDrawUndo
);
}
if
(
!
AdjustRowHeight
(
aExtendedRange
.
aStart
.
Row
(),
aExtendedRange
.
aEnd
.
Row
()
))
...
...
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