diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-03 14:58:56 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-04 00:25:52 -0500 |
commit | 6fae316672b146937a52eeb6447b08177c26c43b (patch) | |
tree | 538842d6e968eb4c205a1e77263ecfa35e161251 | |
parent | f0002a68c4dcf99d775d9575deabec18c1bd5852 (diff) |
No inlined member methods.
-rw-r--r-- | sc/inc/olinetab.hxx | 24 | ||||
-rw-r--r-- | sc/source/core/data/olinetab.cxx | 24 |
2 files changed, 39 insertions, 9 deletions
diff --git a/sc/inc/olinetab.hxx b/sc/inc/olinetab.hxx index 9dcdf0cfebc6..4759bef70990 100644 --- a/sc/inc/olinetab.hxx +++ b/sc/inc/olinetab.hxx @@ -47,17 +47,24 @@ class ScOutlineEntry : public ScDataObject bool bVisible; public: - ScOutlineEntry( SCCOLROW nNewStart, SCCOLROW nNewSize, - bool bNewHidden = false ); - ScOutlineEntry( const ScOutlineEntry& rEntry ); + ScOutlineEntry( SCCOLROW nNewStart, SCCOLROW nNewSize, bool bNewHidden = false ); + ScOutlineEntry( const ScOutlineEntry& rEntry ); virtual ScDataObject* Clone() const; - SCCOLROW GetStart() const { return nStart; } - SCSIZE GetSize() const { return nSize; } - SCCOLROW GetEnd() const { return nStart+nSize-1; } - bool IsHidden() const { return bHidden; } // group hidden - bool IsVisible() const { return bVisible; } // control visible? + SCCOLROW GetStart() const; + SCSIZE GetSize() const; + SC_DLLPUBLIC SCCOLROW GetEnd() const; + + /** + * @return true is the group is hidden, false otherwise. + */ + SC_DLLPUBLIC bool IsHidden() const; + + /** + * @return true if the control is visible, false otherwise. + */ + bool IsVisible() const; void Move( SCsCOLROW nDelta ); void SetSize( SCSIZE nNewSize ); @@ -66,7 +73,6 @@ public: void SetVisible( bool bNewVisible ); }; - class ScOutlineCollection : public ScSortedCollection { public: diff --git a/sc/source/core/data/olinetab.cxx b/sc/source/core/data/olinetab.cxx index 2af2a84e1fc6..30bf2f32d053 100644 --- a/sc/source/core/data/olinetab.cxx +++ b/sc/source/core/data/olinetab.cxx @@ -65,6 +65,30 @@ ScDataObject* ScOutlineEntry::Clone() const return new ScOutlineEntry( *this ); } +SCCOLROW ScOutlineEntry::GetStart() const +{ + return nStart; +} + +SCSIZE ScOutlineEntry::GetSize() const +{ + return nSize; +} + +SCCOLROW ScOutlineEntry::GetEnd() const +{ + return nStart+nSize-1; +} +bool ScOutlineEntry::IsHidden() const +{ + return bHidden; +} + +bool ScOutlineEntry::IsVisible() const +{ + return bVisible; +} + void ScOutlineEntry::Move( SCsCOLROW nDelta ) { SCCOLROW nNewPos = nStart + nDelta; |