Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: fix spelling #213

Merged
merged 2 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions main/embeddedobj/source/msole/olepersist.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStrea
const uno::Reference< io::XStream >& xCachedVisualRepresentation )
throw ( uno::Exception )
{
OSL_ENSURE( xTargetStream.is() && xCachedVisualRepresentation.is(), "Invalid argumants!\n" );
OSL_ENSURE( xTargetStream.is() && xCachedVisualRepresentation.is(), "Invalid arguments!\n" );

if ( !xTargetStream.is() || !xCachedVisualRepresentation.is() )
throw uno::RuntimeException();
Expand Down Expand Up @@ -594,7 +594,7 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStrea
void OleEmbeddedObject::RemoveVisualCache_Impl( const uno::Reference< io::XStream >& xTargetStream )
throw ( uno::Exception )
{
OSL_ENSURE( xTargetStream.is(), "Invalid argumant!\n" );
OSL_ENSURE( xTargetStream.is(), "Invalid argument!\n" );
if ( !xTargetStream.is() )
throw uno::RuntimeException();

Expand Down Expand Up @@ -641,7 +641,7 @@ sal_Bool OleEmbeddedObject::HasVisReplInStream()
SetVisReplInStream( sal_True );
else
{
RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OleEmbeddedObject::HasVisualReplInStream, analizing" );
RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OleEmbeddedObject::HasVisualReplInStream, analyzing" );

uno::Reference< io::XInputStream > xStream;

Expand Down Expand Up @@ -818,7 +818,7 @@ uno::Reference< io::XStream > OleEmbeddedObject::TryToRetrieveCachedVisualRepres
try
{
CreateOleComponentAndLoad_Impl( NULL );
m_aClassID = m_pOleComponent->GetCLSID(); // was not set during consruction
m_aClassID = m_pOleComponent->GetCLSID(); // was not set during construction
}
catch( uno::Exception& )
{
Expand Down Expand Up @@ -1385,7 +1385,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
xWrappedObject->setPersistentEntry( xStorage, sEntName, nEntryConnectionMode, lArguments, lObjArgs );
return;
}
Expand Down Expand Up @@ -1466,9 +1466,9 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
if ( m_bFromClipboard )
{
// the object should be initialized from clipboard
// inpossibility to initialize the object means error here
// impossibility to initialize the object means error here
CreateOleComponentFromClipboard_Impl( NULL );
m_aClassID = m_pOleComponent->GetCLSID(); // was not set during consruction
m_aClassID = m_pOleComponent->GetCLSID(); // was not set during construction
m_pOleComponent->RunObject();
m_nObjectState = embed::EmbedStates::RUNNING;
}
Expand All @@ -1480,7 +1480,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
try
{
CreateOleComponentAndLoad_Impl( NULL );
m_aClassID = m_pOleComponent->GetCLSID(); // was not set during consruction
m_aClassID = m_pOleComponent->GetCLSID(); // was not set during construction
}
catch( uno::Exception& )
{
Expand Down Expand Up @@ -1543,7 +1543,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
m_pOleComponent->CreateLinkFromFile( aURL );

m_pOleComponent->RunObject();
m_aClassID = m_pOleComponent->GetCLSID(); // was not set during consruction
m_aClassID = m_pOleComponent->GetCLSID(); // was not set during construction

m_nObjectState = embed::EmbedStates::RUNNING;
}
Expand All @@ -1557,7 +1557,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
3 );
}
#else
// On unix the ole object can not do anything except storing itself somewere
// On unix the ole object can not do anything except storing itself somewhere
if ( nEntryConnectionMode == embed::EntryInitModes::DEFAULT_INIT && bElExists )
{
// TODO/LATER: detect classID of the object
Expand All @@ -1567,7 +1567,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
}
else if ( nEntryConnectionMode == embed::EntryInitModes::NO_INIT )
{
// do nothing, the object has already switched it's persistence
// do nothing, the object has already switched its persistence
}
else
throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Wrong connection mode is provided!\n" ),
Expand All @@ -1594,7 +1594,7 @@ void SAL_CALL OleEmbeddedObject::storeToEntry( const uno::Reference< embed::XSto
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
xWrappedObject->storeToEntry( xStorage, sEntName, lArguments, lObjArgs );
return;
}
Expand Down Expand Up @@ -1628,7 +1628,7 @@ void SAL_CALL OleEmbeddedObject::storeAsEntry( const uno::Reference< embed::XSto
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
xWrappedObject->storeAsEntry( xStorage, sEntName, lArguments, lObjArgs );
return;
}
Expand Down Expand Up @@ -1657,7 +1657,7 @@ void SAL_CALL OleEmbeddedObject::saveCompleted( sal_Bool bUseNew )
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
xWrappedObject->saveCompleted( bUseNew );
return;
}
Expand Down Expand Up @@ -1755,7 +1755,7 @@ sal_Bool SAL_CALL OleEmbeddedObject::hasEntry()
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
return xWrappedObject->hasEntry();
}
// end wrapping related part ====================
Expand Down Expand Up @@ -1784,7 +1784,7 @@ ::rtl::OUString SAL_CALL OleEmbeddedObject::getEntryName()
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
return xWrappedObject->getEntryName();
}
// end wrapping related part ====================
Expand Down Expand Up @@ -1822,7 +1822,7 @@ void SAL_CALL OleEmbeddedObject::storeOwn()
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
xWrappedObject->storeOwn();
return;
}
Expand Down Expand Up @@ -1875,7 +1875,7 @@ void SAL_CALL OleEmbeddedObject::storeOwn()
if ( m_bIsLink )
{
// just let the link store itself
// in case visual repersentation must be stored also
// in case visual representation must be stored also
// the procedure should be the same as for embedded objects

uno::Reference< io::XOutputStream > xOutStream = GetStreamForSaving();
Expand Down Expand Up @@ -1952,7 +1952,7 @@ sal_Bool SAL_CALL OleEmbeddedObject::isReadonly()
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
return xWrappedObject->isReadonly();
}
// end wrapping related part ====================
Expand Down Expand Up @@ -1990,7 +1990,7 @@ void SAL_CALL OleEmbeddedObject::reload(
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
xWrappedObject->reload( lArguments, lObjArgs );
return;
}
Expand Down Expand Up @@ -2033,7 +2033,7 @@ void SAL_CALL OleEmbeddedObject::breakLink( const uno::Reference< embed::XStorag
uno::Reference< embed::XLinkageSupport > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
xWrappedObject->breakLink( xStorage, sEntName );
return;
}
Expand Down Expand Up @@ -2149,7 +2149,7 @@ sal_Bool SAL_CALL OleEmbeddedObject::isLink()
uno::Reference< embed::XLinkageSupport > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
return xWrappedObject->isLink();
}
// end wrapping related part ====================
Expand All @@ -2171,7 +2171,7 @@ ::rtl::OUString SAL_CALL OleEmbeddedObject::getLinkURL()
uno::Reference< embed::XLinkageSupport > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
if ( xWrappedObject.is() )
{
// the object was converted to OOo embedded object, the current implementation is now only a wrapper
// the object was converted to AOO embedded object, the current implementation is now only a wrapper
return xWrappedObject->getLinkURL();
}
// end wrapping related part ====================
Expand Down
2 changes: 1 addition & 1 deletion main/forms/source/xforms/submission/replace.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ ::std::auto_ptr< CSerialization > CSubmission::createSerialization(const Referen
else
pHelper->m_aInteractionHandler = CSS::uno::Reference< XInteractionHandler >(m_aFactory->createInstance(
::rtl::OUString::createFromAscii("com.sun.star.task.InteractionHandler")), UNO_QUERY);
OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create IntreractionHandler");
OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create InteractionHandler");

CProgressHandlerHelper *pProgressHelper = new CProgressHandlerHelper;
pHelper->m_aProgressHandler = Reference< XProgressHandler >(pProgressHelper);
Expand Down
6 changes: 3 additions & 3 deletions main/forms/source/xforms/submission/submission_get.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CSubmissionGet::CSubmissionGet(const rtl::OUString& aURL, const CSS::uno::Refere

CSubmission::SubmissionResult CSubmissionGet::submit(const CSS::uno::Reference< CSS::task::XInteractionHandler >& aInteractionHandler)
{
// GET always uses apllicatin/x-www-formurlencoded
// GET always uses application/x-www-formurlencoded
auto_ptr< CSerialization > apSerialization(new CSerializationURLEncoded());
apSerialization->setSource(m_aFragment);
apSerialization->serialize();
Expand All @@ -67,7 +67,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const CSS::uno::Reference<
else
pHelper->m_aInteractionHandler = CSS::uno::Reference< XInteractionHandler >(m_aFactory->createInstance(
OUString::createFromAscii("com.sun.star.task.InteractionHandler")), UNO_QUERY);
OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create IntreractionHandler");
OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create InteractionHandler");
CProgressHandlerHelper *pProgressHelper = new CProgressHandlerHelper;
pHelper->m_aProgressHandler = CSS::uno::Reference< XProgressHandler >(pProgressHelper);

Expand Down Expand Up @@ -104,7 +104,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const CSS::uno::Reference<
} catch (Exception&)
{
// XXX
OSL_ENSURE(sal_False, "Exception during UCB operatration.");
OSL_ENSURE(sal_False, "Exception during UCB operation.");
return UNKNOWN_ERROR;
}

Expand Down
2 changes: 1 addition & 1 deletion main/forms/source/xforms/submission/submission_post.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ CSubmission::SubmissionResult CSubmissionPost::submit(const CSS::uno::Reference<
} catch (Exception&)
{
// XXX
OSL_ENSURE(sal_False, "Exception during UCB operatration.");
OSL_ENSURE(sal_False, "Exception during UCB operation.");
return UNKNOWN_ERROR;
}

Expand Down
2 changes: 1 addition & 1 deletion main/framework/test/typecfg/cfgview.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
#define RDBFILE DECLARE_ASCII("typecfg.rdb" )
#define ARGUMENT_DIRNAME DECLARE_ASCII("-dir=" ) // argument for output directory
#define ARGUMENT_VERSION DECLARE_ASCII("-ver=" ) // argument for file version to read [1|2|3]
#define ARGUMENTLENGTH 5 // same length for all arguemnts make it easier to detect it :-)
#define ARGUMENTLENGTH 5 // same length for all arguments make it easier to detect it :-)
#define ARGUMENTFOUND 0 // OUString::compareTo returns 0 if searched string match given one

#define MENU_HTML "menu.html"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* </code>): URL for passing to <code>dispatch()</code> method. </li>
* <li> <code>[OPTIONAL] 'XNotifyingDispatchArgument'</code>
* (of type sequence<code>com::sun::star::beans::PropertyValue
* </code>): argumets for <code>dispatchWithNotification()</code> method. </li>
* </code>): arguments for <code>dispatchWithNotification()</code> method. </li>
* <ul> <p>
* @see com.sun.star.frame.XDispatch
* @see com.sun.star.frame.XNotifyingDispatch
Expand Down
2 changes: 1 addition & 1 deletion main/sal/rtl/source/unload.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ extern "C" void SAL_CALL rtl_unloadUnusedModules( TimeValue* libUnused)
// notify all listeners
rtl_notifyUnloadingListeners();

// prepare default TimeValue if argumetn is NULL
// prepare default TimeValue if argument is NULL
TimeValue nullTime={0,0};
TimeValue* pLibUnused= libUnused? libUnused : &nullTime;

Expand Down