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
f826a5b5
Kaydet (Commit)
f826a5b5
authored
Mar 29, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
quick and ugly hack for ScEditableTester in ucalc
Fix this as soon as possible with a clean fix
üst
82f5a3b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
document.hxx
sc/inc/document.hxx
+5
-0
document.cxx
sc/source/core/data/document.cxx
+2
-1
No files found.
sc/inc/document.hxx
Dosyayı görüntüle @
f826a5b5
...
@@ -419,6 +419,10 @@ private:
...
@@ -419,6 +419,10 @@ private:
::
std
::
set
<
ScFormulaCell
*>
maSubTotalCells
;
::
std
::
set
<
ScFormulaCell
*>
maSubTotalCells
;
// quick and ugly hack to fix the ScEditableTester problem in ucalc
// write a clean fix for this as soon as possible
bool
mbIsInTest
;
public
:
public
:
SC_DLLPUBLIC
sal_uLong
GetCellCount
()
const
;
// all cells
SC_DLLPUBLIC
sal_uLong
GetCellCount
()
const
;
// all cells
SCSIZE
GetCellCount
(
SCTAB
nTab
,
SCCOL
nCol
)
const
;
SCSIZE
GetCellCount
(
SCTAB
nTab
,
SCCOL
nCol
)
const
;
...
@@ -1103,6 +1107,7 @@ public:
...
@@ -1103,6 +1107,7 @@ public:
bool
bColInfo
=
false
,
bool
bRowInfo
=
false
);
bool
bColInfo
=
false
,
bool
bRowInfo
=
false
);
SC_DLLPUBLIC
void
InitUndoSelected
(
ScDocument
*
pSrcDoc
,
const
ScMarkData
&
rTabSelection
,
SC_DLLPUBLIC
void
InitUndoSelected
(
ScDocument
*
pSrcDoc
,
const
ScMarkData
&
rTabSelection
,
bool
bColInfo
=
false
,
bool
bRowInfo
=
false
);
bool
bColInfo
=
false
,
bool
bRowInfo
=
false
);
void
SetInTest
()
{
mbIsInTest
=
true
;
}
// don't use anymore:
// don't use anymore:
void
CopyToDocument
(
SCCOL
nCol1
,
SCROW
nRow1
,
SCTAB
nTab1
,
void
CopyToDocument
(
SCCOL
nCol1
,
SCROW
nRow1
,
SCTAB
nTab1
,
...
...
sc/source/core/data/document.cxx
Dosyayı görüntüle @
f826a5b5
...
@@ -4766,7 +4766,8 @@ bool ScDocument::IsBlockEditable( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
...
@@ -4766,7 +4766,8 @@ bool ScDocument::IsBlockEditable( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
bool
*
pOnlyNotBecauseOfMatrix
/* = NULL */
)
const
bool
*
pOnlyNotBecauseOfMatrix
/* = NULL */
)
const
{
{
// import into read-only document is possible
// import into read-only document is possible
if
(
!
bImportingXML
&&
!
mbChangeReadOnlyEnabled
&&
pShell
&&
pShell
->
IsReadOnly
()
)
// TODO: come up with a clean solution for the testing problem
if
(
!
bImportingXML
&&
!
mbChangeReadOnlyEnabled
&&
pShell
&&
(
pShell
->
IsReadOnly
()
&&!
mbIsInTest
)
)
{
{
if
(
pOnlyNotBecauseOfMatrix
)
if
(
pOnlyNotBecauseOfMatrix
)
*
pOnlyNotBecauseOfMatrix
=
false
;
*
pOnlyNotBecauseOfMatrix
=
false
;
...
...
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