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
76ce1630
Kaydet (Commit)
76ce1630
authored
Eyl 01, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor to create a HasMarked, no logic change
Change-Id: I667a8582a740f5fbbcdbcd82907e40e82f6165a1
üst
f4d2337e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
26 deletions
+33
-26
tablecontroller.hxx
include/svx/sdr/table/tablecontroller.hxx
+1
-0
selectioncontroller.hxx
include/svx/selectioncontroller.hxx
+1
-0
selectioncontroller.cxx
svx/source/svdraw/selectioncontroller.cxx
+5
-0
tablecontroller.cxx
svx/source/table/tablecontroller.cxx
+26
-26
No files found.
include/svx/sdr/table/tablecontroller.hxx
Dosyayı görüntüle @
76ce1630
...
...
@@ -51,6 +51,7 @@ public:
SVX_DLLPRIVATE
virtual
bool
onMouseButtonUp
(
const
MouseEvent
&
rMEvt
,
vcl
::
Window
*
pWin
)
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
bool
onMouseMove
(
const
MouseEvent
&
rMEvt
,
vcl
::
Window
*
pWin
)
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
bool
HasMarked
()
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
bool
DeleteMarked
()
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
void
onSelectionHasChanged
()
SAL_OVERRIDE
;
...
...
include/svx/selectioncontroller.hxx
Dosyayı görüntüle @
76ce1630
...
...
@@ -50,6 +50,7 @@ public:
virtual
void
GetState
(
SfxItemSet
&
rSet
);
virtual
void
Execute
(
SfxRequest
&
rReq
);
virtual
bool
HasMarked
();
virtual
bool
DeleteMarked
();
virtual
bool
GetAttributes
(
SfxItemSet
&
rTargetSet
,
bool
bOnlyHardAttr
)
const
;
...
...
svx/source/svdraw/selectioncontroller.cxx
Dosyayı görüntüle @
76ce1630
...
...
@@ -55,6 +55,11 @@ void SelectionController::Execute( SfxRequest& /*rReq*/ )
{
}
bool
SelectionController
::
HasMarked
()
{
return
false
;
}
bool
SelectionController
::
DeleteMarked
()
{
return
false
;
...
...
svx/source/table/tablecontroller.cxx
Dosyayı görüntüle @
76ce1630
...
...
@@ -1325,41 +1325,41 @@ void SvxTableController::DistributeRows()
}
}
bool
SvxTableController
::
HasMarked
()
{
return
mbCellSelectionMode
&&
mxTable
.
is
();
}
bool
SvxTableController
::
DeleteMarked
()
{
if
(
mbCellSelectionMode
)
if
(
!
HasMarked
())
return
false
;
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
++
)
{
if
(
mxTable
.
is
()
)
for
(
sal_Int32
nCol
=
aStart
.
mnCol
;
nCol
<=
aEnd
.
mnCol
;
nCol
++
)
{
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
++
)
CellRef
xCell
(
dynamic_cast
<
Cell
*
>
(
mxTable
->
getCellByPosition
(
nCol
,
nRow
).
get
()
)
);
if
(
xCell
.
is
()
&&
xCell
->
hasText
())
{
for
(
sal_Int32
nCol
=
aStart
.
mnCol
;
nCol
<=
aEnd
.
mnCol
;
nCol
++
)
{
CellRef
xCell
(
dynamic_cast
<
Cell
*
>
(
mxTable
->
getCellByPosition
(
nCol
,
nRow
).
get
()
)
);
if
(
xCell
.
is
()
&&
xCell
->
hasText
())
{
if
(
bUndo
)
xCell
->
AddUndo
();
xCell
->
SetOutlinerParaObject
(
0
);
}
}
if
(
bUndo
)
xCell
->
AddUndo
();
xCell
->
SetOutlinerParaObject
(
0
);
}
if
(
bUndo
)
mpModel
->
EndUndo
();
UpdateTableShape
();
return
true
;
}
}
return
false
;
if
(
bUndo
)
mpModel
->
EndUndo
();
UpdateTableShape
();
return
true
;
}
bool
SvxTableController
::
GetStyleSheet
(
SfxStyleSheet
*&
rpStyleSheet
)
const
...
...
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