diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-26 23:25:21 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-26 23:26:42 -0400 |
commit | 3c6e378fd81b2bfd8a35e12557a90fa40428920e (patch) | |
tree | 13e40d8198adce2c1dd22aee4df3934f33621cc7 /sc | |
parent | ecde8155fefcdacb08177a10a4eddc24f6675b0b (diff) |
Make these non inline.
Don't do this please...
Change-Id: Id90490622bca10beabf7a1c92e51e55bc72a1db8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/refhint.hxx | 14 | ||||
-rw-r--r-- | sc/source/core/tool/refhint.cxx | 35 |
2 files changed, 42 insertions, 7 deletions
diff --git a/sc/inc/refhint.hxx b/sc/inc/refhint.hxx index f8a6df71d40f..1f927312327b 100644 --- a/sc/inc/refhint.hxx +++ b/sc/inc/refhint.hxx @@ -31,7 +31,7 @@ protected: public: virtual ~RefHint() = 0; - Type getType() const { return meType; } + Type getType() const; }; class RefMovedHint : public RefHint @@ -47,12 +47,12 @@ public: /** * Get the source range from which the references have moved. */ - const ScRange& getRange() const { return maRange;} + const ScRange& getRange() const; /** * Get the movement vector. */ - const ScAddress& getDelta() const { return maMoveDelta;} + const ScAddress& getDelta() const; }; class RefColReorderHint : public RefHint @@ -66,11 +66,11 @@ public: RefColReorderHint( const sc::ColReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 ); virtual ~RefColReorderHint(); - const sc::ColReorderMapType& getColMap() const { return mrColMap;} + const sc::ColReorderMapType& getColMap() const; - SCTAB getTab() const { return mnTab;} - SCROW getStartRow() const { return mnRow1;} - SCROW getEndRow() const { return mnRow2;} + SCTAB getTab() const; + SCROW getStartRow() const; + SCROW getEndRow() const; }; } diff --git a/sc/source/core/tool/refhint.cxx b/sc/source/core/tool/refhint.cxx index 25dc699976e5..80aef9307cf1 100644 --- a/sc/source/core/tool/refhint.cxx +++ b/sc/source/core/tool/refhint.cxx @@ -14,16 +14,51 @@ namespace sc { RefHint::RefHint( Type eType ) : SfxSimpleHint(SC_HINT_REFERENCE), meType(eType) {} RefHint::~RefHint() {} +RefHint::Type RefHint::getType() const +{ + return meType; +} + RefMovedHint::RefMovedHint( const ScRange& rRange, const ScAddress& rMove ) : RefHint(Moved), maRange(rRange), maMoveDelta(rMove) {} RefMovedHint::~RefMovedHint() {} +const ScRange& RefMovedHint::getRange() const +{ + return maRange; +} + +const ScAddress& RefMovedHint::getDelta() const +{ + return maMoveDelta; +} + RefColReorderHint::RefColReorderHint( const sc::ColReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 ) : RefHint(ColumnReordered), mrColMap(rColMap), mnTab(nTab), mnRow1(nRow1), mnRow2(nRow2) {} RefColReorderHint::~RefColReorderHint() {} +const sc::ColReorderMapType& RefColReorderHint::getColMap() const +{ + return mrColMap; +} + +SCTAB RefColReorderHint::getTab() const +{ + return mnTab; +} + +SCROW RefColReorderHint::getStartRow() const +{ + return mnRow1; +} + +SCROW RefColReorderHint::getEndRow() const +{ + return mnRow2; +} + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |