summaryrefslogtreecommitdiff
path: root/svtools/source/table/tablecontrol_impl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/table/tablecontrol_impl.cxx')
-rw-r--r--svtools/source/table/tablecontrol_impl.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx
index eb1237af43f7..81334babb123 100644
--- a/svtools/source/table/tablecontrol_impl.cxx
+++ b/svtools/source/table/tablecontrol_impl.cxx
@@ -1774,7 +1774,7 @@ namespace svt { namespace table
invalidateRow( m_nCurRow );
}
}
- m_pSelEngine->SetAnchor(sal_True);
+ m_pSelEngine->SetAnchor(true);
m_nAnchor = m_nCurRow;
ensureVisible(m_nCurColumn, m_nCurRow, false);
selectionChanged = true;
@@ -1855,7 +1855,7 @@ namespace svt { namespace table
invalidateRow( m_nCurRow );
}
}
- m_pSelEngine->SetAnchor(sal_True);
+ m_pSelEngine->SetAnchor(true);
m_nAnchor = m_nCurRow;
ensureVisible(m_nCurColumn, m_nCurRow, false);
selectionChanged = true;
@@ -1884,7 +1884,7 @@ namespace svt { namespace table
}
m_nCurRow = 0;
m_nAnchor = m_nCurRow;
- m_pSelEngine->SetAnchor(sal_True);
+ m_pSelEngine->SetAnchor(true);
ensureVisible(m_nCurColumn, 0, false);
selectionChanged = true;
bSuccess = true;
@@ -1910,7 +1910,7 @@ namespace svt { namespace table
}
m_nCurRow = m_nRowCount-1;
m_nAnchor = m_nCurRow;
- m_pSelEngine->SetAnchor(sal_True);
+ m_pSelEngine->SetAnchor(true);
ensureVisible(m_nCurColumn, m_nRowCount-1, false);
selectionChanged = true;
bSuccess = true;
@@ -2780,7 +2780,7 @@ namespace svt { namespace table
}
//------------------------------------------------------------------------------------------------------------------
- sal_Bool TableFunctionSet::SetCursorAtPoint(const Point& rPoint, sal_Bool bDontSelectAtCursor)
+ bool TableFunctionSet::SetCursorAtPoint(const Point& rPoint, sal_Bool bDontSelectAtCursor)
{
sal_Bool bHandled = sal_False;
// newRow is the row which includes the point, getCurRow() is the last selected row, before the mouse click
@@ -2793,12 +2793,12 @@ namespace svt { namespace table
newCol = m_pTableControl->getLeftColumn();
if ( ( newRow == ROW_INVALID ) || ( newCol == COL_INVALID ) )
- return sal_False;
+ return false;
if ( bDontSelectAtCursor )
{
if ( m_pTableControl->getSelectedRowCount() > 1 )
- m_pTableControl->getSelEngine()->AddAlways(sal_True);
+ m_pTableControl->getSelEngine()->AddAlways(true);
bHandled = sal_True;
}
else if ( m_pTableControl->getAnchor() == m_pTableControl->getCurRow() )
@@ -2849,7 +2849,7 @@ namespace svt { namespace table
}
}
if ( m_pTableControl->getSelectedRowCount() > 1 && m_pTableControl->getSelEngine()->GetSelectionMode() != SINGLE_SELECTION )
- m_pTableControl->getSelEngine()->AddAlways(sal_True);
+ m_pTableControl->getSelEngine()->AddAlways(true);
m_pTableControl->invalidateRow( newRow );
bHandled = sal_True;
@@ -2858,11 +2858,11 @@ namespace svt { namespace table
return bHandled;
}
//------------------------------------------------------------------------------------------------------------------
- sal_Bool TableFunctionSet::IsSelectionAtPoint( const Point& rPoint )
+ bool TableFunctionSet::IsSelectionAtPoint( const Point& rPoint )
{
- m_pTableControl->getSelEngine()->AddAlways(sal_False);
+ m_pTableControl->getSelEngine()->AddAlways(false);
if ( !m_pTableControl->hasRowSelection() )
- return sal_False;
+ return false;
else
{
RowPos curRow = m_pTableControl->getRowAtPoint( rPoint );