diff options
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/table/mousefunction.cxx | 2 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 14 | ||||
-rw-r--r-- | svtools/source/uno/svtxgridcontrol.cxx | 4 |
3 files changed, 8 insertions, 12 deletions
diff --git a/svtools/source/table/mousefunction.cxx b/svtools/source/table/mousefunction.cxx index bb0126872ae0..1cf7f22d829b 100644 --- a/svtools/source/table/mousefunction.cxx +++ b/svtools/source/table/mousefunction.cxx @@ -148,7 +148,7 @@ namespace svt { namespace table requestedWidthLogical = maxWidthLogical; } pColumn->setWidth( requestedWidthLogical ); - i_tableControl.invalidate( TableAreaAll ); + i_tableControl.invalidate( TableArea::All ); } i_tableControl.setPointer( Pointer() ); diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index e7c703bebcf3..16e711e4b39b 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -500,7 +500,7 @@ namespace svt { namespace table if ( !m_bUpdatingColWidths ) { impl_ni_relayout( i_column ); - invalidate( TableAreaAll ); + invalidate( TableArea::All ); } nGroup &= ~ColumnAttributeGroup::WIDTH; @@ -1055,7 +1055,7 @@ namespace svt { namespace table // if the column widths changed, ensure everything is repainted if ( anyColumnWidthChanged ) - invalidate( TableAreaAll ); + invalidate( TableArea::All ); // if the column resizing happened to leave some space at the right, but there are columns // scrolled out to the left, scroll them in @@ -1788,19 +1788,15 @@ namespace svt { namespace table { switch ( i_what ) { - case TableAreaColumnHeaders: + case TableArea::ColumnHeaders: m_pDataWindow->Invalidate( calcHeaderRect( true ) ); break; - case TableAreaRowHeaders: + case TableArea::RowHeaders: m_pDataWindow->Invalidate( calcHeaderRect( false ) ); break; - case TableAreaDataArea: - m_pDataWindow->Invalidate( impl_getAllVisibleDataCellArea() ); - break; - - case TableAreaAll: + case TableArea::All: m_pDataWindow->Invalidate(); m_pDataWindow->GetParent()->Invalidate( InvalidateFlags::Transparent ); break; diff --git a/svtools/source/uno/svtxgridcontrol.cxx b/svtools/source/uno/svtxgridcontrol.cxx index 574180953fa0..4fc636ccc440 100644 --- a/svtools/source/uno/svtxgridcontrol.cxx +++ b/svtools/source/uno/svtxgridcontrol.cxx @@ -625,7 +625,7 @@ void SAL_CALL SVTXGridControl::dataChanged( const GridDataEvent& i_event ) // So, just in case, invalidate the column header area, too. VclPtr< TableControl > pTable = GetAsDynamic< TableControl >(); ENSURE_OR_RETURN_VOID( pTable, "SVTXGridControl::dataChanged: no control (anymore)!" ); - pTable->getTableControlInterface().invalidate( TableAreaColumnHeaders ); + pTable->getTableControlInterface().invalidate( TableArea::ColumnHeaders ); } @@ -637,7 +637,7 @@ void SAL_CALL SVTXGridControl::rowHeadingChanged( const GridDataEvent& ) ENSURE_OR_RETURN_VOID( pTable, "SVTXGridControl::rowHeadingChanged: no control (anymore)!" ); // TODO: we could do better than this - invalidate the header area only - pTable->getTableControlInterface().invalidate( TableAreaRowHeaders ); + pTable->getTableControlInterface().invalidate( TableArea::RowHeaders ); } |