diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-03 17:11:39 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-03 17:14:16 +0100 |
commit | f5ca04caca1b6888cdc6b00b8465a53e6d5cf38d (patch) | |
tree | cda73db2df15d821e0587f345edd7587953bdbdf | |
parent | ecf00403376d13355fcf6fb7cd36b3500f19fc69 (diff) |
Related to fdo#60724: correct spelling
Using the autocorrect list of LibreOffice
extras/source/autotext/lang/en-US/acor/DocumentList.xml
Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657
Script: http://pastebin.ca/2327716
346 files changed, 488 insertions, 488 deletions
diff --git a/UnoControls/source/base/basecontrol.cxx b/UnoControls/source/base/basecontrol.cxx index 02e3a04dbe0f..f1ffc8220ecd 100644 --- a/UnoControls/source/base/basecontrol.cxx +++ b/UnoControls/source/base/basecontrol.cxx @@ -932,7 +932,7 @@ void BaseControl::impl_paint( sal_Int32 /*nX*/ void BaseControl::impl_recalcLayout( const WindowEvent& /*aEvent*/ ) { // We need as virtual function to support automaticly resizing of derived controls! - // But we make it not pure virtual because it's not neccessary for all derived classes! + // But we make it not pure virtual because it's not necessary for all derived classes! } //____________________________________________________________________________________________________________ diff --git a/UnoControls/source/controls/OConnectionPointContainerHelper.cxx b/UnoControls/source/controls/OConnectionPointContainerHelper.cxx index 9e26a8a44b02..7f24ddc5d84a 100644 --- a/UnoControls/source/controls/OConnectionPointContainerHelper.cxx +++ b/UnoControls/source/controls/OConnectionPointContainerHelper.cxx @@ -155,7 +155,7 @@ void SAL_CALL OConnectionPointContainerHelper::unadvise( const Type& //______________________________________________________________________________________________________________ // public but impl method! -// Is neccessary to get container member at OConnectionPoint-instance. +// Is necessary to get container member at OConnectionPoint-instance. //______________________________________________________________________________________________________________ OMultiTypeInterfaceContainerHelper& OConnectionPointContainerHelper::impl_getMultiTypeContainer() diff --git a/UnoControls/source/inc/framecontrol.hxx b/UnoControls/source/inc/framecontrol.hxx index ca913f638a77..96086a691610 100644 --- a/UnoControls/source/inc/framecontrol.hxx +++ b/UnoControls/source/inc/framecontrol.hxx @@ -56,7 +56,7 @@ namespace unocontrols{ class FrameControl : public ::com::sun::star::awt::XControlModel , public ::com::sun::star::lang::XConnectionPointContainer - , public BaseControl // This order is neccessary for right initialization of m_aMutex! + , public BaseControl // This order is necessary for right initialization of m_aMutex! , public ::cppu::OBroadcastHelper , public ::cppu::OPropertySetHelper { diff --git a/accessibility/bridge/org/openoffice/java/accessibility/MenuItem.java b/accessibility/bridge/org/openoffice/java/accessibility/MenuItem.java index 7ce1864242e7..6e68b634fc3f 100644 --- a/accessibility/bridge/org/openoffice/java/accessibility/MenuItem.java +++ b/accessibility/bridge/org/openoffice/java/accessibility/MenuItem.java @@ -79,7 +79,7 @@ class MenuItem extends ToggleButton { // #i56538# menu items in Java do not have SELECTABLE .. stateSet.remove(javax.accessibility.AccessibleState.SELECTABLE); - // .. and also ARMED insted of SELECTED + // .. and also ARMED instead of SELECTED if( stateSet.remove(javax.accessibility.AccessibleState.SELECTED) ) stateSet.add(javax.accessibility.AccessibleState.ARMED); diff --git a/android/abs-lib/src/com/actionbarsherlock/internal/widget/IcsAdapterView.java b/android/abs-lib/src/com/actionbarsherlock/internal/widget/IcsAdapterView.java index c786dc5c190b..171d4702c1c8 100755 --- a/android/abs-lib/src/com/actionbarsherlock/internal/widget/IcsAdapterView.java +++ b/android/abs-lib/src/com/actionbarsherlock/internal/widget/IcsAdapterView.java @@ -834,7 +834,7 @@ public abstract class IcsAdapterView<T extends Adapter> extends ViewGroup { if (mInLayout || mBlockLayoutRequests) { // If we are in a layout traversal, defer notification // by posting. This ensures that the view tree is - // in a consistent state and is able to accomodate + // in a consistent state and is able to accommodate // new layout or invalidate requests. if (mSelectionNotifier == null) { mSelectionNotifier = new SelectionNotifier(); diff --git a/android/abs-lib/src/com/actionbarsherlock/internal/widget/IcsListPopupWindow.java b/android/abs-lib/src/com/actionbarsherlock/internal/widget/IcsListPopupWindow.java index d13c6cea9720..5973ae0055fc 100755 --- a/android/abs-lib/src/com/actionbarsherlock/internal/widget/IcsListPopupWindow.java +++ b/android/abs-lib/src/com/actionbarsherlock/internal/widget/IcsListPopupWindow.java @@ -321,7 +321,7 @@ public class IcsListPopupWindow { View hintView = mPromptView; if (hintView != null) { - // if an hint has been specified, we accomodate more space for it and + // if an hint has been specified, we accommodate more space for it and // add a text view in the drop down menu, at the bottom of the list LinearLayout hintContainer = new LinearLayout(context); hintContainer.setOrientation(LinearLayout.VERTICAL); diff --git a/android/experimental/LibreOffice4Android/src/org/libreoffice/android/DocumentLoader.java b/android/experimental/LibreOffice4Android/src/org/libreoffice/android/DocumentLoader.java index ea410512d20a..1373f373190a 100644 --- a/android/experimental/LibreOffice4Android/src/org/libreoffice/android/DocumentLoader.java +++ b/android/experimental/LibreOffice4Android/src/org/libreoffice/android/DocumentLoader.java @@ -1007,7 +1007,7 @@ public class DocumentLoader // should have document load task publish pageCount before this happens: Shouldn't try to pre-fetch // non-existant pages && need to know how many navigation thumbnails to render. - // Should put these on anothe serial executor? + // Should put these on another serial executor? flipper.addView(new PageViewer(0), 0, matchParent); for (int i = 0; i < PAGECACHE_PLUSMINUS; i++) flipper.addView(new PageViewer(i+1), i+1, matchParent); diff --git a/avmedia/source/framework/soundhandler.hxx b/avmedia/source/framework/soundhandler.hxx index 96203abd1930..6673674fe5fa 100644 --- a/avmedia/source/framework/soundhandler.hxx +++ b/avmedia/source/framework/soundhandler.hxx @@ -65,7 +65,7 @@ class SoundHandler : // interfaces , public css::frame::XNotifyingDispatch // => XDispatch , public css::document::XExtendedFilterDetection // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! , private ThreadHelpBase , public ::cppu::OWeakObject { diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx index a23b09cd3346..e2b588d648d2 100644 --- a/basctl/source/basicide/baside3.cxx +++ b/basctl/source/basicide/baside3.cxx @@ -1404,7 +1404,7 @@ DialogWindowLayout::DialogWindowLayout (Window* pParent, ObjectCatalog& rObjectC ShowPropertyBrowser(); } -// shows the property browser (and creates if neccessary) +// shows the property browser (and creates if necessary) void DialogWindowLayout::ShowPropertyBrowser () { // not exists? @@ -1416,7 +1416,7 @@ void DialogWindowLayout::ShowPropertyBrowser () // after OnFirstSize(): if (HasSize()) AddPropertyBrowser(); - // updating if neccessary + // updating if necessary UpdatePropertyBrowser(); } else diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 77adc0b2a26e..55b5689462aa 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -2507,7 +2507,7 @@ void clearUnoMethodsForBasic( StarBASIC* pBasic ) if ( pModBasic == pBasic ) { // for now the solution is to remove the method from the list and to clear it, - // but in case the element should be correctly transfered to another StarBASIC, + // but in case the element should be correctly transferred to another StarBASIC, // we should either set module parent to NULL without clearing it, or even // set the new StarBASIC as the parent of the module // pObject->SetParent( NULL ); diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 820885d2498f..4b4472ea01e6 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -1353,7 +1353,7 @@ void SbModule::RunInit() void SbModule::AddVarName( const OUString& aName ) { - // see if the name is added allready + // see if the name is added already std::vector< OUString >::iterator it_end = mModuleVariableNames.end(); for ( std::vector< OUString >::iterator it = mModuleVariableNames.begin(); it != it_end; ++it ) { diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index 28c553fb999d..bb53d93b4b24 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -444,7 +444,7 @@ bool SbiParser::Parse() } // test for the statement's end - - // might also be an ELSE, as there must not neccessary be a : before the ELSE! + // might also be an ELSE, as there must not necessary be a : before the ELSE! if( !IsEos() ) { @@ -602,8 +602,8 @@ void SbiParser::Set() aLvalue.Gen(); aExpr.Gen(); // Its a good idea to distinguish between - // set someting = another & - // someting = another + // set something = another & + // something = another // ( its necessary for vba objects where set is object // specific and also doesn't involve processing default params ) if( pDef->GetTypeId() ) diff --git a/basic/source/runtime/step1.cxx b/basic/source/runtime/step1.cxx index 4f1397044673..7b721294df5b 100644 --- a/basic/source/runtime/step1.cxx +++ b/basic/source/runtime/step1.cxx @@ -386,7 +386,7 @@ void SbiRuntime::StepRESUME( sal_uInt32 nOp1 ) } else pCode = pErrStmnt; - if ( pError ) // current in error handler ( and got a Resume Next statment ) + if ( pError ) // current in error handler ( and got a Resume Next statement ) SbxErrObject::getUnoErrObject()->Clear(); if( nOp1 > 1 ) diff --git a/basic/source/sbx/sbxbool.cxx b/basic/source/sbx/sbxbool.cxx index 426552da7ec5..4ff018fd1e18 100644 --- a/basic/source/sbx/sbxbool.cxx +++ b/basic/source/sbx/sbxbool.cxx @@ -74,7 +74,7 @@ enum SbxBOOL ImpGetBool( const SbxValues* p ) nRes = SbxTRUE; else if( !p->pOUString->equalsIgnoreAsciiCase( SbxRes( STRING_FALSE ) ) ) { - // it can be convertable to a number + // it can be convertible to a number bool bError = true; double n; SbxDataType t; diff --git a/basic/source/sbx/sbxint.cxx b/basic/source/sbx/sbxint.cxx index 7713c7621948..6642789c58b1 100644 --- a/basic/source/sbx/sbxint.cxx +++ b/basic/source/sbx/sbxint.cxx @@ -505,7 +505,7 @@ void ImpPutInt64( SbxValues* p, sal_Int64 n ) start: switch( +p->eType ) { - // Check neccessary + // Check necessary case SbxCHAR: aTmp.pChar = &p->nChar; goto direct; case SbxBYTE: @@ -780,7 +780,7 @@ void ImpPutUInt64( SbxValues* p, sal_uInt64 n ) start: switch( +p->eType ) { - // Check neccessary + // Check necessary case SbxCHAR: aTmp.pChar = &p->nChar; goto direct; case SbxBYTE: @@ -808,7 +808,7 @@ start: aTmp.eType = SbxDataType( p->eType | SbxBYREF ); p = &aTmp; goto start; - // Check not neccessary + // Check not necessary case SbxSALUINT64: p->uInt64 = n; break; diff --git a/chart2/source/tools/LifeTime.cxx b/chart2/source/tools/LifeTime.cxx index 0263451df025..6c01913ce9d0 100644 --- a/chart2/source/tools/LifeTime.cxx +++ b/chart2/source/tools/LifeTime.cxx @@ -259,7 +259,7 @@ bool CloseableLifeTimeManager::impl_isDisposedOrClosed( bool bAssert ) void CloseableLifeTimeManager ::g_close_endTryClose(sal_Bool bDeliverOwnership, sal_Bool /* bMyVeto */ ) { - //this method is called, if the try to close was not successfull + //this method is called, if the try to close was not successful osl::Guard< osl::Mutex > aGuard( m_aAccessMutex ); impl_setOwnership( bDeliverOwnership, sal_False ); @@ -303,7 +303,7 @@ bool CloseableLifeTimeManager::impl_isDisposedOrClosed( bool bAssert ) void CloseableLifeTimeManager ::g_close_endTryClose_doClose() { - //this method is called, if the try to close was successfull + //this method is called, if the try to close was successful osl::ResettableGuard< osl::Mutex > aGuard( m_aAccessMutex ); m_bInTryClose = sal_False; diff --git a/chart2/source/view/axes/VAxisProperties.cxx b/chart2/source/view/axes/VAxisProperties.cxx index 2ebe0f10652d..3a7c866fbfb8 100644 --- a/chart2/source/view/axes/VAxisProperties.cxx +++ b/chart2/source/view/axes/VAxisProperties.cxx @@ -64,8 +64,8 @@ sal_Int32 lcl_calcTickLengthForDepth(sal_Int32 nDepth,sal_Int32 nTickmarkStyle) double lcl_getTickOffset(sal_Int32 nLength,sal_Int32 nTickmarkStyle) { double fPercent = 0.0; //0<=fPercent<=1 - //0.0: completly inner - //1.0: completly outer + //0.0: completely inner + //1.0: completely outer //0.5: half and half /* diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index ff00660ac9b8..250021c8c5c6 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -1462,7 +1462,7 @@ awt::Rectangle ChartView::impl_createDiagramAndContent( SeriesPlotterContainer& pVCooSys->setTransformationSceneToScreen( B3DHomMatrixToHomogenMatrix( createTransformationSceneToScreen( aVDiagram.getCurrentRectangle() ) )); } - pVCooSys->updatePositions();//todo: logically this belongs to the condition above, but it seems also to be neccessary to give the axes group shapes the right bounding rects for hit test - probably caused by bug i106183 -> check again if fixed + pVCooSys->updatePositions();//todo: logically this belongs to the condition above, but it seems also to be necessary to give the axes group shapes the right bounding rects for hit test - probably caused by bug i106183 -> check again if fixed } //create axes and grids for the final size @@ -2438,7 +2438,7 @@ void ChartView::createShapes() .getOrCreateChartRootShape( m_xDrawPage ) ); SdrPage* pPage = ChartView::getSdrPage(); - if(pPage) //it is neccessary to use the implementation here as the uno page does not provide a propertyset + if(pPage) //it is necessary to use the implementation here as the uno page does not provide a propertyset pPage->SetSize(Size(aPageSize.Width,aPageSize.Height)); else { diff --git a/chart2/source/view/main/PlottingPositionHelper.cxx b/chart2/source/view/main/PlottingPositionHelper.cxx index 931a92880b13..76c2bc9ac78c 100644 --- a/chart2/source/view/main/PlottingPositionHelper.cxx +++ b/chart2/source/view/main/PlottingPositionHelper.cxx @@ -211,7 +211,7 @@ awt::Point PlottingPositionHelper::transformSceneToScreenPosition( const drawing //@todo would like to have a cheaper method to do this transformation awt::Point aScreenPoint( static_cast<sal_Int32>(rScenePosition3D.PositionX), static_cast<sal_Int32>(rScenePosition3D.PositionY) ); - //transformation from scene to screen (only neccessary for 3D): + //transformation from scene to screen (only necessary for 3D): if(3==nDimensionCount) { //create 3D anchor shape diff --git a/chart2/source/view/main/PropertyMapper.cxx b/chart2/source/view/main/PropertyMapper.cxx index b022a92435d5..08bc546fe16d 100644 --- a/chart2/source/view/main/PropertyMapper.cxx +++ b/chart2/source/view/main/PropertyMapper.cxx @@ -366,7 +366,7 @@ void PropertyMapper::setMultiProperties( } catch( const uno::Exception& e ) { - ASSERT_EXCEPTION( e ); //if this occurs more often think of removing the XMultiPropertySet completly for better performance + ASSERT_EXCEPTION( e ); //if this occurs more often think of removing the XMultiPropertySet completely for better performance } if(!bSuccess) diff --git a/comphelper/source/misc/mediadescriptor.cxx b/comphelper/source/misc/mediadescriptor.cxx index 5a217a141672..9cd4a15956a9 100644 --- a/comphelper/source/misc/mediadescriptor.cxx +++ b/comphelper/source/misc/mediadescriptor.cxx @@ -575,7 +575,7 @@ sal_Bool MediaDescriptor::impl_openStreamWithURL( const OUString& sURL, sal_Bool css::uno::Reference< css::ucb::XCommandEnvironment > xCommandEnv(static_cast< css::ucb::XCommandEnvironment* >(pCommandEnv), css::uno::UNO_QUERY); // try to create the content - // no content -> no stream => return immediatly with FALSE + // no content -> no stream => return immediately with FALSE ::ucbhelper::Content aContent; css::uno::Reference< css::ucb::XContent > xContent; try diff --git a/connectivity/source/commontools/parameters.cxx b/connectivity/source/commontools/parameters.cxx index 7387963e78d5..3d6fa6c4523d 100644 --- a/connectivity/source/commontools/parameters.cxx +++ b/connectivity/source/commontools/parameters.cxx @@ -472,7 +472,7 @@ namespace dbtools ( nSmallestIndexLinkedByColumnName > nLargestIndexNotLinkedByColumnName ), "ParameterManager::createOuterParameters: inconsistency!" ); - // for the master-detail links, where the detail field denoted a column name, we created an addtional ("artificial") + // for the master-detail links, where the detail field denoted a column name, we created an additional ("artificial") // filter, and *appended* it to all other (potentially) existing filters of the row set. This means that the indexes // for the parameters resulting from the artifical filter should be larger than any other parameter index, and this // is what the assertion checks. diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx index 32bce4d20f11..bfe9f01e69f2 100644 --- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx @@ -620,7 +620,7 @@ sal_Bool SAL_CALL OEvoabDatabaseMetaData::allTablesAreSelectable( ) throw(SQLEx // ------------------------------------------------------------------------- sal_Bool SAL_CALL OEvoabDatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException) { - // For now definately read-only, no support for update/delete + // For now definitely read-only, no support for update/delete return sal_True; } // ------------------------------------------------------------------------- diff --git a/connectivity/source/drivers/evoab2/NDriver.cxx b/connectivity/source/drivers/evoab2/NDriver.cxx index facb2ee17d3b..86f36afd6db6 100644 --- a/connectivity/source/drivers/evoab2/NDriver.cxx +++ b/connectivity/source/drivers/evoab2/NDriver.cxx @@ -155,7 +155,7 @@ Sequence< DriverPropertyInfo > SAL_CALL OEvoabDriver::getPropertyInfo( const ::r ::dbtools::throwGenericSQLException(sMessage ,*this); } // if ( ! acceptsURL(url) ) - // if you have somthing special to say return it here :-) + // if you have something special to say return it here :-) return Sequence< DriverPropertyInfo >(); } diff --git a/connectivity/source/drivers/jdbc/JConnection.cxx b/connectivity/source/drivers/jdbc/JConnection.cxx index 4eb02fc13cf5..5667b7547081 100644 --- a/connectivity/source/drivers/jdbc/JConnection.cxx +++ b/connectivity/source/drivers/jdbc/JConnection.cxx @@ -663,7 +663,7 @@ void java_sql_Connection::loadDriverFromProperties( const ::rtl::OUString& _sDri // set to <TRUE/> when we should allow to query for generated values sal_Bool bAutoRetrievingEnabled = sal_False; - // first try if the jdbc driver is alraedy registered at the driver manager + // first try if the jdbc driver is already registered at the driver manager SDBThreadAttach t; try { diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx index 9c9c8edfbfd3..cecff41ca8db 100644 --- a/connectivity/source/drivers/mork/MConnection.cxx +++ b/connectivity/source/drivers/mork/MConnection.cxx @@ -244,7 +244,7 @@ sal_Bool SAL_CALL OConnection::isClosed( ) throw(SQLException, RuntimeException { ::osl::MutexGuard aGuard( m_aMutex ); - // just simple -> we are close when we are disposed taht means someone called dispose(); (XComponent) + // just simple -> we are close when we are disposed that means someone called dispose(); (XComponent) return OConnection_BASE::rBHelper.bDisposed; } // -------------------------------------------------------------------------------- diff --git a/connectivity/source/drivers/mozab/MConnection.cxx b/connectivity/source/drivers/mozab/MConnection.cxx index af6d57b8eb7b..05cf2479153e 100644 --- a/connectivity/source/drivers/mozab/MConnection.cxx +++ b/connectivity/source/drivers/mozab/MConnection.cxx @@ -417,7 +417,7 @@ sal_Bool SAL_CALL OConnection::isClosed( ) throw(SQLException, RuntimeException { ::osl::MutexGuard aGuard( m_aMutex ); - // just simple -> we are close when we are disposed taht means someone called dispose(); (XComponent) + // just simple -> we are close when we are disposed that means someone called dispose(); (XComponent) return OConnection_BASE::rBHelper.bDisposed; } // -------------------------------------------------------------------------------- diff --git a/connectivity/source/drivers/mozab/MDriver.cxx b/connectivity/source/drivers/mozab/MDriver.cxx index 28305287ebb8..986f85aa4268 100644 --- a/connectivity/source/drivers/mozab/MDriver.cxx +++ b/connectivity/source/drivers/mozab/MDriver.cxx @@ -197,7 +197,7 @@ Sequence< DriverPropertyInfo > SAL_CALL MozabDriver::getPropertyInfo( const ::rt ::connectivity::SharedResources aResources; const ::rtl::OUString sMessage = aResources.getResourceString(STR_URI_SYNTAX_ERROR); ::dbtools::throwGenericSQLException(sMessage ,*this); - // if you have somthing special to say return it here :-) + // if you have something special to say return it here :-) return Sequence< DriverPropertyInfo >(); } // -------------------------------------------------------------------------------- diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSProfile.hxx b/connectivity/source/drivers/mozab/bootstrap/MNSProfile.hxx index 3994751c0a74..8541de7f389d 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MNSProfile.hxx +++ b/connectivity/source/drivers/mozab/bootstrap/MNSProfile.hxx @@ -51,7 +51,7 @@ public: public: //We register an factory for Mozilla profile service its CID and CONTRACTID are NS_PROFILE_CID and NS_PROFILE_CONTRACTID - //After that, we does not need profile.dll/libprofile.so any more. Our profile service are diffrent from the orginal one in + //After that, we does not need profile.dll/libprofile.so any more. Our profile service are different from the orginal one in //these areas: //1. We do not lock Mozilla Profile, //2. We do not change Mozilla Profile settings. We do not change default profile, do not create new profiles and diff --git a/connectivity/source/drivers/odbcbase/OTools.cxx b/connectivity/source/drivers/odbcbase/OTools.cxx index d568b7f911fe..2ec58b36b49b 100644 --- a/connectivity/source/drivers/odbcbase/OTools.cxx +++ b/connectivity/source/drivers/odbcbase/OTools.cxx @@ -329,8 +329,8 @@ void OTools::ThrowException(const OConnection* _pConnection, // Information for latest operation: // when hstmt != SQL_NULL_HSTMT is (Used from SetStatus in SdbCursor, SdbTable, ...), - // then the status of the latest statments will be fetched, without the Status of the last - // Statments of this connection [what in this case will probably be the same, but the Reference + // then the status of the latest statements will be fetched, without the Status of the last + // statements of this connection [what in this case will probably be the same, but the Reference // Manual isn't totally clear in this...]. // corresponding for hdbc. SQLRETURN n = (*(T3SQLGetDiagRec)_pConnection->getOdbcFunction(ODBC3SQLGetDiagRec))(_nHandleType,_pContext,1, diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 9f436a612077..b46608008abb 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -688,7 +688,7 @@ namespace cppcanvas nSteps, fBorder, fRotation); - // map odf to svg gradient orientation - x + // map ODF to svg gradient orientation - x // instead of y direction aGradInfo.maTextureTransform = aGradInfo.maTextureTransform * aRot90; aGradientService = "LinearGradient"; @@ -714,11 +714,11 @@ namespace cppcanvas nSteps, fAxialBorder, fRotation); - // map odf to svg gradient orientation - x + // map ODF to svg gradient orientation - x // instead of y direction aGradInfo.maTextureTransform = aGradInfo.maTextureTransform * aRot90; - // map odf axial gradient to 3-stop linear + // map ODF axial gradient to 3-stop linear // gradient - shift left by 0.5 basegfx::B2DHomMatrix aShift; aShift.translate(-0.5,0); diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx index eea8fe8dad19..b4c2550862b3 100644 --- a/cppu/source/uno/lbmap.cxx +++ b/cppu/source/uno/lbmap.cxx @@ -249,7 +249,7 @@ static void SAL_CALL mediate_mapInterface( OSL_ENSURE( 0 != pTo, "### cannot release out interface: leaking!" ); if (0 != pTo) (*pTo->releaseInterface)( pTo, pOut ); - *ppOut = 0; // set to 0 anyway, because mapping was not successfull! + *ppOut = 0; // set to 0 anyway, because mapping was not successful! } } else diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx index 66eff0c49c74..77a9a005a329 100644 --- a/cui/source/tabpages/tpline.cxx +++ b/cui/source/tabpages/tpline.cxx @@ -1195,7 +1195,7 @@ void SvxLineTabPage::Reset( const SfxItemSet& rAttrs ) pPage->NbcInsertObject(pObj); // Generate invisible square to give all symbol types a - // bitmap size, which is indepedent from specific glyph + // bitmap size, which is independent from specific glyph SdrObject *pInvisibleSquare=pSymbolList->GetObj(0); pInvisibleSquare=pInvisibleSquare->Clone(); pPage->NbcInsertObject(pInvisibleSquare); diff --git a/dbaccess/source/core/api/query.cxx b/dbaccess/source/core/api/query.cxx index ed944d85af97..5d78f7ffc88e 100644 --- a/dbaccess/source/core/api/query.cxx +++ b/dbaccess/source/core/api/query.cxx @@ -230,7 +230,7 @@ void SAL_CALL OQuery::propertyChange( const PropertyChangeEvent& _rSource ) thro "OQuery::propertyChange : where did this call come from ?"); if (m_eDoingCurrently == SETTING_PROPERTIES) - // we're setting the property ourself, so we will do the neccessary notifications later + // we're setting the property ourself, so we will do the necessary notifications later return; // forward this to our own member holding a copy of the property value diff --git a/dbaccess/source/core/api/querycontainer.cxx b/dbaccess/source/core/api/querycontainer.cxx index 11717a0b4742..90961e5efaa5 100644 --- a/dbaccess/source/core/api/querycontainer.cxx +++ b/dbaccess/source/core/api/querycontainer.cxx @@ -197,7 +197,7 @@ void SAL_CALL OQueryContainer::dropByName( const ::rtl::OUString& _rName ) throw throw DisposedException( ::rtl::OUString(), *this ); // now simply forward the remove request to the CommandDefinition container, we're a listener for the removal - // and thus we do everything neccessary in ::elementRemoved + // and thus we do everything necessary in ::elementRemoved m_xCommandDefinitions->removeByName(_rName); } diff --git a/dbaccess/source/ext/macromigration/migrationengine.cxx b/dbaccess/source/ext/macromigration/migrationengine.cxx index 02d87f0da93c..d4e84d61db31 100644 --- a/dbaccess/source/ext/macromigration/migrationengine.cxx +++ b/dbaccess/source/ext/macromigration/migrationengine.cxx @@ -1547,7 +1547,7 @@ namespace dbmm if ( !xSourceLibraries->isLibraryLoaded( *pSourceLibName ) ) xSourceLibraries->loadLibrary( *pSourceLibName ); - // copy the content of this particular libary + // copy the content of this particular library Reference< XNameAccess > xSourceLib( xSourceLibraries->getByName( *pSourceLibName ), UNO_QUERY_THROW ); Reference< XNameContainer > xTargetLib( xTargetLibraries->createLibrary( sNewLibName ), UNO_QUERY_THROW ); diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx index 2fcca35c3d87..c838f1bb042c 100644 --- a/dbaccess/source/filter/xml/xmlfilter.cxx +++ b/dbaccess/source/filter/xml/xmlfilter.cxx @@ -306,7 +306,7 @@ sal_Int32 ReadThroughComponent( if ( !xStorage->hasByName( sStreamName ) || !xStorage->isStreamElement( sStreamName ) ) { // stream name not found! Then try the compatibility name. - // if no stream can be opened, return immediatly with OK signal + // if no stream can be opened, return immediately with OK signal // do we even have an alternative name? if ( NULL == pCompatibilityStreamName ) diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index fc2ffc8fee75..907bb81e5858 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -2094,7 +2094,7 @@ void SbaXDataBrowserController::Execute(sal_uInt16 nId, const Sequence< Property else { if ( !SaveModified( ) ) - // give the user a chance to save the current record (if neccessary) + // give the user a chance to save the current record (if necessary) break; // maybe the user wanted to reject the modified record ? diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx index b80e61387a21..8612c7d39249 100644 --- a/dbaccess/source/ui/browser/genericcontroller.cxx +++ b/dbaccess/source/ui/browser/genericcontroller.cxx @@ -491,7 +491,7 @@ void OGenericUnoController::ImplBroadcastFeatureState(const ::rtl::OUString& _rF sal_uInt16 nFeat = m_aSupportedFeatures[ _rFeature ].nFeatureId; FeatureState aFeatState( GetState( nFeat ) ); - FeatureState& rCachedState = m_aStateCache[nFeat]; // creates if neccessary + FeatureState& rCachedState = m_aStateCache[nFeat]; // creates if necessary if ( !_bIgnoreCache ) { // check if we really need to notify the listeners : this method may be called much more often than needed, so check diff --git a/dbaccess/source/ui/dlg/directsql.cxx b/dbaccess/source/ui/dlg/directsql.cxx index 9496a03807cc..e6babf061f85 100644 --- a/dbaccess/source/ui/dlg/directsql.cxx +++ b/dbaccess/source/ui/dlg/directsql.cxx @@ -264,7 +264,7 @@ DBG_NAME(DirectSQLDialog) } } - // successfull + // successful sStatus = String(ModuleRes(STR_COMMAND_EXECUTED_SUCCESSFULLY)); // dispose the statement diff --git a/dbaccess/source/ui/dlg/generalpage.hxx b/dbaccess/source/ui/dlg/generalpage.hxx index 13ca0a82dc5a..7213c0fb0171 100644 --- a/dbaccess/source/ui/dlg/generalpage.hxx +++ b/dbaccess/source/ui/dlg/generalpage.hxx @@ -98,7 +98,7 @@ namespace dbaui Link m_aTypeSelectHandler; /// to be called if a new type is selected Link m_aCreationModeHandler; /// to be called if a new type is selected Link m_aDocumentSelectionHandler; /// to be called when a document in the RecentDoc list is selected - Link m_aChooseDocumentHandler; /// to be called when a recent document has been definately chosen + Link m_aChooseDocumentHandler; /// to be called when a recent document has been definitely chosen sal_Bool m_bDisplayingInvalid : 1; // the currently displayed data source is deleted bool m_bInitTypeList : 1; bool approveDataSourceType( const OUString& _sURLPrefix, OUString& _inout_rDisplayName ); diff --git a/dbaccess/source/ui/inc/brwctrlr.hxx b/dbaccess/source/ui/inc/brwctrlr.hxx index 59d464764922..b590f1cbeea2 100644 --- a/dbaccess/source/ui/inc/brwctrlr.hxx +++ b/dbaccess/source/ui/inc/brwctrlr.hxx @@ -243,7 +243,7 @@ namespace dbaui // is synchronized with a foreign ::com::sun::star::form::DatabaseForm you got elsewhere) virtual sal_Bool InitializeForm( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& i_formProperties ) = 0; - // called immediately after a successfull CreateForm + // called immediately after a successful CreateForm // do any initialization (data source etc.) here. the form should be fully functional after that. // return sal_False if you didn't succeed (don't throw exceptions, they won't be caught) diff --git a/dbaccess/source/ui/inc/dbadmin.hxx b/dbaccess/source/ui/inc/dbadmin.hxx index 15c875850c1a..c15bb8319d73 100644 --- a/dbaccess/source/ui/inc/dbadmin.hxx +++ b/dbaccess/source/ui/inc/dbadmin.hxx @@ -118,7 +118,7 @@ private: enum ApplyResult { - AR_LEAVE_MODIFIED, // somthing was modified and has successfully been committed + AR_LEAVE_MODIFIED, // something was modified and has successfully been committed AR_LEAVE_UNCHANGED, // no changes were made AR_KEEP // don't leave the page (e.g. because an error occurred) }; diff --git a/dbaccess/source/ui/inc/dbwiz.hxx b/dbaccess/source/ui/inc/dbwiz.hxx index af254065ffe4..487f47018e43 100644 --- a/dbaccess/source/ui/inc/dbwiz.hxx +++ b/dbaccess/source/ui/inc/dbwiz.hxx @@ -113,7 +113,7 @@ protected: enum ApplyResult { - AR_LEAVE_MODIFIED, // somthing was modified and has successfully been committed + AR_LEAVE_MODIFIED, // something was modified and has successfully been committed AR_LEAVE_UNCHANGED, // no changes were made AR_KEEP // don't leave the page (e.g. because an error occurred) }; diff --git a/dbaccess/source/ui/inc/dbwizsetup.hxx b/dbaccess/source/ui/inc/dbwizsetup.hxx index 69f4ab5b02e5..d04508a41727 100644 --- a/dbaccess/source/ui/inc/dbwizsetup.hxx +++ b/dbaccess/source/ui/inc/dbwizsetup.hxx @@ -145,7 +145,7 @@ protected: enum ApplyResult { - AR_LEAVE_MODIFIED, // somthing was modified and has successfully been committed + AR_LEAVE_MODIFIED, // something was modified and has successfully been committed AR_LEAVE_UNCHANGED, // no changes were made AR_KEEP // don't leave the page (e.g. because an error occurred) }; diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx index 7725bbf91a3d..4802ed8055c5 100644 --- a/dbaccess/source/ui/querydesign/JoinTableView.cxx +++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx @@ -146,7 +146,7 @@ void OScrollWindowHelper::Resize() GetVScrollBar()->SetPageSize( aTotalOutputSize.Height() ); GetVScrollBar()->SetVisibleSize( aTotalOutputSize.Height() ); - // adjust the ranges of the scrollbars if neccessary + // adjust the ranges of the scrollbars if necessary long lRange = GetHScrollBar()->GetRange().Max() - GetHScrollBar()->GetRange().Min(); if (m_pTableView->GetScrollOffset().X() + aTotalOutputSize.Width() > lRange) GetHScrollBar()->SetRangeMax(m_pTableView->GetScrollOffset().X() + aTotalOutputSize.Width() + GetHScrollBar()->GetRange().Min()); @@ -1470,7 +1470,7 @@ long OJoinTableView::PreNotify(NotifyEvent& rNEvt) else if (pNextConn) { GrabFocus(); - // neccessary : a conn may be selected even if a tab win has the focus, in this case + // necessary : a conn may be selected even if a tab win has the focus, in this case // the next travel would select the same conn again if we would not reset te focus ... SelectConn(pNextConn); } diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index a2335f94455a..6fdc8ba07177 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -567,7 +567,7 @@ namespace const ::connectivity::OSQLParseNode *pRightTable) { SqlParseError eErrorCode = eOk; - if (pNode->count() == 3 && // statment between brackets + if (pNode->count() == 3 && // statement between brackets SQL_ISPUNCTUATION(pNode->getChild(0),"(") && SQL_ISPUNCTUATION(pNode->getChild(2),")")) { diff --git a/dbaccess/source/ui/uno/copytablewizard.cxx b/dbaccess/source/ui/uno/copytablewizard.cxx index ded417af4b82..f10d5b2ee8dd 100644 --- a/dbaccess/source/ui/uno/copytablewizard.cxx +++ b/dbaccess/source/ui/uno/copytablewizard.cxx @@ -1116,7 +1116,7 @@ bool CopyTableWizard::impl_processCopyError_nothrow( const CopyTableRowEvent& _r aError.NextException = _rEvent.Error; else { - // a non-SQL exception happend + // a non-SQL exception happened Exception aException; OSL_VERIFY( _rEvent.Error >>= aException ); SQLContext aContext; diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx index ebb961ec311c..c416cccaebb4 100644 --- a/desktop/source/app/officeipcthread.cxx +++ b/desktop/source/app/officeipcthread.cxx @@ -530,7 +530,7 @@ OfficeIPCThread::Status OfficeIPCThread::EnableOfficeIPCThread() // Pipe created nPipeMode = PIPEMODE_CREATED; } - else if( pThread->maPipe.create( aPipeIdent.getStr(), osl_Pipe_OPEN, rSecurity )) // Creation not successfull, now we try to connect + else if( pThread->maPipe.create( aPipeIdent.getStr(), osl_Pipe_OPEN, rSecurity )) // Creation not successful, now we try to connect { osl::StreamPipe aStreamPipe(pThread->maPipe.getHandle()); if (readStringFromPipe(aStreamPipe) == SEND_ARGUMENTS) diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx index 2f6d8988ec7f..991c5782c214 100644 --- a/desktop/source/deployment/registry/component/dp_component.cxx +++ b/desktop/source/deployment/registry/component/dp_component.cxx @@ -1196,7 +1196,7 @@ void BackendImpl::ComponentPackageImpl::getComponentInfo( // and stoc/source/implreg implementation which rely on the same // services.rdb format! // .../UNO/LOCATION and .../UNO/ACTIVATOR appear not to be written by - // writeRegistryInfo, however, but are knwon, fixed values here, so + // writeRegistryInfo, however, but are known, fixed values here, so // can be passed into extractComponentData rtl::OUString url(getURL()); const Reference<registry::XSimpleRegistry> xMemReg( diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx index 3d5c2360f399..e6d54f79640d 100644 --- a/desktop/source/deployment/registry/package/dp_package.cxx +++ b/desktop/source/deployment/registry/package/dp_package.cxx @@ -100,7 +100,7 @@ class BackendImpl : public ImplBaseT Reference<deployment::XPackage> bindBundleItem( OUString const & url, OUString const & mediaType, - sal_Bool bRemoved, //that is, useing data base information + sal_Bool bRemoved, //that is, using data base information OUString const & identifier, Reference<ucb::XCommandEnvironment> const & xCmdEnv, bool notifyDetectionError = true ); diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx index 87c76e202b8a..dde9bb5724dc 100644 --- a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx @@ -413,7 +413,7 @@ namespace drawinglayer if(bSuppressFatToHairlineCorrection) { - // remeber that we enter a PolygonStrokePrimitive2D decomposition, + // remember that we enter a PolygonStrokePrimitive2D decomposition, // used for AA thick line drawing mnPolygonStrokePrimitive2D++; diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index adde6aade165..5a0710f0ce00 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -1368,7 +1368,7 @@ namespace drawinglayer if(!bDone) { - // remeber that we enter a PolygonStrokePrimitive2D decomposition, + // remember that we enter a PolygonStrokePrimitive2D decomposition, // used for AA thick line drawing mnPolygonStrokePrimitive2D++; diff --git a/dtrans/source/win32/clipb/MtaOleClipb.cxx b/dtrans/source/win32/clipb/MtaOleClipb.cxx index de3bc4ee186c..d893dd49c5df 100644 --- a/dtrans/source/win32/clipb/MtaOleClipb.cxx +++ b/dtrans/source/win32/clipb/MtaOleClipb.cxx @@ -610,7 +610,7 @@ LRESULT CMtaOleClipboard::onDrawClipboard( ) aGuard.clear( ); } - // foward the message to the next viewer in the chain + // forward the message to the next viewer in the chain if ( IsWindow( m_hwndNextClipViewer ) ) { DWORD_PTR dwpResult; diff --git a/dtrans/source/win32/clipb/WinClipbImpl.cxx b/dtrans/source/win32/clipb/WinClipbImpl.cxx index 76e4c6472bed..84d5a2664678 100644 --- a/dtrans/source/win32/clipb/WinClipbImpl.cxx +++ b/dtrans/source/win32/clipb/WinClipbImpl.cxx @@ -119,7 +119,7 @@ Reference< XTransferable > SAL_CALL CWinClipbImpl::getContents( ) throw( Runtime CDTransObjFactory objFactory; - // remeber pIDo destroys itself due to the smart pointer + // remember pIDo destroys itself due to the smart pointer rClipContent = objFactory.createTransferableFromDataObj( m_pWinClipboard->m_xContext, pIDo ); } diff --git a/editeng/inc/editeng/acorrcfg.hxx b/editeng/inc/editeng/acorrcfg.hxx index 0a49235410dd..8500cd874da1 100644 --- a/editeng/inc/editeng/acorrcfg.hxx +++ b/editeng/inc/editeng/acorrcfg.hxx @@ -89,7 +89,7 @@ public: SvxAutoCorrect* GetAutoCorrect() { return pAutoCorrect; } const SvxAutoCorrect* GetAutoCorrect() const { return pAutoCorrect; } - // the pointer is transfered to the possession of the ConfigItems! + // the pointer is transferred to the possession of the ConfigItems! void SetAutoCorrect( SvxAutoCorrect* ); sal_Bool IsAutoFmtByInput() const { return bAutoFmtByInput; } diff --git a/editeng/source/accessibility/AccessibleStaticTextBase.cxx b/editeng/source/accessibility/AccessibleStaticTextBase.cxx index 7a5f57a3e6aa..0a66b4ca1bba 100644 --- a/editeng/source/accessibility/AccessibleStaticTextBase.cxx +++ b/editeng/source/accessibility/AccessibleStaticTextBase.cxx @@ -302,7 +302,7 @@ namespace accessibility if( !mpTextParagraph ) throw lang::DisposedException ("object has been already disposed", mxThis ); - // TODO: Have a differnt method on AccessibleEditableTextPara + // TODO: Have a different method on AccessibleEditableTextPara // that does not care about state changes mpTextParagraph->SetParagraphIndex( nPara ); diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx index ea12ecab4c23..394daf2979b5 100644 --- a/editeng/source/editeng/editobj.cxx +++ b/editeng/source/editeng/editobj.cxx @@ -485,7 +485,7 @@ EditTextObjectImpl::EditTextObjectImpl( EditTextObject* pFront, SfxItemPool* pP // pool destruction time of an alien pool, the pool is still alive. // When registering would happen at an alien pool which just uses an // EditEngineItemPool as some sub-pool, that pool could already - // be decoupled and deleted whcih would lead to crashes. + // be decoupled and deleted which would lead to crashes. pPool = getEditEngineItemPool(pP); if ( pPool ) diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 4caa60222e06..c97aec10e28d 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1412,7 +1412,7 @@ sal_Bool ImpEditView::SetCursorAtPoint( const Point& rPointPixel ) Point aDocPos( GetDocPos( aMousePos ) ); // Can be optimized: first go through the lines within a paragraph for PAM, - // then again wiht the PaM for the Rect, even though the line is already + // then again with the PaM for the Rect, even though the line is already // known .... This must not be, though! EditPaM aPaM = pEditEngine->GetPaM(aDocPos); sal_Bool bGotoCursor = DoAutoScroll(); diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index d34a387a9a3d..bb7ad6c08688 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -1898,7 +1898,7 @@ sal_Bool ImpEditEngine::IsRightToLeft( sal_uInt16 nPara ) const // #103045# if DefaultHorizontalTextDirection is set, use that value, otherwise pool default. if ( GetDefaultHorizontalTextDirection() != EE_HTEXTDIR_DEFAULT ) { - pFrameDirItem = NULL; // bR2L allready set to default horizontal text direction + pFrameDirItem = NULL; // bR2L already set to default horizontal text direction } else { diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index ec6e823fd06a..024bcd95b545 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -1514,7 +1514,7 @@ sal_Bool ImpEditEngine::CreateLines( sal_uInt16 nPara, sal_uInt32 nStartPosY ) if ( !bSameLineAgain ) { nIndex = pLine->GetEnd(); // next line start = last line end - // as nEnd points to the last charecter! + // as nEnd points to the last character! sal_uInt16 nEndPortion = pLine->GetEndPortion(); @@ -2145,7 +2145,7 @@ void ImpEditEngine::ImpFindKashidas( ContentNode* pNode, sal_uInt16 nStart, sal_ } // 3. Priority: - // before final form of Teh Marbuta, Hah, Dal + // before final form of the Marbuta, Hah, Dal // 4. Priority: // before final form of Alef, Lam or Kaf if ( nIdx && nIdx + 1 == aWord.Len() && @@ -4306,7 +4306,7 @@ void ImpEditEngine::ImplInitLayoutMode( OutputDevice* pOutDev, sal_uInt16 nPara, if ( !bR2L ) { - // No CTL/Bidi checking neccessary + // No CTL/Bidi checking necessary nLayoutMode |= ( TEXT_LAYOUT_COMPLEX_DISABLED | TEXT_LAYOUT_BIDI_STRONG ); } else diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx index 2acb811863b9..f7da74084f8c 100644 --- a/embeddedobj/source/msole/olecomponent.cxx +++ b/embeddedobj/source/msole/olecomponent.cxx @@ -264,7 +264,7 @@ HRESULT OpenIStorageFromURL_Impl( const ::rtl::OUString& aURL, IStorage** ppISto ::rtl::OUString aFilePath; if ( !ppIStorage || ::osl::FileBase::getSystemPathFromFileURL( aURL, aFilePath ) != ::osl::FileBase::E_None ) - throw uno::RuntimeException(); // TODO: something dangerous happend + throw uno::RuntimeException(); // TODO: something dangerous happened return StgOpenStorage( reinterpret_cast<LPCWSTR>(aFilePath.getStr()), NULL, @@ -570,7 +570,7 @@ void OleComponent::CreateNewIStorage_Impl() // open an IStorage based on the temporary file ::rtl::OUString aTempFilePath; if ( ::osl::FileBase::getSystemPathFromFileURL( aTempURL, aTempFilePath ) != ::osl::FileBase::E_None ) - throw uno::RuntimeException(); // TODO: something dangerous happend + throw uno::RuntimeException(); // TODO: something dangerous happened HRESULT hr = StgCreateDocfile( reinterpret_cast<LPCWSTR>(aTempFilePath.getStr()), STGM_CREATE | STGM_READWRITE | STGM_TRANSACTED | STGM_DELETEONRELEASE, 0, &m_pNativeImpl->m_pIStorage ); if ( FAILED( hr ) || !m_pNativeImpl->m_pIStorage ) @@ -838,7 +838,7 @@ void OleComponent::CreateObjectFromFile( const ::rtl::OUString& aFileURL ) ::rtl::OUString aFilePath; if ( ::osl::FileBase::getSystemPathFromFileURL( aFileURL, aFilePath ) != ::osl::FileBase::E_None ) - throw uno::RuntimeException(); // TODO: something dangerous happend + throw uno::RuntimeException(); // TODO: something dangerous happened HRESULT hr = OleCreateFromFile( CLSID_NULL, reinterpret_cast<LPCWSTR>(aFilePath.getStr()), @@ -868,7 +868,7 @@ void OleComponent::CreateLinkFromFile( const ::rtl::OUString& aFileURL ) ::rtl::OUString aFilePath; if ( ::osl::FileBase::getSystemPathFromFileURL( aFileURL, aFilePath ) != ::osl::FileBase::E_None ) - throw uno::RuntimeException(); // TODO: something dangerous happend + throw uno::RuntimeException(); // TODO: something dangerous happened HRESULT hr = OleCreateLinkToFile( reinterpret_cast<LPCWSTR>(aFilePath.getStr()), IID_IUnknown, diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx index da15ae0ec558..44f6585f419f 100644 --- a/embeddedobj/source/msole/oleembed.cxx +++ b/embeddedobj/source/msole/oleembed.cxx @@ -321,7 +321,7 @@ sal_Bool OleEmbeddedObject::TryToConvertToOOo() xSeekable->seek( 0 ); xLoadable->load( aArgs ); - // the model is successfuly loaded, create a new storage and store the model to the storage + // the model is successfully loaded, create a new storage and store the model to the storage uno::Reference< embed::XStorage > xTmpStorage = CreateTemporarySubstorage( aStorageName ); xStorDoc->storeToStorage( xTmpStorage, uno::Sequence< beans::PropertyValue >() ); xDocument->close( sal_True ); @@ -422,7 +422,7 @@ sal_Bool OleEmbeddedObject::TryToConvertToOOo() if ( bResult ) { - // the conversion was done successfuly, now the additional initializations should happen + // the conversion was done successfully, now the additional initializations should happen MoveListeners(); m_xWrappedObject->setClientSite( m_xClientSite ); diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx index e9daacaf3f6c..165f2dd2832e 100644 --- a/embeddedobj/source/msole/olepersist.cxx +++ b/embeddedobj/source/msole/olepersist.cxx @@ -1398,7 +1398,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry( catch( const uno::Exception& ) { // TODO/LATER: detect classID of the object if possible - // means that the object inprocess server could not be successfuly instantiated + // means that the object inprocess server could not be successfully instantiated GetRidOfComponent(); } diff --git a/extensions/source/inc/componentmodule.hxx b/extensions/source/inc/componentmodule.hxx index 6b4dadfe5ac9..da972aca8db0 100644 --- a/extensions/source/inc/componentmodule.hxx +++ b/extensions/source/inc/componentmodule.hxx @@ -83,7 +83,7 @@ typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleService s_pFactoryFunctionPointers; public: - // cna be set as long as no resource has been accessed ... + // can be set as long as no resource has been accessed ... static void setResourceFilePrefix(const ::rtl::OString& _rPrefix); /// get the vcl res manager of the module diff --git a/extensions/source/nsplugin/source/nsp_func.hxx b/extensions/source/nsplugin/source/nsp_func.hxx index 566236a24ad3..047a1ec8db59 100644 --- a/extensions/source/nsplugin/source/nsp_func.hxx +++ b/extensions/source/nsplugin/source/nsp_func.hxx @@ -29,7 +29,7 @@ #define __NSP_FUNC_HXX -// Some function diffrent from UNIX and Window. +// Some function different from UNIX and Window. /************************ In UNIX ************************/ diff --git a/extensions/source/plugin/inc/plugin/unx/mediator.hxx b/extensions/source/plugin/inc/plugin/unx/mediator.hxx index ac901f3573b8..234964f5181d 100644 --- a/extensions/source/plugin/inc/plugin/unx/mediator.hxx +++ b/extensions/source/plugin/inc/plugin/unx/mediator.hxx @@ -104,7 +104,7 @@ public: virtual ~Mediator(); // mark mediator as invalid. No more messages will be processed, - // SendMessage, WaitForMessage, TransactMessage will return immediatly + // SendMessage, WaitForMessage, TransactMessage will return immediately // with error void invalidate() { m_bValid = false; } diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx index 7e8a02045af3..79e14a55f33e 100644 --- a/extensions/source/propctrlr/eventhandler.cxx +++ b/extensions/source/propctrlr/eventhandler.cxx @@ -909,7 +909,7 @@ namespace pcr pEventHolder->addEvent( event->second.nId, event->second.sListenerMethodName, aAssignedScript ); } - // the inital selection in the dialog + // the initial selection in the dialog Sequence< ::rtl::OUString > aNames( pEventHolder->getElementNames() ); const ::rtl::OUString* pChosenEvent = ::std::find( aNames.getConstArray(), aNames.getConstArray() + aNames.getLength(), rForEvent.sListenerMethodName ); sal_uInt16 nInitialSelection = (sal_uInt16)( pChosenEvent - aNames.getConstArray() ); diff --git a/filter/source/config/cache/basecontainer.cxx b/filter/source/config/cache/basecontainer.cxx index 05040447d17c..92491f883ef9 100644 --- a/filter/source/config/cache/basecontainer.cxx +++ b/filter/source/config/cache/basecontainer.cxx @@ -398,7 +398,7 @@ sal_Bool SAL_CALL BaseContainer::hasByName(const ::rtl::OUString& sItem) css::uno::Type SAL_CALL BaseContainer::getElementType() throw (css::uno::RuntimeException) { - // no lock neccessary - because the type of our items + // no lock necessary - because the type of our items // is fix! no internal call or member needed ... return ::getCppuType(static_cast< css::uno::Sequence< css::beans::PropertyValue >* >(NULL)); } @@ -573,7 +573,7 @@ void SAL_CALL BaseContainer::flush() void SAL_CALL BaseContainer::addFlushListener(const css::uno::Reference< css::util::XFlushListener >& xListener) throw (css::uno::RuntimeException) { - // no locks neccessary + // no locks necessary // used helper lives if we live and is threadsafe by itself ... m_lListener.addInterface(::getCppuType(static_cast< css::uno::Reference< css::util::XFlushListener >* >(NULL)), xListener ); @@ -584,7 +584,7 @@ void SAL_CALL BaseContainer::addFlushListener(const css::uno::Reference< css::ut void SAL_CALL BaseContainer::removeFlushListener(const css::uno::Reference< css::util::XFlushListener >& xListener) throw (css::uno::RuntimeException) { - // no locks neccessary + // no locks necessary // used helper lives if we live and is threadsafe by itself ... m_lListener.removeInterface(::getCppuType(static_cast< css::uno::Reference< css::util::XFlushListener >* >(NULL)), xListener ); diff --git a/filter/source/config/cache/configflush.cxx b/filter/source/config/cache/configflush.cxx index 8f5a441f9dfe..881d71a99226 100644 --- a/filter/source/config/cache/configflush.cxx +++ b/filter/source/config/cache/configflush.cxx @@ -108,7 +108,7 @@ void SAL_CALL ConfigFlush::refresh() void SAL_CALL ConfigFlush::addRefreshListener(const css::uno::Reference< css::util::XRefreshListener >& xListener) throw(css::uno::RuntimeException) { - // no locks neccessary + // no locks necessary // used helper lives if we live and is threadsafe by itself ... m_lListener.addInterface(::getCppuType(static_cast< css::uno::Reference< css::util::XRefreshListener >* >(NULL)), xListener); @@ -118,7 +118,7 @@ void SAL_CALL ConfigFlush::addRefreshListener(const css::uno::Reference< css::ut void SAL_CALL ConfigFlush::removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener >& xListener) throw(css::uno::RuntimeException) { - // no locks neccessary + // no locks necessary // used helper lives if we live and is threadsafe by itself ... m_lListener.removeInterface(::getCppuType(static_cast< css::uno::Reference< css::util::XRefreshListener >* >(NULL)), xListener); diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx index 206ff6d70e5b..255e02d978ca 100644 --- a/filter/source/config/cache/filtercache.cxx +++ b/filter/source/config/cache/filtercache.cxx @@ -1235,7 +1235,7 @@ void FilterCache::impl_validateAndOptimize() ++pIt ) { // Note: of course the default loader must be ignored here. - // Because we replace its registration later completly with all + // Because we replace its registration later completely with all // types, which are not referenced by any other loader. // So we can avaoid our code against the complexity of a diff! ::rtl::OUString sLoader = pIt->first; diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx index a532cdddbced..a531f4a12906 100644 --- a/filter/source/config/cache/typedetection.cxx +++ b/filter/source/config/cache/typedetection.cxx @@ -533,7 +533,7 @@ sal_Bool TypeDetection::impl_getPreselectionForType(const ::rtl::OUString& sPreS { // Can be used to supress execution of some parts of this method // if its already clear that detected type is valid or not. - // Its neccessary to use shared code at the end, which update + // Its necessary to use shared code at the end, which update // all return parameters constistency! sal_Bool bBreakDetection = sal_False; @@ -652,7 +652,7 @@ sal_Bool TypeDetection::impl_getPreselectionForFilter(const ::rtl::OUString& sPr { // Can be used to supress execution of some parts of this method // if its already clear that detected filter is valid or not. - // Its neccessary to use shared code at the end, which update + // Its necessary to use shared code at the end, which update // all return parameters constistency! sal_Bool bBreakDetection = sal_False; diff --git a/filter/source/flash/swfwriter1.cxx b/filter/source/flash/swfwriter1.cxx index 71fcec30b36d..d6dcd9654984 100644 --- a/filter/source/flash/swfwriter1.cxx +++ b/filter/source/flash/swfwriter1.cxx @@ -686,7 +686,7 @@ void Writer::Impl_writeText( const Point& rPos, const String& rText, const sal_I maShapeIds.push_back( nTextId ); - // AS: Write strikeout and underline, if neccessary. This code was originally taken from the SVG + // AS: Write strikeout and underline, if necessary. This code was originally taken from the SVG // export facility, although the positioning had to be tweaked a little. I can't explain the // numbers, but the flash lines up very well with the original OOo document. All of this should // probably be converted to polygons as part of the meta file, though, as we don't handle any diff --git a/filter/source/graphicfilter/epict/epict.cxx b/filter/source/graphicfilter/epict/epict.cxx index b4e40bc9e7d7..26a2bf34f248 100644 --- a/filter/source/graphicfilter/epict/epict.cxx +++ b/filter/source/graphicfilter/epict/epict.cxx @@ -1191,7 +1191,7 @@ void PictWriter::WriteOpcode_BitsRect(const Point & rPoint, const Size & rSize, else { // Ppacking (nPackType==0) - // remeber start of the row in the target: + // remember start of the row in the target: nDstRowPos = pPict->Tell(); // ByteCount (das ist die Groesse der gepackten Zeile) zunaechst 0 (wird spaeter berichtigt): diff --git a/filter/source/msfilter/dffpropset.cxx b/filter/source/msfilter/dffpropset.cxx index f8aff171998e..a17cf1e44e6d 100644 --- a/filter/source/msfilter/dffpropset.cxx +++ b/filter/source/msfilter/dffpropset.cxx @@ -1125,7 +1125,7 @@ void DffPropSet::ReadPropSet( SvStream& rIn, bool bSetUninitializedOnly ) sal_uInt32 nMergeFlags = nContent; nMergeFlags &= ( nMergeFlags >> 16 ) | 0xffff0000; // clearing low word - nMergeFlags &= ( ( nCurrentFlags & 0xffff0000 ) // remove allready hard set + nMergeFlags &= ( ( nCurrentFlags & 0xffff0000 ) // remove already hard set | ( nCurrentFlags >> 16 ) ) ^ 0xffffffff; // attributes from mergeflags nCurrentFlags &= ( ( nMergeFlags & 0xffff0000 ) // apply zero master bits | ( nMergeFlags >> 16 ) ) ^ 0xffffffff; diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 83f6cdd70550..eea3f99e475b 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -5765,7 +5765,7 @@ sal_Bool SvxMSDffManager::GetShapeContainerData( SvStream& rSt, // und der Text nicht gedreht ist) sal_Bool bCanBeReplaced = (ULONG_MAX > nPosGroup) ? sal_False : sal_True; - // we don't knwo yet whether it's a TextBox + // we don't know yet whether it's a TextBox MSO_SPT eShapeType = mso_sptNil; // analyze Shape diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx index f39e303a1355..af3d6aec61b6 100644 --- a/filter/source/svg/svgreader.cxx +++ b/filter/source/svg/svgreader.cxx @@ -485,7 +485,7 @@ struct AnnotatingVisitor mnCurrStateId, rState)); - // find two representative stop colors (as odf only support + // find two representative stop colors (as ODF only support // start&end color) optimizeGradientStops(rState.maFillGradient); @@ -1675,7 +1675,7 @@ struct ShapeWritingVisitor "svggraphicstyle"+aStyleId); // force path coordinates to 100th millimeter, after - // putting polygon data at origin (odf viewbox + // putting polygon data at origin (ODF viewbox // calculations largely untested codepaths, as OOo always // writes "0 0 w h" viewboxes) basegfx::B2DHomMatrix aNormalize; diff --git a/forms/source/component/EditBase.hxx b/forms/source/component/EditBase.hxx index a2307c97ad78..9fdcca7858d3 100644 --- a/forms/source/component/EditBase.hxx +++ b/forms/source/component/EditBase.hxx @@ -91,7 +91,7 @@ protected: void defaultCommonEditProperties(); virtual sal_uInt16 getPersistenceFlags() const; - // derived classes may use this if they want this base class to write additinal version flags + // derived classes may use this if they want this base class to write additional version flags // (one of the PF_.... constants). After ::read they may ask for that flags with getLastReadVersion }; diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index 1f5004beec7a..569fe435554c 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -1303,7 +1303,7 @@ OBoundControlModel::OBoundControlModel( m_aValuePropertyType = _pOriginal->m_aValuePropertyType; m_aControlSource = _pOriginal->m_aControlSource; m_bInputRequired = _pOriginal->m_bInputRequired; - // m_xLabelControl, though being a property, is not to be cloned, not even the reference will be transfered. + // m_xLabelControl, though being a property, is not to be cloned, not even the reference will be transferred. // (the former should be clear - a clone of the object we're only referencing does not make sense) // (the second would violate the restriction for label controls that they're part of the // same form component hierarchy - we ourself are no part, yet, so we can't have a label control) @@ -2218,7 +2218,7 @@ void OBoundControlModel::impl_connectDatabaseColumn_noNotify( bool _bFromReload } // now that we're connected (more or less, even if we did not find a column), - // we definately want to forward any potentially occuring value changes + // we definitely want to forward any potentially occuring value changes m_bForwardValueChanges = sal_True; // let derived classes react on this new connection diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index c3aba8b9bb27..306829e9ce7c 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -1293,7 +1293,7 @@ namespace frm { Any aReturn; - // by definition, multiple selected entries are transfered as NULL if the + // by definition, multiple selected entries are transferred as NULL if the // binding does not support string lists if ( _rSelectSequence.getLength() <= 1 ) { diff --git a/forms/source/component/clickableimage.cxx b/forms/source/component/clickableimage.cxx index eae9e9062dce..12c205c9a436 100644 --- a/forms/source/component/clickableimage.cxx +++ b/forms/source/component/clickableimage.cxx @@ -592,7 +592,7 @@ namespace frm Any SAL_CALL OClickableImageBaseModel::queryAggregation(const Type& _rType) throw (RuntimeException) { // order matters: - // we definately want to "overload" the XImageProducer interface of our aggregate, + // we definitely want to "overload" the XImageProducer interface of our aggregate, // thus check OClickableImageBaseModel_Base (which provides this) first Any aReturn = OClickableImageBaseModel_Base::queryInterface( _rType ); diff --git a/forms/source/richtext/richtextimplcontrol.cxx b/forms/source/richtext/richtextimplcontrol.cxx index c4faf3b1d230..eca642f42c08 100644 --- a/forms/source/richtext/richtextimplcontrol.cxx +++ b/forms/source/richtext/richtextimplcontrol.cxx @@ -299,7 +299,7 @@ namespace frm // the AutoPaperSize bits set. // So in order to be properly notified, we would need the AutoPaperSize. But, with // AutoPaperSize, other things do not work anymore: Either, when we set a MaxAutoPaperSize, - // then the view does automatic soft line breaks at the paper end - which we definately do + // then the view does automatic soft line breaks at the paper end - which we definitely do // want. Or, if we did not set a MaxAutoPaperSize, then the view does not automatically scroll // anymore in horizontal direction. // So this is some kind of lose-lose situation ... :( diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx index a0a3ad536f86..5a0e14981941 100644 --- a/forms/source/xforms/binding.cxx +++ b/forms/source/xforms/binding.cxx @@ -1263,7 +1263,7 @@ void Binding::handleEvent( const XEvent_t& xEvent ) // the modification of the 'mnDeferModifyNotifications'-member // is necessary to prevent infinite notication looping. - // This can happend in case the binding which caused + // This can happened in case the binding which caused // the notification chain is listening to those events // as well... bool bPreserveValueModified = mbValueModified; diff --git a/forms/source/xforms/convert.hxx b/forms/source/xforms/convert.hxx index 009b2b19d669..83244988f871 100644 --- a/forms/source/xforms/convert.hxx +++ b/forms/source/xforms/convert.hxx @@ -64,7 +64,7 @@ public: /// can we convert this type? bool hasType( const Type_t& ); - /// get list of convertable types + /// get list of convertible types Types_t getTypes(); /// convert any to XML representation diff --git a/forms/source/xforms/model.cxx b/forms/source/xforms/model.cxx index bce0c0368b9c..462d2268a99c 100644 --- a/forms/source/xforms/model.cxx +++ b/forms/source/xforms/model.cxx @@ -236,7 +236,7 @@ void Model::dbg_assertInvariant() const // -// MIP managment +// MIP management // void Model::addMIP( void* pTag, const XNode_t& xNode, const MIP& rMIP ) diff --git a/fpicker/source/office/fpinteraction.cxx b/fpicker/source/office/fpinteraction.cxx index 947fcb2fb54c..78a441b65d23 100644 --- a/fpicker/source/office/fpinteraction.cxx +++ b/fpicker/source/office/fpinteraction.cxx @@ -87,7 +87,7 @@ namespace svt // intercept some interesting interactions - // The "does not exist" interaction will be supressed here completly. + // The "does not exist" interaction will be supressed here completely. if (m_eInterceptions & OFilePickerInteractionHandler::E_DOESNOTEXIST) { InteractiveIOException aIoException; diff --git a/fpicker/source/office/fpsmartcontent.cxx b/fpicker/source/office/fpsmartcontent.cxx index 3bdb516efde4..d4bcc99bf64b 100644 --- a/fpicker/source/office/fpsmartcontent.cxx +++ b/fpicker/source/office/fpsmartcontent.cxx @@ -203,12 +203,12 @@ namespace svt else bIs = m_pContent->isDocument(); - // from here on, we definately know that the content is valid + // from here on, we definitely know that the content is valid m_eState = VALID; } catch( const Exception& ) { - // now we're definately invalid + // now we're definitely invalid m_eState = INVALID; } return bIs; @@ -226,12 +226,12 @@ namespace svt m_pContent->getPropertyValue( OUString( "Title" ) ) >>= sTitle; _rTitle = sTitle; - // from here on, we definately know that the content is valid + // from here on, we definitely know that the content is valid m_eState = VALID; } catch( const ::com::sun::star::uno::Exception& ) { - // now we're definately invalid + // now we're definitely invalid m_eState = INVALID; } } @@ -254,14 +254,14 @@ namespace svt const OUString aParentURL( xParent->getIdentifier()->getContentIdentifier() ); bRet = ( !aParentURL.isEmpty() && aParentURL != m_pContent->getURL() ); - // now we're definately valid + // now we're definitely valid m_eState = VALID; } } } catch( const Exception& ) { - // now we're definately invalid + // now we're definitely invalid m_eState = INVALID; } return bRet; @@ -289,12 +289,12 @@ namespace svt } } - // now we're definately valid + // now we're definitely valid m_eState = VALID; } catch( const Exception& ) { - // now we're definately invalid + // now we're definitely invalid m_eState = INVALID; } return bRet; diff --git a/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx b/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx index b8361f1fb1a7..fcea195267f6 100644 --- a/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx +++ b/fpicker/source/win32/filepicker/WinFileOpenImpl.cxx @@ -670,7 +670,7 @@ void SAL_CALL CWinFileOpenImpl::onSelChanged(HWND) // string to the file name edit line // this would overwritte our text when we would set // the default name in onInitDone, so we have to - // remeber that this is the first SelChanged message + // remember that this is the first SelChanged message // and set the default name here to overwrite the // windows setting InitialSetDefaultName(); diff --git a/fpicker/source/win32/folderpicker/MtaFop.cxx b/fpicker/source/win32/folderpicker/MtaFop.cxx index 47c64a5491b8..71fb53653eea 100644 --- a/fpicker/source/win32/folderpicker/MtaFop.cxx +++ b/fpicker/source/win32/folderpicker/MtaFop.cxx @@ -191,7 +191,7 @@ CMtaFolderPicker::~CMtaFolderPicker( ) // force the destruction of the sta thread request window // and the end of the thread - // remeber: DestroyWindow may only be called from within + // remember: DestroyWindow may only be called from within // the thread that created the window if ( IsWindow( m_hwndStaRequestWnd ) ) { diff --git a/fpicker/source/win32/folderpicker/MtaFop.hxx b/fpicker/source/win32/folderpicker/MtaFop.hxx index af7af45d8d8b..aebb156db50f 100644 --- a/fpicker/source/win32/folderpicker/MtaFop.hxx +++ b/fpicker/source/win32/folderpicker/MtaFop.hxx @@ -136,7 +136,7 @@ private: sal_Bool SAL_CALL createStaRequestWindow( ); //--------------------------------------------------------------- - // message handler functions; remeber these functions are called + // message handler functions; remember these functions are called // from a different thread context! //--------------------------------------------------------------- diff --git a/framework/inc/classes/droptargetlistener.hxx b/framework/inc/classes/droptargetlistener.hxx index 620b76b7c762..0a71804e9ca3 100644 --- a/framework/inc/classes/droptargetlistener.hxx +++ b/framework/inc/classes/droptargetlistener.hxx @@ -40,7 +40,7 @@ class DropTargetListener : private ThreadHelpBase // member private: - /// uno service manager to create neccessary services + /// uno service manager to create necessary services css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory; /// weakreference to target frame (Don't use a hard reference. Owner can't delete us then!) css::uno::WeakReference< css::frame::XFrame > m_xTargetFrame; diff --git a/framework/inc/classes/filtercachedata.hxx b/framework/inc/classes/filtercachedata.hxx index 305a12bd6087..2374d55c13e1 100644 --- a/framework/inc/classes/filtercachedata.hxx +++ b/framework/inc/classes/filtercachedata.hxx @@ -369,7 +369,7 @@ class SetNodeHash : public ::boost::unordered_map< ::rtl::OUString //--------------------------------------------------------------------------------------------------------- // Append changed, added or removed items to special lists - // Neccessary for saving changes + // Necessary for saving changes //--------------------------------------------------------------------------------------------------------- void appendChange( const ::rtl::OUString& sName , EModifyState eState ); @@ -667,7 +667,7 @@ class FilterCFGAccess : public ::utl::ConfigItem //------------------------------------------------------------------------------------------------------------- private: EFilterPackage m_ePackage ; // ... not realy used yet! should split configuration in STANDARD and ADDITIONAL filter - sal_Int32 m_nVersion ; // file format version of configuration! (neccessary for "xml2xcd" transformation!) + sal_Int32 m_nVersion ; // file format version of configuration! (necessary for "xml2xcd" transformation!) sal_Int32 m_nKeyCountTypes ; // follow key counts present count of configuration properties for types/filters ... and depends from m_nVersion - must be set right! sal_Int32 m_nKeyCountFilters ; sal_Int32 m_nKeyCountDetectors ; diff --git a/framework/inc/classes/framecontainer.hxx b/framework/inc/classes/framecontainer.hxx index bfd7bcd584cf..62159aa8062e 100644 --- a/framework/inc/classes/framecontainer.hxx +++ b/framework/inc/classes/framecontainer.hxx @@ -70,7 +70,7 @@ class FrameContainer : private ThreadHelpBase /// list to hold all frames TFrameContainer m_aContainer; - /// one container item can be the current active frame. Its neccessary for Desktop or Frame implementation. + /// one container item can be the current active frame. Its necessary for Desktop or Frame implementation. css::uno::Reference< css::frame::XFrame > m_xActiveFrame; //_______________________________________ diff --git a/framework/inc/dispatch/closedispatcher.hxx b/framework/inc/dispatch/closedispatcher.hxx index ed333767860b..3493590385f3 100644 --- a/framework/inc/dispatch/closedispatcher.hxx +++ b/framework/inc/dispatch/closedispatcher.hxx @@ -60,7 +60,7 @@ namespace framework{ class CloseDispatcher : public css::lang::XTypeProvider , public css::frame::XNotifyingDispatch // => XDispatch , public css::frame::XDispatchInformationProvider - // baseclasses ... order is neccessary for right initialization! + // baseclasses ... order is necessary for right initialization! , private ThreadHelpBase , public ::cppu::OWeakObject { diff --git a/framework/inc/dispatch/dispatchprovider.hxx b/framework/inc/dispatch/dispatchprovider.hxx index 2ebfa3dc0be1..4515491b164e 100644 --- a/framework/inc/dispatch/dispatchprovider.hxx +++ b/framework/inc/dispatch/dispatchprovider.hxx @@ -82,7 +82,7 @@ class DispatchProvider : // interfaces public css::lang::XTypeProvider , public css::frame::XDispatchProvider , // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , private TransactionBase , public ::cppu::OWeakObject diff --git a/framework/inc/dispatch/mailtodispatcher.hxx b/framework/inc/dispatch/mailtodispatcher.hxx index 6f2a5c035eee..71031cbd8950 100644 --- a/framework/inc/dispatch/mailtodispatcher.hxx +++ b/framework/inc/dispatch/mailtodispatcher.hxx @@ -59,7 +59,7 @@ class MailToDispatcher : // interfaces public css::frame::XDispatchProvider , public css::frame::XNotifyingDispatch, // => XDispatch // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , public cppu::OWeakObject { diff --git a/framework/inc/dispatch/menudispatcher.hxx b/framework/inc/dispatch/menudispatcher.hxx index a2b38f3174f4..eb0a8e7711dc 100644 --- a/framework/inc/dispatch/menudispatcher.hxx +++ b/framework/inc/dispatch/menudispatcher.hxx @@ -79,7 +79,7 @@ class MenuDispatcher : // interfaces public css::frame::XDispatch , public css::frame::XFrameActionListener , // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! public ThreadHelpBase , public cppu::OWeakObject { diff --git a/framework/inc/dispatch/oxt_handler.hxx b/framework/inc/dispatch/oxt_handler.hxx index 3cee776b717c..0e206338bb34 100644 --- a/framework/inc/dispatch/oxt_handler.hxx +++ b/framework/inc/dispatch/oxt_handler.hxx @@ -60,7 +60,7 @@ class Oxt_Handler : // interfaces , public css::frame::XNotifyingDispatch // => XDispatch , public css::document::XExtendedFilterDetection // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! , private ThreadHelpBase , public ::cppu::OWeakObject { diff --git a/framework/inc/dispatch/popupmenudispatcher.hxx b/framework/inc/dispatch/popupmenudispatcher.hxx index 1ecc51246e6d..3be3298047c8 100644 --- a/framework/inc/dispatch/popupmenudispatcher.hxx +++ b/framework/inc/dispatch/popupmenudispatcher.hxx @@ -84,7 +84,7 @@ class PopupMenuDispatcher : // interfaces public css::frame::XFrameActionListener , public css::lang::XInitialization , // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! public ThreadHelpBase , public cppu::OWeakObject { diff --git a/framework/inc/dispatch/servicehandler.hxx b/framework/inc/dispatch/servicehandler.hxx index 3813bb9bc515..ca8843a368f5 100644 --- a/framework/inc/dispatch/servicehandler.hxx +++ b/framework/inc/dispatch/servicehandler.hxx @@ -63,7 +63,7 @@ class ServiceHandler : // interfaces public css::frame::XDispatchProvider , public css::frame::XNotifyingDispatch, // => XDispatch // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , public cppu::OWeakObject { diff --git a/framework/inc/dispatch/startmoduledispatcher.hxx b/framework/inc/dispatch/startmoduledispatcher.hxx index 9518b45b4150..97d3825dc798 100644 --- a/framework/inc/dispatch/startmoduledispatcher.hxx +++ b/framework/inc/dispatch/startmoduledispatcher.hxx @@ -52,7 +52,7 @@ namespace framework{ class StartModuleDispatcher : public css::lang::XTypeProvider , public css::frame::XNotifyingDispatch // => XDispatch , public css::frame::XDispatchInformationProvider - // baseclasses ... order is neccessary for right initialization! + // baseclasses ... order is necessary for right initialization! , private ThreadHelpBase , public ::cppu::OWeakObject { diff --git a/framework/inc/dispatch/systemexec.hxx b/framework/inc/dispatch/systemexec.hxx index 98db3c4aa43e..8fac399056fc 100644 --- a/framework/inc/dispatch/systemexec.hxx +++ b/framework/inc/dispatch/systemexec.hxx @@ -61,7 +61,7 @@ class SystemExec : // interfaces public css::frame::XDispatchProvider , public css::frame::XNotifyingDispatch, // => XDispatch // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , public cppu::OWeakObject { diff --git a/framework/inc/helper/ocomponentaccess.hxx b/framework/inc/helper/ocomponentaccess.hxx index 7e836c49e0ee..2a1a94db595b 100644 --- a/framework/inc/helper/ocomponentaccess.hxx +++ b/framework/inc/helper/ocomponentaccess.hxx @@ -57,7 +57,7 @@ namespace framework{ @devstatus ready to use *//*-*************************************************************************************************************/ -class OComponentAccess : private ThreadHelpBase , // Must be the first of baseclasses - Is neccessary for right initialization of objects! +class OComponentAccess : private ThreadHelpBase , // Must be the first of baseclasses - Is necessary for right initialization of objects! public ::cppu::WeakImplHelper1< ::com::sun::star::container::XEnumerationAccess > { //------------------------------------------------------------------------------------------------------------- diff --git a/framework/inc/helper/oframes.hxx b/framework/inc/helper/oframes.hxx index ea9ea00999e9..04078b082c13 100644 --- a/framework/inc/helper/oframes.hxx +++ b/framework/inc/helper/oframes.hxx @@ -57,7 +57,7 @@ namespace framework{ @devstatus deprecated *//*-*************************************************************************************************************/ -class OFrames : private ThreadHelpBase , // Must be the first of baseclasses - Is neccessary for right initialization of objects! +class OFrames : private ThreadHelpBase , // Must be the first of baseclasses - Is necessary for right initialization of objects! public ::cppu::WeakImplHelper1< ::com::sun::star::frame::XFrames > { //------------------------------------------------------------------------------------------------------------- diff --git a/framework/inc/helper/persistentwindowstate.hxx b/framework/inc/helper/persistentwindowstate.hxx index f8bac8eca0df..6e037d3a90ea 100644 --- a/framework/inc/helper/persistentwindowstate.hxx +++ b/framework/inc/helper/persistentwindowstate.hxx @@ -60,7 +60,7 @@ class PersistentWindowState : // interfaces public css::lang::XTypeProvider, public css::lang::XInitialization, public css::frame::XFrameActionListener, // => XEventListener - // baseclasses (order neccessary for right initialization!) + // baseclasses (order necessary for right initialization!) private ThreadHelpBase, public ::cppu::OWeakObject { diff --git a/framework/inc/helper/statusindicator.hxx b/framework/inc/helper/statusindicator.hxx index a2913eadc0d2..3a9fb451ced0 100644 --- a/framework/inc/helper/statusindicator.hxx +++ b/framework/inc/helper/statusindicator.hxx @@ -62,7 +62,7 @@ namespace framework{ */ class StatusIndicator : public css::lang::XTypeProvider , public css::task::XStatusIndicator - , private ThreadHelpBase // Order of baseclasses is neccessary for right initializaton! + , private ThreadHelpBase // Order of baseclasses is necessary for right initializaton! , public ::cppu::OWeakObject // => XInterface { //------------------------------------------- diff --git a/framework/inc/helper/tagwindowasmodified.hxx b/framework/inc/helper/tagwindowasmodified.hxx index 3346a4972a08..fa3c506c13c7 100644 --- a/framework/inc/helper/tagwindowasmodified.hxx +++ b/framework/inc/helper/tagwindowasmodified.hxx @@ -56,7 +56,7 @@ class TagWindowAsModified : // interfaces public css::lang::XInitialization, public css::frame::XFrameActionListener, // => XEventListener public css::util::XModifyListener, // => XEventListener - // baseclasses (order neccessary for right initialization!) + // baseclasses (order necessary for right initialization!) private ThreadHelpBase, public ::cppu::OWeakObject { diff --git a/framework/inc/helper/titlebarupdate.hxx b/framework/inc/helper/titlebarupdate.hxx index 6d66c9d16793..cc323f66fa90 100644 --- a/framework/inc/helper/titlebarupdate.hxx +++ b/framework/inc/helper/titlebarupdate.hxx @@ -63,7 +63,7 @@ class TitleBarUpdate : // interfaces , public css::lang::XInitialization , public css::frame::XTitleChangeListener // => XEventListener , public css::frame::XFrameActionListener // => XEventListener - // baseclasses (order neccessary for right initialization!) + // baseclasses (order necessary for right initialization!) , private ThreadHelpBase , public ::cppu::OWeakObject { diff --git a/framework/inc/recording/dispatchrecordersupplier.hxx b/framework/inc/recording/dispatchrecordersupplier.hxx index 67946b7c8446..ddd17796fe0c 100644 --- a/framework/inc/recording/dispatchrecordersupplier.hxx +++ b/framework/inc/recording/dispatchrecordersupplier.hxx @@ -51,7 +51,7 @@ class DispatchRecorderSupplier : // interfaces public css::lang::XServiceInfo , public css::frame::XDispatchRecorderSupplier , // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , public ::cppu::OWeakObject { diff --git a/framework/inc/services/autorecovery.hxx b/framework/inc/services/autorecovery.hxx index 72515ef3820c..c07ee9e2ec47 100644 --- a/framework/inc/services/autorecovery.hxx +++ b/framework/inc/services/autorecovery.hxx @@ -194,7 +194,7 @@ class AutoRecovery : public css::lang::XTypeProvider /** timer mst be started with a very(!) short time intervall, to poll for the end of an user action, which does not allow saving documents in general */ E_POLL_TILL_AUTOSAVE_IS_ALLOWED, - /** dont start the timer - but calls the same action then before immediatly again! */ + /** dont start the timer - but calls the same action then before immediately again! */ E_CALL_ME_BACK }; diff --git a/framework/inc/services/contenthandlerfactory.hxx b/framework/inc/services/contenthandlerfactory.hxx index 4b81f7aa7c7b..bb77320c838e 100644 --- a/framework/inc/services/contenthandlerfactory.hxx +++ b/framework/inc/services/contenthandlerfactory.hxx @@ -78,7 +78,7 @@ class ContentHandlerFactory : // interfaces public css::container::XNameContainer , // => XNameReplace => XNameAccess => XElementAccess public css::util::XFlushable , // base classes - // Order is neccessary for right initialization of it! + // Order is necessary for right initialization of it! private ThreadHelpBase , private TransactionBase , public ::cppu::OWeakObject diff --git a/framework/inc/services/desktop.hxx b/framework/inc/services/desktop.hxx index d6d2aaea260f..24f77b8b4b68 100644 --- a/framework/inc/services/desktop.hxx +++ b/framework/inc/services/desktop.hxx @@ -112,7 +112,7 @@ class Desktop : // interfaces public css::task::XInteractionHandler , public css::frame::XUntitledNumbers , // base classes - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , private TransactionBase , public ::cppu::OBroadcastHelper , diff --git a/framework/inc/services/frame.hxx b/framework/inc/services/frame.hxx index ebc9a015a2b3..e5da7251c9ce 100644 --- a/framework/inc/services/frame.hxx +++ b/framework/inc/services/frame.hxx @@ -70,7 +70,7 @@ namespace framework{ -// This enum can be used to set differnt active states of frames +// This enum can be used to set different active states of frames enum EActiveState { E_INACTIVE , // I'am not a member of active path in tree and i don't have the focus. @@ -125,7 +125,7 @@ class Frame : // interfaces public css::frame::XTitle , public css::frame::XTitleChangeBroadcaster , // base classes - // Order is neccessary for right initialization of this class! + // Order is necessary for right initialization of this class! public ThreadHelpBase , public TransactionBase , public PropertySetHelper , // helper implements ThreadHelpbase, TransactionBase, XPropertySet, XPropertySetInfo diff --git a/framework/inc/services/layoutmanager.hxx b/framework/inc/services/layoutmanager.hxx index e45794caae11..07011c6ea71e 100644 --- a/framework/inc/services/layoutmanager.hxx +++ b/framework/inc/services/layoutmanager.hxx @@ -89,7 +89,7 @@ namespace framework typedef ::comphelper::OPropertyContainer LayoutManager_PBase; class LayoutManager : public LayoutManager_Base , // base classes - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , // Struct for right initalization of mutex member! Must be first of baseclasses. public ::cppu::OBroadcastHelper , public ILayoutNotifications , diff --git a/framework/inc/services/license.hxx b/framework/inc/services/license.hxx index 64792294b3da..8b1d49926b81 100644 --- a/framework/inc/services/license.hxx +++ b/framework/inc/services/license.hxx @@ -55,7 +55,7 @@ namespace framework public css::task::XJob , public css::util::XCloseable , // base classes - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , // Struct for right initalization of mutex member! Must be first of baseclasses. public ::cppu::OWeakObject // => XWeak, XInterface { diff --git a/framework/inc/services/logindialog.hxx b/framework/inc/services/logindialog.hxx index 1047e93bd3f3..b301a625e284 100644 --- a/framework/inc/services/logindialog.hxx +++ b/framework/inc/services/logindialog.hxx @@ -360,7 +360,7 @@ class LoginDialog : public XTYPEPROVIDER , public XSERVICEINFO , public XDIALOG , public XFLUSHABLE , - private ThreadHelpBase , // Order of baseclasses is neccessary for right initialization! + private ThreadHelpBase , // Order of baseclasses is necessary for right initialization! public OBROADCASTHELPER , public OPROPERTYSETHELPER , public OWEAKOBJECT diff --git a/framework/inc/services/pathsettings.hxx b/framework/inc/services/pathsettings.hxx index a947248b87a9..8fedd0c00b69 100644 --- a/framework/inc/services/pathsettings.hxx +++ b/framework/inc/services/pathsettings.hxx @@ -52,7 +52,7 @@ class PathSettings : public css::lang::XTypeProvider , public css::lang::XServiceInfo , public css::util::XChangesListener , // => XEventListener // base classes - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , public ::cppu::OBroadcastHelper , public ::cppu::OPropertySetHelper , // => XPropertySet / XFastPropertySet / XMultiPropertySet diff --git a/framework/inc/threadhelp/lockhelper.hxx b/framework/inc/threadhelp/lockhelper.hxx index 9bdfe86ce5c8..93641b5817b4 100644 --- a/framework/inc/threadhelp/lockhelper.hxx +++ b/framework/inc/threadhelp/lockhelper.hxx @@ -125,7 +125,7 @@ class FWI_DLLPUBLIC LockHelper : public IMutex // ... or the solarmuex as "m_pSolarMutex" (must be set from outside! because some components must be vcl-free!) // ... but sometimes you need a shareable osl mutex! // In this case you has some problems: i ) If your lock type is set to E_OWNMUTEX => it's easy; you can use your member "m_pOwnMutex" - it's a osl mutex. - // Creation and using of "m_pShareableOslMutex" isn't neccessary! + // Creation and using of "m_pShareableOslMutex" isn't necessary! // ii ) Otherwise you have no osl mutex ... so you must create "m_pShareableOslMutex" and use it twice! // In this case you must lock two member everytime - "m_pShareableMutex" AND "m_pFairRWLock" or "m_pSolarMutex" or ... // It isn't realy fine - but the only possible way. diff --git a/framework/inc/uifactory/uielementfactorymanager.hxx b/framework/inc/uifactory/uielementfactorymanager.hxx index 266111813de8..fa2cb8bbb761 100644 --- a/framework/inc/uifactory/uielementfactorymanager.hxx +++ b/framework/inc/uifactory/uielementfactorymanager.hxx @@ -48,7 +48,7 @@ namespace framework class ConfigurationAccess_FactoryManager : // interfaces // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , public ::cppu::WeakImplHelper1< ::com::sun::star::container::XContainerListener> { diff --git a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java index 996360df235e..306ba6d3bb78 100644 --- a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java +++ b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java @@ -120,7 +120,7 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor } catch (com.sun.star.uno.Exception ex) { - // something strange has happend! + // something strange has happened! } catch (java.lang.Throwable ex) { diff --git a/framework/qa/complex/framework/autosave/Protocol.java b/framework/qa/complex/framework/autosave/Protocol.java index e8e48c0eccb4..de5a9d31853b 100644 --- a/framework/qa/complex/framework/autosave/Protocol.java +++ b/framework/qa/complex/framework/autosave/Protocol.java @@ -606,7 +606,7 @@ public class Protocol extends JComponent ++m_nLine; - // it's neccessary to open scopes before creatig the protocol line + // it's necessary to open scopes before creatig the protocol line // to guarantee right tab handling for new scope value! if ((nType & TYPE_SCOPE_OPEN) == TYPE_SCOPE_OPEN) ++m_nScope; @@ -616,7 +616,7 @@ public class Protocol extends JComponent String sAsciiLog = aLine.toString(); String sHTMLLog = aLine.toHTML(); - // it's neccessary to close scope after creatig the protocol line + // it's necessary to close scope after creatig the protocol line // to guarantee right tab handling for old scope value! if ( ( m_nScope > 0 ) && diff --git a/framework/source/classes/framecontainer.cxx b/framework/source/classes/framecontainer.cxx index 0b75fd3d416c..78a9c1783d54 100644 --- a/framework/source/classes/framecontainer.cxx +++ b/framework/source/classes/framecontainer.cxx @@ -35,7 +35,7 @@ namespace framework{ *****************************************************************************************************************/ FrameContainer::FrameContainer() // initialize base classes first. - // Order is neccessary for right initilization of his and OUR member ... m_aLock + // Order is necessary for right initilization of his and OUR member ... m_aLock : ThreadHelpBase ( &Application::GetSolarMutex() ) /*DEPRECATEME , m_bAsyncQuit ( sal_False ) // default must be "disabled"! @@ -93,7 +93,7 @@ void FrameContainer::append( const css::uno::Reference< css::frame::XFrame >& xF void FrameContainer::remove( const css::uno::Reference< css::frame::XFrame >& xFrame ) { /* SAFE { */ - // write lock neccessary for follwing erase()! + // write lock necessary for follwing erase()! WriteGuard aWriteLock( m_aLock ); TFrameIterator aSearchedItem = ::std::find( m_aContainer.begin(), m_aContainer.end(), xFrame ); diff --git a/framework/source/dispatch/dispatchprovider.cxx b/framework/source/dispatch/dispatchprovider.cxx index 678b4885601a..56053cc8c1bd 100644 --- a/framework/source/dispatch/dispatchprovider.cxx +++ b/framework/source/dispatch/dispatchprovider.cxx @@ -423,7 +423,7 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_queryFrame // Not for controller - not for protocol handler // It should be a loadable content - may be a file. Check it ... - // This check is neccessary to found out, that + // This check is necessary to found out, that // support for some protocols isn't installed by user. May be // "ftp" isn't available. So we suppress creation of our self dispatcher. // The result will be clear. He can't handle it - but he would try it. @@ -519,7 +519,7 @@ css::uno::Reference< css::frame::XDispatch > DispatchProvider::implts_searchProt } catch(const css::uno::Exception&) {} - // look if initialization is neccessary + // look if initialization is necessary css::uno::Reference< css::lang::XInitialization > xInit( xHandler, css::uno::UNO_QUERY ); if (xInit.is()) { diff --git a/framework/source/dispatch/mailtodispatcher.cxx b/framework/source/dispatch/mailtodispatcher.cxx index 0b80ac3cb055..331243b11f77 100644 --- a/framework/source/dispatch/mailtodispatcher.cxx +++ b/framework/source/dispatch/mailtodispatcher.cxx @@ -152,7 +152,7 @@ css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL Mail void SAL_CALL MailToDispatcher::dispatch( const css::util::URL& aURL , const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException ) { - // dispatch() is an [oneway] call ... and may our user release his reference to us immediatly. + // dispatch() is an [oneway] call ... and may our user release his reference to us immediately. // So we should hold us self alive till this call ends. css::uno::Reference< css::frame::XNotifyingDispatch > xSelfHold(static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY); implts_dispatch(aURL,lArguments); @@ -177,7 +177,7 @@ void SAL_CALL MailToDispatcher::dispatchWithNotification( const css::util::URL& const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw( css::uno::RuntimeException ) { - // This class was designed to die by reference. And if user release his reference to us immediatly after calling this method + // This class was designed to die by reference. And if user release his reference to us immediately after calling this method // we can run into some problems. So we hold us self alive till this method ends. // Another reason: We can use this reference as source of sending event at the end too. css::uno::Reference< css::frame::XNotifyingDispatch > xThis(static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY); diff --git a/framework/source/dispatch/servicehandler.cxx b/framework/source/dispatch/servicehandler.cxx index 7fc236eb7348..ddeac81e3b20 100644 --- a/framework/source/dispatch/servicehandler.cxx +++ b/framework/source/dispatch/servicehandler.cxx @@ -150,7 +150,7 @@ css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL Serv void SAL_CALL ServiceHandler::dispatch( const css::util::URL& aURL , const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException ) { - // dispatch() is an [oneway] call ... and may our user release his reference to us immediatly. + // dispatch() is an [oneway] call ... and may our user release his reference to us immediately. // So we should hold us self alive till this call ends. css::uno::Reference< css::frame::XNotifyingDispatch > xSelfHold(static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY); implts_dispatch(aURL,lArguments); @@ -175,7 +175,7 @@ void SAL_CALL ServiceHandler::dispatchWithNotification( const css::util::URL& const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw( css::uno::RuntimeException ) { - // This class was designed to die by reference. And if user release his reference to us immediatly after calling this method + // This class was designed to die by reference. And if user release his reference to us immediately after calling this method // we can run into some problems. So we hold us self alive till this method ends. // Another reason: We can use this reference as source of sending event at the end too. css::uno::Reference< css::frame::XNotifyingDispatch > xThis(static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY); diff --git a/framework/source/fwe/dispatch/interaction.cxx b/framework/source/fwe/dispatch/interaction.cxx index 43796114ed2d..2464439faafb 100644 --- a/framework/source/fwe/dispatch/interaction.cxx +++ b/framework/source/fwe/dispatch/interaction.cxx @@ -106,7 +106,7 @@ private: }; //--------------------------------------------------------------------------------------------------------- -// initialize instance with all neccessary informations +// initialize instance with all necessary informations // We use it without any further checks on our member then ...! //--------------------------------------------------------------------------------------------------------- RequestFilterSelect_Impl::RequestFilterSelect_Impl( const ::rtl::OUString& sURL ) diff --git a/framework/source/fwi/threadhelp/transactionmanager.cxx b/framework/source/fwi/threadhelp/transactionmanager.cxx index c20a407fdcc7..7f3ac4838ac4 100644 --- a/framework/source/fwi/threadhelp/transactionmanager.cxx +++ b/framework/source/fwi/threadhelp/transactionmanager.cxx @@ -110,7 +110,7 @@ void TransactionManager::setWorkingMode( EWorkingMode eMode ) } // Wait for current existing transactions then! - // (Only neccessary for changing to E_BEFORECLOSE or E_CLOSE! ... + // (Only necessary for changing to E_BEFORECLOSE or E_CLOSE! ... // otherwise; if you wait at setting E_WORK another thrad could finish a acquire-call during our unlock() and wait() call // ... and we will wait forever here!!!) // Don't forget to release access mutex before. diff --git a/framework/source/helper/persistentwindowstate.cxx b/framework/source/helper/persistentwindowstate.cxx index 9892c7ff4c98..3b0d7a4e2e64 100644 --- a/framework/source/helper/persistentwindowstate.cxx +++ b/framework/source/helper/persistentwindowstate.cxx @@ -264,7 +264,7 @@ void PersistentWindowState::implst_setWindowStateOnConfig(const css::uno::Refere SolarMutexGuard aSolarGuard; Window* pWindow = VCLUnoHelper::GetWindow(xWindow); - // check for system window is neccessary to guarantee correct pointer cast! + // check for system window is necessary to guarantee correct pointer cast! if ( (pWindow ) && (pWindow->IsSystemWindow()) @@ -300,7 +300,7 @@ void PersistentWindowState::implst_setWindowStateOnWindow(const css::uno::Refere if (!pWindow) return; - // check for system and work window - its neccessary to guarantee correct pointer cast! + // check for system and work window - its necessary to guarantee correct pointer cast! sal_Bool bSystemWindow = pWindow->IsSystemWindow(); sal_Bool bWorkWindow = (pWindow->GetType() == WINDOW_WORKWINDOW); diff --git a/framework/source/helper/statusindicatorfactory.cxx b/framework/source/helper/statusindicatorfactory.cxx index 28931e83bae0..3f6b34dfb9ed 100644 --- a/framework/source/helper/statusindicatorfactory.cxx +++ b/framework/source/helper/statusindicatorfactory.cxx @@ -372,7 +372,7 @@ void StatusIndicatorFactory::implts_makeParentVisibleIfAllowed() } } - // Ok the window should be made visible ... becuase it isnt currently visible. + // Ok the window should be made visible ... because it isnt currently visible. // BUT ..! // We need a Hack for our applications: They get her progress from the frame directly // on saving documents. Because there is no progress set on the MediaDescriptor. diff --git a/framework/source/inc/pattern/window.hxx b/framework/source/inc/pattern/window.hxx index 6604488d52ba..0510b86495ea 100644 --- a/framework/source/inc/pattern/window.hxx +++ b/framework/source/inc/pattern/window.hxx @@ -55,7 +55,7 @@ static ::rtl::OUString getWindowState(const css::uno::Reference< css::awt::XWind SolarMutexGuard aSolarGuard; Window* pWindow = VCLUnoHelper::GetWindow(xWindow); - // check for system window is neccessary to guarantee correct pointer cast! + // check for system window is necessary to guarantee correct pointer cast! if (pWindow!=NULL && pWindow->IsSystemWindow()) { sal_uLong nMask = WINDOWSTATE_MASK_ALL; @@ -82,7 +82,7 @@ static void setWindowState(const css::uno::Reference< css::awt::XWindow >& xWind SolarMutexGuard aSolarGuard; Window* pWindow = VCLUnoHelper::GetWindow(xWindow); - // check for system window is neccessary to guarantee correct pointer cast! + // check for system window is necessary to guarantee correct pointer cast! if ( (pWindow ) && (pWindow->IsSystemWindow()) && diff --git a/framework/source/jobs/helponstartup.cxx b/framework/source/jobs/helponstartup.cxx index d5f4fd8637e4..788476b0fddc 100644 --- a/framework/source/jobs/helponstartup.cxx +++ b/framework/source/jobs/helponstartup.cxx @@ -211,7 +211,7 @@ void SAL_CALL HelpOnStartup::disposing(const css::lang::EventObject& aEvent) // check for right environment. // If its not a DocumentEvent, which triggered this job, - // we cant work correctly! => return immediatly and do nothing + // we cant work correctly! => return immediately and do nothing ::rtl::OUString sEnvType = lEnvironment.getUnpackedValueOrDefault(PROP_ENVTYPE, ::rtl::OUString()); if (!sEnvType.equals(ENVTYPE_DOCUMENTEVENT)) return ::rtl::OUString(); diff --git a/framework/source/jobs/job.cxx b/framework/source/jobs/job.cxx index 6063f203755e..1b071b65cba7 100644 --- a/framework/source/jobs/job.cxx +++ b/framework/source/jobs/job.cxx @@ -203,7 +203,7 @@ void Job::execute( /*IN*/ const css::uno::Sequence< css::beans::NamedValue >& lD css::uno::Reference< css::task::XJob > xSJob; css::uno::Sequence< css::beans::NamedValue > lJobArgs = impl_generateJobArgs(lDynamicArgs); - // It's neccessary to hold us self alive! + // It's necessary to hold us self alive! // Otherwhise we might die by ref count ... css::uno::Reference< css::task::XJobListener > xThis(static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY); @@ -681,7 +681,7 @@ void SAL_CALL Job::jobFinished( /*IN*/ const css::uno::Reference< css::task::XAs /* SAFE { */ WriteGuard aWriteLock(m_aLock); - // It's neccessary to check this. + // It's necessary to check this. // May this job was cancelled by any other reason // some milliseconds before. :-) if (m_xJob.is() && m_xJob==xJob) diff --git a/framework/source/jobs/jobdata.cxx b/framework/source/jobs/jobdata.cxx index 8b496d15b0ea..69f5daa4e728 100644 --- a/framework/source/jobs/jobdata.cxx +++ b/framework/source/jobs/jobdata.cxx @@ -652,7 +652,7 @@ css::uno::Sequence< ::rtl::OUString > JobData::getEnabledJobsForEvent( const css // get all alias names of jobs, which are part of this job list // But Some of them can be disabled by it's time stamp values. - // We create an additional job name list iwth the same size, then the original list ... + // We create an additional job name list with the same size, then the original list ... // step over all job entries ... check her time stamps ... and put only job names to the // destination list, which represent an enabled job. css::uno::Sequence< ::rtl::OUString > lAllJobs = xJobList->getElementNames(); diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx index 9cd9c5a54f60..332f3c911fb2 100644 --- a/framework/source/loadenv/loadenv.cxx +++ b/framework/source/loadenv/loadenv.cxx @@ -895,7 +895,7 @@ sal_Bool LoadEnv::impl_handleContent() m_lMediaDescriptor >> lDescriptor; css::util::URL aURL = m_aURL; - // get neccessary container to query for a handler object + // get necessary container to query for a handler object css::uno::Reference< css::lang::XMultiServiceFactory > xFactory(m_xSMGR->createInstance(SERVICENAME_CONTENTHANDLERFACTORY), css::uno::UNO_QUERY); css::uno::Reference< css::container::XContainerQuery > xQuery (xFactory , css::uno::UNO_QUERY); @@ -1580,7 +1580,7 @@ void LoadEnv::impl_reactForLoadingState() { SolarMutexGuard aSolarGuard; Window* pWindow = VCLUnoHelper::GetWindow(xWindow); - // check for system window is neccessary to guarantee correct pointer cast! + // check for system window is necessary to guarantee correct pointer cast! if (pWindow && pWindow->IsSystemWindow()) ((WorkWindow*)pWindow)->Minimize(); } diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index 380a0159ca0b..6248ae18225d 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -500,7 +500,7 @@ void SAL_CALL AutoRecovery::dispatch(const css::util::URL& ::comphelper::SequenceAsHashMap lArgs(lArguments); // check if somewhere wish to disable recovery temp. for this office session - // This can be done immediatly ... must not been done asynchronous. + // This can be done immediately ... must not been done asynchronous. if ((eNewJob & AutoRecovery::E_DISABLE_AUTORECOVERY) == AutoRecovery::E_DISABLE_AUTORECOVERY) { // it's important to set a flag internaly, so AutoRecovery will be supressed - even if it's requested. @@ -2198,10 +2198,10 @@ AutoRecovery::ETimerType AutoRecovery::implts_saveDocs( sal_Bool bAl // ii) For a CrashSave ... add it to the list of dangerous documents and // save it after all other documents was saved successfully. That decrease // the chance for a crash inside a crash. - // On the other side it's not neccessary for documents, which are not modified. + // On the other side it's not necessary for documents, which are not modified. // They can be handled normaly - means we patch the corresponding configuration entry only. // iii) For a SessionSave ... ignore it! There is no time to wait for this save operation. - // Because the WindowManager will kill the process if it doesnt react immediatly. + // Because the WindowManager will kill the process if it doesnt react immediately. // On the other side we cant risk a concurrent save request ... because we know // that it will produce a crash. @@ -2810,7 +2810,7 @@ void AutoRecovery::implts_informListener( sal_Int32 eJ sFeature.appendAscii(RTL_CONSTASCII_STRINGPARAM(CMD_PROTOCOL)); // Attention: Because "eJob" is used as a flag field the order of checking these - // flags is importent. We must preferr job with higher priorities! + // flags is important. We must preferr job with higher priorities! // E.g. EmergencySave has an higher prio then AutoSave ... // On the other side there exist a well defined order between two different jobs. // e.g. PrepareEmergencySave must be done before EmergencySave is started of course. @@ -2968,7 +2968,7 @@ void AutoRecovery::implts_doEmergencySave(const DispatchParams& aParams) // during normal AutoSave more then once. Because // it postpone active documents and save it later. // That is normaly done by recalling it from a timer. - // Here we must do it immediatly! + // Here we must do it immediately! // Of course this method returns the right state - // because it knows, that we are running in ERMERGENCY SAVE mode .-) @@ -3038,7 +3038,7 @@ void AutoRecovery::implts_doSessionSave(const DispatchParams& aParams) // during normal AutoSave more then once. Because // it postpone active documents and save it later. // That is normaly done by recalling it from a timer. - // Here we must do it immediatly! + // Here we must do it immediately! // Of course this method returns the right state - // because it knows, that we are running in SESSION SAVE mode .-) @@ -3532,7 +3532,7 @@ void AutoRecovery::impl_establishProgress(const AutoRecovery::TDocumentInfo& } // But inside the MediaDescriptor we must set our own create progress ... - // in case there is not already anothe rprogress set. + // in case there is not already another progress set. rArgs.createItemIfMissing(::comphelper::MediaDescriptor::PROP_STATUSINDICATOR(), xInternalProgress); } diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index f32d0354d396..628730fed95a 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -841,7 +841,7 @@ void SAL_CALL Desktop::setActiveFrame( const css::uno::Reference< css::frame::XF // If nothing will change - do nothing! // Otherwise set new active frame ... // and deactivate last frame. - // It's neccessary for our FrameActionEvent listener on a frame! + // It's necessary for our FrameActionEvent listener on a frame! css::uno::Reference< css::frame::XFrame > xLastActiveChild = m_aChildTaskContainer.getActive(); if( xLastActiveChild != xFrame ) { @@ -1036,7 +1036,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Desktop::findFrame( const ::r // force using of "if() else if() ..." //----------------------------------------------------------------------------------------------------- - // get threadsafe some neccessary member which are neccessary for following functionality + // get threadsafe some necessary member which are neccessary for following functionality /* SAFE { */ ReadGuard aReadLock( m_aLock ); css::uno::Reference< css::lang::XMultiServiceFactory > xFactory = m_xFactory; @@ -1086,7 +1086,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Desktop::findFrame( const ::r // But note: Such flags are not valid for the desktop - especialy SIBLINGS or PARENT. //------------------------------------------------------------------------------------------------- - // get threadsafe some neccessary member which are neccessary for following functionality + // get threadsafe some necessary member which are neccessary for following functionality /* SAFE { */ aReadLock.lock(); ::rtl::OUString sOwnName = m_sName; @@ -1179,7 +1179,7 @@ void SAL_CALL Desktop::dispose() // Now - we are alone and its the first call of this method ... // otherwise call before had thrown a DisposedException / hopefully .-) - // But we dont use the transaction object created before ... we reset it immediatly ... + // But we dont use the transaction object created before ... we reset it immediately ... // two lines of code ... for what ? // The answer: We wished to synchronize concurrent dispose() calls -> OK // But next line will wait for all currently running transaction (even if they diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx index 6f2ff40eaa74..ba54b20608f5 100644 --- a/framework/source/services/frame.cxx +++ b/framework/source/services/frame.cxx @@ -414,7 +414,7 @@ void SAL_CALL Frame::setActiveFrame( const css::uno::Reference< css::frame::XFra /* SAFE AREA ----------------------------------------------------------------------------------------------- */ WriteGuard aWriteLock( m_aLock ); - // Copy neccessary member for threadsafe access! + // Copy necessary member for threadsafe access! // m_aChildFrameContainer is threadsafe himself and he live if we live!!! // ...and our transaction is non breakable too ... css::uno::Reference< css::frame::XFrame > xActiveChild = m_aChildFrameContainer.getActive(); @@ -771,7 +771,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Frame::findFrame( const ::rtl // force using of "if() else if() ..." //----------------------------------------------------------------------------------------------------- - // get threadsafe some neccessary member which are neccessary for following functionality + // get threadsafe some necessary member which are neccessary for following functionality /* SAFE { */ ReadGuard aReadLock( m_aLock ); css::uno::Reference< css::frame::XFrame > xParent ( m_xParent, css::uno::UNO_QUERY ); @@ -863,7 +863,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Frame::findFrame( const ::rtl // TASK and CREATE are handled special. //------------------------------------------------------------------------------------------------- - // get threadsafe some neccessary member which are neccessary for following functionality + // get threadsafe some necessary member which are neccessary for following functionality /* SAFE { */ aReadLock.lock(); ::rtl::OUString sOwnName = m_sName; @@ -1058,8 +1058,8 @@ void SAL_CALL Frame::activate() throw( css::uno::RuntimeException ) /* SAFE AREA ----------------------------------------------------------------------------------------------- */ WriteGuard aWriteLock( m_aLock ); - // Copy neccessary member and free the lock. - // It's not neccessary for m_aChildFrameContainer ... because + // Copy necessary member and free the lock. + // It's not necessary for m_aChildFrameContainer ... because // he is threadsafe himself and live if we live. // We use a registered transaction to prevent us against // breaks during this operation! @@ -1099,7 +1099,7 @@ void SAL_CALL Frame::activate() throw( css::uno::RuntimeException ) // But we do nothing then! We are already activated. xParent->activate(); } - // Its neccessary to send event NOW - not before. + // Its necessary to send event NOW - not before. // Activation goes from bottom to top! // Thats the reason to activate parent first and send event now. implts_sendFrameActionEvent( css::frame::FrameAction_FRAME_ACTIVATED ); @@ -1158,7 +1158,7 @@ void SAL_CALL Frame::deactivate() throw( css::uno::RuntimeException ) /* SAFE AREA ----------------------------------------------------------------------------------------------- */ WriteGuard aWriteLock( m_aLock ); - // Copy neccessary member and free the lock. + // Copy necessary member and free the lock. css::uno::Reference< css::frame::XFrame > xActiveChild = m_aChildFrameContainer.getActive() ; css::uno::Reference< css::frame::XFramesSupplier > xParent ( m_xParent, css::uno::UNO_QUERY ) ; css::uno::Reference< css::frame::XFrame > xThis ( static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY ); @@ -1988,7 +1988,7 @@ css::uno::Reference< css::task::XStatusIndicator > SAL_CALL Frame::createStatusI /* SAFE AREA ----------------------------------------------------------------------------------------------- */ ReadGuard aReadLock( m_aLock ); - // Make snapshot of neccessary member and define default return value. + // Make snapshot of necessary member and define default return value. css::uno::Reference< css::task::XStatusIndicator > xExternal(m_xIndicatorInterception.get(), css::uno::UNO_QUERY); css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory = m_xIndicatorFactoryHelper; @@ -2424,7 +2424,7 @@ void SAL_CALL Frame::disposing( const css::lang::EventObject& aEvent ) throw( cs if( aEvent.Source == m_xContainerWindow ) { - // NECCESSARY: Impl-method is threadsafe by himself! + // NECESSARY: Impl-method is threadsafe by himself! aWriteLock.unlock(); implts_stopWindowListening(); aWriteLock.lock(); @@ -2797,7 +2797,7 @@ void Frame::implts_setIconOnWindow() TransactionGuard aTransaction( m_aTransactionManager, E_HARDEXCEPTIONS ); /* SAFE AREA ----------------------------------------------------------------------------------------------- */ - // Make snapshot of neccessary members and release lock. + // Make snapshot of necessary members and release lock. ReadGuard aReadLock( m_aLock ); css::uno::Reference< css::awt::XWindow > xContainerWindow( m_xContainerWindow, css::uno::UNO_QUERY ); css::uno::Reference< css::frame::XController > xController ( m_xController , css::uno::UNO_QUERY ); @@ -2897,7 +2897,7 @@ void Frame::implts_startWindowListening() TransactionGuard aTransaction( m_aTransactionManager, E_HARDEXCEPTIONS ); /* SAFE AREA ----------------------------------------------------------------------------------------------- */ - // Make snapshot of neccessary member! + // Make snapshot of necessary member! ReadGuard aReadLock( m_aLock ); css::uno::Reference< css::awt::XWindow > xContainerWindow = m_xContainerWindow ; css::uno::Reference< css::lang::XMultiServiceFactory > xFactory = m_xFactory ; @@ -2937,7 +2937,7 @@ void Frame::implts_stopWindowListening() TransactionGuard aTransaction( m_aTransactionManager, E_SOFTEXCEPTIONS ); /* SAFE AREA ----------------------------------------------------------------------------------------------- */ - // Make snapshot of neccessary member! + // Make snapshot of necessary member! ReadGuard aReadLock( m_aLock ); css::uno::Reference< css::awt::XWindow > xContainerWindow = m_xContainerWindow ; css::uno::Reference< css::lang::XMultiServiceFactory > xFactory = m_xFactory ; @@ -3112,7 +3112,7 @@ void Frame::impl_checkMenuCloser() xNewCloserFrame = this; } - // Look for neccessary actions ... + // Look for necessary actions ... // Only if the closer state must be moved from one frame to another one // or must be enabled/disabled at all. /* STATIC SAFE { */ diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx index 67012ed2b76b..a015114f96d6 100644 --- a/framework/source/services/pathsettings.cxx +++ b/framework/source/services/pathsettings.cxx @@ -1103,7 +1103,7 @@ css::uno::Reference< css::container::XNameAccess > PathSettings::fa_getCfgOld() ::comphelper::ConfigurationHelper::openConfig( comphelper::getComponentContext(xSMGR), CFG_NODE_OLD, - ::comphelper::ConfigurationHelper::E_STANDARD), // not readonly! Somtimes we need write access there !!! + ::comphelper::ConfigurationHelper::E_STANDARD), // not readonly! Sometimes we need write access there !!! css::uno::UNO_QUERY_THROW); // SAFE -> diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index 6bbdb003c06f..4896af387322 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -945,12 +945,12 @@ throw ( NoSuchElementException, RuntimeException ) // Fill return value with result if ( bSubstitutionCompleted ) { - // Substitution successfull! + // Substitution successful! aResult = aWorkText; } else { - // Substitution not successfull! + // Substitution not successful! if ( nDepth == nMaxRecursiveDepth ) { // recursion depth reached! diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx index c8bdc8e4fbdc..f101ef1cbee9 100644 --- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx +++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx @@ -404,7 +404,7 @@ ModuleUIConfigurationManager::UIElementData* ModuleUIConfigurationManager::impl } } - // Not successfull, we have to look into our default vector/boost::unordered_map combination + // Not successful, we have to look into our default vector/boost::unordered_map combination UIElementDataHashMap& rDefaultHashMap = m_aUIElements[LAYER_DEFAULT][nElementType].aElementsHashMap; pIter = rDefaultHashMap.find( aResourceURL ); if ( pIter != rDefaultHashMap.end() ) diff --git a/framework/source/uiconfiguration/uicategorydescription.cxx b/framework/source/uiconfiguration/uicategorydescription.cxx index df3943d3be87..0179d71eb00f 100644 --- a/framework/source/uiconfiguration/uicategorydescription.cxx +++ b/framework/source/uiconfiguration/uicategorydescription.cxx @@ -73,7 +73,7 @@ namespace framework // Configuration access class for PopupMenuControllerFactory implementation //***************************************************************************************************************** -class ConfigurationAccess_UICategory : // Order is neccessary for right initialization! +class ConfigurationAccess_UICategory : // Order is necessary for right initialization! private ThreadHelpBase , public ::cppu::WeakImplHelper2<XNameAccess,XContainerListener> { diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx index 8ed6853c4110..f31e416dc010 100644 --- a/framework/source/uiconfiguration/windowstateconfiguration.cxx +++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx @@ -128,7 +128,7 @@ class ConfigurationAccess_WindowState : // interfaces public XNameContainer , public XContainerListener , // baseclasses - // Order is neccessary for right initialization! + // Order is necessary for right initialization! private ThreadHelpBase , public ::cppu::OWeakObject { @@ -197,7 +197,7 @@ class ConfigurationAccess_WindowState : // interfaces WINDOWSTATE_MASK_DOCKSIZE = 32768 }; - // Cache structure. Valid values are described by tje eMask member. All other values should not be + // Cache structure. Valid values are described by the eMask member. All other values should not be // provided to outside code! struct WindowStateInfo { diff --git a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx index 4da0eb12ed1d..a03fde10c4c3 100644 --- a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx +++ b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx @@ -43,7 +43,7 @@ InputSequenceChecker_hi::~InputSequenceChecker_hi() */ #define __UP 1 // ChandraBindu & Anuswar #define __NP 2 // Visarg -#define __IV 3 // Independant Vowels +#define __IV 3 // Independent Vowels #define __CN 4 // Consonants except _CK & _RC #define __CK 5 // Consonants that can be followed by Nukta #define __RC 6 // Ra diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java index c452fc5c0f4d..0c517ca68347 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java @@ -74,7 +74,7 @@ public class ComponentBase_Test obj1.nDisposingCalled= 0; obj2.nDisposingCalled= 0; obj3.nDisposingCalled= 0; - comp.dispose(); // allready disposed; + comp.dispose(); // already disposed; r[i++]= obj1.nDisposingCalled == 0; boolean bOk= true; diff --git a/l10ntools/source/filter/merge/Merger.java b/l10ntools/source/filter/merge/Merger.java index 26204f11db56..e0eff4d45e28 100644 --- a/l10ntools/source/filter/merge/Merger.java +++ b/l10ntools/source/filter/merge/Merger.java @@ -187,7 +187,7 @@ public class Merger m_aCfg.getString (PROP_XMLPACKAGE ), m_aCfg.getBoolean(PROP_LANGUAGEPACK, false))); - // counts all transfered fragments + // counts all transferred fragments // Can be used later to decide, if a generated package file // contains "nothing"! int nItemCount = 0; @@ -257,7 +257,7 @@ public class Merger // Attention! // If the package seem to be empty, it make no sense to generate a corresponding - // xml file. We should suppress writing of this file on disk completly ... + // xml file. We should suppress writing of this file on disk completely ... if (nItemCount < 1) { m_aLog.setWarning("Package is empty and will not result into a xml file on disk!? Please check configuration file."); diff --git a/l10ntools/source/filter/utils/Cache.java b/l10ntools/source/filter/utils/Cache.java index 5150c06fa086..5ecea57e1ff3 100644 --- a/l10ntools/source/filter/utils/Cache.java +++ b/l10ntools/source/filter/utils/Cache.java @@ -1045,7 +1045,7 @@ public class Cache // generate new property "DetectService" // Every type know its detector diretcly from now. No search - // will be neccessary any longer. + // will be necessary any longer. aResultMap.put(PROPNAME_DETECTSERVICE, new java.lang.String()); // analyze the Data property of the original map diff --git a/l10ntools/source/filter/utils/FileHelper.java b/l10ntools/source/filter/utils/FileHelper.java index d4061fb5e7e1..98f1248db545 100644 --- a/l10ntools/source/filter/utils/FileHelper.java +++ b/l10ntools/source/filter/utils/FileHelper.java @@ -106,7 +106,7 @@ public class FileHelper /** * Does the same as getFileURLFromSystemPath() before ... but uses - * the given protocol string (e.g."http://") insted of "file:///". + * the given protocol string (e.g."http://") instead of "file:///". * * @param aSystemPath * represent the file in system notation diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx index e23d73541fab..d0d4a467957b 100644 --- a/mysqlc/source/mysqlc_connection.cxx +++ b/mysqlc/source/mysqlc_connection.cxx @@ -418,7 +418,7 @@ sal_Bool SAL_CALL OConnection::isClosed() OSL_TRACE("OConnection::isClosed"); MutexGuard aGuard(m_aMutex); - // just simple -> we are close when we are disposed taht means someone called dispose(); (XComponent) + // just simple -> we are close when we are disposed that means someone called dispose(); (XComponent) return (OConnection_BASE::rBHelper.bDisposed); } /* }}} */ diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx index bfb252951b12..de7fbe29e7b6 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx @@ -219,7 +219,7 @@ sal_Bool SAL_CALL OConnection::isClosed( ) throw(SQLException, RuntimeException { ::osl::MutexGuard aGuard( m_aMutex ); - // just simple -> we are close when we are disposed taht means someone called dispose(); (XComponent) + // just simple -> we are close when we are disposed that means someone called dispose(); (XComponent) return OConnection_BASE::rBHelper.bDisposed; } // -------------------------------------------------------------------------------- diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx index 9eb10f3f58ad..4556ac489cd2 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx @@ -139,7 +139,7 @@ sal_Bool SAL_CALL SkeletonDriver::acceptsURL( const ::rtl::OUString& url ) // -------------------------------------------------------------------------------- Sequence< DriverPropertyInfo > SAL_CALL SkeletonDriver::getPropertyInfo( const ::rtl::OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException) { - // if you have somthing special to say, return it here :-) + // if you have something special to say, return it here :-) return Sequence< DriverPropertyInfo >(); } // -------------------------------------------------------------------------------- diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx index d5aec8b6feb3..196f06182f17 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx @@ -400,7 +400,7 @@ void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException) checkDisposed(OResultSet_BASE::rBHelper.bDisposed); // move before the first row so that isBeforeFirst returns false - // the smae for other movement methods + // the same for other movement methods } // ------------------------------------------------------------------------- void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException) diff --git a/odk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java b/odk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java index 1b10f7d50dcb..d0d2c5756daf 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java +++ b/odk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java @@ -127,7 +127,7 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor { } } catch ( com.sun.star.uno.RuntimeException ex ) { - // something strange has happend! + // something strange has happened! System.out.println( " Sample caught exception! " + ex ); System.exit(1); } @@ -245,7 +245,7 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor { // we used an invalid index for accessing a container } catch ( com.sun.star.uno.Exception ex ) { - // something strange has happend! + // something strange has happened! } catch ( java.lang.Exception ex ) { // catch java exceptions and something useful diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java index 54c30ec59463..6d1d6e507d9e 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java @@ -170,7 +170,7 @@ public class DocumentView extends JFrame if(ViewContainer.mbInplace==true) { // create view to show opened documents - // This special view is neccessary for inplace mode only! + // This special view is necessary for inplace mode only! maDocumentView = new NativeView(); JSplitPane paSplit = new JSplitPane(); diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java index 1546bf387097..6058e010ee24 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java @@ -364,7 +364,7 @@ public class FunctionHelper com.sun.star.awt.XWindow xWindow = impl_createWindow(xCtx, aParentView); // pass the window the frame as his new container window. - // It's neccessary to do it first - before you call anything else there. + // It's necessary to do it first - before you call anything else there. // Otherwhise the frame throws some exceptions for "uninitialized state". xFrame.initialize( xWindow ); @@ -742,7 +742,7 @@ public class FunctionHelper { // Export can be forced by saving the document and using a // special filter name which can write needed format. Build - // neccessary argument list now. + // necessary argument list now. // Use special flag "Overwrite" too, to prevent operation // against possible exceptions, if file already exist. com.sun.star.beans.PropertyValue[] lProperties = diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java index 66eb053bd2c8..12ea20173b3a 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java @@ -301,7 +301,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, } // deregistration will be done everytime ... - // But may it's not neccessary to establish a new registration! + // But may it's not necessary to establish a new registration! // Don't look for ignoring actions - it was done already inside original frameAction() call! boolean bRegister = false; @@ -511,7 +511,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, if (aURL.Complete.startsWith("private:factory") == true) { // Create view frame for showing loaded documents on demand. - // The visible state is neccessary for JNI functionality to get the HWND and plug office + // The visible state is necessary for JNI functionality to get the HWND and plug office // inside a java window hierarchy! DocumentView aNewView = new DocumentView(); aNewView.setVisible(true); diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java index f67423975ce2..da7f8b7e1973 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java @@ -324,7 +324,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, return; } // Don't look for ignoring actions - it was done already inside original frameAction() call! - // deregistration as status listener will be done here everytime - but registration only, if neccessary! + // deregistration as status listener will be done here everytime - but registration only, if necessary! boolean bRegister = false; switch(aEvent.Action.getValue()) { diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java index 4bce41405dbf..f1c47bcd38c8 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java @@ -125,7 +125,7 @@ public class ViewContainer extends Thread } // If this view is a registered shutdown listener on this view container // too, we must call his interface and forget him as possible listener. - // It's neccessary to guarantee his dead ... + // It's necessary to guarantee his dead ... boolean bShutdownView = false; synchronized(mlListener) { diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java index 57f352362918..e882e089b0e4 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java +++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java @@ -163,15 +163,15 @@ public class FilterOptions { // ONE argument has the wrong type // But I think we mustn't react here - because we setted - // default values for every neccessary item we need. + // default values for every necessary item we need. // In case this exception occures - this default exist // and we can live with it. } } - // Decide if it's neccessary AND possible to open streams. + // Decide if it's necessary AND possible to open streams. // Outside user can check for valid FilterOptions by using - // corresponding method isValid(). So it's not neccessary to + // corresponding method isValid(). So it's not necessary to // handle this error here in any case. if (m_xInput==null && m_xOutput==null && m_sURL!=null) impl_openStreams(bImport); diff --git a/package/source/xstor/ohierarchyholder.cxx b/package/source/xstor/ohierarchyholder.cxx index da4d2310bf87..39f177e8bed0 100644 --- a/package/source/xstor/ohierarchyholder.cxx +++ b/package/source/xstor/ohierarchyholder.cxx @@ -158,7 +158,7 @@ uno::Reference< embed::XExtendedStorageStream > OHierarchyElement_Impl::GetStrea } } - // the subelement was opened successfuly, remember the storage to let it be locked + // the subelement was opened successfully, remember the storage to let it be locked m_xOwnStorage = xOwnStor; return xResult; diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index da90248277ec..26e7c46fcf8b 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -384,7 +384,7 @@ void ZipPackage::parseManifest() if ( !bManifestParsed ) { - // the manifest.xml could not be successfuly parsed, this is an inconsistent package + // the manifest.xml could not be successfully parsed, this is an inconsistent package if ( aPackageMediatype.compareToAscii("application/vnd.") == 0 ) { // accept only types that look similar to own mediatypes @@ -1271,7 +1271,7 @@ uno::Reference< io::XInputStream > ZipPackage::writeTempFile() { if( bUseTemp ) { - // no information loss appeares, thus no special handling is required + // no information loss appears, thus no special handling is required uno::Any aCaught( ::cppu::getCaughtException() ); // it is allowed to throw WrappedTargetException diff --git a/qadevOOo/runner/helper/ContextMenuInterceptor.java b/qadevOOo/runner/helper/ContextMenuInterceptor.java index 9f1b250f8878..9ff389878d23 100644 --- a/qadevOOo/runner/helper/ContextMenuInterceptor.java +++ b/qadevOOo/runner/helper/ContextMenuInterceptor.java @@ -121,7 +121,7 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor { // do something useful // we used an invalid index for accessing a container } catch ( Exception ex ) { - // something strange has happend! + // something strange has happened! } catch ( Throwable ex ) { // catch java exceptions and do something useful } diff --git a/qadevOOo/runner/helper/URLHelper.java b/qadevOOo/runner/helper/URLHelper.java index 39cd8dc48f00..568178e4bf9b 100644 --- a/qadevOOo/runner/helper/URLHelper.java +++ b/qadevOOo/runner/helper/URLHelper.java @@ -102,7 +102,7 @@ public class URLHelper /** * Does the same as getFileURLFromSystemPath() before ... but uses - * the given protocol string (e.g."http://") insted of "file:///". + * the given protocol string (e.g."http://") instead of "file:///". * * @param aSystemPath * represent the file in system notation diff --git a/qadevOOo/tests/java/ifc/drawing/_XMasterPageTarget.java b/qadevOOo/tests/java/ifc/drawing/_XMasterPageTarget.java index d4d80d7af9e8..7cc79f4592f6 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XMasterPageTarget.java +++ b/qadevOOo/tests/java/ifc/drawing/_XMasterPageTarget.java @@ -89,7 +89,7 @@ public class _XMasterPageTarget extends MultiMethodTest{ // get the new MasterPage DrawPage = oObj.getMasterPage(); - // test the diffrent MasterPages + // test the different MasterPages if (DrawPage.equals(oOldPage)) result = false; tRes.tested("setMasterPage()",result); diff --git a/qadevOOo/tests/java/ifc/io/_XActiveDataControl.java b/qadevOOo/tests/java/ifc/io/_XActiveDataControl.java index a5e37aba6e5d..a13145edf334 100644 --- a/qadevOOo/tests/java/ifc/io/_XActiveDataControl.java +++ b/qadevOOo/tests/java/ifc/io/_XActiveDataControl.java @@ -134,7 +134,7 @@ public class _XActiveDataControl extends MultiMethodTest { oObj.start(); - // waiting a little bit for data transfered + // waiting a little bit for data transferred try { Thread.sleep(200); } catch (InterruptedException e) { diff --git a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java index 1526dc182e7f..a955158aa156 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java @@ -229,7 +229,7 @@ public class OQueryDesign extends TestCase { } // finish method getTestEnvironment private XInitialization getUnititializedObj(TestParameters Param){ - // creating an object wihch ist not initialized + // creating an object which ist not initialized // get a model of a DataSource Object oDBC = null; diff --git a/reportbuilder/java/com/sun/star/report/pentaho/SOFormulaParser.java b/reportbuilder/java/com/sun/star/report/pentaho/SOFormulaParser.java index a9b236d6fe10..3e1b623044ed 100644 --- a/reportbuilder/java/com/sun/star/report/pentaho/SOFormulaParser.java +++ b/reportbuilder/java/com/sun/star/report/pentaho/SOFormulaParser.java @@ -212,7 +212,7 @@ public final class SOFormulaParser extends ComponentBase catch (ParseException ex) { boolean found = false; - // error occured so all token must be bad + // error occurred so all token must be bad for (int i = 0; i < tokens.size(); i++) { if (!found && ex.currentToken != null && images.get(i).equals(ex.currentToken.image)) diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx index a3d0cc7a312f..3aa9267c53db 100644 --- a/reportdesign/source/filter/xml/xmlfilter.cxx +++ b/reportdesign/source/filter/xml/xmlfilter.cxx @@ -232,7 +232,7 @@ sal_Int32 ReadThroughComponent( if ( !xStorage->hasByName( sStreamName ) || !xStorage->isStreamElement( sStreamName ) ) { // stream name not found! Then try the compatibility name. - // if no stream can be opened, return immediatly with OK signal + // if no stream can be opened, return immediately with OK signal // do we even have an alternative name? if ( NULL == pCompatibilityStreamName ) diff --git a/sal/osl/w32/file_url.cxx b/sal/osl/w32/file_url.cxx index 324eca177e3f..17883641958b 100644 --- a/sal/osl/w32/file_url.cxx +++ b/sal/osl/w32/file_url.cxx @@ -1020,7 +1020,7 @@ oslFileError SAL_CALL osl_searchFileURL( WIN32_FIND_DATA aFindFileData; HANDLE hFind; - /* Somthing went wrong, perhaps the path was absolute */ + /* something went wrong, perhaps the path was absolute */ error = oslTranslateFileError( GetLastError() ); hFind = FindFirstFile( reinterpret_cast<LPCTSTR>(ustrSysPath->buffer), &aFindFileData ); diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx index 881aae509225..373994aa5dd8 100644 --- a/sal/osl/w32/module.cxx +++ b/sal/osl/w32/module.cxx @@ -376,7 +376,7 @@ typedef BOOL (WINAPI *GetModuleInformation_PROC)( DWORD cb // size of the structure ); -/* This version can fail because PSAPI.DLL is not always part of NT 4 despite MSDN Libary 6.0a say so */ +/* This version can fail because PSAPI.DLL is not always part of NT 4 despite MSDN Library 6.0a say so */ static sal_Bool SAL_CALL _osl_addressGetModuleURL_NT( void *pv, rtl_uString **pustrURL ) { diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx index b9ce821ef740..b210c2edcd05 100644 --- a/sax/source/expatwrap/sax_expat.cxx +++ b/sax/source/expatwrap/sax_expat.cxx @@ -441,7 +441,7 @@ SaxExpatParser::SaxExpatParser( ) LocatorImpl *pLoc = new LocatorImpl( m_pImpl ); m_pImpl->rDocumentLocator = Reference< XLocator > ( pLoc ); - // performance-Improvment. Reference is needed when calling the startTag callback. + // performance-improvement. Reference is needed when calling the startTag callback. // Handing out the same object with every call is allowed (see sax-specification) m_pImpl->pAttrList = new AttributeList; m_pImpl->rAttrList = Reference< XAttributeList > ( m_pImpl->pAttrList ); diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index fc27f107aab6..5cc207d4a240 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -188,7 +188,7 @@ ParserData::~ParserData() Entity::Entity( const ParserData& rData ) : ParserData( rData ) { - // performance-Improvment. Reference is needed when calling the startTag callback. + // performance-improvement. Reference is needed when calling the startTag callback. // Handing out the same object with every call is allowed (see sax-specification) mxAttributes.set( new FastAttributeList( mxTokenHandler ) ); } diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx index ac0f73dcf62c..28c574c03e72 100644 --- a/sc/source/core/data/cell2.cxx +++ b/sc/source/core/data/cell2.cxx @@ -1170,7 +1170,7 @@ void ScFormulaCell::UpdateInsertTab(SCTAB nTable, SCTAB nNewSheets) aComp2.UpdateDeleteTab( nTable, false, true, bRefChanged, nNewSheets ); bCompile = true; } - // no StartListeningTo becuase pTab[nTab] does not exsist! + // no StartListeningTo because pTab[nTab] does not exsist! } else if ( bPosChanged ) aPos.IncTab(); diff --git a/sc/source/filter/excel/xipivot.cxx b/sc/source/filter/excel/xipivot.cxx index 73dc396246b6..9305c90fede7 100644 --- a/sc/source/filter/excel/xipivot.cxx +++ b/sc/source/filter/excel/xipivot.cxx @@ -1339,7 +1339,7 @@ void XclImpPivotTable::ReadSxdi( XclImpStream& rStrm ) if( XclImpPTField* pField = GetFieldAcc( aDataInfo.mnField ) ) { maOrigDataFields.push_back( aDataInfo.mnField ); - // DataPilot does not support double data fields -> add first appearence to index list only + // DataPilot does not support double data fields -> add first appearance to index list only if( !pField->HasDataFieldInfo() ) maFiltDataFields.push_back( aDataInfo.mnField ); pField->AddDataFieldInfo( aDataInfo ); diff --git a/sc/source/filter/xml/XMLTableShapeResizer.cxx b/sc/source/filter/xml/XMLTableShapeResizer.cxx index 715acd3376f5..89c80bf6454f 100644 --- a/sc/source/filter/xml/XMLTableShapeResizer.cxx +++ b/sc/source/filter/xml/XMLTableShapeResizer.cxx @@ -95,7 +95,7 @@ void ScMyOLEFixer::CreateChartListener(ScDocument* pDoc, //for loading binary files e.g. //if we have the flat filter we need to set the dirty flag thus the visible charts get repainted - //otherwise the charts keep their first visual representation which was created at a moment where the calc itself was not loaded completly and is incorect therefor + //otherwise the charts keep their first visual representation which was created at a moment where the calc itself was not loaded completely and is incorect therefor if( (rImport.getImportFlags() & IMPORT_ALL) == IMPORT_ALL ) pCL->SetDirty( sal_True ); else diff --git a/sc/source/ui/app/seltrans.cxx b/sc/source/ui/app/seltrans.cxx index 2c200e21630e..a136deff5334 100644 --- a/sc/source/ui/app/seltrans.cxx +++ b/sc/source/ui/app/seltrans.cxx @@ -281,7 +281,7 @@ void ScSelectionTransferObj::CreateCellData() ScDrawLayer::SetGlobalDrawPersist(aDragShellRef); ScDocument* pClipDoc = new ScDocument( SCDOCMODE_CLIP ); - // bApi = sal_True -> no error mesages + // bApi = sal_True -> no error messages // #i18364# bStopEdit = sal_False -> don't end edit mode // (this may be called from pasting into the edit line) sal_Bool bCopied = pViewData->GetView()->CopyToClip( pClipDoc, false, sal_True, sal_True, false ); diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index d9d0646548b4..7173a89377aa 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -815,7 +815,7 @@ sal_Bool ScDocFunc::PutCell( const ScAddress& rPos, ScBaseCell* pNewCell, sal_Bo bool bUndo (pDoc->IsUndoEnabled()); sal_Bool bXMLLoading(pDoc->IsImportingXML()); - // #i925#; it is not neccessary to test whether the cell is editable on loading a XML document + // #i925#; it is not necessary to test whether the cell is editable on loading a XML document if (!bXMLLoading) { ScEditableTester aTester( pDoc, rPos.Tab(), rPos.Col(),rPos.Row(), rPos.Col(),rPos.Row() ); @@ -865,7 +865,7 @@ sal_Bool ScDocFunc::PutCell( const ScAddress& rPos, ScBaseCell* pNewCell, sal_Bo aModificator.SetDocumentModified(); - // #i925#; it is not neccessary to notify on loading a XML document + // #i925#; it is not necessary to notify on loading a XML document // #103934#; notify editline and cell in edit mode if (bApi && !bXMLLoading) NotifyInputHandler( rPos ); @@ -1260,7 +1260,7 @@ sal_Bool ScDocFunc::ApplyAttributes( const ScMarkData& rMark, const ScPatternAtt pUndoDoc, bMulti, &rPattern ) ); } - // While loading XML it is not neccessary to ask HasAttrib. It needs too much time. + // While loading XML it is not necessary to ask HasAttrib. It needs too much time. sal_uInt16 nExtFlags = 0; if ( !bImportingXML ) rDocShell.UpdatePaintExt( nExtFlags, aMultiRange ); // content before the change @@ -2913,7 +2913,7 @@ sal_Bool ScDocFunc::InsertTable( SCTAB nTab, const String& rName, sal_Bool bReco // Strange loop, also basic is loaded too early ( InsertTable ) - // is called via the xml import for sheets in described in odf + // is called via the xml import for sheets in described in ODF sal_Bool bInsertDocModule = false; if( !rDocShell.GetDocument()->IsImportingXML() ) diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index 5d5c99d73a1a..79d49baedcb4 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -115,7 +115,7 @@ void ScDocShell::PostPaint( const ScRangeList& rRanges, sal_uInt16 nPart, sal_uI if ( pPaintLockData ) { - // #i54081# PAINT_EXTRAS still has to be brodcast because it changes the + // #i54081# PAINT_EXTRAS still has to be broadcast because it changes the // current sheet if it's invalid. All other flags added to pPaintLockData. sal_uInt16 nLockPart = nPart & ~PAINT_EXTRAS; if ( nLockPart ) diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx index b431f938ab1c..ea2de10698be 100644 --- a/sc/source/ui/docshell/docsh5.cxx +++ b/sc/source/ui/docshell/docsh5.cxx @@ -817,7 +817,7 @@ sal_uLong ScDocShell::TransferTab( ScDocShell& rSrcDocShell, SCTAB nSrcPos, { ScDocument* pSrcDoc = rSrcDocShell.GetDocument(); - // set the transfered area to the copyparam to make adjusting formulas possible + // set the transferred area to the copyparam to make adjusting formulas possible ScClipParam aParam; ScRange aRange(0, 0, nSrcPos, MAXCOL, MAXROW, nSrcPos); aParam.maRanges.Append(aRange); diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 7c41141da0e6..fc8a4626a56d 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -1521,7 +1521,7 @@ ScChart2DataProvider::createDataSource( SAL_WNODEPRECATED_DECLARATIONS_POP Reference< chart2::data::XLabeledDataSequence > xCategories = lcl_createLabeledDataSequenceFromTokens( - pValueTokens, pLabelTokens, m_pDocument, this, m_bIncludeHiddenCells ); //ownership of pointers is transfered! + pValueTokens, pLabelTokens, m_pDocument, this, m_bIncludeHiddenCells ); //ownership of pointers is transferred! if ( xCategories.is() ) { aSeqs.push_back( xCategories ); @@ -1547,7 +1547,7 @@ ScChart2DataProvider::createDataSource( pLabelTokens.reset(pChartMap->getRowHeaderRanges(static_cast<SCROW>(i))); } Reference< chart2::data::XLabeledDataSequence > xChartSeries = lcl_createLabeledDataSequenceFromTokens( - pValueTokens, pLabelTokens, m_pDocument, this, m_bIncludeHiddenCells ); //ownership of pointers is transfered! + pValueTokens, pLabelTokens, m_pDocument, this, m_bIncludeHiddenCells ); //ownership of pointers is transferred! if ( xChartSeries.is() && xChartSeries->getValues().is() && xChartSeries->getValues()->getData().getLength() ) { aSeqs.push_back( xChartSeries ); diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index dc4d12f20035..feb3eb8bae27 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -1931,7 +1931,7 @@ uno::Reference<uno::XInterface> SAL_CALL ScModelObj::createInstance( ! ( nType == SC_SERVICE_CHDATAPROV && ( pDocShell->GetCreateMode() == SFX_CREATE_MODE_INTERNAL )); // this should never happen, i.e. the temporary document should never be - // loaded, becuase this unlinks the data + // loaded, because this unlinks the data OSL_ASSERT( bCreate ); if ( !xRet.is() && bCreate ) diff --git a/sc/source/ui/vba/vbacharacters.hxx b/sc/source/ui/vba/vbacharacters.hxx index 4cc2802272c3..57ed5fd4f658 100644 --- a/sc/source/ui/vba/vbacharacters.hxx +++ b/sc/source/ui/vba/vbacharacters.hxx @@ -37,7 +37,7 @@ private: ScVbaPalette m_aPalette; sal_Int16 nLength; sal_Int16 nStart; - // Add becuase of MSO has diferent behavior. + // Add because of MSO has diferent behavior. sal_Bool bReplace; public: ScVbaCharacters( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const ScVbaPalette& dPalette, const css::uno::Reference< css::text::XSimpleText >& xRange, const css::uno::Any& Start, const css::uno::Any& Length, sal_Bool bReplace = false ) throw ( css::lang::IllegalArgumentException ); diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 6f252763c629..a42f756b252c 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -3371,7 +3371,7 @@ ScVbaRange::Sort( const uno::Any& Key1, const uno::Any& Order1, const uno::Any& { // Documentation says xlSortRows is default but that doesn't appear to be // the case. Also it appears that xlSortColumns is the default which - // strangely enought sorts by Row + // strangely enough sorts by Row nOrientation = ::comphelper::getINT16( Orientation ); // persist new option to be next calls default if ( nOrientation == excel::XlSortOrientation::xlSortRows ) diff --git a/sc/source/ui/view/viewfun7.cxx b/sc/source/ui/view/viewfun7.cxx index 45985e354eb3..e85878959820 100644 --- a/sc/source/ui/view/viewfun7.cxx +++ b/sc/source/ui/view/viewfun7.cxx @@ -69,7 +69,7 @@ static void lcl_AdjustInsertPos( ScViewData* pData, Point& rPos, Size& rSize ) rPos.X() += x + 80; if( y < 0 ) rPos.Y() += y + 200; - rPos.X() += rSize.Width() / 2; // postition at paste is center + rPos.X() += rSize.Width() / 2; // position at paste is center rPos.Y() += rSize.Height() / 2; } @@ -190,7 +190,7 @@ void ScViewFunc::PasteDraw( const Point& rLogicPos, SdrModel* pModel, } else { - bPasteIsMove = false; // no internal move happend + bPasteIsMove = false; // no internal move happened SdrView aView(pModel); // #i71529# never create a base class of SdrView directly! SdrPageView* pPv = aView.ShowSdrPage(aView.GetModel()->GetPage(0)); diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index 91565ac23975..ebe8dd216528 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -162,7 +162,7 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( return; } - // Creates a ScriptProvider ( if one is not created allready ) + // Creates a ScriptProvider ( if one is not created already ) createScriptProvider(); Reference< provider::XScript > xFunc = diff --git a/sd/inc/sdpptwrp.hxx b/sd/inc/sdpptwrp.hxx index beb4818b0a54..0cf481ffe6b4 100644 --- a/sd/inc/sdpptwrp.hxx +++ b/sd/inc/sdpptwrp.hxx @@ -35,7 +35,7 @@ public: sal_Bool bShowProgress); virtual ~SdPPTFilter (void); - /// these methods are necassary for the export to PowerPoint + /// these methods are necessary for the export to PowerPoint sal_Bool Import(); sal_Bool Export(); diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx index 08a9191af5a7..5cf4f2c708a6 100644 --- a/sd/source/filter/xml/sdxmlwrp.cxx +++ b/sd/source/filter/xml/sdxmlwrp.cxx @@ -385,7 +385,7 @@ sal_Int32 ReadThroughComponent( if (!bContainsStream ) { // stream name not found! Then try the compatibility name. - // if no stream can be opened, return immediatly with OK signal + // if no stream can be opened, return immediately with OK signal // do we even have an alternative name? if ( NULL == pCompatibilityStreamName ) diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index bd6c094b4112..873f56affa08 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -318,7 +318,7 @@ void SdTransferable::CreateData() pNewStylePool->CopyLayoutSheets( aOldLayoutName, *pOldStylePool, aCreatedSheets ); } - // set VisArea and adjust objects if neccessary + // set VisArea and adjust objects if necessary if( maVisArea.IsEmpty() && mpSdDrawDocumentIntern && mpSdViewIntern && mpSdDrawDocumentIntern->GetPageCount() ) diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 0d06d5d15b59..c9025618ed24 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -778,7 +778,7 @@ SdDrawDocument* SdPageObjsTLB::GetBookmarkDoc(SfxMedium* pMed) if (pMed) { - // it looks that it is undefined if a Medium was set by Fill() allready + // it looks that it is undefined if a Medium was set by Fill() already DBG_ASSERT( !mpMedium, "SfxMedium confusion!" ); delete mpMedium; mpMedium = NULL; @@ -801,7 +801,7 @@ SdDrawDocument* SdPageObjsTLB::GetBookmarkDoc(SfxMedium* pMed) else if ( mpMedium ) // in this mode the document is owned and controlled by the SdDrawDocument // it can be released by calling the corresponding CloseBookmarkDoc method - // successfull creation of a document makes this the owner of the medium + // successful creation of a document makes this the owner of the medium mpBookmarkDoc = ((SdDrawDocument*) mpDoc)->OpenBookmarkDoc(*mpMedium); if ( !mpBookmarkDoc ) @@ -843,7 +843,7 @@ void SdPageObjsTLB::CloseBookmarkDoc() } else { - // perhaps mpOwnMedium provided, but no successfull creation of BookmarkDoc + // perhaps mpOwnMedium provided, but no successful creation of BookmarkDoc delete mpOwnMedium; mpOwnMedium = NULL; } diff --git a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx index 6ffba2db42c4..8b2171cdeb88 100644 --- a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx @@ -266,7 +266,7 @@ void ConfigurationUpdater::CheckUpdateSuccess (void) } else { - // Update was successfull. Reset the failed update count. + // Update was successful. Reset the failed update count. mnFailedUpdateCount = 0; } } diff --git a/sd/source/ui/slidesorter/controller/SlsHideSlideFunction.cxx b/sd/source/ui/slidesorter/controller/SlsHideSlideFunction.cxx index 666624aa5b85..f63973b09b46 100644 --- a/sd/source/ui/slidesorter/controller/SlsHideSlideFunction.cxx +++ b/sd/source/ui/slidesorter/controller/SlsHideSlideFunction.cxx @@ -131,7 +131,7 @@ HideSlideFunction::ExclusionState HideSlideFunction::GetExclusionState ( switch (eState) { case UNDEFINED: - // Use the first selected page to set the inital value. + // Use the first selected page to set the initial value. eState = bState ? EXCLUDED : INCLUDED; break; diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index d3e20cea55e9..4817f42e4e87 100644 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -1262,7 +1262,7 @@ SlideExclusionState GetSlideExclusionState (model::PageEnumeration& rPageSet) switch (eState) { case UNDEFINED: - // Use the first selected page to set the inital value. + // Use the first selected page to set the initial value. eState = bState ? EXCLUDED : INCLUDED; break; diff --git a/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx b/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx index cdb512c6cfc4..692cdd27b8ae 100644 --- a/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx +++ b/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx @@ -390,7 +390,7 @@ bool MasterPageDescriptor::AllComparator::operator() (const SharedMasterPageDesc { // Take URL, page name, style name, and page object into account // when comparing two descriptors. When two descriptors are - // identical in any of these values then their are thought of as + // identical in any of these values then there are thought of as // equivalent. Only the Origin has to be the same in both // descriptors. return diff --git a/sd/source/ui/view/drtxtob.cxx b/sd/source/ui/view/drtxtob.cxx index a32b922ed3a2..5ee3978e139e 100644 --- a/sd/source/ui/view/drtxtob.cxx +++ b/sd/source/ui/view/drtxtob.cxx @@ -367,7 +367,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) { rSet.DisableItem( SID_THES ); } - //! avoid puting the same item as SfxBoolItem at the end of this function + //! avoid putting the same item as SfxBoolItem at the end of this function nSlotId = 0; } break; diff --git a/sdext/source/pdfimport/inc/pdfparse.hxx b/sdext/source/pdfimport/inc/pdfparse.hxx index 06e222efb08d..e2051c573cd9 100644 --- a/sdext/source/pdfimport/inc/pdfparse.hxx +++ b/sdext/source/pdfimport/inc/pdfparse.hxx @@ -194,7 +194,7 @@ struct PDFDict : public PDFContainer // removes a name/value pair from the dict void eraseValue( const rtl::OString& rName ); // builds new map as of sub elements - // returns NULL if successfull, else the first offending element + // returns NULL if successful, else the first offending element PDFEntry* buildMap(); }; diff --git a/sdext/source/presenter/PresenterUIPainter.cxx b/sdext/source/presenter/PresenterUIPainter.cxx index 5666ffcd022d..4731f745877e 100644 --- a/sdext/source/presenter/PresenterUIPainter.cxx +++ b/sdext/source/presenter/PresenterUIPainter.cxx @@ -39,7 +39,7 @@ void PresenterUIPainter::PaintHorizontalBitmapComposite ( { if (PresenterGeometryHelper::AreRectanglesDisjoint(rRepaintBox, rBoundingBox)) { - // The bounding box lies completly outside the repaint area. + // The bounding box lies completely outside the repaint area. // Nothing has to be repainted. return; } @@ -141,7 +141,7 @@ void PresenterUIPainter::PaintVerticalBitmapComposite ( { if (PresenterGeometryHelper::AreRectanglesDisjoint(rRepaintBox, rBoundingBox)) { - // The bounding box lies completly outside the repaint area. + // The bounding box lies completely outside the repaint area. // Nothing has to be repainted. return; } diff --git a/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx b/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx index d56ad5e7db15..7def8af956db 100644 --- a/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx +++ b/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx @@ -90,7 +90,7 @@ extern "C" UINT __stdcall CompleteInstallPath( MSIHANDLE handle ) } // If the path INSTALLLOCATION does not end with this string, INSTALLLOCATION is maybe - // transfered from an OOo 3.0, OOo 3.1 and OOo 3.2 and need to be changed therefore. + // transferred from an OOo 3.0, OOo 3.1 and OOo 3.2 and need to be changed therefore. if ( pathCompletionRequired ) { diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index de1e79d33df5..821b0b61f7ca 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -181,7 +181,7 @@ private: try { // check the encryption data - // if the data correct is the stream will be opened successfuly + // if the data correct is the stream will be opened successfully // and immediatelly closed ::comphelper::OStorageHelper::SetCommonStorageEncryptionData( mxStorage, rEncryptionData ); @@ -457,7 +457,7 @@ void SfxApplication::NewDocDirectExec_Impl( SfxRequest& rReq ) aReq.AppendItem( SfxFrameItem( SID_DOCFRAME, GetFrame() ) ); aReq.AppendItem( SfxStringItem( SID_TARGETNAME, rtl::OUString( "_default" ) ) ); - // TODO/LATER: Should the other arguments be transfered as well? + // TODO/LATER: Should the other arguments be transferred as well? SFX_REQUEST_ARG( rReq, pDefaultPathItem, SfxStringItem, SID_DEFAULTFILEPATH, sal_False); if ( pDefaultPathItem ) aReq.AppendItem( *pDefaultPathItem ); diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index 189bb9447f91..ff36e493f19d 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -454,7 +454,7 @@ void TransformParameters( sal_uInt16 nSlotId, const ::com::sun::star::uno::Seque nSubId |= CONVERT_TWIPS; if (!pItem->PutValue( rProp.Value, nSubId ) ) { - // ... but it was not convertable + // ... but it was not convertible bRet = sal_False; #ifdef DBG_UTIL rtl::OStringBuffer aDbgStr(RTL_CONSTASCII_STRINGPARAM("Property not convertable: ")); @@ -946,7 +946,7 @@ void TransformParameters( sal_uInt16 nSlotId, const ::com::sun::star::uno::Seque #ifdef DB_UTIL if ( nFoundArgs == nCount ) { - // except for the "special" slots: assure that every argument was convertable + // except for the "special" slots: assure that every argument was convertible rtl::OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM("MacroPlayer: Some properties didn't match to any formal argument for slot: ")); aStr.append(pSlot->pUnoName); DBG_WARNING( aStr.getStr() ); @@ -1152,7 +1152,7 @@ void TransformItems( sal_uInt16 nSlotId, const SfxItemSet& rSet, ::com::sun::sta } #ifdef DBG_UTIL - // now check the itemset: is there any item that is not convertable using the list of formal arguments + // now check the itemset: is there any item that is not convertible using the list of formal arguments // or the table of additional items?! if ( rSet.Count() != nItems ) { diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index 6d3869ba729c..798da8c280fb 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -727,7 +727,7 @@ void SfxChildWindow::SetFrame( const ::com::sun::star::uno::Reference< ::com::su pImp->xListener = ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >( new DisposeListener( this, pImp ) ); // Set new frame in data container - // and build new listener connection, if neccessary. + // and build new listener connection, if necessary. pImp->xFrame = rFrame; if( pImp->xFrame.is() ) pImp->xFrame->addEventListener( pImp->xListener ); diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 8dcb7a455aa6..70edb4fdb9f2 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -1383,7 +1383,7 @@ SfxItemSet* SfxBindings::CreateSet_Impl sal_uInt16 nCachePos = pImp->nMsgPos; const SfxSlot *pSibling = pRealSlot->GetNextSlot(); - // the Slots odf a interfaces ar linked in a circle + // the Slots ODF a interfaces ar linked in a circle while ( pSibling > pRealSlot ) { SfxStateFunc pSiblingFnc=0; diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 6e81c0b31aac..4a8fa5a8224b 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -1665,7 +1665,7 @@ void SfxDispatcher::FlushImpl() if( bAwakeBindings ) aToDoCopy.clear(); - // If more changes have occured on the stach when + // If more changes have occurred on the stach when // Activate/Deactivate/Delete: if (!bFlushed) // If Push/Pop hs been called by someone, theb also EnterReg was called! diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 0fc15a822ca5..453a87aab30e 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -1097,7 +1097,7 @@ bool SfxMedium::LockOrigFileOnDemand( sal_Bool bLoading, sal_Bool bNoUI ) } catch ( const ucb::InteractiveIOException& e ) { - // exception means that the lock file can not be successfuly accessed + // exception means that the lock file can not be successfully accessed // in this case it should be ignored if system file locking is anyway active if ( bUseSystemLock || !IsOOoLockFileUsed() ) { @@ -1129,7 +1129,7 @@ bool SfxMedium::LockOrigFileOnDemand( sal_Bool bLoading, sal_Bool bNoUI ) } catch ( const uno::Exception& ) { - // exception means that the lock file can not be successfuly accessed + // exception means that the lock file can not be successfully accessed // in this case it should be ignored if system file locking is anyway active if ( bUseSystemLock || !IsOOoLockFileUsed() ) { diff --git a/sfx2/source/doc/graphhelp.cxx b/sfx2/source/doc/graphhelp.cxx index 40c6385fd2c7..c4d18c9096b1 100644 --- a/sfx2/source/doc/graphhelp.cxx +++ b/sfx2/source/doc/graphhelp.cxx @@ -350,7 +350,7 @@ sal_Bool GraphicHelper::createThumb_Impl( const GDIMetaFile& rMtf, const_cast< GDIMetaFile& >( rMtf ).WindStart(); const_cast< GDIMetaFile& >( rMtf ).Play( &aVDev, aBackPosPix, aDrawSize ); - // draw overlay if neccessary + // draw overlay if necessary if ( pOverlay ) aVDev.DrawBitmapEx( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), *pOverlay ); diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx index cafd12747a63..643d3fc414ff 100644 --- a/sfx2/source/doc/objcont.cxx +++ b/sfx2/source/doc/objcont.cxx @@ -234,7 +234,7 @@ void SfxObjectShell::UpdateTime_Impl( util::Duration editDuration(sal_False, 0, 0, 0, secs/3600, (secs%3600)/60, secs%60, 0); - // Initialize some local member! Its neccessary for wollow operations! + // Initialize some local member! Its necessary for wollow operations! DateTime aNow( DateTime::SYSTEM ); // Date and time at current moment Time n24Time (24,0,0,0) ; // Time-value for 24 hours - see follow calculation sal_uIntPtr nDays = 0 ; // Count of days between now and last editing diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 73611c25d5c4..9c4ee5aff3c2 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -707,8 +707,8 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) GetMedium()->SetUpdatePickList( sal_True ); // TODO: in future it must be done in followind way - // if document is opened from GUI it is immediatelly appeares in the picklist - // if the document is a new one then it appeares in the picklist immediatelly + // if document is opened from GUI it is immediatelly appears in the picklist + // if the document is a new one then it appears in the picklist immediatelly // after SaveAs operation triggered from GUI } catch( const task::ErrorCodeIOException& aErrorEx ) diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 6f41f7d856d9..bd862c67b5f7 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -279,7 +279,7 @@ sal_Bool SfxObjectShell::PutURLContentsToVersionStream_Impl( uno::Reference< embed::XStorage > xTempStorage = ::comphelper::OStorageHelper::GetStorageFromURL( aTempURL, embed::ElementModes::READWRITE ); - // the password will be transfered from the xStorage to xTempStorage by storage implemetation + // the password will be transferred from the xStorage to xTempStorage by storage implemetation xStorage->copyToStorage( xTempStorage ); // the temporary storage was commited by the previous method and it will die by refcount @@ -1756,7 +1756,7 @@ sal_Bool SfxObjectShell::DisconnectStorage_Impl( SfxMedium& rSrcMedium, SfxMediu // contents, the storag will be broken xOptStorage->attachToURL( aBackupURL, sal_True ); - // the storage is successfuly attached to backup, thus it it owned by the document not by the medium + // the storage is successfully attached to backup, thus it it owned by the document not by the medium rSrcMedium.CanDisposeStorage_Impl( sal_False ); bResult = sal_True; } @@ -1796,7 +1796,7 @@ sal_Bool SfxObjectShell::ConnectTmpStorage_Impl( uno::Reference< embed::XOptimizedStorage > xOptStorage( xStorage, uno::UNO_QUERY_THROW ); xOptStorage->writeAndAttachToStream( uno::Reference< io::XStream >() ); - // the storage is successfuly disconnected from the original sources, thus the medium must not dispose it + // the storage is successfully disconnected from the original sources, thus the medium must not dispose it if ( pMediumArg ) pMediumArg->CanDisposeStorage_Impl( sal_False ); diff --git a/sfx2/source/doc/printhelper.cxx b/sfx2/source/doc/printhelper.cxx index 77f89faed106..8cc782ea1082 100644 --- a/sfx2/source/doc/printhelper.cxx +++ b/sfx2/source/doc/printhelper.cxx @@ -500,7 +500,7 @@ class ImplUCBPrintWatcher : public ::osl::Thread } /* } SAFE */ - // lock for further using of our member isn't neccessary - because + // lock for further using of our member isn't necessary - because // we truns alone by defenition. Nobody join for us nor use us ... moveAndDeleteTemp(&m_pTempFile,m_sTargetURL); @@ -637,7 +637,7 @@ void SAL_CALL SfxPrintHelper::print(const uno::Sequence< beans::PropertyValue >& // reasons. Otherwhise we break to much external code ... // We try to convert it to a file URL. If its possible // we put the system path to the item set and let vcl work with it. - // No ucb or thread will be neccessary then. In case it couldnt be + // No ucb or thread will be necessary then. In case it couldnt be // converted its not an URL nor a system path. Then we can't accept // this parameter and have to throw an exception. ::rtl::OUString sSystemPath(sTemp); @@ -765,11 +765,11 @@ void SAL_CALL SfxPrintHelper::print(const uno::Sequence< beans::PropertyValue >& // Ok - may be execution before has finished (or started!) printing. // And may it was a printing to a file. - // Now we have to check if we can move the file (if neccessary) via ucb to his right location. + // Now we have to check if we can move the file (if necessary) via ucb to his right location. // Cases: // a) printing finished => move the file directly and forget the watcher thread // b) printing is asynchron and runs currently => start watcher thread and exit this method - // This thread make all neccessary things by itself. + // This thread make all necessary things by itself. if (pUCBPrintTempFile!=NULL) { // a) diff --git a/slideshow/source/engine/slide/layermanager.cxx b/slideshow/source/engine/slide/layermanager.cxx index 953fe8f5f251..d206a6e9279d 100644 --- a/slideshow/source/engine/slide/layermanager.cxx +++ b/slideshow/source/engine/slide/layermanager.cxx @@ -109,7 +109,7 @@ namespace slideshow { mbActive = true; maUpdateShapes.clear(); // update gets forced via area, or - // has happend outside already + // has happened outside already if( !bSlideBackgoundPainted ) { diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx index f2d22e50a639..0a2371c02ccf 100644 --- a/sot/source/sdstor/stgcache.cxx +++ b/sot/source/sdstor/stgcache.cxx @@ -43,7 +43,7 @@ StgPage::StgPage( short nSize, sal_Int32 nPage ) , mnSize( nSize ) { OSL_ENSURE( mnSize >= 512, "Unexpected page size is provided!" ); - // We will write this data to a permanant file later + // We will write this data to a permanent file later // best to clear if first. memset( mpData, 0, mnSize ); } diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 58dfff7685b5..124dd255dd09 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -535,7 +535,7 @@ public: SV_DECL_IMPL_REF( UCBStorage_Impl ); -// this struct contains all neccessary information on an element inside a UCBStorage +// this struct contains all necessary information on an element inside a UCBStorage struct UCBStorageElement_Impl { String m_aName; // the actual URL relative to the root "folder" @@ -1148,7 +1148,7 @@ sal_Int16 UCBStorageStream_Impl::Commit() sal_Bool UCBStorageStream_Impl::Revert() { - // if an OLEStorage is created on this stream, no "revert" is neccessary because OLEStorages do nothing on "Revert" ! + // if an OLEStorage is created on this stream, no "revert" is necessary because OLEStorages do nothing on "Revert" ! if ( m_bCommited ) { OSL_FAIL("Revert while commit is in progress!" ); @@ -2368,7 +2368,7 @@ sal_Int16 UCBStorage_Impl::Commit() return nRet; } - // after successfull root commit all elements names and types are adjusted and all removed elements + // after successful root commit all elements names and types are adjusted and all removed elements // are also removed from the lists for ( size_t i = 0; i < m_aChildrenList.size(); ) { diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 4aa4ed11ff13..c4f7c304c685 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -1256,7 +1256,7 @@ SmNode* SmCursor::FindTopMostNodeInLine(SmNode* pSNode, bool MoveUpIfSelected){ if(!pSNode) return NULL; - //Move up parent untill we find a node who's + //Move up parent until we find a node who's //parent is NULL or isn't selected and not a type of: // SmExpressionNode // SmLineNode diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index d62d5acec7c8..7d258e94b399 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -277,7 +277,7 @@ void SmDocShell::ArrangeFormula() #endif } - // if neccessary get another OutputDevice for which we format + // if necessary get another OutputDevice for which we format if (!pOutDev) { SmViewShell *pView = SmGetActiveView(); diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 2aa85599f99b..5369d2f60df4 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -2065,7 +2065,7 @@ int MathType::StartTemplate(sal_uInt16 nSelector,sal_uInt16 nVariation) //theres just no way we can now handle any character //attributes (from mathtypes perspective) centered //over an expression but above template attribute - //such as widevec and similiar constructs + //such as widevec and similar constructs //we have to drop them nPendingAttributes=0; return nOldPending; @@ -3189,7 +3189,7 @@ void MathType::HandleAttributes(SmNode *pNode,int nLevel) //theres just no way we can now handle any character //attributes (from mathtypes perspective) centered //over an expression but above template attributes - //such as widevec and similiar constructs + //such as widevec and similar constructs //we have to drop them nOldPending = StartTemplate(0x2f,0x01); break; diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 3e0ddb208246..37c7a9935e01 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -1080,7 +1080,7 @@ void SmRootNode::Arrange(const OutputDevice &rDev, const SmFormat &rFormat) pRootSym->Arrange(rDev, rFormat); Point aPos = pRootSym->AlignTo(*pBody, RP_LEFT, RHA_CENTER, RVA_BASELINE); - //! overrride calulated vertical position + //! overrride calculated vertical position aPos.Y() = pRootSym->GetTop() + pBody->GetBottom() - pRootSym->GetBottom(); aPos.Y() -= nVerOffset; pRootSym->MoveTo(aPos); diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx index b0380c37207e..1472dd604e2d 100644 --- a/stoc/source/invocation_adapterfactory/iafactory.cxx +++ b/stoc/source/invocation_adapterfactory/iafactory.cxx @@ -225,7 +225,7 @@ static inline void constructRuntimeException( uno_Any * pExc, const OUString & rMsg ) { RuntimeException exc( rMsg, Reference< XInterface >() ); - // no conversion neeeded due to binary compatibility + no convertable type + // no conversion needed due to binary compatibility + no convertible type ::uno_type_any_construct( pExc, &exc, ::getCppuType( &exc ).getTypeLibType(), 0 ); } diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index d105f344aa9e..03811aba78a6 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -869,7 +869,7 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) { //If the creation failed because the JRE has been uninstalled then //we search another one. As long as there is a javaldx, we should - //never come into this situation. javaldx checks alway if the JRE + //never come into this situation. javaldx checks always if the JRE //still exist. JavaInfo * pJavaInfo = NULL; if (JFW_E_NONE == jfw_getSelectedJRE(&pJavaInfo)) diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index d5adf88b7555..87fb54df6b05 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -3333,7 +3333,7 @@ void ImpSvNumberInputScan::ChangeNullDate( const sal_uInt16 Day, bool ImpSvNumberInputScan::IsNumberFormat( const OUString& rString, // string to be analyzed short& F_Type, // IN: old type, OUT: new type - double& fOutNumber, // OUT: number if convertable + double& fOutNumber, // OUT: number if convertible const SvNumberformat* pFormat ) // maybe a number format to match against { OUString aString; diff --git a/svtools/source/config/test/test.cxx b/svtools/source/config/test/test.cxx index 7312a5f37eb5..fa676c6d6402 100644 --- a/svtools/source/config/test/test.cxx +++ b/svtools/source/config/test/test.cxx @@ -103,7 +103,7 @@ void TestApplication::Main() // Init global servicemanager and set it for external services. ::comphelper::setProcessServiceFactory( TestApplication::getUNOServiceManager() ); - // Control sucess of operation. + // Control success of operation. OSL_ENSURE( !(::comphelper::getProcessServiceFactory()!=TestApplication::getUNOServiceManager()), "TestApplication::Main()\nGlobal servicemanager not right initialized.\n" ); /**-*********************************************************************************************************** diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index 3d85f3e1e4df..c0c84718a4d1 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -834,7 +834,7 @@ void AssignmentPersistentData::Commit() WaitObject aWaitCursor(this); - // no matter what we do here, we handled the currently selected data source (no matter if successfull or not) + // no matter what we do here, we handled the currently selected data source (no matter if successful or not) m_aDatasource.SaveValue(); // create an interaction handler (may be needed for connecting) @@ -937,7 +937,7 @@ void AssignmentPersistentData::Commit() { WaitObject aWaitCursor(this); - // no matter what we do here, we handled the currently selected table (no matter if successfull or not) + // no matter what we do here, we handled the currently selected table (no matter if successful or not) m_aDatasource.SaveValue(); String sSelectedTable = m_aTable.GetText(); diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx index 329e34d88848..6439ff7b37c4 100644 --- a/svtools/source/graphic/grfmgr2.cxx +++ b/svtools/source/graphic/grfmgr2.cxx @@ -943,11 +943,11 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOutputDevice, if( bRet ) { - // Attribute adjustment if neccessary + // Attribute adjustment if necessary if( rAttributes.IsSpecialDrawMode() || rAttributes.IsAdjusted() || rAttributes.IsTransparent() ) ImplAdjust( aOutBmpEx, rAttributes, ADJUSTMENT_DRAWMODE | ADJUSTMENT_COLORS | ADJUSTMENT_TRANSPARENCY ); - // OutDev adjustment if neccessary + // OutDev adjustment if necessary if( pOutputDevice->GetOutDevType() != OUTDEV_PRINTER && pOutputDevice->GetBitCount() <= 8 && aOutBmpEx.GetBitCount() >= 8 ) aOutBmpEx.Dither( BMP_DITHER_MATRIX ); } diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index 68232e5db2a4..14444e4417c0 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -1061,7 +1061,7 @@ int HTMLParser::_GetNextToken() if (!maOptions.empty()) maOptions.clear(); - if( !IsParserWorking() ) // Don't continue if already an error occured + if( !IsParserWorking() ) // Don't continue if already an error occurred return 0; bool bReadNextCharSave = bReadNextChar; @@ -1070,7 +1070,7 @@ int HTMLParser::_GetNextToken() DBG_ASSERT( !bEndTokenFound, "Read a character despite </SCRIPT> was read?" ); nNextCh = GetNextChar(); - if( !IsParserWorking() ) // Don't continue if already an error occured + if( !IsParserWorking() ) // Don't continue if already an error occurred return 0; bReadNextChar = false; } diff --git a/svtools/source/svrtf/svparser.cxx b/svtools/source/svrtf/svparser.cxx index d44359764ead..5f2bcba9750c 100644 --- a/svtools/source/svrtf/svparser.cxx +++ b/svtools/source/svrtf/svparser.cxx @@ -244,7 +244,7 @@ sal_Unicode SvParser::GetNextChar() &nInfo, &nCvtBytes); if( (nInfo&RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL) != 0 ) { - // The conversion wasn't successfull because we haven't + // The conversion wasn't successful because we haven't // read enough characters. if( pImplData->hContext != (rtl_TextToUnicodeContext)1 ) { @@ -333,7 +333,7 @@ sal_Unicode SvParser::GetNextChar() } else if( 1 == nChars && 0 == nInfo ) { - // The conversion was successfull + // The conversion was successful DBG_ASSERT( nCvtBytes == 1, "no all bytes have been converted!" ); c = cUC; diff --git a/svtools/source/uno/genericunodialog.cxx b/svtools/source/uno/genericunodialog.cxx index f1263221c8c6..870fffb71fc2 100644 --- a/svtools/source/uno/genericunodialog.cxx +++ b/svtools/source/uno/genericunodialog.cxx @@ -227,7 +227,7 @@ sal_Int16 SAL_CALL OGenericUnoDialog::execute( ) throw(RuntimeException) SolarMutexGuard aSolarGuard; Dialog* pDialogToExecute = NULL; - // create the dialog, if neccessary + // create the dialog, if necessary { UnoDialogEntryGuard aGuard( *this ); diff --git a/svx/inc/svx/sdr/primitive2d/sdrtextprimitive2d.hxx b/svx/inc/svx/sdr/primitive2d/sdrtextprimitive2d.hxx index 0ed40cb8277e..37264692f2d8 100644 --- a/svx/inc/svx/sdr/primitive2d/sdrtextprimitive2d.hxx +++ b/svx/inc/svx/sdr/primitive2d/sdrtextprimitive2d.hxx @@ -52,7 +52,7 @@ namespace drawinglayer // COW) and in exclusive, local form as needed in a primitive const OutlinerParaObject maOutlinerParaObject; - // remeber last VisualizingPage for which a decomposition was made. If the new target + // remember last VisualizingPage for which a decomposition was made. If the new target // is not given or different, the decomposition needs to be potentially removed // for supporting e.g. page number change on MasterPage objects or the different // field renderings in SubGeometry and MasterPage mnode diff --git a/svx/inc/svx/svdmodel.hxx b/svx/inc/svx/svdmodel.hxx index b2a84afd19d8..739028db0d3f 100644 --- a/svx/inc/svx/svdmodel.hxx +++ b/svx/inc/svx/svdmodel.hxx @@ -559,7 +559,7 @@ public: void SetUndoComment(const String& rComment); void SetUndoComment(const String& rComment, const String& rObjDescr); - // Das Undo-Managment findet nur statt, wenn kein NotifyUndoAction-Handler + // Das Undo-Management findet nur statt, wenn kein NotifyUndoAction-Handler // gesetzt ist. // Default ist 16. Minimaler MaxUndoActionCount ist 1! void SetMaxUndoActionCount(sal_uIntPtr nAnz); diff --git a/svx/inc/svx/svdobj.hxx b/svx/inc/svx/svdobj.hxx index 8241ed461e52..75cc0e482a45 100644 --- a/svx/inc/svx/svdobj.hxx +++ b/svx/inc/svx/svdobj.hxx @@ -596,7 +596,7 @@ public: // #111111# // To make clearer that this method may trigger RecalcBoundRect and thus may be - // expensive and somtimes problematic (inside a bigger object change You will get + // expensive and sometimes problematic (inside a bigger object change You will get // non-useful BoundRects sometimes) i rename that method from GetBoundRect() to // GetCurrentBoundRect(). virtual const Rectangle& GetCurrentBoundRect() const; diff --git a/svx/inc/svx/svdpntv.hxx b/svx/inc/svx/svdpntv.hxx index 03786828afbb..761f203867e0 100644 --- a/svx/inc/svx/svdpntv.hxx +++ b/svx/inc/svx/svdpntv.hxx @@ -362,7 +362,7 @@ public: // #i72889# used from CompleteRedraw() implementation internally, added to be able to do a complete redraw in single steps // - // BeginCompleteRedraw returns (or even creates) a SdrPaintWindow whcih shall then be used as + // BeginCompleteRedraw returns (or even creates) a SdrPaintWindow which shall then be used as // target for paints. Since paints may be buffered, use it's GetTargetOutputDevice() method which will // return the buffer in case of bufered. // DoCompleteRedraw draws the DrawingLayer hierarchy then. diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx index f4f237bc451f..0122f325b790 100644 --- a/svx/source/accessibility/AccessibleShape.cxx +++ b/svx/source/accessibility/AccessibleShape.cxx @@ -146,7 +146,7 @@ void AccessibleShape::Init (void) static_cast<document::XEventListener*>(this)); // Beware! Here we leave the paths of the UNO API and descend into the - // depths of the core. Necessary for makeing the edit engine + // depths of the core. Necessary for making the edit engine // accessible. Reference<text::XText> xText (mxShape, uno::UNO_QUERY); if (xText.is()) diff --git a/svx/source/accessibility/svxrectctaccessiblecontext.cxx b/svx/source/accessibility/svxrectctaccessiblecontext.cxx index 33354e7b9e01..2d240b6987a4 100644 --- a/svx/source/accessibility/svxrectctaccessiblecontext.cxx +++ b/svx/source/accessibility/svxrectctaccessiblecontext.cxx @@ -1122,7 +1122,7 @@ Rectangle SvxRectCtlChildAccessibleContext::GetBoundingBoxOnScreen( void ) throw Rectangle SvxRectCtlChildAccessibleContext::GetBoundingBox( void ) throw( RuntimeException ) { - // no guard neccessary, because no one changes mpBoundingBox after creating it + // no guard necessary, because no one changes mpBoundingBox after creating it ThrowExceptionIfNotAlive(); return *mpBoundingBox; diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx index c7d099597530..e0089ed13e03 100644 --- a/svx/source/engine3d/float3d.cxx +++ b/svx/source/engine3d/float3d.cxx @@ -1743,7 +1743,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs ) rAttrs.InvalidateItem(SDRATTR_3DSCENE_PERSPECTIVE); // Geometry - // Possible determine PoolUnit (in this case this haas not happend in Update() ) + // Possible determine PoolUnit (in this case this has not happened in Update() ) if( !mpImpl->pPool ) { OSL_FAIL( "No Pool in GetAttr()! May be incompatible to drviewsi.cxx ?" ); diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 28564d922e3b..282cbde3e53a 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -1599,7 +1599,7 @@ void DbFormattedField::updateFromModel( Reference< XPropertySet > _rxModel ) OUString sText; Any aValue = _rxModel->getPropertyValue( FM_PROP_EFFECTIVE_VALUE ); if ( aValue >>= sText ) - { // our effective value is transfered as string + { // our effective value is transferred as string pFormattedWindow->SetTextFormatted( sText ); pFormattedWindow->SetSelection( Selection( SELECTION_MAX, SELECTION_MIN ) ); } diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index d6434e18e76f..46e3ac79b493 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -1303,7 +1303,7 @@ sal_uInt16 DbGridControl::SetOptions(sal_uInt16 nOpt) } else nNewMode &= ~BROWSER_HIDECURSOR; - // should not be neccessary if EnablePermanentCursor is used to change the cursor behaviour, but to be sure ... + // should not be necessary if EnablePermanentCursor is used to change the cursor behaviour, but to be sure ... if (nNewMode != m_nMode) { @@ -1608,7 +1608,7 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, sal_uInt // there are rows so go to the selected current column if (nRecordCount) GoToRowColumnId(0, GetColumnId(nCurPos)); - // else stop the editing if neccessary + // else stop the editing if necessary else if (IsEditing()) DeactivateCell(); diff --git a/svx/source/form/fmPropBrw.cxx b/svx/source/form/fmPropBrw.cxx index 29337638e2f5..77ad8ff33801 100644 --- a/svx/source/form/fmPropBrw.cxx +++ b/svx/source/form/fmPropBrw.cxx @@ -216,7 +216,7 @@ FmPropBrw::FmPropBrw( const Reference< XMultiServiceFactory >& _xORB, SfxBinding { // create an intermediate window, which is to be the container window of the frame // Do *not* use |this| as container window for the frame, this would result in undefined - // responsiblity for this window (as soon as we initialize a frame with a window, the frame + // responsibility for this window (as soon as we initialize a frame with a window, the frame // is responsible for it's life time, but |this| is controlled by the belonging SfxChildWindow) // #i34249# Window* pContainerWindow = new Window( this ); diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx index 82bcd0c917b8..609cb0c2b2d4 100644 --- a/svx/source/form/fmobj.cxx +++ b/svx/source/form/fmobj.cxx @@ -283,7 +283,7 @@ void FmFormObj::SetPage(SdrPage* _pNewPage) Reference< XFormComponent > xMeAsFormComp(GetUnoControlModel(), UNO_QUERY); if (xMeAsFormComp.is()) { - // check if I have another parent (and remove me, if neccessary) + // check if I have another parent (and remove me, if necessary) Reference< XIndexContainer > xOldParent(xMeAsFormComp->getParent(), UNO_QUERY); if (xOldParent.is()) { @@ -459,7 +459,7 @@ Reference< XInterface > FmFormObj::ensureModelEnv(const Reference< XInterface > Reference< XInterface > xTopLevelSouce; rtl::OUString sAccessPath = lcl_getFormComponentAccessPath(_rSourceContainer, xTopLevelSouce); if (!xTopLevelSouce.is()) - // somthing went wrong, maybe _rSourceContainer isn't part of a valid forms hierarchy + // something went wrong, maybe _rSourceContainer isn't part of a valid forms hierarchy return Reference< XInterface > (); Reference< XIndexContainer > xDestContainer(_rTopLevelDestContainer); diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index ccea97a79137..bfadea866f24 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -3546,7 +3546,7 @@ void FmXFormShell::CreateExternalView() "FmXFormShell::CreateExternalView : inconsistent radio descriptions !"); sal_Int16 nPosition = (*aOffset).second; nPosition = nPosition + nOffset; - // we alread inserted nOffset additinal columns .... + // we already inserted nOffset additional columns .... pDispatchArgs->Value <<= nPosition; ++pDispatchArgs; diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx index 8dbd5ff20161..50e3a6455c93 100644 --- a/svx/source/form/formcontroller.cxx +++ b/svx/source/form/formcontroller.cxx @@ -3127,7 +3127,7 @@ void FormController::setFilter(::std::vector<FmFieldInfo>& rFieldInfos) Sequence < PropertyValue> aLevel; Sequence< Sequence < PropertyValue > > aFilterRows = m_xComposer->getStructuredFilter(); - // ok, we recieve the list of filters as sequence of fieldnames, value + // ok, we receive the list of filters as sequence of fieldnames, value // now we have to transform the fieldname into UI names, that could be a label of the field or // a aliasname or the fieldname itself diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index 1a095492739d..3db3a8a88964 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -408,7 +408,7 @@ bool GalleryTheme::InsertObject( const SgaObject& rObj, sal_uIntPtr nInsertPos ) { GalleryObject aNewEntry; - // update title of new object if neccessary + // update title of new object if necessary if( !rObj.GetTitle().Len() ) { SgaObject* pOldObj = ImplReadSgaObject( pFoundEntry ); diff --git a/svx/source/sdr/event/eventhandler.cxx b/svx/source/sdr/event/eventhandler.cxx index 8a3cd8a37608..ae01f9946614 100644 --- a/svx/source/sdr/event/eventhandler.cxx +++ b/svx/source/sdr/event/eventhandler.cxx @@ -19,7 +19,7 @@ #include <svx/sdr/event/eventhandler.hxx> -// for SOLARIS compiler include of algorithm part of _STL is necesary to +// for SOLARIS compiler include of algorithm part of _STL is necessary to // get access to basic algos like ::std::find #include <algorithm> #include <tools/debug.hxx> diff --git a/svx/source/sdr/overlay/overlayobjectlist.cxx b/svx/source/sdr/overlay/overlayobjectlist.cxx index 684dd09caf4d..4907198d7d0c 100644 --- a/svx/source/sdr/overlay/overlayobjectlist.cxx +++ b/svx/source/sdr/overlay/overlayobjectlist.cxx @@ -23,7 +23,7 @@ #include <basegfx/matrix/b2dhommatrix.hxx> #include <tools/gen.hxx> -// for SOLARIS compiler include of algorithm part of _STL is necesary to +// for SOLARIS compiler include of algorithm part of _STL is necessary to // get access to basic algos like ::std::find #include <algorithm> diff --git a/svx/source/table/tablemodel.cxx b/svx/source/table/tablemodel.cxx index 65c8279d545f..e0c9635f6676 100644 --- a/svx/source/table/tablemodel.cxx +++ b/svx/source/table/tablemodel.cxx @@ -1018,7 +1018,7 @@ TableColumnRef TableModel::getColumn( sal_Int32 nColumn ) const throw (IndexOutO // ----------------------------------------------------------------------------- -/** deletes rows and columns that are completly merged. Must be called between BegUndo/EndUndo! */ +/** deletes rows and columns that are completely merged. Must be called between BegUndo/EndUndo! */ void TableModel::optimize() { TableModelNotifyGuard aGuard( this ); diff --git a/svx/source/table/tablemodel.hxx b/svx/source/table/tablemodel.hxx index 9aabdfa8bffa..44577f8dc92a 100644 --- a/svx/source/table/tablemodel.hxx +++ b/svx/source/table/tablemodel.hxx @@ -85,7 +85,7 @@ public: SdrTableObj* getSdrTableObj() const { return mpTableObj; } - /** deletes rows and columns that are completly merged. Must be called between BegUndo/EndUndo! */ + /** deletes rows and columns that are completely merged. Must be called between BegUndo/EndUndo! */ void optimize(); /// merges the cell at the given position with the given span diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index a97ebd6790d6..5ac2fe32496f 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -763,7 +763,7 @@ sal_Bool GetDocFontList_Impl( const FontList** ppFontList, SvxFontNameBox_Impl* pBox->Disable(); } - // Fill the FontBox, also the new list if neccessary + // Fill the FontBox, also the new list if necessary if ( pBox && bChanged ) { if ( *ppFontList ) @@ -1935,7 +1935,7 @@ void SvxStyleToolBoxControl::FillStyleBox() pStyleSheetPool->SetSearchMask( eFamily, SFXSTYLEBIT_USED ); - // Check whether fill is neccessary + // Check whether fill is necessary pStyle = pStyleSheetPool->First(); //!!! TODO: This condition isn't right any longer, because we always show some default entries //!!! so the list doesn't show the count diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx index bd309045b420..43abdb36885c 100644 --- a/sw/source/core/access/acccell.cxx +++ b/sw/source/core/access/acccell.cxx @@ -115,7 +115,7 @@ sal_Bool SwAccessibleCell::_InvalidateMyCursorPos() if( bNew ) { // remember that object as the one that has the caret. This is - // neccessary to notify that object if the cursor leaves it. + // necessary to notify that object if the cursor leaves it. ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); } diff --git a/sw/source/core/access/accframebase.cxx b/sw/source/core/access/accframebase.cxx index 3cad92b75756..c688991413f5 100644 --- a/sw/source/core/access/accframebase.cxx +++ b/sw/source/core/access/accframebase.cxx @@ -148,7 +148,7 @@ void SwAccessibleFrameBase::_InvalidateCursorPos() if( bNewSelected ) { // remember that object as the one that has the caret. This is - // neccessary to notify that object if the cursor leaves it. + // necessary to notify that object if the cursor leaves it. ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); } diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 6938c0106257..3a50c9f758a0 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -924,7 +924,7 @@ void SwAccessibleMap::AppendEvent( const SwAccessibleEvent_Impl& rEvent ) break; case SwAccessibleEvent_Impl::DISPOSE: // DISPOSE events overwrite all others. They are not stored - // but executed immediatly to avoid broadcasting of + // but executed immediately to avoid broadcasting of // defunctional objects. So what needs to be done here is to // remove all events for the frame in question. bAppendEvent = false; @@ -1439,7 +1439,7 @@ uno::Reference< XAccessible> SwAccessibleMap::GetContext( const SwFrm *pFrm, // focused state then. Sending the focus changes event // after that seems to be strange. However, we cannot // send a focus event fo the new context now, because - // noone except us knows it. In any case, we remeber + // noone except us knows it. In any case, we remember // the new context as the one that has the focus // currently. diff --git a/sw/source/core/access/accpage.cxx b/sw/source/core/access/accpage.cxx index a89fd015b9b3..861e557bbb50 100644 --- a/sw/source/core/access/accpage.cxx +++ b/sw/source/core/access/accpage.cxx @@ -80,7 +80,7 @@ void SwAccessiblePage::_InvalidateCursorPos() if( bNewSelected ) { // remember that object as the one that has the caret. This is - // neccessary to notify that object if the cursor leaves it. + // necessary to notify that object if the cursor leaves it. ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); } diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 1a1d6396075e..c4df0e2d3b6a 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -426,7 +426,7 @@ void SwAccessibleParagraph::_InvalidateCursorPos() if( -1 != nNew ) { // remember that object as the one that has the caret. This is - // neccessary to notify that object if the cursor leaves it. + // necessary to notify that object if the cursor leaves it. ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); } diff --git a/sw/source/core/access/accpara.hxx b/sw/source/core/access/accpara.hxx index 4d00f25a67e5..56b43f503830 100644 --- a/sw/source/core/access/accpara.hxx +++ b/sw/source/core/access/accpara.hxx @@ -168,7 +168,7 @@ protected: /// remove the current portion data void ClearPortionData(); - /// get portion data; update if necesary + /// get portion data; update if necessary SwAccessiblePortionData& GetPortionData() throw( com::sun::star::uno::RuntimeException ) { diff --git a/sw/source/core/bastyp/swrect.cxx b/sw/source/core/bastyp/swrect.cxx index b15b2f6f9ba5..40db66c52168 100644 --- a/sw/source/core/bastyp/swrect.cxx +++ b/sw/source/core/bastyp/swrect.cxx @@ -150,7 +150,7 @@ void SwRect::Justify() } } -// Similiar to the inline methods, but we need the function pointers +// Similar to the inline methods, but we need the function pointers void SwRect::_Width( const long nNew ) { m_Size.setWidth(nNew); } void SwRect::_Height( const long nNew ) { m_Size.setHeight(nNew); } void SwRect::_Left( const long nLeft ){ m_Size.Width() += m_Point.getX() - nLeft; m_Point.setX(nLeft); } diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index 371426d7b255..c6a5c444c85f 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -1190,7 +1190,7 @@ sal_uInt16 _PostItFld::GetPageNo( //by more than one layout instance, //we have to decide whether it should be printed once or n-times. //Probably only once. For the page number we don't select a random one, - //but the PostIt's first occurence in the selected area. + //but the PostIt's first occurrence in the selected area. rVirtPgNo = 0; sal_uInt16 nPos = GetCntnt(); SwIterator<SwTxtFrm,SwTxtNode> aIter( GetFld()->GetTxtNode() ); diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx index 65022fac1689..3fd38389ba66 100644 --- a/sw/source/core/doc/doccomp.cxx +++ b/sw/source/core/doc/doccomp.cxx @@ -1598,7 +1598,7 @@ void SwCompareData::CheckForChangesInLine( const CompareData& rData, int nDstFrom = i ? pLcsDst[i - 1] + 1 : 0; // End of inserted lines (exclusive) int nDstTo = ( i == nLcsLen ) ? aCmp.GetLen1() : pLcsDst[i]; - // Begining of deleted lines (inclusive) + // Beginning of deleted lines (inclusive) int nSrcFrom = i ? pLcsSrc[i - 1] + 1 : 0; // End of deleted lines (exclusive) int nSrcTo = ( i == nLcsLen ) ? aCmp.GetLen2() : pLcsSrc[i]; diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index 9c613e0011f6..903a7bce00d6 100644 --- a/sw/source/core/doc/doctxm.cxx +++ b/sw/source/core/doc/doctxm.cxx @@ -1702,7 +1702,7 @@ void SwTOXBaseSection::GenerateText( sal_uInt16 nArrayIdx, case TOKEN_PAGE_NUMS: // Place holder for the PageNumber; we only respect the first one { - // The count of similiar entries gives the PagerNumber pattern + // The count of similar entries gives the PagerNumber pattern size_t nSize = rBase.aTOXSources.size(); if (nSize > 0) { diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index 41a29a5c0a51..065bb3fe6ccb 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -1163,7 +1163,7 @@ void SwSectionNode::MakeFrms(const SwNodeIndex & rIdx ) } } -// Create a new SectionFrm for every occurence in the Layout and insert before +// Create a new SectionFrm for every occurrence in the Layout and insert before // the corresponding CntntFrm void SwSectionNode::MakeFrms( SwNodeIndex* pIdxBehind, SwNodeIndex* pEndIdx ) { diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx index 016b1cdd00a4..7564b283d3f7 100644 --- a/sw/source/core/draw/dflyobj.cxx +++ b/sw/source/core/draw/dflyobj.cxx @@ -626,7 +626,7 @@ void SwVirtFlyDrawObj::NbcMove(const Size& rSiz) const sal_Int16 eVert = pFmt->GetVertOrient().GetVertOrient(); const sal_Int16 eRelHori = pFmt->GetHoriOrient().GetRelationOrient(); const sal_Int16 eRelVert = pFmt->GetVertOrient().GetRelationOrient(); - //On paragraph bound Flys starting from the new postition a new + //On paragraph bound Flys starting from the new position a new //anchor must be set. Anchor and the new RelPos is calculated and //placed by the Fly itself. if( GetFlyFrm()->IsFlyAtCntFrm() ) diff --git a/sw/source/core/layout/flylay.cxx b/sw/source/core/layout/flylay.cxx index 5da50365be74..e9522c1de9cd 100644 --- a/sw/source/core/layout/flylay.cxx +++ b/sw/source/core/layout/flylay.cxx @@ -996,7 +996,7 @@ sal_Bool CalcClipRect( const SdrObject *pSdrObj, SwRect &rRect, sal_Bool bMove ) rRect = pClip->Frm(); SWRECTFN( pClip ) - // vertical clipping: Top and Bottom, also to PrtArea if neccessary + // vertical clipping: Top and Bottom, also to PrtArea if necessary if( rV.GetVertOrient() != text::VertOrientation::NONE && rV.GetRelationOrient() == text::RelOrientation::PRINT_AREA ) { diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 3e9a642606e1..6643a29eaa39 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -2449,7 +2449,7 @@ void SwTabFrm::MakeAll() } // #119477# - // If splitting the table was successfull or not, + // If splitting the table was successful or not, // we do not want to have 'empty' follow tables. if ( GetFollow() && !GetFollow()->GetFirstNonHeadlineRow() ) Join(); diff --git a/sw/source/core/table/swnewtable.cxx b/sw/source/core/table/swnewtable.cxx index ad4eec6dd668..23edc85fee3f 100644 --- a/sw/source/core/table/swnewtable.cxx +++ b/sw/source/core/table/swnewtable.cxx @@ -257,7 +257,7 @@ static void lcl_ChangeRowSpan( const SwTable& rTable, const long nDiff, do { bGoOn = false; // will be set to true if we found a non-master cell - // which has to be manipulated => we have to chekc the previous row, too. + // which has to be manipulated => we have to check the previous row, too. const SwTableLine* pLine = rTable.GetTabLines()[ nRowIdx ]; sal_uInt16 nBoxCount = pLine->GetTabBoxes().size(); for( sal_uInt16 nCurrBox = 0; nCurrBox < nBoxCount; ++nCurrBox ) diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 3eb2267660b1..ef21551566b1 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -2473,7 +2473,7 @@ MSHORT SwTxtFrm::GetLineCount( xub_StrLen nPos ) void SwTxtFrm::ChgThisLines() { - //not necassary to format here (GerFormatted etc.), because we have to come from there! + //not necessary to format here (GerFormatted etc.), because we have to come from there! sal_uLong nNew = 0; const SwLineNumberInfo &rInf = GetNode()->getIDocumentLineNumberAccess()->GetLineNumberInfo(); diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx index 20015fa23d93..fb4f5236b512 100644 --- a/sw/source/core/txtnode/fntcache.cxx +++ b/sw/source/core/txtnode/fntcache.cxx @@ -2567,7 +2567,7 @@ sal_Bool SwDrawTextInfo::ApplyAutoColor( Font* pFont ) !SW_MOD()->GetAccessibilityOptions().GetIsForPagePreviews()) nNewColor = COL_BLACK; else - // we take the font color from the appearence page + // we take the font color from the appearance page nNewColor = SwViewOption::GetFontColor().GetColor(); } diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx index 3dd50c5496dc..8a194d009b57 100644 --- a/sw/source/core/undo/unattr.cxx +++ b/sw/source/core/undo/unattr.cxx @@ -180,7 +180,7 @@ void SwUndoFmtAttr::UndoImpl(::sw::UndoRedoContext & rContext) if ( !m_pOldSet.get() || !m_pFmt || !IsFmtInDoc( &rContext.GetDoc() )) return; - // #i35443# - If anchor attribute has been successfull + // #i35443# - If anchor attribute has been successful // restored, all other attributes are also restored. // Thus, keep track of its restoration bool bAnchorAttrRestored( false ); @@ -189,7 +189,7 @@ void SwUndoFmtAttr::UndoImpl(::sw::UndoRedoContext & rContext) bAnchorAttrRestored = RestoreFlyAnchor(rContext); if ( bAnchorAttrRestored ) { - // Anchor attribute successfull restored. + // Anchor attribute successful restored. // Thus, keep anchor position for redo SaveFlyAnchor(); } diff --git a/sw/source/core/undo/undobj1.cxx b/sw/source/core/undo/undobj1.cxx index 5ca6b4c7a524..b2791fae0930 100644 --- a/sw/source/core/undo/undobj1.cxx +++ b/sw/source/core/undo/undobj1.cxx @@ -102,7 +102,7 @@ void SwUndoFlyBase::InsFly(::sw::UndoRedoContext & rContext, bool bShowSelFrm) // Set InCntntAttribute not until there is content! // Otherwise the layout would format the Fly beforehand but would not find - // content; this happend with graphics from the internet. + // content; this happened with graphics from the internet. if (FLY_AS_CHAR == nRndId) { // there must be at least the attribute in a TextNode diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index 9651d91c785f..f2e0bd062cef 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -1620,7 +1620,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) { // todo: if the start/end is in a table then insert a paragraph // before/after, move the start/end nodes, then convert and - // remove the addtional paragraphs in the end + // remove the additional paragraphs in the end if (pStartStartNode->GetStartNodeType() == SwTableBoxStartNode) { SwTableNode * pStartTableNode(pStartStartNode->FindTableNode()); diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index c048e3eb053c..48113a6a02cb 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -3006,7 +3006,7 @@ void SwHTMLParser::EndAttr( _HTMLAttr* pAttr, _HTMLAttr **ppDepAttr, OSL_ENSURE( ppHead, "keinen Attributs-Listenkopf gefunden!" ); - // die aktuelle Psoition als Ende-Position merken + // die aktuelle Position als Ende-Position merken const SwNodeIndex* pEndIdx = &pPam->GetPoint()->nNode; xub_StrLen nEndCnt = pPam->GetPoint()->nContent.GetIndex(); @@ -5213,7 +5213,7 @@ void SwHTMLParser::InsertLineBreak() } else if( pPam->GetPoint()->nContent.GetIndex() ) { - // wenn ein Claer in einem nicht-leeren Absatz ausgefuehrt wurde, + // wenn ein clear in einem nicht-leeren Absatz ausgefuehrt wurde, // muss anschliessen ein neuer Absatz aufgemacht werden // MIB 21.02.97: Eigentlich muesste man hier den unteren Absatz- // Absatnd auf 0 drehen. Das geht aber bei sowas wie <BR ..><P> diff --git a/sw/source/filter/html/wrthtml.cxx b/sw/source/filter/html/wrthtml.cxx index 0da5a9af7f1c..fc9181df08f0 100644 --- a/sw/source/filter/html/wrthtml.cxx +++ b/sw/source/filter/html/wrthtml.cxx @@ -694,7 +694,7 @@ static Writer& OutHTML_Section( Writer& rWrt, const SwSectionNode& rSectNd ) } // The surrounding section must be closed before the current one is - // opended, except that it start immediatly before the current one or + // opended, except that it start immediately before the current one or // another end immediately before the current one if( pSurrCol && nSectSttIdx - pSurrSectNd->GetIndex() > 1 && !lcl_html_IsMultiColEnd( rHTMLWrt, nSectSttIdx-1 ) ) diff --git a/sw/source/filter/writer/wrtswtbl.cxx b/sw/source/filter/writer/wrtswtbl.cxx index c78d006ba4f1..7a1123d169d3 100644 --- a/sw/source/filter/writer/wrtswtbl.cxx +++ b/sw/source/filter/writer/wrtswtbl.cxx @@ -541,7 +541,7 @@ void SwWriteTable::FillTableRowsCols( long nStartRPos, sal_uInt16 nStartRow, { const SwTableLine *pLine = rLines[nLine]; - // Determine the postition of the last covered row + // Determine the position of the last covered row long nOldRPos = nRPos; if( nLine < nLines-1 || nParentLineHeight==0 ) { @@ -629,7 +629,7 @@ void SwWriteTable::FillTableRowsCols( long nStartRPos, sal_uInt16 nStartRow, { const SwTableBox *pBox = rBoxes[nBox]; - // Determine the postition of the last covered column + // Determine the position of the last covered column sal_uInt32 nOldCPos = nCPos; if( nBox < nBoxes-1 || (nParentLineWidth==0 && nLine==0) ) { diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index b7e211ffb8e5..b40b70dbe1f4 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -2557,7 +2557,7 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const sw::Frame &rFrame, const Po { if( m_postponedGraphic == NULL ) FlyFrameGraphic( pGrfNode, rFrame.GetLayoutSize() ); - else // we are writting out attributes, but w:drawing should not be inside w:rPr, + else // we are writing out attributes, but w:drawing should not be inside w:rPr, { // so write it out later m_postponedGraphic->push_back( PostponedGraphic( pGrfNode, rFrame.GetLayoutSize())); } @@ -3994,7 +3994,7 @@ void DocxAttributeOutput::WriteFootnoteEndnotePr( ::sax_fastparser::FSHelperPtr if( info.nFtnOffset != 0 ) fs->singleElementNS( XML_w, XML_numStart, FSNS( XML_w, XML_val ), rtl::OString::valueOf( sal_Int32( info.nFtnOffset + 1 )).getStr(), FSEND ); - if( listtag != 0 ) // we are writting to settings.xml, write also special footnote/endnote list + if( listtag != 0 ) // we are writing to settings.xml, write also special footnote/endnote list { // there are currently only two hardcoded ones ( see FootnotesEndnotes()) fs->singleElementNS( XML_w, listtag, FSNS( XML_w, XML_id ), "0", FSEND ); fs->singleElementNS( XML_w, listtag, FSNS( XML_w, XML_id ), "1", FSEND ); diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index 15796d2d8a73..1e2b1b65f1a9 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -1955,7 +1955,7 @@ void RtfAttributeOutput::CharKerning( const SvxKerningItem& rKerning ) { SAL_INFO("sw.rtf", OSL_THIS_FUNC); - // in quater points then in twips + // in quarter points then in twips m_aStyles.append(OOO_STRING_SVTOOLS_RTF_EXPND); m_aStyles.append((sal_Int32)(rKerning.GetValue() / 5)); m_aStyles.append(OOO_STRING_SVTOOLS_RTF_EXPNDTW); diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx index 12eabd2dba98..3d9caf3b2ec7 100644 --- a/sw/source/filter/ww8/wrtw8esh.cxx +++ b/sw/source/filter/ww8/wrtw8esh.cxx @@ -593,7 +593,7 @@ void PlcDrawObj::WritePlc( WW8Export& rWrt ) const SwTwips nLeft = aRect.Left() + nThick; SwTwips nRight = aRect.Right() - nThick; - //Nasty swap for bidi if neccessary + //Nasty swap for bidi if necessary rWrt.MiserableRTLFrmFmtHack(nLeft, nRight, rFrmFmt); //xaLeft/yaTop/xaRight/yaBottom - rel. to anchor diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index fd1cfa4f67d1..9881fff3baac 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -1612,7 +1612,7 @@ void MSWordExportBase::UpdatePosition( SwWW8AttrIter* aAttrIter, xub_StrLen nAkt xub_StrLen nNextPos; // go to next attribute if no bookmark is found or if the bookmark is behind the next attribute position - // It may happend that the WhereNext() wasn't used in the previous increment because there was a + // It may happened that the WhereNext() wasn't used in the previous increment because there was a // bookmark before it. Use that position before trying to find another one. bool bNextBookmark = NearestBookmark( nNextPos, nAktPos, true ); if( nAktPos == aAttrIter->WhereNext() && ( !bNextBookmark || nNextPos > aAttrIter->WhereNext() ) ) diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index 67eb8cf57cff..f19c11b83372 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -2891,7 +2891,7 @@ bool SwWW8Writer::InitStd97CodecUpdateMedium( ::msfilter::MSCodec_Std97& rCodec mpMedium->GetItemSet()->ClearItem( SID_PASSWORD ); } - // nonempty encryption data means hier that the codec was successfuly initialized + // nonempty encryption data means hier that the codec was successfully initialized return ( aEncryptionData.getLength() != 0 ); } diff --git a/sw/source/filter/ww8/wrtww8.hxx b/sw/source/filter/ww8/wrtww8.hxx index b405f59ae604..d9d82d85a8e1 100644 --- a/sw/source/filter/ww8/wrtww8.hxx +++ b/sw/source/filter/ww8/wrtww8.hxx @@ -1058,7 +1058,7 @@ public: SwTwips CurrentPageWidth(SwTwips &rLeft, SwTwips &rRight) const; - /// Nasty swap for bidi if neccessary + /// Nasty swap for bidi if necessary bool MiserableRTLFrmFmtHack(SwTwips &rLeft, SwTwips &rRight, const sw::Frame &rFrmFmt); diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index 39c8939b2f25..c37da4aaae82 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -328,7 +328,7 @@ bool wwSectionManager::SetCols(SwFrmFmt &rFmt, const wwSection &rSection, //sprmSCcolumns - number of columns - 1 const sal_Int16 nCols = rSection.NoCols(); - if (nCols < 2) //check for no columns or other wierd state + if (nCols < 2) //check for no columns or other weird state return false; SwFmtCol aCol; // Create SwFmtCol diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx index ed3581943271..83b4acabd85b 100644 --- a/sw/source/filter/xml/swxml.cxx +++ b/sw/source/filter/xml/swxml.cxx @@ -323,7 +323,7 @@ sal_Int32 ReadThroughComponent( if (!bContainsStream ) { // stream name not found! Then try the compatibility name. - // if no stream can be opened, return immediatly with OK signal + // if no stream can be opened, return immediately with OK signal // do we even have an alternative name? if ( NULL == pCompatibilityStreamName ) diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx index e30f8f7fbad0..253d9588fa55 100644 --- a/sw/source/ui/app/docsh2.cxx +++ b/sw/source/ui/app/docsh2.cxx @@ -419,7 +419,7 @@ sal_Bool SwDocShell::Insert( SfxObjectShell &rSource, // SwDocStyleSheetPool::aStyleSheet that uses same members of // SwDocStyleSheetPool::Find. Therefore a copy has to be used // here. Attention: SfxStylessheetBase::SetFollow calls itself - // a SwDocStyleSheetPool::Find, so that it's not sufficiant to + // a SwDocStyleSheetPool::Find, so that it's not sufficient to // to eliminate the Find-calls in this method. rtl::Reference< SwDocStyleSheet > xNewSheet( new SwDocStyleSheet( (SwDocStyleSheet&)pMyPool diff --git a/sw/source/ui/dochdl/swdtflvr.cxx b/sw/source/ui/dochdl/swdtflvr.cxx index f6670eabbf5c..92d7a976472f 100644 --- a/sw/source/ui/dochdl/swdtflvr.cxx +++ b/sw/source/ui/dochdl/swdtflvr.cxx @@ -2112,7 +2112,7 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData, if( !pDDETyp && !bDoublePaste ) { - // remove FieldType again - error occured! + // remove FieldType again - error occurred! for( j = nSize; j >= INIT_FLDTYPES; --j ) if( pTyp == rWrtShell.GetFldType( j ) ) { diff --git a/sw/source/ui/docvw/PostItMgr.cxx b/sw/source/ui/docvw/PostItMgr.cxx index 8d7148c83130..6e6f80e79789 100644 --- a/sw/source/ui/docvw/PostItMgr.cxx +++ b/sw/source/ui/docvw/PostItMgr.cxx @@ -548,9 +548,9 @@ void SwPostItMgr::LayoutPostIts() mbLayouting = true; //loop over all pages and do the layout - // - create SwPostIt if neccessary + // - create SwPostIt if necessary // - place SwPostIts on their initial position - // - calculate neccessary height for all PostIts together + // - calculate necessary height for all PostIts together bool bUpdate = false; for (unsigned long n=0;n<mPages.size();n++) { @@ -784,7 +784,7 @@ bool SwPostItMgr::BorderOverPageBorder(unsigned long aPage) const void SwPostItMgr::Scroll(const long lScroll,const unsigned long aPage) { OSL_ENSURE((lScroll % GetScrollSize() )==0,"SwPostItMgr::Scroll: scrolling by wrong value"); - // do not scroll more than neccessary up or down + // do not scroll more than necessary up or down if ( ((mPages[aPage-1]->lOffset == 0) && (lScroll>0)) || ( BorderOverPageBorder(aPage) && (lScroll<0)) ) return; @@ -928,7 +928,7 @@ bool SwPostItMgr::LayoutByPage(std::list<SwSidebarWin*> &aVisiblePostItList,cons long lTranslatePos = 0; bool bScrollbars = false; - // do all neccessary resizings + // do all necessary resizings if (lVisibleHeight < lNeededHeight) { // ok, now we have to really resize and adding scrollbars @@ -1124,7 +1124,7 @@ void SwPostItMgr::RemoveSidebarWin() } // copy to new vector, otherwise RemoveItem would operate and delete stuff on mvPostItFlds as well -// RemoveItem will clean up the core field and visible postit if neccessary +// RemoveItem will clean up the core field and visible postit if necessary // we cannot just delete everything as before, as postits could move into change tracking void SwPostItMgr::Delete(String aAuthor) { diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx index 6ea97a06a934..35387293b6a3 100644 --- a/sw/source/ui/docvw/edtwin.cxx +++ b/sw/source/ui/docvw/edtwin.cxx @@ -5596,7 +5596,7 @@ void SwEditWin::SetChainMode( sal_Bool bOn ) uno::Reference< ::com::sun::star::accessibility::XAccessible > SwEditWin::CreateAccessible() { - SolarMutexGuard aGuard; // this should have happend already!!! + SolarMutexGuard aGuard; // this should have happened already!!! SwWrtShell *pSh = rView.GetWrtShellPtr(); OSL_ENSURE( pSh, "no writer shell, no accessible object" ); uno::Reference< @@ -5831,7 +5831,7 @@ void SwEditWin::ShowAutoTextCorrectQuickHelp( !pACorr || pACorr->GetSwFlags().bAutoCmpltShowAsTip; - // Get the neccessary data to show help text. + // Get the necessary data to show help text. pQuickHlpData->FillStrArr( rSh, rWord, bFromIME ); } diff --git a/sw/source/ui/inc/tablemgr.hxx b/sw/source/ui/inc/tablemgr.hxx index 368bfe01de61..c83e9857b720 100644 --- a/sw/source/ui/inc/tablemgr.hxx +++ b/sw/source/ui/inc/tablemgr.hxx @@ -71,7 +71,7 @@ public: // @deprecated void UpdateChart(); - /// @return the XModel of the newly inserted chart if successfull + /// @return the XModel of the newly inserted chart if successful ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > InsertChart( ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataProvider > &rxDataProvider, sal_Bool bFillWithData, const rtl::OUString &rCellRange, SwFlyFrmFmt** ppFlyFrmFmt = 0 ); }; diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx index 06b4083062e5..8dac55f991fe 100644 --- a/sw/source/ui/index/swuiidxmrk.cxx +++ b/sw/source/ui/index/swuiidxmrk.cxx @@ -222,7 +222,7 @@ void SwIndexMarkPane::InitControls() { // Controls-Handling - // onyl if there are more than one + // only if there are more than one // if equal it lands at the same entry pSh->SttCrsrMove(); @@ -937,7 +937,7 @@ IMPL_LINK( SwIndexMarkPane, KeyDCBModifyHdl, ComboBox *, pBox ) { if(pBox->IsInDropDown()) { - //reset bPhoneticED1_ChangedByUser if a completly new string is selected + //reset bPhoneticED1_ChangedByUser if a completely new string is selected bPhoneticED1_ChangedByUser = sal_False; } if(!bPhoneticED1_ChangedByUser) @@ -957,7 +957,7 @@ IMPL_LINK( SwIndexMarkPane, KeyDCBModifyHdl, ComboBox *, pBox ) { if(pBox->IsInDropDown()) { - //reset bPhoneticED1_ChangedByUser if a completly new string is selected + //reset bPhoneticED1_ChangedByUser if a completely new string is selected bPhoneticED2_ChangedByUser = sal_False; } if(!bPhoneticED2_ChangedByUser) diff --git a/sw/source/ui/shells/drwtxtex.cxx b/sw/source/ui/shells/drwtxtex.cxx index ad921351ac3f..1c2ad1bc5566 100644 --- a/sw/source/ui/shells/drwtxtex.cxx +++ b/sw/source/ui/shells/drwtxtex.cxx @@ -566,7 +566,7 @@ void SwDrawTextShell::GetState(SfxItemSet& rSet) !xThes.is() || nLang == LANGUAGE_NONE || !xThes->hasLocale( LanguageTag( nLang ).getLocale() )) rSet.DisableItem( SID_THES ); - //! avoid puting the same item as SfxBoolItem at the end of this function + //! avoid putting the same item as SfxBoolItem at the end of this function nSlotId = 0; break; } diff --git a/sw/source/ui/uiview/pview.cxx b/sw/source/ui/uiview/pview.cxx index 6894a6512580..9bb60185e007 100644 --- a/sw/source/ui/uiview/pview.cxx +++ b/sw/source/ui/uiview/pview.cxx @@ -1862,7 +1862,7 @@ sal_Bool SwPagePreView::HandleWheelCommands( const CommandEvent& rCEvt ) uno::Reference< ::com::sun::star::accessibility::XAccessible > SwPagePreViewWin::CreateAccessible() { - SolarMutexGuard aGuard; // this should have happend already!!! + SolarMutexGuard aGuard; // this should have happened already!!! OSL_ENSURE( GetViewShell() != NULL, "We need a view shell" ); return GetViewShell()->CreateAccessiblePreview(); diff --git a/sw/source/ui/uno/unomailmerge.cxx b/sw/source/ui/uno/unomailmerge.cxx index 66aad103d02b..a089e9064f3f 100644 --- a/sw/source/ui/uno/unomailmerge.cxx +++ b/sw/source/ui/uno/unomailmerge.cxx @@ -100,7 +100,7 @@ osl::Mutex & GetMailMergeMutex() enum CloseResult { eSuccess, // successfully closed - eVetoed, // vetoed, ownership transfered to the vetoing instance + eVetoed, // vetoed, ownership transferred to the vetoing instance eFailed // failed for some unknown reason }; static CloseResult CloseModelAndDocSh( diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 479f88b0d501..eaba013c30a4 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -704,7 +704,7 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp, { GroupBox* pGroupBox = static_cast< GroupBox* >( pNewWindow ); *ppNewComp = new VCLXFrame; - // Frame control needs to recieve + // Frame control needs to receive // Mouse events pGroupBox->SetMouseTransparent( sal_False ); } @@ -911,7 +911,7 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp, ::com::sun::star::uno::Any anyHandle = xSystemDepParent->getWindowHandle(processIdSeq, SYSTEM_DEPENDENT_TYPE); - // use sal_Int64 here to accomodate all int types + // use sal_Int64 here to accommodate all int types // uno::Any shift operator whill upcast if necessary sal_Int64 nWindowHandle = 0; sal_Bool bXEmbed = sal_False; @@ -1158,7 +1158,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow( Window* pChildWindow = NULL; if ( nSystemType == SYSTEM_DEPENDENT_TYPE ) { - // use sal_Int64 here to accomodate all int types + // use sal_Int64 here to accommodate all int types // uno::Any shift operator whill upcast if necessary sal_Int64 nWindowHandle = 0; sal_Bool bXEmbed = sal_False; diff --git a/toolkit/source/awt/vclxwindow1.cxx b/toolkit/source/awt/vclxwindow1.cxx index c937d3c035a9..ffea1f6b0347 100644 --- a/toolkit/source/awt/vclxwindow1.cxx +++ b/toolkit/source/awt/vclxwindow1.cxx @@ -52,7 +52,7 @@ void VCLXWindow::SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle ) throw pException; } - // use sal_Int64 here to accomodate all int types + // use sal_Int64 here to accommodate all int types // uno::Any shift operator whill upcast if necessary sal_Int64 nHandle = 0; sal_Bool bXEmbed = sal_False; diff --git a/tools/source/generic/bigint.cxx b/tools/source/generic/bigint.cxx index 2aedb0f46f00..49341cfb5d47 100644 --- a/tools/source/generic/bigint.cxx +++ b/tools/source/generic/bigint.cxx @@ -184,7 +184,7 @@ void BigInt::AddLong( BigInt& rB, BigInt& rErg ) k = 0; rErg.nNum[i] = (sal_uInt16)(nZ & 0xffffL); } - // If an overflow occured, add to solution + // If an overflow occurred, add to solution if (nZ & 0xff0000L) // or if(k) { rErg.nNum[i] = 1; diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx index b962bab0ca01..4fe8e82f13ed 100644 --- a/tools/source/rc/resmgr.cxx +++ b/tools/source/rc/resmgr.cxx @@ -1870,7 +1870,7 @@ rtl::OUString SimpleResMgr::ReadString( sal_uInt32 nId ) // sal_uIntPtr nLen = pResHeader->GetLocalOff() - sizeof(RSHEADER_TYPE); ResMgr::GetString( sReturn, (const sal_uInt8*)(pResHeader+1) ); - // not neccessary with te current implementation which holds the string table permanently, but to be sure .... + // not necessary with te current implementation which holds the string table permanently, but to be sure .... // note: pFallback cannot be NULL here and is either the fallback or m_pResImpl InternalResMgr::FreeGlobalRes( pResHeader, pResHandle ); if( m_pResImpl != pFallback ) diff --git a/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx b/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx index 6075b457d7bd..4d5a91384e84 100644 --- a/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx +++ b/ucb/source/ucp/hierarchy/hierarchycontentcaps.cxx @@ -75,7 +75,7 @@ using namespace hierarchy_ucp; //========================================================================= // -// IMPORTENT: If any property data ( name / type / ... ) are changed, then +// IMPORTANT: If any property data ( name / type / ... ) are changed, then // HierarchyContent::getPropertyValues(...) must be adapted too! // //========================================================================= diff --git a/ucb/source/ucp/package/pkgcontentcaps.cxx b/ucb/source/ucp/package/pkgcontentcaps.cxx index e9e217d82e4d..528b18d948df 100644 --- a/ucb/source/ucp/package/pkgcontentcaps.cxx +++ b/ucb/source/ucp/package/pkgcontentcaps.cxx @@ -76,7 +76,7 @@ using namespace package_ucp; //========================================================================= // -// IMPORTENT: If any property data ( name / type / ... ) are changed, then +// IMPORTANT: If any property data ( name / type / ... ) are changed, then // Content::getPropertyValues(...) must be adapted too! // //========================================================================= diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx index 179d3dbc6182..025bdd3a05d7 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.cxx +++ b/ucb/source/ucp/tdoc/tdoc_content.cxx @@ -2160,7 +2160,7 @@ void Content::transfer( // Unreachable } - // Announce transfered content in its new folder. + // Announce transferred content in its new folder. xTarget->inserted(); ///////////////////////////////////////////////////////////////////////// diff --git a/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx b/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx index a8d6d847ae46..61eb808e15d0 100644 --- a/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx +++ b/ucb/source/ucp/tdoc/tdoc_contentcaps.cxx @@ -85,7 +85,7 @@ using namespace tdoc_ucp; //========================================================================= // -// IMPORTENT: If any property data ( name / type / ... ) are changed, then +// IMPORTANT: If any property data ( name / type / ... ) are changed, then // Content::getPropertyValues(...) must be adapted too! // //========================================================================= diff --git a/ucb/source/ucp/webdav-neon/ContentProperties.cxx b/ucb/source/ucp/webdav-neon/ContentProperties.cxx index dc9b03fe43cd..605cb042717d 100644 --- a/ucb/source/ucp/webdav-neon/ContentProperties.cxx +++ b/ucb/source/ucp/webdav-neon/ContentProperties.cxx @@ -437,7 +437,7 @@ void ContentProperties::addProperty( const rtl::OUString & rName, } else if ( rName == "Content-Length" ) { - // Do NOT map Content-Lenght entity header to DAV:getcontentlength! + // Do NOT map Content-length entity header to DAV:getcontentlength! // Only DAV resources have this property. // Map Content-Length entity header to UCP:Size diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 2901b843b44e..b3d5f49f6447 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -2571,7 +2571,7 @@ void Content::transfer( = static_cast< Content * >( xProvider->queryContent( xTargetId ).get() ); - // Announce transfered content in its new folder. + // Announce transferred content in its new folder. xTarget->inserted(); } catch ( ucb::IllegalIdentifierException const & ) diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx index 2a3606cc254d..9e5a4f7cd0a8 100644 --- a/ucb/source/ucp/webdav/ContentProperties.cxx +++ b/ucb/source/ucp/webdav/ContentProperties.cxx @@ -476,7 +476,7 @@ void ContentProperties::addProperty( const rtl::OUString & rName, else if ( rName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Content-Length" ) ) ) { - // Do NOT map Content-Lenght entity header to DAV:getcontentlength! + // Do NOT map Content-Length entity header to DAV:getcontentlength! // Only DAV resources have this property. // Map Content-Length entity header to UCP:Size diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx index 8d2ec5ddc024..2bfac0399d12 100644 --- a/ucb/source/ucp/webdav/webdavcontent.cxx +++ b/ucb/source/ucp/webdav/webdavcontent.cxx @@ -2633,7 +2633,7 @@ void Content::transfer( = static_cast< Content * >( xProvider->queryContent( xTargetId ).get() ); - // Announce transfered content in its new folder. + // Announce transferred content in its new folder. xTarget->inserted(); } catch ( ucb::IllegalIdentifierException const & ) diff --git a/unotools/inc/unotools/fontcvt.hxx b/unotools/inc/unotools/fontcvt.hxx index f6bd1b6ce4ec..05564f974a79 100644 --- a/unotools/inc/unotools/fontcvt.hxx +++ b/unotools/inc/unotools/fontcvt.hxx @@ -64,7 +64,7 @@ public: //with bPerfect set the converter will only try and convert symbols which have //perfect mappings to the windows symbols fonts. With it not set, it will //allow somewhat more dubious transformations that are nevertheless -//recognizably similiar. Even in this mode there will be characters that fail. +//recognizably similar. Even in this mode there will be characters that fail. //The users of this might want to make a distinction between failed characters //which were inside and those outside the unicode private area. UNOTOOLS_DLLPUBLIC StarSymbolToMSMultiFont *CreateStarSymbolToMSMultiFont(bool bPerfectOnly=false); diff --git a/unotools/inc/unotools/idhelper.hxx b/unotools/inc/unotools/idhelper.hxx index d183ddcefb3e..b96c27e8ac0d 100644 --- a/unotools/inc/unotools/idhelper.hxx +++ b/unotools/inc/unotools/idhelper.hxx @@ -176,7 +176,7 @@ void classname::release() \ ::utl::MapType2Id* pMap = static_cast< ::utl::MapType2Id *>(s_pMap); \ \ ::cppu::OImplementationId& rId = (*pMap)[_rTypes]; \ - /* this will create an entry for the given type sequence, if neccessary */ \ + /* this will create an entry for the given type sequence, if necessary */ \ \ return rId.getImplementationId(); \ } \ diff --git a/unotools/inc/unotools/sharedunocomponent.hxx b/unotools/inc/unotools/sharedunocomponent.hxx index e4f9ae6980ab..2558dfc76bd3 100644 --- a/unotools/inc/unotools/sharedunocomponent.hxx +++ b/unotools/inc/unotools/sharedunocomponent.hxx @@ -192,7 +192,7 @@ namespace utl // SharedUNOComponent& operator=( const ::com::sun::star::uno::Reference< INTERFACE >& _rxComponent ); // this operator is not implemented by intention. There is no canonic ownership after this operatoer - // would hvae been applied: Should the SharedUNOComponent have the ownership of the component, + // would have been applied: Should the SharedUNOComponent have the ownership of the component, // or shouldn't it? Hard to guess, and probably wrong in 50 percent of all cases, anyway. So, // instead of tempting clients of this class to use such a dangerous operator, we do // not offer it at all. If you need to assign a Reference< INTERFACE > to your SharedUNOComponent, diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index 7cf70fd26555..4c91fd3acefc 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -1020,7 +1020,7 @@ sal_Bool ConfigItem::ReplaceSetProperties( { // #i37322#: fallback action: replace with <void/> xCont->replaceByName(pContainerSubNodes[nContSub], Any()); - // fallback successfull: continue looping + // fallback successful: continue looping continue; } catch (Exception &) diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx index 3b5680f3ecfb..9dbd2df8a12d 100644 --- a/unotools/source/config/moduleoptions.cxx +++ b/unotools/source/config/moduleoptions.cxx @@ -123,7 +123,7 @@ struct FactoryInfo //--------------------------------------------------------------------------------------------------------- // returns list of properties, which has changed only! // We use given value of sNodeBase to build full qualified paths ... - // Last sign of it must be "/". Beacuse we use it directly, without any additional things! + // Last sign of it must be "/". because we use it directly, without any additional things! css::uno::Sequence< css::beans::PropertyValue > getChangedProperties( const ::rtl::OUString& sNodeBase ) { // a) reserve memory for max. count of changed properties @@ -384,7 +384,7 @@ SvtModuleOptions_Impl::SvtModuleOptions_Impl() impl_Read( lFactories ); // Enable notification for changes by using configuration directly. - // So we can update our internal values immediatly. + // So we can update our internal values immediately. EnableNotification( lFactories ); } diff --git a/unotools/source/misc/sharedunocomponent.cxx b/unotools/source/misc/sharedunocomponent.cxx index 836fac0270ca..8b75bdc9e5cc 100644 --- a/unotools/source/misc/sharedunocomponent.cxx +++ b/unotools/source/misc/sharedunocomponent.cxx @@ -196,7 +196,7 @@ namespace utl // this should be unreachable: As long as we're a CloseListener, we veto the closing. If we're going // to close the component ourself, then we revoke ourself as listener *before* the close call. So, - // if this here fires, something went definately wrong. + // if this here fires, something went definitely wrong. OSL_FAIL( "CloseableComponentImpl::notifyClosing: unreachable!" ); } diff --git a/uui/source/iahndl-filter.cxx b/uui/source/iahndl-filter.cxx index 71ffda8fd620..dba372861772 100644 --- a/uui/source/iahndl-filter.cxx +++ b/uui/source/iahndl-filter.cxx @@ -91,7 +91,7 @@ handleNoSuchFilterRequest_( uno::Reference< document::XInteractionFilterSelect > xFilterTransport; getContinuations(rContinuations, &xAbort, &xFilterTransport); - // check neccessary resources - if they don't exist - abort or + // check necessary resources - if they don't exist - abort or // break this operation if (!xAbort.is()) return; diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx index 13e764c532bd..9936c8651f05 100644 --- a/vcl/inc/salgdi.hxx +++ b/vcl/inc/salgdi.hxx @@ -243,7 +243,7 @@ public: virtual bool AddTempDevFont( ImplDevFontList*, const rtl::OUString& rFileURL, const rtl::OUString& rFontName ) = 0; // CreateFontSubset: a method to get a subset of glyhps of a font // inside a new valid font file - // returns sal_True if creation of subset was successfull + // returns sal_True if creation of subset was successful // parameters: rToFile: contains a osl file URL to write the subset to // pFont: describes from which font to create a subset // pGlyphIDs: the glyph ids to be extracted diff --git a/vcl/inc/vcl/lazydelete.hxx b/vcl/inc/vcl/lazydelete.hxx index 9f616c047a7e..ee818eef8df8 100644 --- a/vcl/inc/vcl/lazydelete.hxx +++ b/vcl/inc/vcl/lazydelete.hxx @@ -247,11 +247,11 @@ namespace vcl T* get() { return m_pT; } // set contents, returning old contents - // ownership is transfered ! + // ownership is transferred ! T* set( T* i_pNew ) { T* pOld = m_pT; m_pT = i_pNew; return pOld; } // set contents, deleting old contents - // ownership is transfered ! + // ownership is transferred ! void reset( T* i_pNew = NULL ) { OSL_ASSERT( i_pNew != m_pT || i_pNew == NULL ); T* pOld = m_pT; m_pT = i_pNew; delete pOld; } }; diff --git a/vcl/inc/vcl/print.hxx b/vcl/inc/vcl/print.hxx index 509e1c6406c0..e0a87e9af088 100644 --- a/vcl/inc/vcl/print.hxx +++ b/vcl/inc/vcl/print.hxx @@ -203,7 +203,7 @@ public: // read printer options from configuration, parameter decides whether the set for // print "to printer" or "to file" should be read. - // returns true if config was read, false if an error occured + // returns true if config was read, false if an error occurred bool ReadFromConfig( bool bFile ); }; diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx index 657c3ee3c237..9bccdf7c2aba 100644 --- a/vcl/source/app/svdata.cxx +++ b/vcl/source/app/svdata.cxx @@ -145,7 +145,7 @@ Window* ImplGetDefaultWindow() // First test if we already have a default window. // Don't only place a single if..else inside solar mutex lockframe - // because then we might have to wait for the solar mutex what is not neccessary + // because then we might have to wait for the solar mutex what is not necessary // if we already have a default window. if ( !pSVData->mpDefaultWin ) diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx index c89a04e110c6..c0fd56a3c350 100644 --- a/vcl/source/app/svmain.cxx +++ b/vcl/source/app/svmain.cxx @@ -90,7 +90,7 @@ oslSignalAction SAL_CALL VCLExceptionSignal_impl( void* /*pData*/, oslSignalInfo { static bool bIn = false; - // if we crash again, bail out immediatly + // if we crash again, bail out immediately if ( !bIn ) { sal_uInt16 nVCLException = 0; @@ -617,7 +617,7 @@ static void SAL_CALL MainWorkerFunction( void* pArgs ) void CreateMainLoopThread( oslWorkerFunction pWorker, void * pThreadData ) { #ifdef WNT - // sal thread alway call CoInitializeEx, so a sysdepen implementation is necessary + // sal thread always call CoInitializeEx, so a sysdepen implementation is necessary unsigned uThreadID; hThreadID = (HANDLE)_beginthreadex( @@ -625,7 +625,7 @@ void CreateMainLoopThread( oslWorkerFunction pWorker, void * pThreadData ) 0, // stacksize 0 means default _threadmain, // thread worker function new WorkerThreadData( pWorker, pThreadData ), // arguments for worker function - 0, // 0 means: create immediatly otherwise use CREATE_SUSPENDED + 0, // 0 means: create immediately otherwise use CREATE_SUSPENDED &uThreadID ); // thread id to fill #else hThreadID = osl_createThread( MainWorkerFunction, new WorkerThreadData( pWorker, pThreadData ) ); diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index 61fa49caa611..475d07465cf6 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -757,7 +757,7 @@ void ImplListBoxWindow::ImplCallSelect() { if ( !IsTravelSelect() && GetEntryList()->GetMaxMRUCount() ) { - // Insert the selected entry as MRU, if not allready first MRU + // Insert the selected entry as MRU, if not already first MRU sal_uInt16 nSelected = GetEntryList()->GetSelectEntryPos( 0 ); sal_uInt16 nMRUCount = GetEntryList()->GetMRUCount(); String aSelected = GetEntryList()->GetEntryText( nSelected ); diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx index ecdf04d06abd..f80b1d7019eb 100644 --- a/vcl/source/filter/wmf/winwmf.cxx +++ b/vcl/source/filter/wmf/winwmf.cxx @@ -870,7 +870,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc ) pWMF->SetError( SVSTREAM_FILEFORMAT_ERROR ); break; } - if ( nRecSize >= 4 ) // minimal escape lenght + if ( nRecSize >= 4 ) // minimal escape length { sal_uInt16 nMode = 0, nLen = 0; *pWMF >> nMode diff --git a/vcl/source/gdi/cvtsvm.cxx b/vcl/source/gdi/cvtsvm.cxx index 869f726cda80..1aabaf0a7588 100644 --- a/vcl/source/gdi/cvtsvm.cxx +++ b/vcl/source/gdi/cvtsvm.cxx @@ -1358,7 +1358,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf ) } } - // cleanup push-pop stack if neccessary + // cleanup push-pop stack if necessary while( !aLIStack.empty() ) { delete aLIStack.top(); @@ -1404,7 +1404,7 @@ void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf ) rOStm.Seek( nActPos ); rOStm.SetNumberFormatInt( nOldFormat ); - // cleanup push-pop stack if neccessary + // cleanup push-pop stack if necessary while ( !aLineColStack.empty() ) { delete aLineColStack.top(); diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index ab53ac867712..b989b80f826d 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -3092,7 +3092,7 @@ sal_Bool GDIMetaFile::CreateThumbnail( sal_uInt32 nMaximumExtent, const_cast<GDIMetaFile *>(this)->WindStart(); const_cast<GDIMetaFile *>(this)->Play( &aVDev, aBackPosPix, aDrawSize ); - // draw overlay if neccessary + // draw overlay if necessary if ( pOverlay ) aVDev.DrawBitmapEx( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), *pOverlay ); diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx index ee5d8daac3f8..390220d4f158 100644 --- a/vcl/source/gdi/outdev4.cxx +++ b/vcl/source/gdi/outdev4.cxx @@ -724,7 +724,7 @@ void OutputDevice::DrawGradient( const Rectangle& rRect, mbInitFillColor = sal_True; - // calculate step count if neccessary + // calculate step count if necessary if ( !aGradient.GetSteps() ) aGradient.SetSteps( GRADIENT_DEFAULT_STEPCOUNT ); @@ -888,7 +888,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly, mbInitFillColor = sal_True; - // calculate step count if neccessary + // calculate step count if necessary if ( !aGradient.GetSteps() ) aGradient.SetSteps( GRADIENT_DEFAULT_STEPCOUNT ); @@ -997,7 +997,7 @@ void OutputDevice::AddGradientActions( const Rectangle& rRect, const Gradient& r aRect.Right()++; aRect.Bottom()++; - // calculate step count if neccessary + // calculate step count if necessary if ( !aGradient.GetSteps() ) aGradient.SetSteps( GRADIENT_DEFAULT_STEPCOUNT ); diff --git a/vcl/source/gdi/outdev6.cxx b/vcl/source/gdi/outdev6.cxx index b79ee991732e..680a63dc34de 100644 --- a/vcl/source/gdi/outdev6.cxx +++ b/vcl/source/gdi/outdev6.cxx @@ -221,7 +221,7 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly, return; } - // short circut for drawing an invisible polygon + // short circuit for drawing an invisible polygon if( !mbFillColor || (nTransparencePercent >= 100) ) { // short circuit if the polygon border is invisible too @@ -646,7 +646,7 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos, if(GetAntialiasing()) { // #i102109# - // For MetaFile replay (see task) it may now be neccessary to take + // For MetaFile replay (see task) it may now be necessary to take // into account that the content is AntiAlialised and needs to be masked // like that. Instead of masking, i will use a copy-modify-paste cycle // here (as i already use in the VclPrimiziveRenderer with successs) diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 956cd85a0276..178e619a2bba 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -4765,7 +4765,7 @@ we check in the following sequence: } else { -// change the fragment to accomodate the bookmark (only if the file extension is PDF and +// change the fragment to accommodate the bookmark (only if the file extension is PDF and // the requested action is of the correct type) if(m_aContext.DefaultLinkAction == PDFWriter::URIActionDestination && bTargetHasPDFExtension && !aFragment.isEmpty() ) diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index ac35c4f7c05c..469f49205ee4 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -98,7 +98,7 @@ void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSiz } if( i_rContext.m_nMaxImageResolution > 50 ) { - // do downsampling if neccessary + // do downsampling if necessary const Size aDstSizeTwip( i_pDummyVDev->PixelToLogic( i_pDummyVDev->LogicToPixel( aSize ), MAP_TWIP ) ); const Size aBmpSize( aBitmapEx.GetSizePixel() ); const double fBmpPixelX = aBmpSize.Width(); diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx index 5f7ccadea4d2..e1fe203b6ca8 100644 --- a/vcl/source/gdi/print2.cxx +++ b/vcl/source/gdi/print2.cxx @@ -1372,7 +1372,7 @@ Bitmap OutputDevice::GetDownsampledBitmap( const Size& rDstSz, const Rectangle aBmpRect( aPoint, aBmp.GetSizePixel() ); Rectangle aSrcRect( rSrcPt, rSrcSz ); - // do cropping if neccessary + // do cropping if necessary if( aSrcRect.Intersection( aBmpRect ) != aBmpRect ) { if( !aSrcRect.IsEmpty() ) @@ -1383,7 +1383,7 @@ Bitmap OutputDevice::GetDownsampledBitmap( const Size& rDstSz, if( !aBmp.IsEmpty() ) { - // do downsampling if neccessary + // do downsampling if necessary Size aDstSizeTwip( PixelToLogic( LogicToPixel( rDstSz ), MAP_TWIP ) ); // #103209# Normalize size (mirroring has to happen outside of this method) diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx index d47aa925dc31..314ade5e1960 100644 --- a/vcl/source/gdi/print3.cxx +++ b/vcl/source/gdi/print3.cxx @@ -1223,7 +1223,7 @@ void PrinterController::printFilteredPage( int i_nPage ) mpImplData->mpPrinter->SetPaperBin( mpImplData->mnFixedPaperBin ); } - // if full paper is meant to be used, move the output to accomodate for pageoffset + // if full paper is meant to be used, move the output to accommodate for pageoffset if( aPageSize.bFullPaper ) { Point aPageOffset( mpImplData->mpPrinter->GetPageOffset() ); diff --git a/vcl/source/gdi/regband.cxx b/vcl/source/gdi/regband.cxx index 760e19bdff49..5bd481b6f3de 100644 --- a/vcl/source/gdi/regband.cxx +++ b/vcl/source/gdi/regband.cxx @@ -182,7 +182,7 @@ void ImplRegionBand::ProcessPoints() ImplRegionBandPoint* pNextBandPoint = pRegionBandPoint->mpNextBandPoint->mpNextBandPoint; - // remove allready processed points + // remove already processed points delete pRegionBandPoint->mpNextBandPoint; delete pRegionBandPoint; @@ -216,7 +216,7 @@ sal_Bool ImplRegionBand::InsertPoint( long nX, long nLineId, return sal_True; } - // look if line allready touched the band + // look if line already touched the band ImplRegionBandPoint* pRegionBandPoint = mpFirstBandPoint; ImplRegionBandPoint* pLastTestedRegionBandPoint = NULL; while( pRegionBandPoint ) @@ -272,7 +272,7 @@ sal_Bool ImplRegionBand::InsertPoint( long nX, long nLineId, pLastTestedRegionBandPoint = NULL; while ( pRegionBandPoint ) { - // new point completly left? -> insert as first point + // new point completely left? -> insert as first point if ( nX <= pRegionBandPoint->mnX ) { pNewRegionBandPoint = new ImplRegionBandPoint; @@ -409,7 +409,7 @@ void ImplRegionBand::Union( long nXLeft, long nXRight ) if ( (nXLeft >= pSep->mnXLeft) && (nXRight <= pSep->mnXRight) ) return; - // new separation completly left? -> new separation! + // new separation completely left? -> new separation! if ( nXRight < pSep->mnXLeft ) { pNewSep = new ImplRegionBandSep; @@ -473,7 +473,7 @@ void ImplRegionBand::Intersect( long nXLeft, long nXRight ) ImplRegionBandSep* pSep = mpFirstSep; while ( pSep ) { - // new separation completly outside? -> remove separation + // new separation completely outside? -> remove separation if ( (nXRight < pSep->mnXLeft) || (nXLeft > pSep->mnXRight) ) // will be removed from the optimizer pSep->mbRemoved = sal_True; @@ -894,7 +894,7 @@ sal_Bool ImplRegionBand::operator==( const ImplRegionBand& rRegionBand ) const pSecondRectBandSep = pSecondRectBandSep->mpNextSep; } - // differnt number of separations? + // different number of separations? if ( pOwnRectBandSep || pSecondRectBandSep ) return sal_False; diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx index 6276017ecb17..f12b3c0aa43d 100644 --- a/vcl/source/gdi/region.cxx +++ b/vcl/source/gdi/region.cxx @@ -701,7 +701,7 @@ void ImplRegion::InsertBands( long nTop, long nBottom ) if ( bTopBoundaryInserted && bTop2BoundaryInserted && bBottomBoundaryInserted ) break; - // insert bands between two bands if neccessary + // insert bands between two bands if necessary if ( pBand->mpNextBand ) { if ( (pBand->mnYBottom + 1) < pBand->mpNextBand->mnYTop ) @@ -1373,7 +1373,7 @@ void Region::Union( const Rectangle& rRect ) long nRight = Max( rRect.Left(), rRect.Right() ); long nBottom = Max( rRect.Top(), rRect.Bottom() ); - // insert bands if the boundaries are not allready in the list + // insert bands if the boundaries are not already in the list mpImplRegion->InsertBands( nTop, nBottom ); // process union @@ -1495,7 +1495,7 @@ void Region::Intersect( const Rectangle& rRect ) if ( mpImplRegion->mnRefCount > 1 ) ImplCopyData(); - // insert bands if the boundaries are not allready in the list + // insert bands if the boundaries are not already in the list mpImplRegion->InsertBands( nTop, nBottom ); // process intersections @@ -1578,7 +1578,7 @@ void Region::Exclude( const Rectangle& rRect ) long nRight = Max( rRect.Left(), rRect.Right() ); long nBottom = Max( rRect.Top(), rRect.Bottom() ); - // insert bands if the boundaries are not allready in the list + // insert bands if the boundaries are not already in the list mpImplRegion->InsertBands( nTop, nBottom ); // process exclude @@ -1640,7 +1640,7 @@ void Region::XOr( const Rectangle& rRect ) long nRight = Max( rRect.Left(), rRect.Right() ); long nBottom = Max( rRect.Top(), rRect.Bottom() ); - // insert bands if the boundaries are not allready in the list + // insert bands if the boundaries are not already in the list mpImplRegion->InsertBands( nTop, nBottom ); // process xor @@ -1706,7 +1706,7 @@ void Region::Union( const Region& rRegion ) ImplRegionBand* pBand = rRegion.mpImplRegion->mpFirstBand; while ( pBand ) { - // insert bands if the boundaries are not allready in the list + // insert bands if the boundaries are not already in the list mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom ); // process all elements of the list @@ -1818,7 +1818,7 @@ void Region::Intersect( const Region& rRegion ) pBand = rRegion.mpImplRegion->mpFirstBand; while ( pBand ) { - // insert bands if the boundaries are not allready in the list + // insert bands if the boundaries are not already in the list mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom ); // process all elements of the list @@ -1853,7 +1853,7 @@ void Region::Intersect( const Region& rRegion ) pBand = pBand->mpNextBand; } - // remove all untouched bands if bands allready left + // remove all untouched bands if bands already left ImplRegionBand* pPrevBand = 0; pBand = mpImplRegion->mpFirstBand; while ( pBand ) @@ -1934,7 +1934,7 @@ void Region::Exclude( const Region& rRegion ) ImplRegionBand* pBand = rRegion.mpImplRegion->mpFirstBand; while ( pBand ) { - // insert bands if the boundaries are not allready in the list + // insert bands if the boundaries are not already in the list mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom ); // process all elements of the list @@ -2012,7 +2012,7 @@ void Region::XOr( const Region& rRegion ) ImplRegionBand* pBand = rRegion.mpImplRegion->mpFirstBand; while ( pBand ) { - // insert bands if the boundaries are not allready in the list + // insert bands if the boundaries are not already in the list mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom ); // process all elements of the list @@ -2824,7 +2824,7 @@ void Region::ImplEndAddRect() return; } - // check if we have somthing to optimize + // check if we have something to optimize if ( !mpImplRegion->mpFirstBand->mpNextBand ) { // update mpImplRegion->mnRectCount, because no OptimizeBandList is called diff --git a/vcl/source/gdi/textlayout.cxx b/vcl/source/gdi/textlayout.cxx index 81dc881e1f78..d03ea25b8f2a 100644 --- a/vcl/source/gdi/textlayout.cxx +++ b/vcl/source/gdi/textlayout.cxx @@ -141,7 +141,7 @@ namespace vcl // normally, controls simulate "zoom" by "zooming" the font. This is responsible for (part of) the discrepancies // between text in Writer and text in controls in Writer, though both have the same font. // So, if we have a zoom set at the control, then we do not scale the font, but instead modify the map mode - // to accomodate for the zoom. + // to accommodate for the zoom. aTargetMapMode.SetScaleX( m_aZoom ); // TODO: shouldn't this be "current_scale * zoom"? aTargetMapMode.SetScaleY( m_aZoom ); diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx index 5183c71171a6..6bebcf260273 100644 --- a/vcl/source/glyphs/graphite_layout.cxx +++ b/vcl/source/glyphs/graphite_layout.cxx @@ -553,7 +553,7 @@ gr_segment * GraphiteLayout::CreateSegment(ImplLayoutArgs& rArgs) gr_segment * pSegment = NULL; - // Set the SalLayouts values to be the inital ones. + // Set the SalLayouts values to be the initial ones. SalLayout::AdjustLayout(rArgs); // TODO check if this is needed if (mnUnitsPerPixel > 1) @@ -1093,7 +1093,7 @@ void GraphiteLayout::kashidaJustify(std::vector<int>& rDeltaWidths, sal_GlyphId void GraphiteLayout::GetCaretPositions( int nArraySize, sal_Int32* pCaretXArray ) const { // For each character except the last discover the caret positions - // immediatly before and after that character. + // immediately before and after that character. // This is used for underlines in the GUI amongst other things. // It may be used from MultiSalLayout, in which case it must take into account // glyphs that have been moved. diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 8c6ac824e0cd..31d3a4808be9 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -7154,7 +7154,7 @@ void Window::setPosSizePixel( long nX, long nY, // Resize should be called directly. If we havn't // set the correct size, we get a second resize from - // the system with the correct size. This can be happend + // the system with the correct size. This can be happened // if the size is to small or to large. ImplHandleResize( pWindow, nWidth, nHeight ); } diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index 068356cd696c..1246140efbc6 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -1447,7 +1447,7 @@ KeySym SalDisplay::GetKeySym( XKeyEvent *pEvent, case XLookupBoth: case XLookupChars: - /* nothing to, char allready in pPrintable */ + /* nothing to, char already in pPrintable */ break; } } diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index 5dccb6ffb61d..80f6056006ed 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -346,7 +346,7 @@ void PPDDecompressStream::Open( const rtl::OUString& i_rFile ) } else { - // compression successfull, can get rid of file stream + // compression successful, can get rid of file stream delete mpFileStream, mpFileStream = NULL; mpMemStream->Seek( 0 ); } diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index 210e50ba43fa..3f870cee2780 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -967,7 +967,7 @@ void GtkSalGraphics::renderAreaToPix( cairo_t *cr, long ay = region->y; long awidth = region->width; - /* Get tje cairo surface and the data */ + /* Get the cairo surface and the data */ cairo_surface_t* surface = cairo_get_target(cr); g_assert(surface != NULL); cairo_surface_flush(surface); diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx index 61342aa5ead7..80bf5ab4c987 100644 --- a/vcl/win/source/gdi/salgdi.cxx +++ b/vcl/win/source/gdi/salgdi.cxx @@ -351,7 +351,7 @@ void ImplFreeSalGDI() pSalData->mhDitherPal = 0; } - // delete buffers for dithering DIB patterns, if neccessary + // delete buffers for dithering DIB patterns, if necessary if ( pSalData->mhDitherDIB ) { GlobalUnlock( pSalData->mhDitherDIB ); diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 7dd816c09832..a8245649421c 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -3513,7 +3513,7 @@ static long ImplHandleKeyMsg( HWND hWnd, UINT nMsg, { bIgnoreCharMsg = FALSE; // #101635# if zero is returned here for WM_SYSCHAR (ALT+<key>) Windows will beep - // becaus this 'hotkey' was not processed -> better return 1 + // because this 'hotkey' was not processed -> better return 1 // except for Alt-SPACE which should always open the sysmenu (#104616#) // also return zero if a system menubar is available that might process this hotkey diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog2.java b/wizards/com/sun/star/wizards/ui/UnoDialog2.java index e2c1f4d88683..3a93236db6dd 100644 --- a/wizards/com/sun/star/wizards/ui/UnoDialog2.java +++ b/wizards/com/sun/star/wizards/ui/UnoDialog2.java @@ -331,7 +331,7 @@ public class UnoDialog2 extends UnoDialog }); Helper.setUnoPropertyValues(xControlModel, sPropNames, oPropValues); //setControlPropertiesDebug(xControlModel, sPropNames, oPropValues); - //System.out.println(" Setting props successfull !"); + //System.out.println(" Setting props successful !"); Helper.setUnoPropertyValue(xControlModel, PropertyNames.PROPERTY_NAME, componentName); } catch (Exception ex) diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 077ce5011339..9488801ab76f 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -1455,7 +1455,7 @@ int RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword) break; case RTF_OBJECT: { - // begining of an OLE Object + // beginning of an OLE Object m_aStates.top().nDestinationState = DESTINATION_OBJECT; // check if the object is in a special container (e.g. a table) diff --git a/writerperfect/source/filter/ListStyle.cxx b/writerperfect/source/filter/ListStyle.cxx index f7659089afa4..bb87a1cfcc41 100644 --- a/writerperfect/source/filter/ListStyle.cxx +++ b/writerperfect/source/filter/ListStyle.cxx @@ -41,7 +41,7 @@ void OrderedListLevelStyle::write(OdfDocumentHandler *pHandler, int iLevel) cons listLevelStyleOpen.addAttribute("style:num-format", mPropList["style:num-format"]->getStr()); if (mPropList["text:start-value"]) { - // odf as to the version 1.1 does require the text:start-value to be a positive integer, means > 0 + // ODF as to the version 1.1 does require the text:start-value to be a positive integer, means > 0 if (mPropList["text:start-value"]->getInt() > 0) listLevelStyleOpen.addAttribute("text:start-value", mPropList["text:start-value"]->getStr()); else @@ -76,7 +76,7 @@ void UnorderedListLevelStyle::write(OdfDocumentHandler *pHandler, int iLevel) co listLevelStyleOpen.addAttribute("text:style-name", "Bullet_Symbols"); if (mPropList["text:bullet-char"] && (mPropList["text:bullet-char"]->getStr().len())) { - // The following is needed because the odf format does not accept bullet chars longer than one character + // The following is needed because the ODF format does not accept bullet chars longer than one character WPXString::Iter i(mPropList["text:bullet-char"]->getStr()); i.rewind(); WPXString sEscapedString("."); diff --git a/xmloff/inc/txtflde.hxx b/xmloff/inc/txtflde.hxx index 524f8f8839af..a83b61ed02cc 100644 --- a/xmloff/inc/txtflde.hxx +++ b/xmloff/inc/txtflde.hxx @@ -277,7 +277,7 @@ protected: sal_Bool bOmitEmpty = sal_False, /// omit attribute, if value is empty sal_uInt16 nPrefix = XML_NAMESPACE_TEXT); /// attribute name prefix - /// export a string attribute taht gets a QName value + /// export a string attribute that gets a QName value void ProcessString( enum ::xmloff::token::XMLTokenEnum eXmlName, /// attribute token (namespace text) sal_uInt16 nValuePrefix, diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 833a3b0f4196..d94305abc1fd 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -1528,7 +1528,7 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument >& if( mxAdditionalShapes.is()) { // can't call exportShapes with all shapes because the - // initialisation happend with the complete draw page and not + // initialisation happened with the complete draw page and not // the XShapes object used here. Thus the shapes have to be // exported one by one UniReference< XMLShapeExport > rShapeExport = mrExport.GetShapeExport(); @@ -1582,7 +1582,7 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument >& } // can't call collectShapesAutoStyles with all shapes because - // the initialisation happend with the complete draw page and + // the initialisation happened with the complete draw page and // not the XShapes object used here. Thus the shapes have to be // exported one by one UniReference< XMLShapeExport > rShapeExport = mrExport.GetShapeExport(); diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index 3d0f92342b14..81afbf314543 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -2359,7 +2359,7 @@ uno::Reference< embed::XStorage > SvXMLExport::GetTargetStorage() return mpImpl->mxTargetStorage; } -/// returns the currently configured default version for odf export +/// returns the currently configured default version for ODF export SvtSaveOptions::ODFDefaultVersion SvXMLExport::getDefaultVersion() const { if( mpImpl ) diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index 6cc7330bedcc..9962db56fd89 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -717,7 +717,7 @@ void SAL_CALL SvXMLImport::startElement( const OUString& rName, pContext->AddRef(); - // Remeber old namespace map. + // Remember old namespace map. if( pRewindMap ) pContext->SetRewindMap( pRewindMap ); diff --git a/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx b/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx index c6216a443d8e..f66dcd655e31 100644 --- a/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx +++ b/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx @@ -92,7 +92,7 @@ void XMLGraphicsDefaultStyle::SetDefaults() if( !xDefaults.is() ) return; // SJ: #i114750# - sal_Bool bWordWrapDefault = sal_True; // initializing with correct odf fo:wrap-option default + sal_Bool bWordWrapDefault = sal_True; // initializing with correct ODF fo:wrap-option default sal_Int32 nUPD( 0 ); sal_Int32 nBuild( 0 ); const bool bBuildIdFound = GetImport().getBuildIds( nUPD, nBuild ); diff --git a/xmloff/source/draw/XMLImageMapExport.cxx b/xmloff/source/draw/XMLImageMapExport.cxx index 7f757657f51d..80efd4a1c955 100644 --- a/xmloff/source/draw/XMLImageMapExport.cxx +++ b/xmloff/source/draw/XMLImageMapExport.cxx @@ -127,7 +127,7 @@ void XMLImageMapExport::Export( } // else: container is empty -> nothing to do } - // else: no container -> nothign to do + // else: no container -> nothing to do } diff --git a/xmloff/source/draw/shapeexport2.cxx b/xmloff/source/draw/shapeexport2.cxx index f3b11f5fa458..4f00fe33305a 100644 --- a/xmloff/source/draw/shapeexport2.cxx +++ b/xmloff/source/draw/shapeexport2.cxx @@ -177,7 +177,7 @@ void XMLShapeExport::ImpExportNewTrans_FeaturesAndWrite(::basegfx::B2DTuple& rTR aStr = sStringBuffer.makeStringAndClear(); mrExport.AddAttribute(XML_NAMESPACE_SVG, XML_HEIGHT, aStr); - // decide if transformation is neccessary + // decide if transformation is necessary sal_Bool bTransformationIsNeccessary(fTRShear != 0.0 || fTRRotate != 0.0); if(bTransformationIsNeccessary) @@ -1688,7 +1688,7 @@ void XMLShapeExport::ImpExportOLE2Shape( } else { - // export empty href for empty placeholders to be valid odf + // export empty href for empty placeholders to be valid ODF OUString sEmptyURL; mrExport.AddAttribute(XML_NAMESPACE_XLINK, XML_HREF, sEmptyURL ); diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx index bb53c66350c4..ed6482194f46 100644 --- a/xmloff/source/draw/xexptran.cxx +++ b/xmloff/source/draw/xexptran.cxx @@ -1468,7 +1468,7 @@ SdXMLImExSvgDElement::SdXMLImExSvgDElement(const SdXMLImExViewBox& rViewBox, mbIsClosed( false ), mbIsCurve( false ), // fdo#47406 - handle writing svg:d path slightly different for - // old odf versions and ODF1.2 compat mode - since ~all the legacy + // old ODF versions and ODF1.2 compat mode - since ~all the legacy // ODF ecosystem interprets relative svg:d paths incorrectly, // write out absolute paths in those cases. mbRelative( rExport.getDefaultVersion() >= SvtSaveOptions::ODFVER_012 && diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx index 559b42764cd0..2f037ad72936 100644 --- a/xmloff/source/forms/elementimport.cxx +++ b/xmloff/source/forms/elementimport.cxx @@ -1567,7 +1567,7 @@ namespace xmloff { // In OpenOffice.org 2.0, we changed the implementation of the css.form.component.TextField (the model of a text field control), // so that it now uses another default control. So if we encounter a text field where the *old* default - // control property is writting, we are not allowed to use it + // control property is writing, we are not allowed to use it PropertyValueArray::iterator aDefaultControlPropertyPos = ::std::find_if( m_aValues.begin(), m_aValues.end(), diff --git a/xmloff/source/forms/layerexport.cxx b/xmloff/source/forms/layerexport.cxx index af886136ec0d..13e0ed37a93b 100644 --- a/xmloff/source/forms/layerexport.cxx +++ b/xmloff/source/forms/layerexport.cxx @@ -377,7 +377,7 @@ namespace xmloff // (This behaviour of examineForms is a performance optimization, to not force // the page to create a forms container just to see that it's empty.) - // So, in such a case, seekPage is considered to be successfull, too, though the + // So, in such a case, seekPage is considered to be successful, too, though the // page was not yet known Reference< XFormsSupplier2 > xFormsSupp( _rxDrawPage, UNO_QUERY ); if ( xFormsSupp.is() && !xFormsSupp->hasForms() ) diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx index 3b13701cbb21..ab6ed5402b7c 100644 --- a/xmloff/source/meta/xmlversion.cxx +++ b/xmloff/source/meta/xmlversion.cxx @@ -363,7 +363,7 @@ void SAL_CALL XMLVersionListPersistence::store( const uno::Reference< embed::XSt Reference< io::XOutputStream > xOut = xVerStream->getOutputStream(); if ( !xOut.is() ) - throw uno::RuntimeException(); // the stream was successfuly opened for writing already + throw uno::RuntimeException(); // the stream was successfully opened for writing already Reference< io::XActiveDataSource > xSrc( xWriter, uno::UNO_QUERY ); xSrc->setOutputStream(xOut); diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index 66e0c121f380..362b5d94256b 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -1737,7 +1737,7 @@ void SvXMLNumFmtExport::Export( sal_Bool bIsAutoStyle ) DBG_ASSERT((pFormat->GetType() & NUMBERFORMAT_DEFINED) != 0, "a not user defined numberformat found"); // user-defined and used formats are exported ExportFormat_Impl( *pFormat, nKey ); - // if it is a user-defined Format it will be added else nothing will hapen + // if it is a user-defined Format it will be added else nothing will happen pUsedList->SetUsed(nKey); } diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx index 51d391dcbdb6..c54d7ffbe5f5 100644 --- a/xmloff/source/style/xmlstyle.cxx +++ b/xmloff/source/style/xmlstyle.cxx @@ -444,7 +444,7 @@ SvXMLStyleContext *SvXMLStylesContext::CreateStyleChildContext( sal_uInt16 p_nPr case XML_TOK_STYLE_PAGE_MASTER: case XML_TOK_STYLE_DEFAULT_PAGE_LAYOUT: { - //there is not page family in odf now, so I specify one for it + //there is not page family in ODF now, so I specify one for it sal_Bool bDefaultStyle = XML_TOK_STYLE_DEFAULT_PAGE_LAYOUT == nToken ? sal_True: sal_False; pStyle = new PageStyleContext( GetImport(), p_nPrefix, diff --git a/xmloff/source/text/XMLChangedRegionImportContext.hxx b/xmloff/source/text/XMLChangedRegionImportContext.hxx index 375fdb61344c..7a8e3a840db8 100644 --- a/xmloff/source/text/XMLChangedRegionImportContext.hxx +++ b/xmloff/source/text/XMLChangedRegionImportContext.hxx @@ -43,7 +43,7 @@ class XMLChangedRegionImportContext : public SvXMLImportContext const ::rtl::OUString sEmpty; /// if we replace the current XTextCursor/XText by the ones for - /// the redline, we remeber the old cursor here. + /// the redline, we remember the old cursor here. ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor> xOldCursor; diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index 90d23a02502b..245d7e4001a3 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -711,7 +711,7 @@ void XMLSenderFieldImportContext::ProcessAttribute( bool bVal(false); bool const bRet = ::sax::Converter::convertBool(bVal, sAttrValue); - // set bFixed if successfull + // set bFixed if successful if (bRet) { bFixed = bVal; } diff --git a/xmloff/source/transform/TransformerBase.cxx b/xmloff/source/transform/TransformerBase.cxx index 4d3eaf426e68..67c8e5bb39a0 100644 --- a/xmloff/source/transform/TransformerBase.cxx +++ b/xmloff/source/transform/TransformerBase.cxx @@ -307,7 +307,7 @@ void SAL_CALL XMLTransformerBase::startElement( const OUString& rName, if( !xContext.is() ) xContext = new XMLTransformerContext( *this, rName ); - // Remeber old namespace map. + // Remember old namespace map. if( pRewindMap ) xContext->SetRewindMap( pRewindMap ); diff --git a/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx b/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx index 03d660140c86..26b6c036a61c 100644 --- a/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx +++ b/xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx @@ -88,7 +88,7 @@ private: OUString m_sODFVersion; //Signals if the document contains already a document signature. This is only - //importent when we are signing macros and if the value is true. + //important when we are signing macros and if the value is true. bool m_bHasDocumentSignature; bool m_bWarningShowSignMacro; |