diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-03-01 20:49:29 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-03-01 20:49:29 -0500 |
commit | 9ca9075d32f0020d37e2b5be96d02be87cb72b8e (patch) | |
tree | 3fc6947aea6e8729eeed0c241b358577863320fb /sc | |
parent | 8323e331022f8d1e0bc60e7e6af9529a8a5d8948 (diff) |
More on ScfRefMap to std::map conversion.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xichart.cxx | 6 | ||||
-rw-r--r-- | sc/source/filter/inc/xichart.hxx | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx index 6ecda32a2a09..d262342b65a4 100644 --- a/sc/source/filter/excel/xichart.cxx +++ b/sc/source/filter/excel/xichart.cxx @@ -3396,6 +3396,12 @@ void XclImpChAxesSet::Finalize() } } +XclImpChTypeGroupRef XclImpChAxesSet::GetTypeGroup( sal_uInt16 nGroupIdx ) const +{ + XclImpChTypeGroupMap::const_iterator itr = maTypeGroups.find(nGroupIdx); + return itr == maTypeGroups.end() ? XclImpChTypeGroupRef() : itr->second; +} + XclImpChTypeGroupRef XclImpChAxesSet::GetFirstTypeGroup() const { XclImpChTypeGroupRef xTypeGroup; diff --git a/sc/source/filter/inc/xichart.hxx b/sc/source/filter/inc/xichart.hxx index e5d16966cd5c..b57e37aef6ff 100644 --- a/sc/source/filter/inc/xichart.hxx +++ b/sc/source/filter/inc/xichart.hxx @@ -1301,7 +1301,7 @@ public: /** Returns the outer plot area position, if existing. */ inline XclImpChFramePosRef GetPlotAreaFramePos() const { return mxFramePos; } /** Returns the specified chart type group. */ - inline XclImpChTypeGroupRef GetTypeGroup( sal_uInt16 nGroupIdx ) const { return maTypeGroups.get( nGroupIdx ); } + XclImpChTypeGroupRef GetTypeGroup( sal_uInt16 nGroupIdx ) const; /** Returns the first chart type group. */ XclImpChTypeGroupRef GetFirstTypeGroup() const; /** Looks for a legend in all chart type groups and returns it. */ @@ -1338,7 +1338,7 @@ private: void ConvertBackground( XDiagramRef xDiagram ) const; private: - typedef ScfRefMap< sal_uInt16, XclImpChTypeGroup > XclImpChTypeGroupMap; + typedef ::std::map<sal_uInt16, XclImpChTypeGroupRef> XclImpChTypeGroupMap; XclChAxesSet maData; /// Contents of the CHAXESSET record. XclImpChFramePosRef mxFramePos; /// Outer plot area position (CHFRAMEPOS record). |