summaryrefslogtreecommitdiff
path: root/svtools/source/table/tablecontrol.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-01-11 10:58:26 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-01-11 10:58:26 +0100
commit5a256f4486e4b9875ea62c9a8f65ad110fda71b9 (patch)
tree0ec1d2db577a71f5bb2c3a82205cba7d43d083d9 /svtools/source/table/tablecontrol.cxx
parent858b82e990dee4558dbe3fe3c026d806f5acd524 (diff)
gridsort: removed XGridControl::setTooltip. It had a rather strange semantics, seems to be unused in the current
OOo code base, and would belong to the model, if at all. Still one thing to do: do not unconditionally display the cell content as tooltip, but make this dependent on whether or not the cell content fits into the cell.
Diffstat (limited to 'svtools/source/table/tablecontrol.cxx')
-rw-r--r--svtools/source/table/tablecontrol.cxx27
1 files changed, 2 insertions, 25 deletions
diff --git a/svtools/source/table/tablecontrol.cxx b/svtools/source/table/tablecontrol.cxx
index 08227b9abd91..1b6027b71324 100644
--- a/svtools/source/table/tablecontrol.cxx
+++ b/svtools/source/table/tablecontrol.cxx
@@ -70,7 +70,6 @@ namespace svt { namespace table
:Control( _pParent, _nStyle )
,m_pImpl( new TableControl_Impl( *this ) )
,m_bSelectionChanged(false)
- ,m_bTooltip(false)
{
TableDataWindow* aTableData = m_pImpl->getDataWindow();
aTableData->SetMouseButtonDownHdl( LINK( this, TableControl, ImplMouseButtonDownHdl ) );
@@ -245,9 +244,9 @@ namespace svt { namespace table
}
//--------------------------------------------------------------------
- RowPos TableControl::GetRowAtPoint( const Point& rPoint )
+ IAbstractTableControl& TableControl::getTableControlInterface()
{
- return m_pImpl->getRowAtPoint( rPoint );
+ return *m_pImpl;
}
//--------------------------------------------------------------------
@@ -574,34 +573,12 @@ Rectangle TableControl::calcTableRect(BOOL _bOnScreen)
(void)_bOnScreen;
return m_pImpl->calcTableRect();
}
-//--------------------------------------------------------------------
-::com::sun::star::uno::Sequence< sal_Int32 >& TableControl::getColumnsForTooltip()
-{
- return m_nCols;
-}
-//--------------------------------------------------------------------
-::com::sun::star::uno::Sequence< ::rtl::OUString >& TableControl::getTextForTooltip()
-{
- return m_aText;
-}
-//--------------------------------------------------------------------
-void TableControl::setTooltip(const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aText, const ::com::sun::star::uno::Sequence< sal_Int32 >& nCols )
-{
- m_aText = aText;
- m_nCols = nCols;
- m_bTooltip = true;
-}
// -----------------------------------------------------------------------
void TableControl::selectionChanged(bool _bChanged)
{
m_bSelectionChanged = _bChanged;
}
// -----------------------------------------------------------------------
-bool TableControl::isTooltip()
-{
- return m_bTooltip;
-}
-// -----------------------------------------------------------------------
IMPL_LINK( TableControl, ImplSelectHdl, void*, EMPTYARG )
{
Select();