diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-08-24 08:48:09 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-08-24 09:05:02 +0900 |
commit | e685f4d74ff9fda607a8bc62fa1947ca54853552 (patch) | |
tree | 26e578cae2b7bb3b6e8997c9abbd5f268df4df30 /svx | |
parent | c0c366bbf4e1d1a9f0fa2df6c24569ec547bfea4 (diff) |
sal_Bool to bool
Change-Id: Id6488ba7a72603f2f0eb2972f22797d6025f6031
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 22 | ||||
-rw-r--r-- | svx/source/form/fmshimp.cxx | 36 |
2 files changed, 29 insertions, 29 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 38c31f5d18a7..30fe1c34cedb 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -130,7 +130,7 @@ class GridFieldValueListener : protected ::comphelper::OPropertyChangeListener ::comphelper::OPropertyChangeMultiplexer* m_pRealListener; sal_uInt16 m_nId; sal_Int16 m_nSuspended; - sal_Bool m_bDisposed : 1; + bool m_bDisposed : 1; public: GridFieldValueListener(DbGridControl& _rParent, const Reference< XPropertySet >& xField, sal_uInt16 _nId); @@ -150,7 +150,7 @@ GridFieldValueListener::GridFieldValueListener(DbGridControl& _rParent, const Re ,m_pRealListener(NULL) ,m_nId(_nId) ,m_nSuspended(0) - ,m_bDisposed(sal_False) + ,m_bDisposed(false) { DBG_CTOR(GridFieldValueListener, NULL); if (_rField.is()) @@ -192,7 +192,7 @@ void GridFieldValueListener::dispose() m_pRealListener = NULL; } - m_bDisposed = sal_True; + m_bDisposed = true; m_rParent.FieldListenerDisposing(m_nId); } @@ -1312,7 +1312,7 @@ sal_uInt16 DbGridControl::SetOptions(sal_uInt16 nOpt) // _after_ setting the mode because this results in an ActivateCell DeactivateCell(); - sal_Bool bInsertChanged = (nOpt & OPT_INSERT) != (m_nOptions & OPT_INSERT); + bool bInsertChanged = (nOpt & OPT_INSERT) != (m_nOptions & OPT_INSERT); m_nOptions = nOpt; // we need to set this before the code below because it indirectly uses m_nOptions @@ -1858,7 +1858,7 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, sal_B } // ignore any updates implicit made - sal_Bool bDisablePaint = !bUpdateCursor && IsPaintEnabled(); + bool bDisablePaint = !bUpdateCursor && IsPaintEnabled(); if (bDisablePaint) EnablePaint(sal_False); @@ -1866,7 +1866,7 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, sal_B Reference< XPropertySet > xSet = m_pSeekCursor->getPropertySet(); sal_Int32 nCacheSize = 0; xSet->getPropertyValue(FM_PROP_FETCHSIZE) >>= nCacheSize; - sal_Bool bCacheAligned = sal_False; + bool bCacheAligned = false; // Nach der Initialisierung (m_nSeekPos < 0) keine Cursorbewegung, da bereits auf den ersten // Satz positioniert long nDelta = nNewTopRow - GetTopRow(); @@ -1881,7 +1881,7 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, sal_B xSet->setPropertyValue(FM_PROP_FETCHSIZE, aCacheSize); // jetzt auf alle Faelle den Cursor anpassen bUpdateCursor = sal_True; - bCacheAligned = sal_True; + bCacheAligned = true; nLimit = nLinesOnScreen; } @@ -2103,7 +2103,7 @@ sal_Bool DbGridControl::SetCurrent(long nNewRow) } else { - sal_Bool bNewRowInserted = sal_False; + bool bNewRowInserted = false; // Should we go to the insertrow ? if (IsInsertionRow(nNewRow)) { @@ -2116,7 +2116,7 @@ sal_Bool DbGridControl::SetCurrent(long nNewRow) Reference< XResultSetUpdate > xUpdateCursor((Reference< XInterface >)*m_pDataCursor, UNO_QUERY); xUpdateCursor->moveToInsertRow(); } - bNewRowInserted = sal_True; + bNewRowInserted = true; } else { @@ -3261,7 +3261,7 @@ sal_Bool DbGridControl::SaveRow() BeginCursorAction(); sal_Bool bAppending = m_xCurrentRow->IsNew(); - sal_Bool bSuccess = sal_False; + bool bSuccess = false; try { Reference< XResultSetUpdate > xUpdateCursor((Reference< XInterface >)*m_pDataCursor, UNO_QUERY); @@ -3269,7 +3269,7 @@ sal_Bool DbGridControl::SaveRow() xUpdateCursor->insertRow(); else xUpdateCursor->updateRow(); - bSuccess = sal_True; + bSuccess = true; } catch(SQLException&) { diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index 52c9eff6c953..0ef26cdc7fef 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -1914,8 +1914,8 @@ void FmXFormShell::setActiveController( const Reference< runtime::XFormControlle xOldForm = getInternalForm(xOldForm); xNewForm = getInternalForm(xNewForm); - sal_Bool bDifferentForm = ( xOldForm.get() != xNewForm.get() ); - sal_Bool bNeedSave = bDifferentForm && !_bNoSaveOldContent; + bool bDifferentForm = ( xOldForm.get() != xNewForm.get() ); + bool bNeedSave = bDifferentForm && !_bNoSaveOldContent; // we save the content of the old form if we move to a new form, and saving old content is allowed if ( m_xActiveController.is() && bNeedSave ) @@ -2777,23 +2777,23 @@ class FmXFormShell::SuspendPropertyTracking { private: FmXFormShell& m_rShell; - sal_Bool m_bEnabled; + bool m_bEnabled; public: SuspendPropertyTracking( FmXFormShell& _rShell ) :m_rShell( _rShell ) - ,m_bEnabled( sal_False ) + ,m_bEnabled( false ) { if ( m_rShell.IsTrackPropertiesEnabled() ) { m_rShell.EnableTrackProperties( sal_False ); - m_bEnabled = sal_True; + m_bEnabled = true; } } ~SuspendPropertyTracking( ) { - if ( m_bEnabled ) // note that ( sal_False != m_bEnabled ) implies ( NULL != m_pShell ) + if ( m_bEnabled ) // note that ( false != m_bEnabled ) implies ( NULL != m_pShell ) m_rShell.EnableTrackProperties( sal_True ); } }; @@ -3187,7 +3187,7 @@ void FmXFormShell::CreateExternalView() { FmXBoundFormFieldIterator aModelIterator(xCurrentNavController->getModel()); Reference< XPropertySet> xCurrentModelSet; - sal_Bool bHaveUsableControls = sal_False; + bool bHaveUsableControls = false; while ((xCurrentModelSet = Reference< XPropertySet>(aModelIterator.Next(), UNO_QUERY)).is()) { // the FmXBoundFormFieldIterator only supplies controls with a valid control source @@ -3199,7 +3199,7 @@ void FmXFormShell::CreateExternalView() case FormComponentType::CONTROL: continue; } - bHaveUsableControls = sal_True; + bHaveUsableControls = true; break; } @@ -3840,38 +3840,38 @@ IMPL_LINK( FmXFormShell, OnLoadForms, FmFormPage*, /*_pPage*/ ) //------------------------------------------------------------------------------ namespace { - sal_Bool lcl_isLoadable( const Reference< XInterface >& _rxLoadable ) + bool lcl_isLoadable( const Reference< XInterface >& _rxLoadable ) { // determines whether a form should be loaded or not // if there is no datasource or connection there is no reason to load a form Reference< XPropertySet > xSet( _rxLoadable, UNO_QUERY ); if ( !xSet.is() ) - return sal_False; + return false; try { Reference< XConnection > xConn; if ( OStaticDataAccessTools().isEmbeddedInDatabase( _rxLoadable.get(), xConn ) ) - return sal_True; + return true; // is there already a active connection xSet->getPropertyValue(FM_PROP_ACTIVE_CONNECTION) >>= xConn; if ( xConn.is() ) - return sal_True; + return true; OUString sPropertyValue; OSL_VERIFY( xSet->getPropertyValue( FM_PROP_DATASOURCE ) >>= sPropertyValue ); if ( !sPropertyValue.isEmpty() ) - return sal_True; + return true; OSL_VERIFY( xSet->getPropertyValue( FM_PROP_URL ) >>= sPropertyValue ); if ( !sPropertyValue.isEmpty() ) - return sal_True; + return true; } catch(const Exception&) { DBG_UNHANDLED_EXCEPTION(); } - return sal_False; + return false; } } @@ -3908,11 +3908,11 @@ void FmXFormShell::loadForms( FmFormPage* _pPage, const sal_uInt16 _nBehaviour / if ( xForms.is() ) { Reference< XLoadable > xForm; - sal_Bool bFormWasLoaded = sal_False; + bool bFormWasLoaded = false; for ( sal_Int32 j = 0, nCount = xForms->getCount(); j < nCount; ++j ) { xForms->getByIndex( j ) >>= xForm; - bFormWasLoaded = sal_False; + bFormWasLoaded = false; // a database form must be loaded for try { @@ -3925,7 +3925,7 @@ void FmXFormShell::loadForms( FmFormPage* _pPage, const sal_uInt16 _nBehaviour / { if ( xForm->isLoaded() ) { - bFormWasLoaded = sal_True; + bFormWasLoaded = true; xForm->unload(); } } |