[Libreoffice-commits] core.git: include/sal sc/source

Eike Rathke erack at redhat.com
Tue Feb 3 03:26:57 PST 2015


 include/sal/log-areas.dox                 |    2 ++
 sc/source/core/data/formulacell.cxx       |   14 ++++++++++++++
 sc/source/core/tool/grouparealistener.cxx |   10 ++++++++++
 3 files changed, 26 insertions(+)

New commits:
commit f8d6640afa3c8528d2a66741edc49a48c67902d3
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Feb 3 12:23:12 2015 +0100

    add some SAL_INFO to group area listener and formula cell ctor/dtor
    
    guess we'll need them more often..
    
    Change-Id: I0ef149fc5edceee765419764bf0efa571ba9d977

diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox
index 6015933..80433f1 100644
--- a/include/sal/log-areas.dox
+++ b/include/sal/log-areas.dox
@@ -114,6 +114,8 @@ certain functionality.
 @li @c sc.opencl.thread - Background thread to compile OpenCL kernels
 @li @c sc.qa
 @li @c sc.core
+ at li @c sc.core.formulacell - ScFormulaCell and group
+ at li @c sc.core.grouparealistener - sc::FormulaGroupAreaListener
 @li @c sc.filter - Calc filter
 @li @c sc.ui - Calc UI
 
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 0d81056..3939c04 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -460,6 +460,7 @@ ScFormulaCellGroup::ScFormulaCellGroup() :
     meCalcState(sc::GroupCalcEnabled),
     meKernelState(sc::OpenCLKernelNone)
 {
+    SAL_INFO( "sc.core.formulacell", "ScFormulaCellGroup ctor this " << this);
 #if ENABLE_THREADED_OPENCL_KERNEL_COMPILATION
     if (officecfg::Office::Common::Misc::UseOpenCL::get())
     {
@@ -476,6 +477,7 @@ ScFormulaCellGroup::ScFormulaCellGroup() :
 
 ScFormulaCellGroup::~ScFormulaCellGroup()
 {
+    SAL_INFO( "sc.core.formulacell", "ScFormulaCellGroup dtor this " << this);
 #if ENABLE_THREADED_OPENCL_KERNEL_COMPILATION
     if (officecfg::Office::Common::Misc::UseOpenCL::get())
     {
@@ -608,6 +610,7 @@ ScFormulaCell::ScFormulaCell( ScDocument* pDoc, const ScAddress& rPos ) :
     mbPostponedDirty(false),
     aPos(rPos)
 {
+    SAL_INFO( "sc.core.formulacell", "ScFormulaCell ctor this " << this);
 }
 
 ScFormulaCell::ScFormulaCell( ScDocument* pDoc, const ScAddress& rPos,
@@ -637,6 +640,8 @@ ScFormulaCell::ScFormulaCell( ScDocument* pDoc, const ScAddress& rPos,
     mbPostponedDirty(false),
     aPos( rPos )
 {
+    SAL_INFO( "sc.core.formulacell", "ScFormulaCell ctor this " << this);
+
     Compile( rFormula, true, eGrammar );    // bNoListening, Insert does that
     if (!pCode)
         // We need to have a non-NULL token array instance at all times.
@@ -669,6 +674,7 @@ ScFormulaCell::ScFormulaCell(
     mbPostponedDirty(false),
     aPos( rPos )
 {
+    SAL_INFO( "sc.core.formulacell", "ScFormulaCell ctor this " << this);
     assert(pArray); // Never pass a NULL pointer here.
 
     // Generate RPN token array.
@@ -717,6 +723,8 @@ ScFormulaCell::ScFormulaCell(
     mbPostponedDirty(false),
     aPos( rPos )
 {
+    SAL_INFO( "sc.core.formulacell", "ScFormulaCell ctor this " << this);
+
     // RPN array generation
     if( pCode->GetLen() && !pCode->GetCodeError() && !pCode->GetCodeLen() )
     {
@@ -764,6 +772,8 @@ ScFormulaCell::ScFormulaCell(
     mbPostponedDirty(false),
     aPos( rPos )
 {
+    SAL_INFO( "sc.core.formulacell", "ScFormulaCell ctor this " << this);
+
     if (bSubTotal)
         pDocument->AddSubTotalCell(this);
 }
@@ -793,6 +803,8 @@ ScFormulaCell::ScFormulaCell( const ScFormulaCell& rCell, ScDocument& rDoc, cons
     mbPostponedDirty(false),
     aPos( rPos )
 {
+    SAL_INFO( "sc.core.formulacell", "ScFormulaCell ctor this " << this);
+
     pCode = rCell.pCode->Clone();
 
     //  set back any errors and recompile
@@ -889,6 +901,8 @@ ScFormulaCell::ScFormulaCell( const ScFormulaCell& rCell, ScDocument& rDoc, cons
 
 ScFormulaCell::~ScFormulaCell()
 {
+    SAL_INFO( "sc.core.formulacell", "ScFormulaCell dtor this " << this);
+
     pDocument->RemoveFromFormulaTrack( this );
     pDocument->RemoveFromFormulaTree( this );
     pDocument->RemoveSubTotalCell(this);
diff --git a/sc/source/core/tool/grouparealistener.cxx b/sc/source/core/tool/grouparealistener.cxx
index 8cd30d7..7f4dad6 100644
--- a/sc/source/core/tool/grouparealistener.cxx
+++ b/sc/source/core/tool/grouparealistener.cxx
@@ -78,10 +78,16 @@ FormulaGroupAreaListener::FormulaGroupAreaListener(
     mbEndFixed(bEndFixed)
 {
     assert(mppTopCell); // This can't be NULL.
+    SAL_INFO( "sc.core.grouparealistener",
+            "FormulaGroupAreaListener ctor this " << this <<
+            " range " << maRange.Format(SCA_VALID) << " *mppTopCell " << *mppTopCell << " length " << mnGroupLen);
 }
 
 FormulaGroupAreaListener::~FormulaGroupAreaListener()
 {
+    SAL_INFO( "sc.core.grouparealistener",
+            "FormulaGroupAreaListener dtor this " << this <<
+            " range " << maRange.Format(SCA_VALID) << " *mppTopCell " << *mppTopCell << " length " << mnGroupLen);
 }
 
 ScRange FormulaGroupAreaListener::getListeningRange() const
@@ -168,6 +174,10 @@ void FormulaGroupAreaListener::collectFormulaCells(
 void FormulaGroupAreaListener::collectFormulaCells(
     SCROW nRow1, SCROW nRow2, std::vector<ScFormulaCell*>& rCells ) const
 {
+    SAL_INFO( "sc.core.grouparealistener",
+            "FormulaGroupAreaListener::collectFormulaCells() this " << this <<
+            " range " << maRange.Format(SCA_VALID) << " *mppTopCell " << *mppTopCell << " length " << mnGroupLen);
+
     ScFormulaCell** pp = mppTopCell;
     ScFormulaCell** ppEnd = pp + mnGroupLen;
 


More information about the Libreoffice-commits mailing list