diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-04-23 09:56:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-04-23 09:59:23 +0100 |
commit | 7c1ab3470333a642947421f4289d9a79d13970fb (patch) | |
tree | 1c59dfe5c0fbb24946e6d0866da777509173b3b8 /svx | |
parent | cc24106366af9e22ba20caf27aa96cc65dbbbd3e (diff) |
restore SdrTableObj::getColumnCount
removed correctly by fe630f3b097ca2bf173f21de77ed1535c767d0b9 but
we will need it again
Change-Id: I07a44e25cfc0de01cfdfef10ae817c413b50b597
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/svdotable.hxx | 2 | ||||
-rw-r--r-- | svx/source/table/svdotable.cxx | 14 |
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 |