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
f579d49a
Kaydet (Commit)
f579d49a
authored
Kas 28, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Broadcast changes on undo / redo of cell range deletion.
Change-Id: I48141ca77277c2de5b3526358cfadb12e3f4fbdd
üst
8fc79e23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
undobase.hxx
sc/source/ui/inc/undobase.hxx
+2
-0
undobase.cxx
sc/source/ui/undo/undobase.cxx
+22
-0
undoblk3.cxx
sc/source/ui/undo/undoblk3.cxx
+2
-0
No files found.
sc/source/ui/inc/undobase.hxx
Dosyayı görüntüle @
f579d49a
...
...
@@ -57,6 +57,8 @@ protected:
void
BeginRedo
();
void
EndRedo
();
void
BroadcastChanges
(
const
ScRange
&
rRange
);
static
void
ShowTable
(
SCTAB
nTab
);
static
void
ShowTable
(
const
ScRange
&
rRange
);
};
...
...
sc/source/ui/undo/undobase.cxx
Dosyayı görüntüle @
f579d49a
...
...
@@ -142,6 +142,28 @@ void ScSimpleUndo::EndRedo()
pDocShell
->
SetInUndo
(
false
);
}
void
ScSimpleUndo
::
BroadcastChanges
(
const
ScRange
&
rRange
)
{
ScDocument
*
pDoc
=
pDocShell
->
GetDocument
();
pDoc
->
CellContentModified
();
ScHint
aHint
(
SC_HINT_DATACHANGED
,
ScAddress
());
ScAddress
&
rPos
=
aHint
.
GetAddress
();
for
(
SCTAB
nTab
=
rRange
.
aStart
.
Tab
();
nTab
<=
rRange
.
aEnd
.
Tab
();
++
nTab
)
{
rPos
.
SetTab
(
nTab
);
for
(
SCCOL
nCol
=
rRange
.
aStart
.
Col
();
nCol
<=
rRange
.
aEnd
.
Col
();
++
nCol
)
{
rPos
.
SetCol
(
nCol
);
for
(
SCROW
nRow
=
rRange
.
aStart
.
Row
();
nRow
<=
rRange
.
aEnd
.
Row
();
++
nRow
)
{
rPos
.
SetRow
(
nRow
);
pDoc
->
Broadcast
(
aHint
);
}
}
}
}
void
ScSimpleUndo
::
ShowTable
(
SCTAB
nTab
)
{
ScTabViewShell
*
pViewShell
=
ScTabViewShell
::
GetActiveViewShell
();
...
...
sc/source/ui/undo/undoblk3.cxx
Dosyayı görüntüle @
f579d49a
...
...
@@ -182,6 +182,7 @@ void ScUndoDeleteContents::Undo()
DoChange
(
sal_True
);
EndUndo
();
BroadcastChanges
(
aRange
);
HelperNotifyChanges
::
NotifyIfChangesListeners
(
*
pDocShell
,
aRange
);
}
...
...
@@ -191,6 +192,7 @@ void ScUndoDeleteContents::Redo()
DoChange
(
false
);
EndRedo
();
BroadcastChanges
(
aRange
);
HelperNotifyChanges
::
NotifyIfChangesListeners
(
*
pDocShell
,
aRange
);
}
...
...
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