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
4b90c9dc
Kaydet (Commit)
4b90c9dc
authored
Tem 29, 2016
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move range detection to ScViewData::SelectionFillDOOM()
Change-Id: Ic5205428136fc323affed8d956d6ee0434d43988
üst
9a40590d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
viewdata.hxx
sc/source/ui/inc/viewdata.hxx
+2
-0
viewdata.cxx
sc/source/ui/view/viewdata.cxx
+10
-5
No files found.
sc/source/ui/inc/viewdata.hxx
Dosyayı görüntüle @
4b90c9dc
...
@@ -356,6 +356,8 @@ public:
...
@@ -356,6 +356,8 @@ public:
/// Disallow paste on Ctrl+A all selected. We'd go DOOM.
/// Disallow paste on Ctrl+A all selected. We'd go DOOM.
bool
SelectionForbidsPaste
();
bool
SelectionForbidsPaste
();
/// Determine DOOM condition, i.e. from selected range.
static
bool
SelectionFillDOOM
(
const
ScRange
&
rRange
);
void
SetFillMode
(
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nEndCol
,
SCROW
nEndRow
);
void
SetFillMode
(
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nEndCol
,
SCROW
nEndRow
);
void
SetDragMode
(
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nEndCol
,
SCROW
nEndRow
,
void
SetDragMode
(
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nEndCol
,
SCROW
nEndRow
,
...
...
sc/source/ui/view/viewdata.cxx
Dosyayı görüntüle @
4b90c9dc
...
@@ -856,14 +856,19 @@ bool ScViewData::IsMultiMarked()
...
@@ -856,14 +856,19 @@ bool ScViewData::IsMultiMarked()
bool
ScViewData
::
SelectionForbidsPaste
()
bool
ScViewData
::
SelectionForbidsPaste
()
{
{
SCCOL
nCol1
,
nCol2
;
ScRange
aSelRange
(
ScAddress
::
UNINITIALIZED
);
SCROW
nRow1
,
nRow2
;
ScMarkType
eMarkType
=
GetSimpleArea
(
aSelRange
);
SCTAB
nTab1
,
nTab2
;
return
eMarkType
!=
SC_MARK_MULTI
&&
SelectionFillDOOM
(
aSelRange
);
ScMarkType
eMarkType
=
GetSimpleArea
(
nCol1
,
nRow1
,
nTab1
,
nCol2
,
nRow2
,
nTab2
);
}
// static
bool
ScViewData
::
SelectionFillDOOM
(
const
ScRange
&
rRange
)
{
/* TODO: it is still possible to select one row less than the entire sheet
/* TODO: it is still possible to select one row less than the entire sheet
* and fool around. We could narrow this down to some "sane" value, just
* and fool around. We could narrow this down to some "sane" value, just
* what would be sane? At least this helps against the Ctrl+A cases. */
* what would be sane? At least this helps against the Ctrl+A cases. */
return
eMarkType
!=
SC_MARK_MULTI
&&
nCol1
==
0
&&
nCol2
==
MAXCOL
&&
nRow1
==
0
&&
nRow2
==
MAXROW
;
return
rRange
.
aStart
.
Col
()
==
0
&&
rRange
.
aEnd
.
Col
()
==
MAXCOL
&&
rRange
.
aStart
.
Row
()
==
0
&&
rRange
.
aEnd
.
Row
()
==
MAXROW
;
}
}
void
ScViewData
::
SetFillMode
(
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nEndCol
,
SCROW
nEndRow
)
void
ScViewData
::
SetFillMode
(
SCCOL
nStartCol
,
SCROW
nStartRow
,
SCCOL
nEndCol
,
SCROW
nEndRow
)
...
...
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