diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-14 12:29:15 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-14 16:11:52 -0400 |
commit | 953d606b99017195249823c30c2bf19c83f10a44 (patch) | |
tree | 3ac36659beb25f1d7c075cefabbef83623571ab9 /sc | |
parent | b63b6c63fdba944331ba4fcd6fe9a459c563d696 (diff) |
Make these non inline.
Change-Id: Ieb54e895f334361978cfc22956ab65687fb74adf
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/chgtrack.hxx | 45 | ||||
-rw-r--r-- | sc/source/core/tool/chgtrack.cxx | 53 |
2 files changed, 61 insertions, 37 deletions
diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx index dc5f36c68446..94a94f3566ec 100644 --- a/sc/inc/chgtrack.hxx +++ b/sc/inc/chgtrack.hxx @@ -1029,42 +1029,13 @@ public: ScChangeAction* GetFirst() const { return pFirst; } ScChangeAction* GetLast() const { return pLast; } sal_uLong GetActionMax() const { return nActionMax; } - bool IsGenerated( sal_uLong nAction ) const - { return nAction >= nGeneratedMin; } - ScChangeAction* GetAction( sal_uLong nAction ) const - { - ScChangeActionMap::const_iterator it = aMap.find( nAction ); - if( it != aMap.end() ) - return it->second; - else - return NULL; - } - ScChangeAction* GetGenerated( sal_uLong nGenerated ) const - { - ScChangeActionMap::const_iterator it = aGeneratedMap.find( nGenerated ); - if( it != aGeneratedMap.end() ) - return it->second; - else - return NULL; - } - ScChangeAction* GetActionOrGenerated( sal_uLong nAction ) const - { - return IsGenerated( nAction ) ? - GetGenerated( nAction ) : - GetAction( nAction ); - } - sal_uLong GetLastSavedActionNumber() const - { return nMarkLastSaved; } - void SetLastSavedActionNumber(sal_uLong nNew) - { nMarkLastSaved = nNew; } - ScChangeAction* GetLastSaved() const - { - ScChangeActionMap::const_iterator it = aMap.find( nMarkLastSaved ); - if( it != aMap.end() ) - return it->second; - else - return NULL; - } + bool IsGenerated( sal_uLong nAction ) const; + SC_DLLPUBLIC ScChangeAction* GetAction( sal_uLong nAction ) const; + ScChangeAction* GetGenerated( sal_uLong nGenerated ) const; + ScChangeAction* GetActionOrGenerated( sal_uLong nAction ) const; + sal_uLong GetLastSavedActionNumber() const; + void SetLastSavedActionNumber(sal_uLong nNew); + ScChangeAction* GetLastSaved() const; ScChangeActionContent** GetContentSlots() const { return ppContentSlots; } bool IsLoadSave() const { return bLoadSave; } @@ -1220,7 +1191,7 @@ public: void SetModifiedLink( const Link& r ) { aModifiedLink = r; ClearMsgQueue(); } const Link& GetModifiedLink() const { return aModifiedLink; } - ScChangeTrackMsgQueue& GetMsgQueue() { return aMsgQueue; } + ScChangeTrackMsgQueue& GetMsgQueue(); void NotifyModified( ScChangeTrackMsgType eMsgType, sal_uLong nStartAction, sal_uLong nEndAction ); diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx index 8f1691def1fd..3abdc45aa939 100644 --- a/sc/source/core/tool/chgtrack.cxx +++ b/sc/source/core/tool/chgtrack.cxx @@ -2196,6 +2196,54 @@ void ScChangeTrack::Clear() Init(); } +bool ScChangeTrack::IsGenerated( sal_uLong nAction ) const +{ + return nAction >= nGeneratedMin; +} + +ScChangeAction* ScChangeTrack::GetAction( sal_uLong nAction ) const +{ + ScChangeActionMap::const_iterator it = aMap.find( nAction ); + if( it != aMap.end() ) + return it->second; + else + return NULL; +} + +ScChangeAction* ScChangeTrack::GetGenerated( sal_uLong nGenerated ) const +{ + ScChangeActionMap::const_iterator it = aGeneratedMap.find( nGenerated ); + if( it != aGeneratedMap.end() ) + return it->second; + else + return NULL; +} + +ScChangeAction* ScChangeTrack::GetActionOrGenerated( sal_uLong nAction ) const +{ + return IsGenerated( nAction ) ? + GetGenerated( nAction ) : + GetAction( nAction ); +} +sal_uLong ScChangeTrack::GetLastSavedActionNumber() const +{ + return nMarkLastSaved; +} + +void ScChangeTrack::SetLastSavedActionNumber(sal_uLong nNew) +{ + nMarkLastSaved = nNew; +} + +ScChangeAction* ScChangeTrack::GetLastSaved() const +{ + ScChangeActionMap::const_iterator it = aMap.find( nMarkLastSaved ); + if( it != aMap.end() ) + return it->second; + else + return NULL; +} + void ScChangeTrack::ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 ) { if ( !pDoc->IsInDtorClear() ) @@ -2282,6 +2330,11 @@ void ScChangeTrack::EndBlockModify( sal_uLong nEndAction ) } } +ScChangeTrackMsgQueue& ScChangeTrack::GetMsgQueue() +{ + return aMsgQueue; +} + void ScChangeTrack::NotifyModified( ScChangeTrackMsgType eMsgType, sal_uLong nStartAction, sal_uLong nEndAction ) { |