summaryrefslogtreecommitdiff
path: root/automation
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
commit1cc8adbaf6e766689c879672936e98f88b1d9c08 (patch)
treee56ef6f3218866d9def4c293b7e1f4bee70e9553 /automation
parent9b34df43b9a054b0eea74f65f68b11ddd93ae5eb (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 'automation')
-rw-r--r--automation/source/server/statemnt.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx
index 3e086f485826..a42f0fd67f95 100644
--- a/automation/source/server/statemnt.cxx
+++ b/automation/source/server/statemnt.cxx
@@ -83,6 +83,7 @@
#include <svtools/valueset.hxx>
#include <svtools/roadmap.hxx>
#include <svtools/table/tablecontrol.hxx>
+#include <svtools/table/abstracttablecontrol.hxx>
#include <svl/poolitem.hxx>
#include <svtools/extensionlistbox.hxx>
// Hat keinen Includeschutz
@@ -6209,7 +6210,7 @@ protected:
Point aPos( aSize.Width() / 2, aSize.Height() / 2 );
long nStep = aSize.Height() / 4;
::svt::table::RowPos nLastPos;
- while ( ( nLastPos = pTC->GetRowAtPoint( aPos ) ) != nNr1-1 && nStep > 0 )
+ while ( ( nLastPos = pTC->getTableControlInterface().getRowAtPoint( aPos ) ) != nNr1-1 && nStep > 0 )
{
if ( nLastPos > nNr1-1 || nLastPos == ROW_INVALID )
aPos.Y() -= nStep;
@@ -6217,7 +6218,7 @@ protected:
aPos.Y() += nStep;
nStep /= 2;
}
- if ( pTC->GetRowAtPoint( aPos ) == nNr1-1 )
+ if ( pTC->getTableControlInterface().getRowAtPoint( aPos ) == nNr1-1 )
{
MouseEvent aMEvnt(aPos,1,MOUSE_SIMPLECLICK|MOUSE_SELECT,MOUSE_LEFT,KEY_MOD1);
pTC->getSelEngine()->SelMouseButtonDown( aMEvnt );