diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-19 14:11:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-24 08:12:08 +0200 |
commit | 1a1fe47731bed27e974094a86b16f91e768c6dc0 (patch) | |
tree | 4ac085ccc6ba0b00ce21772a3bdb0594dfd7f607 /svx | |
parent | cafdef8109f11435542f41d336f44771b6ced02e (diff) |
svtools: sal_Bool->bool
Change-Id: I0c2e9314d85860831b29db76c89c8776c1b071b9
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svdibrow.hxx | 2 | ||||
-rw-r--r-- | svx/source/fmcomp/fmgridcl.cxx | 24 | ||||
-rw-r--r-- | svx/source/fmcomp/fmgridif.cxx | 2 | ||||
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 14 | ||||
-rw-r--r-- | svx/source/gallery2/galctrl.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdibrow.cxx | 8 |
6 files changed, 27 insertions, 27 deletions
diff --git a/svx/inc/svdibrow.hxx b/svx/inc/svdibrow.hxx index c43ba3c91971..0be78fe0c34d 100644 --- a/svx/inc/svdibrow.hxx +++ b/svx/inc/svdibrow.hxx @@ -57,7 +57,7 @@ private: protected: virtual long GetRowCount() const; - virtual sal_Bool SeekRow(long nRow); + virtual bool SeekRow(long nRow); virtual void PaintField(OutputDevice& rDev, const Rectangle& rRect, sal_uInt16 nColumnId) const; virtual void DoubleClick(const BrowserMouseEvent&); virtual void KeyInput(const KeyEvent& rEvt); diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx index dfb85780b9c8..db0e85bd962b 100644 --- a/svx/source/fmcomp/fmgridcl.cxx +++ b/svx/source/fmcomp/fmgridcl.cxx @@ -1025,7 +1025,7 @@ void FmGridControl::Command(const CommandEvent& _rEvt) { sal_uInt16 nSelId = GetColumnId( sal::static_int_cast< sal_uInt16 >( FirstSelectedColumn() ) ); - ::Rectangle aColRect( GetFieldRectPixel( 0, nSelId, sal_False ) ); + ::Rectangle aColRect( GetFieldRectPixel( 0, nSelId, false ) ); Point aRelativePos( pMyHeader->ScreenToOutputPixel( OutputToScreenPixel( aColRect.TopCenter() ) ) ); pMyHeader->triggerColumnContextMenu( aRelativePos, FmGridHeader::AccessControl() ); @@ -1159,7 +1159,7 @@ void FmGridControl::DeleteSelectedRows() while( pCursor->next() ) xUpdateCursor->deleteRow(); - SetUpdateMode(sal_False); + SetUpdateMode(false); SetNoSelection(); xUpdateCursor->moveToInsertRow(); @@ -1171,7 +1171,7 @@ void FmGridControl::DeleteSelectedRows() // An den DatenCursor anpassen AdjustDataSource(true); EndCursorAction(); - SetUpdateMode(sal_True); + SetUpdateMode(true); } else { @@ -1230,8 +1230,8 @@ void FmGridControl::DeleteSelectedRows() BeginCursorAction(); // now delete the row - Sequence <sal_Int32> aDeletedRows; - SetUpdateMode( sal_False ); + Sequence<sal_Int32> aDeletedRows; + SetUpdateMode( false ); try { aDeletedRows = xDeleteThem->deleteRows(aBookmarks); @@ -1239,7 +1239,7 @@ void FmGridControl::DeleteSelectedRows() catch(SQLException&) { } - SetUpdateMode( sal_True ); + SetUpdateMode( true ); // how many rows are deleted? sal_Int32 nDeletedRows = 0; @@ -1253,7 +1253,7 @@ void FmGridControl::DeleteSelectedRows() // sind Zeilen geloescht worden? if (nDeletedRows) { - SetUpdateMode(sal_False); + SetUpdateMode(false); SetNoSelection(); try { @@ -1355,7 +1355,7 @@ void FmGridControl::DeleteSelectedRows() } EndCursorAction(); - SetUpdateMode(sal_True); + SetUpdateMode(true); } else // Zeile konnte nicht geloescht werden { @@ -1562,7 +1562,7 @@ void FmGridControl::InitColumnsByModels(const Reference< ::com::sun::star::conta if (!xColumns.is()) return; - SetUpdateMode(sal_False); + SetUpdateMode(false); // Einfuegen muss sich an den Column Positionen orientieren sal_Int32 i; @@ -1599,7 +1599,7 @@ void FmGridControl::InitColumnsByModels(const Reference< ::com::sun::star::conta HideColumn(GetColumnIdFromModelPos((sal_uInt16)i)); } - SetUpdateMode(sal_True); + SetUpdateMode(true); } void FmGridControl::InitColumnByField( @@ -1786,7 +1786,7 @@ bool FmGridControl::selectBookmarks(const Sequence< Any >& _rBookmarks) Sequence< Any> FmGridControl::getSelectionBookmarks() { // lock our update so no paint-triggered seeks interfere ... - SetUpdateMode(sal_False); + SetUpdateMode(false); sal_Int32 nSelectedRows = GetSelectRowCount(), i = 0; Sequence< Any> aBookmarks(nSelectedRows); @@ -1842,7 +1842,7 @@ Sequence< Any> FmGridControl::getSelectionBookmarks() #endif } } - SetUpdateMode(sal_True); + SetUpdateMode(true); // if one of the SeekCursor-calls failed .... aBookmarks.realloc(i); diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index 65ddd98f37f3..39dd36cb4aca 100644 --- a/svx/source/fmcomp/fmgridif.cxx +++ b/svx/source/fmcomp/fmgridif.cxx @@ -2335,7 +2335,7 @@ void FmXGridPeer::selectionChanged(const EventObject& evt) throw( RuntimeExcepti // if this does not ?hold?catch?, the selectionChanged is cleared by the Control itself if ( i < nColCount ) { - pGrid->SelectColumnPos(pGrid->GetViewColumnPos(pGrid->GetColumnIdFromModelPos( (sal_uInt16)i )) + 1, sal_True); + pGrid->SelectColumnPos(pGrid->GetViewColumnPos(pGrid->GetColumnIdFromModelPos( (sal_uInt16)i )) + 1, true); // SelectColumnPos has led to an implicit ActivateCell again if (pGrid->IsEditing()) pGrid->DeactivateCell(); diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 749f83d14b07..b5e9dcd8f437 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -1356,7 +1356,7 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, sal_uInt // did the data cursor change? sal_uInt16 nCurPos = GetColumnPos(GetCurColumnId()); - SetUpdateMode(sal_False); + SetUpdateMode(false); RemoveRows(); DisconnectFromFields(); @@ -1557,7 +1557,7 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, sal_uInt RecalcRows(GetTopRow(), GetVisibleRows(), true); m_aBar.InvalidateAll(m_nCurrentPos, true); - SetUpdateMode(sal_True); + SetUpdateMode(true); // start listening on the seek cursor if (m_pSeekCursor) @@ -1732,11 +1732,11 @@ void DbGridControl::ColumnMoved(sal_uInt16 nId) m_aColumns.insert( it, temp ); } -sal_Bool DbGridControl::SeekRow(long nRow) +bool DbGridControl::SeekRow(long nRow) { // in filter mode or in insert only mode we don't have any cursor! if ( !SeekCursor( nRow ) ) - return sal_False; + return false; if ( IsFilterMode() ) { @@ -2559,7 +2559,7 @@ void DbGridControl::SetFilterMode(bool bMode) if (bMode) { - SetUpdateMode(sal_False); + SetUpdateMode(false); // there is no cursor anymore if (IsEditing()) @@ -2578,7 +2578,7 @@ void DbGridControl::SetFilterMode(bool bMode) // one row for filtering RowInserted(0, 1, true); - SetUpdateMode(sal_True); + SetUpdateMode(true); } else setDataSource(Reference< XRowSet > ()); @@ -2774,7 +2774,7 @@ void DbGridControl::Command(const CommandEvent& rEvt) { long nRow = FirstSelectedRow( ); - ::Rectangle aRowRect( GetRowRectPixel( nRow, sal_True ) ); + ::Rectangle aRowRect( GetRowRectPixel( nRow, true ) ); executeRowContextMenu( nRow, aRowRect.LeftCenter() ); // handled diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx index 4629ed27dd9a..3543bc848b32 100644 --- a/svx/source/gallery2/galctrl.cxx +++ b/svx/source/gallery2/galctrl.cxx @@ -552,10 +552,10 @@ void GalleryListView::DataChanged( const DataChangedEvent& rDCEvt ) BrowseBox::DataChanged( rDCEvt ); } -sal_Bool GalleryListView::SeekRow( long nRow ) +bool GalleryListView::SeekRow( long nRow ) { mnCurRow = nRow; - return sal_True; + return true; } OUString GalleryListView::GetCellText(long _nRow, sal_uInt16 nColumnId) const diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx index 593787219958..c1ab90a3eb4d 100644 --- a/svx/source/svdraw/svdibrow.cxx +++ b/svx/source/svdraw/svdibrow.cxx @@ -288,10 +288,10 @@ long _SdrItemBrowserControl::GetRowCount() const return aList.size(); } -sal_Bool _SdrItemBrowserControl::SeekRow(long nRow) +bool _SdrItemBrowserControl::SeekRow(long nRow) { - nAktPaintRow=nRow; - return sal_True; + nAktPaintRow = nRow; + return true; } OUString _SdrItemBrowserControl::GetCellText(long _nRow, sal_uInt16 _nColId) const @@ -491,7 +491,7 @@ bool _SdrItemBrowserControl::BegChangeEntry(sal_uIntPtr nPos) if (pEntry!=NULL && !pEntry->bComment) { SetMode(MYBROWSEMODE & ~BROWSER_KEEPHIGHLIGHT); pEditControl=new ImpItemEdit(&GetDataWindow(),this,0); - Rectangle aRect(GetFieldRectPixel(nPos,ITEMBROWSER_VALUECOL_ID,sal_False)); + Rectangle aRect(GetFieldRectPixel(nPos, ITEMBROWSER_VALUECOL_ID, false)); aRect.Left()+=2; // little offset for the Edit, so it's exact to the pixel aRect.Right()--; pEditControl->SetPosSizePixel(aRect.TopLeft(),aRect.GetSize()); |