summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-09 14:48:39 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-09 14:53:07 -0400
commit827530ce3f91b092c09daa5138ebadf435f63562 (patch)
treeb35a110aed70dd88010e9483f2395bb84109a260
parente44a139fdad49b286eb1a88cc668b52711680e6c (diff)
More removal of implicit inlines, while I'm at it....
Change-Id: I944e9539f9cea13d2da640d3da1588d44d5570b3
-rw-r--r--sc/inc/formulacell.hxx62
-rw-r--r--sc/inc/postit.hxx10
-rw-r--r--sc/source/core/data/formulacell.cxx68
-rw-r--r--sc/source/core/data/postit.cxx25
4 files changed, 128 insertions, 37 deletions
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index 3258e21a1153..0c6137114314 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -148,15 +148,15 @@ public:
void SetDirtyVar();
// If setting entire document dirty after load, no broadcasts but still append to FormulaTree.
void SetDirtyAfterLoad();
- inline void ResetTableOpDirtyVar() { bTableOpDirty = false; }
+ void ResetTableOpDirtyVar();
void SetTableOpDirty();
bool IsDirtyOrInTableOpDirty() const;
- bool GetDirty() const { return bDirty; }
- void ResetDirty() { bDirty = false; }
- bool NeedsListening() const { return bNeedListening; }
- void SetNeedsListening( bool bVar ) { bNeedListening = bVar; }
- void SetNeedNumberFormat( bool bVal ) { mbNeedsNumberFormat = bVal; }
- short GetFormatType() const { return nFormatType; }
+ bool GetDirty() const;
+ void ResetDirty();
+ bool NeedsListening() const;
+ void SetNeedsListening( bool bVar );
+ void SetNeedNumberFormat( bool bVal );
+ short GetFormatType() const;
void Compile(const OUString& rFormula,
bool bNoListening = false,
const formula::FormulaGrammar::Grammar = formula::FormulaGrammar::GRAM_DEFAULT );
@@ -165,8 +165,8 @@ public:
void CalcAfterLoad();
bool MarkUsedExternalReferences();
void Interpret();
- inline bool IsIterCell() const { return bIsIterCell; }
- inline sal_uInt16 GetSeenInIteration() const { return nSeenInIteration; }
+ bool IsIterCell() const;
+ sal_uInt16 GetSeenInIteration() const;
bool HasOneReference( ScRange& r ) const;
/* Checks if the formula contains reference list that can be
@@ -200,7 +200,7 @@ public:
bool TestTabRefAbs(SCTAB nTable);
void UpdateCompile( bool bForceIfNameInUse = false );
void FindRangeNamesInUse(std::set<sal_uInt16>& rIndexes) const;
- bool IsSubTotal() const { return bSubTotal; }
+ bool IsSubTotal() const;
bool IsChanged() const;
void SetChanged(bool b);
bool IsEmpty(); // formula::svEmptyCell result
@@ -219,51 +219,49 @@ public:
sal_uInt16 GetErrCode(); // interpret first if necessary
sal_uInt16 GetRawError(); // don't interpret, just return code or result error
bool GetErrorOrValue( sal_uInt16& rErr, double& rVal );
- sal_uInt8 GetMatrixFlag() const { return cMatrixFlag; }
- ScTokenArray* GetCode() const { return pCode; }
+ sal_uInt8 GetMatrixFlag() const;
+ ScTokenArray* GetCode() const;
- bool IsRunning() const { return bRunning; }
- void SetRunning( bool bVal ) { bRunning = bVal; }
+ bool IsRunning() const;
+ void SetRunning( bool bVal );
void CompileDBFormula();
void CompileDBFormula( bool bCreateFormulaString );
void CompileNameFormula( bool bCreateFormulaString );
void CompileColRowNameFormula();
- ScFormulaCell* GetPrevious() const { return pPrevious; }
- ScFormulaCell* GetNext() const { return pNext; }
- void SetPrevious( ScFormulaCell* pF ) { pPrevious = pF; }
- void SetNext( ScFormulaCell* pF ) { pNext = pF; }
- ScFormulaCell* GetPreviousTrack() const { return pPreviousTrack; }
- ScFormulaCell* GetNextTrack() const { return pNextTrack; }
- void SetPreviousTrack( ScFormulaCell* pF ) { pPreviousTrack = pF; }
- void SetNextTrack( ScFormulaCell* pF ) { pNextTrack = pF; }
+ ScFormulaCell* GetPrevious() const;
+ ScFormulaCell* GetNext() const;
+ void SetPrevious( ScFormulaCell* pF );
+ void SetNext( ScFormulaCell* pF );
+ ScFormulaCell* GetPreviousTrack() const;
+ ScFormulaCell* GetNextTrack() const;
+ void SetPreviousTrack( ScFormulaCell* pF );
+ void SetNextTrack( ScFormulaCell* pF );
virtual void Notify( SvtBroadcaster& rBC, const SfxHint& rHint);
- void SetCompile( bool bVal ) { bCompile = bVal; }
- ScDocument* GetDocument() const { return pDocument; }
+ void SetCompile( bool bVal );
+ ScDocument* GetDocument() const;
void SetMatColsRows( SCCOL nCols, SCROW nRows, bool bDirtyFlag=true );
void GetMatColsRows( SCCOL& nCols, SCROW& nRows ) const;
// cell belongs to ChangeTrack and not to the real document
- void SetInChangeTrack( bool bVal ) { bInChangeTrack = bVal; }
- bool IsInChangeTrack() const { return bInChangeTrack; }
+ void SetInChangeTrack( bool bVal );
+ bool IsInChangeTrack() const;
// For import filters!
void AddRecalcMode( formula::ScRecalcMode );
/** For import only: set a double result. */
- void SetHybridDouble( double n ) { aResult.SetHybridDouble( n); }
+ void SetHybridDouble( double n );
/** For import only: set a string result.
If for whatever reason you have to use both, SetHybridDouble() and
SetHybridString() or SetHybridFormula(), use SetHybridDouble() first
for performance reasons.*/
- void SetHybridString( const OUString& r )
- { aResult.SetHybridString( r); }
+ void SetHybridString( const OUString& r );
/** For import only: set a temporary formula string to be compiled later.
If for whatever reason you have to use both, SetHybridDouble() and
SetHybridString() or SetHybridFormula(), use SetHybridDouble() first
for performance reasons.*/
- void SetHybridFormula( const OUString& r,
- const formula::FormulaGrammar::Grammar eGrammar )
- { aResult.SetHybridFormula( r); eTempGrammar = eGrammar; }
+ void SetHybridFormula(
+ const OUString& r, const formula::FormulaGrammar::Grammar eGrammar );
void SetResultMatrix( SCCOL nCols, SCROW nRows, const ScConstMatrixRef& pMat, formula::FormulaToken* pUL );
diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx
index 0c401d5fa4d7..2359dcff0fc1 100644
--- a/sc/inc/postit.hxx
+++ b/sc/inc/postit.hxx
@@ -99,12 +99,12 @@ public:
bool bCloneCaption ) const;
/** Returns the data struct containing all note settings. */
- inline const ScNoteData& GetNoteData() const { return maNoteData; }
+ const ScNoteData& GetNoteData() const;
/** Returns the creation date of this note. */
- inline const OUString& GetDate() const { return maNoteData.maDate; }
+ const OUString& GetDate() const;
/** Sets a new creation date for this note. */
- inline void SetDate( const OUString& rDate ) { maNoteData.maDate = rDate; }
+ void SetDate( const OUString& rDate );
/** Returns the author date of this note. */
const OUString& GetAuthor() const;
@@ -126,7 +126,7 @@ public:
/** Returns an existing note caption object. returns null, if the note
contains initial caption data needed to construct a caption object. */
- inline SdrCaptionObj* GetCaption() const { return maNoteData.mpCaption; }
+ SdrCaptionObj* GetCaption() const;
/** Returns the caption object of this note. Creates the caption object, if
the note contains initial caption data instead of the caption. */
SdrCaptionObj* GetOrCreateCaption( const ScAddress& rPos ) const;
@@ -136,7 +136,7 @@ public:
/** Shows or hides the note caption object. */
void ShowCaption( const ScAddress& rPos, bool bShow = true );
/** Returns true, if the caption object is visible. */
- inline bool IsCaptionShown() const { return maNoteData.mbShown; }
+ bool IsCaptionShown() const;
/** Shows or hides the caption temporarily (does not change internal visibility state). */
void ShowCaptionTemp( const ScAddress& rPos, bool bShow = true );
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index a7aff76dde31..17653c9a10c1 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -704,6 +704,13 @@ void ScFormulaCell::GetResultDimensions( SCSIZE& rCols, SCSIZE& rRows )
}
}
+bool ScFormulaCell::GetDirty() const { return bDirty; }
+void ScFormulaCell::ResetDirty() { bDirty = false; }
+bool ScFormulaCell::NeedsListening() const { return bNeedListening; }
+void ScFormulaCell::SetNeedsListening( bool bVar ) { bNeedListening = bVar; }
+void ScFormulaCell::SetNeedNumberFormat( bool bVal ) { mbNeedsNumberFormat = bVal; }
+short ScFormulaCell::GetFormatType() const { return nFormatType; }
+
void ScFormulaCell::Compile( const OUString& rFormula, bool bNoListening,
const FormulaGrammar::Grammar eGrammar )
{
@@ -1143,6 +1150,9 @@ void ScFormulaCell::Interpret()
}
}
+bool ScFormulaCell::IsIterCell() const { return bIsIterCell; }
+sal_uInt16 ScFormulaCell::GetSeenInIteration() const { return nSeenInIteration; }
+
void ScFormulaCell::InterpretTail( ScInterpretTailParameter eTailParam )
{
class RecursionCounter
@@ -1454,6 +1464,15 @@ void ScFormulaCell::InterpretTail( ScInterpretTailParameter eTailParam )
}
}
+void ScFormulaCell::SetCompile( bool bVal )
+{
+ bCompile = bVal;
+}
+
+ScDocument* ScFormulaCell::GetDocument() const
+{
+ return pDocument;
+}
void ScFormulaCell::SetMatColsRows( SCCOL nCols, SCROW nRows, bool bDirtyFlag )
{
@@ -1482,6 +1501,15 @@ void ScFormulaCell::GetMatColsRows( SCCOL & nCols, SCROW & nRows ) const
}
}
+void ScFormulaCell::SetInChangeTrack( bool bVal )
+{
+ bInChangeTrack = bVal;
+}
+
+bool ScFormulaCell::IsInChangeTrack() const
+{
+ return bInChangeTrack;
+}
void ScFormulaCell::Notify( SvtBroadcaster&, const SfxHint& rHint)
{
@@ -1565,6 +1593,11 @@ void ScFormulaCell::SetDirtyAfterLoad()
pDocument->PutInFormulaTree( this );
}
+void ScFormulaCell::ResetTableOpDirtyVar()
+{
+ bTableOpDirty = false;
+}
+
void ScFormulaCell::SetTableOpDirty()
{
if ( !IsInChangeTrack() )
@@ -1636,6 +1669,22 @@ void ScFormulaCell::AddRecalcMode( ScRecalcMode nBits )
pCode->AddRecalcMode( nBits );
}
+void ScFormulaCell::SetHybridDouble( double n )
+{
+ aResult.SetHybridDouble( n);
+}
+
+void ScFormulaCell::SetHybridString( const OUString& r )
+{
+ aResult.SetHybridString( r);
+}
+
+void ScFormulaCell::SetHybridFormula( const OUString& r,
+ const formula::FormulaGrammar::Grammar eGrammar )
+{
+ aResult.SetHybridFormula( r); eTempGrammar = eGrammar;
+}
+
// Dynamically create the URLField on a mouse-over action on a hyperlink() cell.
void ScFormulaCell::GetURLResult( OUString& rURL, OUString& rCellText )
{
@@ -2748,6 +2797,11 @@ void ScFormulaCell::FindRangeNamesInUse(std::set<sal_uInt16>& rIndexes) const
lcl_FindRangeNamesInUse( rIndexes, pCode, pDocument->GetRangeName() );
}
+bool ScFormulaCell::IsSubTotal() const
+{
+ return bSubTotal;
+}
+
bool ScFormulaCell::IsChanged() const
{
return bChanged;
@@ -2758,6 +2812,11 @@ void ScFormulaCell::SetChanged(bool b)
bChanged = b;
}
+sal_uInt8 ScFormulaCell::GetMatrixFlag() const { return cMatrixFlag; }
+ScTokenArray* ScFormulaCell::GetCode() const { return pCode; }
+bool ScFormulaCell::IsRunning() const { return bRunning; }
+void ScFormulaCell::SetRunning( bool bVal ) { bRunning = bVal; }
+
void ScFormulaCell::CompileDBFormula()
{
for( FormulaToken* p = pCode->First(); p; p = pCode->Next() )
@@ -2886,6 +2945,15 @@ void ScFormulaCell::CompileColRowNameFormula()
}
}
+ScFormulaCell* ScFormulaCell::GetPrevious() const { return pPrevious; }
+ScFormulaCell* ScFormulaCell::GetNext() const { return pNext; }
+void ScFormulaCell::SetPrevious( ScFormulaCell* pF ) { pPrevious = pF; }
+void ScFormulaCell::SetNext( ScFormulaCell* pF ) { pNext = pF; }
+ScFormulaCell* ScFormulaCell::GetPreviousTrack() const { return pPreviousTrack; }
+ScFormulaCell* ScFormulaCell::GetNextTrack() const { return pNextTrack; }
+void ScFormulaCell::SetPreviousTrack( ScFormulaCell* pF ) { pPreviousTrack = pF; }
+void ScFormulaCell::SetNextTrack( ScFormulaCell* pF ) { pNextTrack = pF; }
+
ScFormulaCellGroupRef ScFormulaCell::GetCellGroup()
{
return xGroup;
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index 1cee40742599..833102102739 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -530,6 +530,21 @@ ScPostIt* ScPostIt::Clone( const ScAddress& rOwnPos, ScDocument& rDestDoc, const
return bCloneCaption ? new ScPostIt( rDestDoc, rDestPos, *this ) : new ScPostIt( rDestDoc, rDestPos, maNoteData, false );
}
+const ScNoteData& ScPostIt::GetNoteData() const
+{
+ return maNoteData;
+}
+
+const OUString& ScPostIt::GetDate() const
+{
+ return maNoteData.maDate;
+}
+
+void ScPostIt::SetDate( const OUString& rDate )
+{
+ maNoteData.maDate = rDate;
+}
+
const OUString& ScPostIt::GetAuthor() const
{
return maNoteData.maAuthor;
@@ -586,6 +601,11 @@ void ScPostIt::SetText( const ScAddress& rPos, const OUString& rText )
maNoteData.mpCaption->SetText( rText );
}
+SdrCaptionObj* ScPostIt::GetCaption() const
+{
+ return maNoteData.mpCaption;
+}
+
SdrCaptionObj* ScPostIt::GetOrCreateCaption( const ScAddress& rPos ) const
{
CreateCaptionFromInitData( rPos );
@@ -609,6 +629,11 @@ void ScPostIt::ShowCaption( const ScAddress& rPos, bool bShow )
ScCaptionUtil::SetCaptionLayer( *maNoteData.mpCaption, bShow );
}
+bool ScPostIt::IsCaptionShown() const
+{
+ return maNoteData.mbShown;
+}
+
void ScPostIt::ShowCaptionTemp( const ScAddress& rPos, bool bShow )
{
CreateCaptionFromInitData( rPos );