summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-04-23 09:56:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-04-23 09:59:23 +0100
commit7c1ab3470333a642947421f4289d9a79d13970fb (patch)
tree1c59dfe5c0fbb24946e6d0866da777509173b3b8
parentDisable coretex again (diff)
downloadcore-7c1ab3470333a642947421f4289d9a79d13970fb.tar.gz
core-7c1ab3470333a642947421f4289d9a79d13970fb.zip
restore SdrTableObj::getColumnCount
removed correctly by fe630f3b097ca2bf173f21de77ed1535c767d0b9 but we will need it again Change-Id: I07a44e25cfc0de01cfdfef10ae817c413b50b597
-rw-r--r--svx/inc/svx/svdotable.hxx2
-rw-r--r--svx/source/table/svdotable.cxx14
2 files changed, 16 insertions, 0 deletions
diff --git a/svx/inc/svx/svdotable.hxx b/svx/inc/svx/svdotable.hxx
index 2cc3ba80f098..6ec0334c2d21 100644
--- a/svx/inc/svx/svdotable.hxx
+++ b/svx/inc/svx/svdotable.hxx
@@ -146,6 +146,8 @@ public:
void setActiveCell( const sdr::table::CellPos& rPos );
void getActiveCellPos( sdr::table::CellPos& rPos ) const;
+ sal_Int32 getRowCount() const;
+ sal_Int32 getColumnCount() const;
void getCellBounds( const sdr::table::CellPos& rPos, ::Rectangle& rCellRect );
const SfxItemSet& GetActiveCellItemSet() const;
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index 85551b5ca459..3717e46855b4 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -1504,6 +1504,20 @@ const CellRef& SdrTableObj::getActiveCell() const
// --------------------------------------------------------------------
+sal_Int32 SdrTableObj::getRowCount() const
+{
+ return mpImpl ? mpImpl->getRowCount() : 0;
+}
+
+// --------------------------------------------------------------------
+
+sal_Int32 SdrTableObj::getColumnCount() const
+{
+ return mpImpl ? mpImpl->getColumnCount() : 0;
+}
+
+// --------------------------------------------------------------------
+
void SdrTableObj::setActiveCell( const CellPos& rPos )
{
if( mpImpl && mpImpl->mxTable.is() ) try