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
d38e4b2e
Kaydet (Commit)
d38e4b2e
authored
Eyl 01, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
implement undo of delete impress cell contents
Change-Id: I7aa99f3a6668e66b8d02e20b7ea1cf0862e5d760
üst
7a12d4d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
svdstr.hrc
include/svx/svdstr.hrc
+1
-0
svdstr.src
svx/source/svdraw/svdstr.src
+5
-0
tablecontroller.cxx
svx/source/table/tablecontroller.cxx
+13
-2
No files found.
include/svx/svdstr.hrc
Dosyayı görüntüle @
d38e4b2e
...
...
@@ -713,5 +713,6 @@
#define STR_TABLE_STYLE (SIP_Begin + 274)
#define STR_TABLE_STYLE_SETTINGS (SIP_Begin + 275)
#define SIP_SA_CROP_MARKERS (SIP_Begin + 276)
#define STR_TABLE_DELETE_CELL_CONTENTS (SIP_Begin + 277)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svx/source/svdraw/svdstr.src
Dosyayı görüntüle @
d38e4b2e
...
...
@@ -2778,6 +2778,11 @@ String STR_TABLE_DISTRIBUTE_COLUMNS
Text [ en-US ] = "Distribute columns" ;
};
String STR_TABLE_DELETE_CELL_CONTENTS
{
Text [ en-US ] = "Delete cell contents" ;
};
String STR_TABLE_STYLE
{
Text [ en-US ] = "Table style" ;
...
...
svx/source/table/tablecontroller.cxx
Dosyayı görüntüle @
d38e4b2e
...
...
@@ -1331,6 +1331,10 @@ bool SvxTableController::DeleteMarked()
{
if
(
mxTable
.
is
()
)
{
const
bool
bUndo
=
mpModel
&&
mpModel
->
IsUndoEnabled
();
if
(
bUndo
)
mpModel
->
BegUndo
(
ImpGetResStr
(
STR_TABLE_DELETE_CELL_CONTENTS
));
CellPos
aStart
,
aEnd
;
getSelectedCells
(
aStart
,
aEnd
);
for
(
sal_Int32
nRow
=
aStart
.
mnRow
;
nRow
<=
aEnd
.
mnRow
;
nRow
++
)
...
...
@@ -1338,11 +1342,18 @@ bool SvxTableController::DeleteMarked()
for
(
sal_Int32
nCol
=
aStart
.
mnCol
;
nCol
<=
aEnd
.
mnCol
;
nCol
++
)
{
CellRef
xCell
(
dynamic_cast
<
Cell
*
>
(
mxTable
->
getCellByPosition
(
nCol
,
nRow
).
get
()
)
);
if
(
xCell
.
is
()
)
xCell
->
SetOutlinerParaObject
(
0
);
if
(
xCell
.
is
()
&&
xCell
->
hasText
())
{
if
(
bUndo
)
xCell
->
AddUndo
();
xCell
->
SetOutlinerParaObject
(
0
);
}
}
}
if
(
bUndo
)
mpModel
->
EndUndo
();
UpdateTableShape
();
return
true
;
}
...
...
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