diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-18 12:37:04 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-18 09:35:43 +0000 |
commit | 23af031b09dffe37222517d69f5337db26fdb307 (patch) | |
tree | ae1219ec20ccacd0fe9fdc0fc539e5b8f41420d3 /sfx2 | |
parent | 78e9ba6febb7402d4661fbf7934a2526efc8629a (diff) |
Fix typos in comments
Diffstat (limited to 'sfx2')
-rwxr-xr-x | sfx2/qa/complex/sfx2/DocumentInfo.java | 2 | ||||
-rwxr-xr-x | sfx2/qa/complex/sfx2/GlobalEventBroadcaster.java | 4 | ||||
-rw-r--r-- | sfx2/source/control/dispatch.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/docinsert.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/doctempl.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/doctemplates.cxx | 14 | ||||
-rw-r--r-- | sfx2/source/view/ipclient.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 2 |
10 files changed, 18 insertions, 18 deletions
diff --git a/sfx2/qa/complex/sfx2/DocumentInfo.java b/sfx2/qa/complex/sfx2/DocumentInfo.java index ca7ae8b1dda0..edbd3138b46c 100755 --- a/sfx2/qa/complex/sfx2/DocumentInfo.java +++ b/sfx2/qa/complex/sfx2/DocumentInfo.java @@ -64,7 +64,7 @@ public class DocumentInfo { m_xMSF = getMSF(); - System.out.println("check wether there is a valid MultiServiceFactory"); + System.out.println("check whether there is a valid MultiServiceFactory"); assertNotNull("## Couldn't get MultiServiceFactory make sure your Office is started", m_xMSF); diff --git a/sfx2/qa/complex/sfx2/GlobalEventBroadcaster.java b/sfx2/qa/complex/sfx2/GlobalEventBroadcaster.java index 41bd66ccb5b9..c455952c7508 100755 --- a/sfx2/qa/complex/sfx2/GlobalEventBroadcaster.java +++ b/sfx2/qa/complex/sfx2/GlobalEventBroadcaster.java @@ -63,7 +63,7 @@ public class GlobalEventBroadcaster { @Before public void initialize() { m_xMSF = getMSF(); - System.out.println("check wether there is a valid MultiServiceFactory"); + System.out.println("check whether there is a valid MultiServiceFactory"); assertNotNull("## Couldn't get MultiServiceFactory make sure your Office is started", m_xMSF); @@ -83,7 +83,7 @@ public class GlobalEventBroadcaster { System.out.println("... done"); - System.out.println("check wether the created instance is valid"); + System.out.println("check whether the created instance is valid"); assertNotNull("couldn't create service", GlobalEventBroadcaster); diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 1f722c0d9903..e517432d3deb 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -1506,7 +1506,7 @@ void SfxDispatcher::_Update_Impl( sal_Bool bUIActive, sal_Bool bIsMDIApp, sal_Bo if ( nFeature && !pShell->HasUIFeature( nFeature ) ) continue; - // slot decides wether a ChildWindow is shown when document is OLE server or OLE client + // slot decides whether a ChildWindow is shown when document is OLE server or OLE client sal_uInt16 nMode = SFX_VISIBILITY_STANDARD; if( pSlot ) { diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 6b00c4442383..cb24cffbb7df 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -597,7 +597,7 @@ void FileDialogHelper_Impl::updatePreviewState( sal_Bool _bUpdatePreviewWindow ) { uno::Reference< XFilePickerControlAccess > xCtrlAccess( mxFileDlg, UNO_QUERY ); - // check, wether or not we have to display a preview + // check, whether or not we have to display a preview if ( xCtrlAccess.is() ) { try @@ -1550,7 +1550,7 @@ ErrCode FileDialogHelper_Impl::execute( std::vector<rtl::OUString>& rpURLList, if ( rpURLList.empty() ) return ERRCODE_ABORT; - // check, wether or not we have to display a password box + // check, whether or not we have to display a password box if ( pCurrentFilter && mbHasPassword && mbIsPwdEnabled && xCtrlAccess.is() ) { try diff --git a/sfx2/source/doc/docinsert.cxx b/sfx2/source/doc/docinsert.cxx index d40f65a48a12..2969f4a39cd6 100644 --- a/sfx2/source/doc/docinsert.cxx +++ b/sfx2/source/doc/docinsert.cxx @@ -192,7 +192,7 @@ IMPL_LINK( DocumentInserter, DialogClosedHdl, sfx2::FileDialogHelper*, EMPTYARG TemplateDescription::FILESAVE_AUTOEXTENSION_PASSWORD == nDlgType || TemplateDescription::FILESAVE_AUTOEXTENSION_PASSWORD_FILTEROPTIONS == nDlgType ); - // check, wether or not we have to display a password box + // check, whether or not we have to display a password box if ( bHasPassword && m_pFileDlg->IsPasswordEnabled() ) { try diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index f140aa6a4eec..e2733a6484ae 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -2243,7 +2243,7 @@ sal_Bool getTextProperty_Impl( Content& rContent, { uno::Reference< XPropertySetInfo > aPropInfo = rContent.getProperties(); - // check, wether or not the property exists + // check, whether or not the property exists if ( !aPropInfo.is() || !aPropInfo->hasPropertyByName( rPropName ) ) { return sal_False; diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index f620bc3b72d8..24b7f7600c8a 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -1031,7 +1031,7 @@ sal_Bool SfxDocTplService_Impl::setProperty( Content& rContent, Any aPropValue( rPropValue ); uno::Reference< XPropertySetInfo > aPropInfo = rContent.getProperties(); - // check, wether or not the property exists, create it, when not + // check, whether or not the property exists, create it, when not if ( !aPropInfo.is() || !aPropInfo->hasPropertyByName( rPropName ) ) { uno::Reference< XPropertyContainer > xProperties( rContent.get(), UNO_QUERY ); @@ -1102,7 +1102,7 @@ sal_Bool SfxDocTplService_Impl::getProperty( Content& rContent, { uno::Reference< XPropertySetInfo > aPropInfo = rContent.getProperties(); - // check, wether or not the property exists + // check, whether or not the property exists if ( !aPropInfo.is() || !aPropInfo->hasPropertyByName( rPropName ) ) { return sal_False; @@ -1511,7 +1511,7 @@ sal_Bool SfxDocTplService_Impl::addGroup( const OUString& rGroupName ) { ::osl::MutexGuard aGuard( maMutex ); - // Check, wether or not there is a group with this name + // Check, whether or not there is a group with this name Content aNewGroup; OUString aNewGroupURL; INetURLObject aNewGroupObj( maRootURL ); @@ -1805,7 +1805,7 @@ sal_Bool SfxDocTplService_Impl::storeTemplate( const OUString& rGroupName, { ::osl::MutexGuard aGuard( maMutex ); - // Check, wether or not there is a group with this name + // Check, whether or not there is a group with this name // Return false, if there is no group with the given name Content aGroup, aTemplate, aTargetGroup, aTemplateToRemove; OUString aGroupURL, aTemplateURL, aTemplateToRemoveTargetURL; @@ -1997,7 +1997,7 @@ sal_Bool SfxDocTplService_Impl::addTemplate( const OUString& rGroupName, { ::osl::MutexGuard aGuard( maMutex ); - // Check, wether or not there is a group with this name + // Check, whether or not there is a group with this name // Return false, if there is no group with the given name Content aGroup, aTemplate, aTargetGroup; OUString aGroupURL, aTemplateURL; @@ -2147,7 +2147,7 @@ sal_Bool SfxDocTplService_Impl::removeTemplate( const OUString& rGroupName, { ::osl::MutexGuard aGuard( maMutex ); - // Check, wether or not there is a group with this name + // Check, whether or not there is a group with this name // Return false, if there is no group with the given name Content aGroup, aTemplate; OUString aGroupURL, aTemplateURL; @@ -2200,7 +2200,7 @@ sal_Bool SfxDocTplService_Impl::renameTemplate( const OUString& rGroupName, { ::osl::MutexGuard aGuard( maMutex ); - // Check, wether or not there is a group with this name + // Check, whether or not there is a group with this name // Return false, if there is no group with the given name Content aGroup, aTemplate; OUString aGroupURL, aTemplateURL; diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index 3dbacca32ecf..28906a9bf25e 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -733,7 +733,7 @@ void SfxInPlaceClient::SetObject( const uno::Reference < embed::XEmbeddedObject if ( rObject.is() ) { - // as soon as an object was connected to a client it has to be checked wether the object wants + // as soon as an object was connected to a client it has to be checked whether the object wants // to be activated rObject->addStateChangeListener( uno::Reference < embed::XStateChangeListener >( m_pImp->m_xClient, uno::UNO_QUERY ) ); rObject->addEventListener( uno::Reference < document::XEventListener >( m_pImp->m_xClient, uno::UNO_QUERY ) ); diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index af22c83a823d..62e11ba75bdf 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -2177,7 +2177,7 @@ sal_Bool SfxViewFrame::SwitchToViewShell_Impl OSL_PRECOND( pOldSh, "SfxViewFrame::SwitchToViewShell_Impl: that's called *switch* (not for *initial-load*) for a reason" ); if ( pOldSh ) { - // ask wether it can be closed + // ask whether it can be closed if ( !pOldSh->PrepareClose( sal_True ) ) return sal_False; diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index 70d0d140f433..66cf7ad61563 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -1465,7 +1465,7 @@ sal_Bool SfxViewShell::HasSelection( sal_Bool ) const With this virtual Method can a for example a Dialog be queried, to check if something is selected in the current view. If the Parameter - is <BOOL> TRUE then it is checked wether some text is selected. + is <BOOL> TRUE then it is checked whether some text is selected. */ { |