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
99e46c63
Kaydet (Commit)
99e46c63
authored
May 10, 2010
tarafından
Ivo Hinkelmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
CWS-TOOLING: integrate CWS calcautocrash
üst
e41b8df9
dd8ca5b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
31 deletions
+33
-31
dpcachetable.cxx
sc/source/core/data/dpcachetable.cxx
+0
-30
dptablecache.cxx
sc/source/core/data/dptablecache.cxx
+33
-1
No files found.
sc/source/core/data/dpcachetable.cxx
Dosyayı görüntüle @
99e46c63
...
...
@@ -183,39 +183,9 @@ sal_Int32 ScDPCacheTable::getColSize() const
return
GetCache
()
->
GetColumnCount
();
}
namespace
{
/**
* While the macro interpret level is incremented, the formula cells are
* (semi-)guaranteed to be interpreted.
*/
class
MacroInterpretIncrementer
{
public
:
MacroInterpretIncrementer
(
ScDocument
*
pDoc
)
:
mpDoc
(
pDoc
)
{
mpDoc
->
IncMacroInterpretLevel
();
}
~
MacroInterpretIncrementer
()
{
mpDoc
->
DecMacroInterpretLevel
();
}
private
:
ScDocument
*
mpDoc
;
};
}
void
ScDPCacheTable
::
fillTable
(
const
ScQueryParam
&
rQuery
,
BOOL
*
pSpecial
,
bool
bIgnoreEmptyRows
,
bool
bRepeatIfEmpty
)
{
// Make sure the formula cells within the data range are interpreted
// during this call, for this method may be called from the interpretation
// of GETPIVOTDATA, which disables nested formula interpretation without
// increasing the macro level.
MacroInterpretIncrementer
aMacroInc
(
GetCache
()
->
GetDoc
());
if
(
mpCache
==
NULL
)
InitNoneCache
(
NULL
);
//check cache
...
...
sc/source/core/data/dptablecache.cxx
Dosyayı görüntüle @
99e46c63
...
...
@@ -304,7 +304,7 @@ void ScDPItemData::dump() const
DBG_TRACE1
(
"Numberformat= %o"
,
nNumFormat
);
DBG_TRACESTR
(
aString
);
DBG_TRACE1
(
"fValue= %f"
,
fValue
);
DBG_TRACE1
(
"
bHasValue= %d"
,
bHasValue
?
1
:
0
);
DBG_TRACE1
(
"
mbFlag= %d"
,
mbFlag
);
}
#endif
//End
...
...
@@ -488,9 +488,41 @@ bool ScDPTableDataCache::IsValid() const
return
mpTableDataValues
!=
NULL
&&
mpSourceData
!=
NULL
&&
mnColumnCount
>
0
;
}
// -----------------------------------------------------------------------
namespace
{
/**
* While the macro interpret level is incremented, the formula cells are
* (semi-)guaranteed to be interpreted.
*/
class
MacroInterpretIncrementer
{
public
:
MacroInterpretIncrementer
(
ScDocument
*
pDoc
)
:
mpDoc
(
pDoc
)
{
mpDoc
->
IncMacroInterpretLevel
();
}
~
MacroInterpretIncrementer
()
{
mpDoc
->
DecMacroInterpretLevel
();
}
private
:
ScDocument
*
mpDoc
;
};
}
// -----------------------------------------------------------------------
bool
ScDPTableDataCache
::
InitFromDoc
(
ScDocument
*
pDoc
,
const
ScRange
&
rRange
)
{
// Make sure the formula cells within the data range are interpreted
// during this call, for this method may be called from the interpretation
// of GETPIVOTDATA, which disables nested formula interpretation without
// increasing the macro level.
MacroInterpretIncrementer
aMacroInc
(
pDoc
);
//
SCROW
nStartRow
=
rRange
.
aStart
.
Row
();
// start of data
SCROW
nEndRow
=
rRange
.
aEnd
.
Row
();
...
...
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