diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-14 13:19:09 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-14 13:19:09 +0100 |
commit | f30518cc978f4f74a7e61d03872b913124e82f76 (patch) | |
tree | d5028c3b7bb3f801621e481bf0f9e1934afb725d /svtools | |
parent | d0cdc38a6771473b81f002da6769b7b723d657ff (diff) |
gridsort: re-add tooltip support to X(Mutable)GridDataModel, this time more explicit, and less magical
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/unocontroltablemodel.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/svtools/source/uno/unocontroltablemodel.cxx b/svtools/source/uno/unocontroltablemodel.cxx index 75e58bcdf03c..17aac65c0dfb 100644 --- a/svtools/source/uno/unocontroltablemodel.cxx +++ b/svtools/source/uno/unocontroltablemodel.cxx @@ -554,9 +554,17 @@ namespace svt { namespace table void UnoControlTableModel::getCellToolTip( ColPos const i_col, RowPos const i_row, Any& o_cellToolTip ) { DBG_CHECK_ME(); - OSL_UNUSED( i_col ); - OSL_UNUSED( i_row ); - OSL_UNUSED( o_cellToolTip ); + try + { + Reference< XGridDataModel > const xDataModel( m_pImpl->m_aDataModel ); + ENSURE_OR_THROW( xDataModel.is(), "no data model anymore!" ); + + o_cellToolTip = xDataModel->getCellToolTip( i_col, i_row ); + } + catch( const Exception& ) + { + DBG_UNHANDLED_EXCEPTION(); + } } //------------------------------------------------------------------------------------------------------------------ |