sc/inc/table.hxx | 3 +++ sc/source/core/data/table2.cxx | 9 +++++++++ 2 files changed, 12 insertions(+)
New commits: commit 651ee7089bfff730c31384ed3316e7096d18c623 Author: Kohei Yoshida <kohei.yosh...@gmail.com> Date: Tue Mar 12 16:39:03 2013 -0400 Accessor in ScTable. Change-Id: Id29e746c799365c679e60f22f88bfbcb3dbdf693 diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index a43c04d..8786ccf 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -201,6 +201,9 @@ public: sal_uLong GetWeightedCount() const; sal_uLong GetCodeCount() const; // RPN code in formula + sal_uInt16 GetTextWidth(SCCOL nCol, SCROW nRow) const; + void SetTextWidth(SCCOL nCol, SCROW nRow, sal_uInt16 nWidth); + bool SetOutlineTable( const ScOutlineTable* pNewOutline ); void StartOutlineTable(); diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index a53ad1d..9acc677 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -53,6 +53,15 @@ // STATIC DATA ----------------------------------------------------------- +sal_uInt16 ScTable::GetTextWidth(SCCOL nCol, SCROW nRow) const +{ + return aCol[nCol].GetTextWidth(nRow); +} + +void ScTable::SetTextWidth(SCCOL nCol, SCROW nRow, sal_uInt16 nWidth) +{ + aCol[nCol].SetTextWidth(nRow, nWidth); +} bool ScTable::SetOutlineTable( const ScOutlineTable* pNewOutline ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits