diff options
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/dapiuno.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/nameuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/viewuno.cxx | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index e704a4d0a7cd..fae3c9bfa941 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -2097,7 +2097,7 @@ void ScDataPilotFieldObj::setOrientation(DataPilotFieldOrientation eNew) if ( pOneDim->GetOrientation() == DataPilotFieldOrientation_HIDDEN ) pNewDim = pOneDim; // use this one else - ++nFound; // count existing non-hidden occurences + ++nFound; // count existing non-hidden occurrences } } @@ -2952,7 +2952,7 @@ void SAL_CALL ScDataPilotFieldGroupsObj::insertByName( const OUString& rName, co if( !lclExtractGroupMembers( aMembers, rElement ) ) throw IllegalArgumentException(); - // create the new entry if no error has been occured + // create the new entry if no error has been occurred maGroups.resize( maGroups.size() + 1 ); ScFieldGroup& rGroup = maGroups.back(); rGroup.maName = rName; diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index abc2eaef0514..93228b96b846 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -218,7 +218,7 @@ void SAL_CALL ScNamedRangeObj::setName( const rtl::OUString& aNewName ) // GRAM_PODF_A1 for API compatibility. Modify_Impl( &aNewStr, NULL, NULL, NULL, NULL,formula::FormulaGrammar::GRAM_PODF_A1 ); - if ( aName != aNewStr ) // some error occured... + if ( aName != aNewStr ) // some error occurred... throw uno::RuntimeException(); // no other exceptions specified } diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx index 2713ca9da83f..170607156d7f 100644 --- a/sc/source/ui/unoobj/viewuno.cxx +++ b/sc/source/ui/unoobj/viewuno.cxx @@ -469,7 +469,7 @@ private: ScTabViewObj* pViewObj; uno::Reference< script::vba::XVBAEventProcessor > xVbaEventsHelper; sal_Bool bDelaySelectionEvent; - sal_Bool bSelectionChangeOccured; + sal_Bool bSelectionChangeOccurred; void fireSelectionChangeEvent(); @@ -487,7 +487,7 @@ public: }; ScTabViewEventListener::ScTabViewEventListener(ScTabViewObj* pObj, uno::Reference< script::vba::XVBAEventProcessor >& rVbaEventsHelper): - pViewObj( pObj ),xVbaEventsHelper( rVbaEventsHelper ), bDelaySelectionEvent( sal_False ), bSelectionChangeOccured( sal_False ) + pViewObj( pObj ),xVbaEventsHelper( rVbaEventsHelper ), bDelaySelectionEvent( sal_False ), bSelectionChangeOccurred( sal_False ) { } @@ -514,14 +514,14 @@ void ScTabViewEventListener::fireSelectionChangeEvent() } } bDelaySelectionEvent = sal_False; - bSelectionChangeOccured = sal_False; + bSelectionChangeOccurred = sal_False; } sal_Bool SAL_CALL ScTabViewEventListener::mousePressed( const awt::EnhancedMouseEvent& e ) throw (uno::RuntimeException) { // Delay to fire the selection change event if clicking the left mouse button to do selection. bDelaySelectionEvent = ( e.Buttons == ::com::sun::star::awt::MouseButton::RIGHT ) ? sal_False : sal_True; - bSelectionChangeOccured = sal_False; + bSelectionChangeOccurred = sal_False; // ScTabViewObj::MousePressed should handle process BeforeDoubleClick and BeforeRightClick events return sal_True; @@ -529,7 +529,7 @@ sal_Bool SAL_CALL ScTabViewEventListener::mousePressed( const awt::EnhancedMouse sal_Bool SAL_CALL ScTabViewEventListener::mouseReleased( const awt::EnhancedMouseEvent&/*e*/) throw (uno::RuntimeException) { - if ( bSelectionChangeOccured ) + if ( bSelectionChangeOccurred ) fireSelectionChangeEvent(); return sal_True; } @@ -542,7 +542,7 @@ void SAL_CALL ScTabViewEventListener::selectionChanged( const lang::EventObject& } else { - bSelectionChangeOccured = sal_True; + bSelectionChangeOccurred = sal_True; } } |