[Libreoffice-commits] core.git: sc/inc sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Thu Jun 26 20:27:07 PDT 2014
sc/inc/refhint.hxx | 14 +++++++-------
sc/source/core/tool/refhint.cxx | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 7 deletions(-)
New commits:
commit 3c6e378fd81b2bfd8a35e12557a90fa40428920e
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Thu Jun 26 23:25:21 2014 -0400
Make these non inline.
Don't do this please...
Change-Id: Id90490622bca10beabf7a1c92e51e55bc72a1db8
diff --git a/sc/inc/refhint.hxx b/sc/inc/refhint.hxx
index f8a6df7..1f92731 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 25dc699..80aef93 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: */
More information about the Libreoffice-commits
mailing list