Kaydet (Commit) 7f436c1f authored tarafından Andras Timar's avatar Andras Timar

typo fixes in comments

Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
üst 69c4a8ba
......@@ -352,12 +352,12 @@ void SAL_CALL SoundHandler::dispatch( const css::util::URL&
So call can search for another detect service and ask him too.
@attention a) We don't need any mutex here ... because we don't use any member!
b) Dont' use internal player instance "m_pPlayer" to detect given sound file!
b) Don't use internal player instance "m_pPlayer" to detect given sound file!
It's not neccessary to do that ... and we can use temp. variable to do the same.
This way is easy - we don't must synchronize it with currently played sounds!
Another reason to do so ... We are a listener on our internal ma_Player object.
If you would call "IsSoundFile()" on this instance, he would call us back and
we make some uneccssary things ...
we make some unnecessary things ...
@seealso -
......@@ -402,7 +402,7 @@ OUString SAL_CALL SoundHandler::detect( css::uno::Sequence< css::beans::Property
@seealso method dispatchWithNotification()
@param -
@return 0 everytime ... it doesnt matter for us.
@return 0 everytime ... it doesn't matter for us.
@onerror -
@threadsafe yes
......
......@@ -28,7 +28,7 @@ import test.lib.TestBed;
/**
* Test case for bug #98508#.
*
* <p>Bug #98508# "JAVA UNO bridge is not disposed when Exception occures during
* <p>Bug #98508# "JAVA UNO bridge is not disposed when Exception occurs during
* sendReply()" states that the server returning <code>null</code> instead of a
* valid <code>String</code> from <code>XServiceName.getServiceName</code>
* causes an exception when sending the reply, but this exception did not cause
......
......@@ -112,7 +112,7 @@ public class WeakComponentBase : WeakBase, XComponent
doDispose = true;
}
}
// The notification occures in an unsynchronized block in order to avoid
// The notification occurs in an unsynchronized block in order to avoid
// deadlocks if one of the listeners calls back in a different thread on
// a synchronized method which uses the same object.
if (doDispose)
......
......@@ -74,7 +74,7 @@ ucbhelper::InterceptedInteraction::EInterceptionState StillReadWriteInteraction:
// we are used!
m_bUsed = sal_True;
// check if its a real interception - might some parameters are not the right ones ...
// check if it's a real interception - might some parameters are not the right ones ...
sal_Bool bAbort = sal_False;
switch(aRequest.Handle)
{
......
......@@ -134,7 +134,7 @@ protected:
*/
void checkValid(sal_Bool _bIntendWriteAccess) const throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::DisposedException);
/** quickly checks if there already is an element with a given name. No access to the configuration occures, i.e.
/** quickly checks if there already is an element with a given name. No access to the configuration occurs, i.e.
if there is such an object which is not already loaded, it won't be loaded now.
@param _rName the object name to check
@return sal_True if there already exists such an object
......
......@@ -227,7 +227,7 @@ protected:
virtual ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent >
implGetByName(const OUString& _rName, sal_Bool _bCreateIfNecessary) throw (::com::sun::star::container::NoSuchElementException);
/** quickly checks if there already is an element with a given name. No access to the configuration occures, i.e.
/** quickly checks if there already is an element with a given name. No access to the configuration occurs, i.e.
if there is such an object which is not already loaded, it won't be loaded now.
@param _rName the object name to check
@return sal_True if there already exists such an object
......@@ -305,7 +305,7 @@ private:
if the object already exists in the container, or another object with the same name
already exists
@throws WrappedTargetException
if another error occures which prevents insertion of the object into the container
if another error occurs which prevents insertion of the object into the container
*/
void approveNewObject(
const OUString& _sName,
......
......@@ -616,7 +616,7 @@ sal_Bool SbaGridHeader::ImplStartColumnDrag(sal_Int8 _nAction, const Point& _rMo
EndTracking(ENDTRACK_CANCEL | ENDTRACK_END);
// because we have 3d-buttons the select handler is called from MouseButtonUp, but StartDrag
// occures earlier (while the mouse button is down)
// occurs earlier (while the mouse button is down)
// so for optical reasons we select the column before really starting the drag operation.
notifyColumnSelect(nId);
......
......@@ -604,7 +604,7 @@ namespace
with it. This doocument may have an InteractionHandler used while loading it.
@throws RuntimeException
if it occures during invoking any of the data source's methods, or if any of the involved
if it occurs during invoking any of the data source's methods, or if any of the involved
components violates its contract by not providing the required interfaces
*/
Reference< XInteractionHandler > lcl_getInteractionHandler_throw( const Reference< XDataSource >& _rxDataSource, const Reference< XInteractionHandler >& _rFallback )
......@@ -632,7 +632,7 @@ namespace
is examined for an interaction handler. Else, <NULL/> is returned.
@throws RuntimeException
if it occures during invoking any of the data source's methods, or if any of the involved
if it occurs during invoking any of the data source's methods, or if any of the involved
components violates its contract by not providing the required interfaces
*/
Reference< XInteractionHandler > lcl_getInteractionHandler_throw( const Reference< XConnection >& _rxConnection, const Reference< XInteractionHandler >& _rFallback )
......
......@@ -77,7 +77,7 @@ static void configureUcb()
#if ENABLE_GNOME_VFS
try {
// Instantiate GNOME-VFS UCP in the thread that initialized GNOME in order
// to avoid a deadlock that may occure in case the UCP gets initialized from
// to avoid a deadlock that may occur in case the UCP gets initialized from
// a different thread (which may happen when calling remotely via UNO); this
// is not a fix, just a workaround:
Reference< XCurrentContext > xCurrentContext(getCurrentContext());
......
......@@ -271,7 +271,7 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch
)
{
// Attention: URL must be parsed full. Otherwise some detections on it will fail!
// It doesnt matter, if parser isn't available. Because; We try loading of URL then ...
// It doesn't matter, if parser isn't available. Because; We try loading of URL then ...
URL aURL ;
aURL.Complete = aName;
......
dictionaries @ a32a341e
Subproject commit fb0e2de0bafbac018f65bddcbcd23481af959156
Subproject commit a32a341efdbb9e53a7b832262a41f6fb6454bedf
......@@ -1900,7 +1900,7 @@ Any IUnknownWrapper_Impl::invokeWithDispIdComTlb(FuncDesc& aFuncDesc,
// Make sure that there is a UNO parameter for every
// expected parameter. If there is no UNO parameter where the
// called function expects one, then it must be optional. Otherwise
// its a UNO programming error.
// it's a UNO programming error.
if (i >= nUnoArgs && !(paramFlags & PARAMFLAG_FOPT))
{
OUStringBuffer buf(256);
......
......@@ -469,7 +469,7 @@ css::uno::Reference< css::container::XEnumeration > SAL_CALL BaseContainer::crea
catch(const css::uno::Exception&)
{
// invalid cache, internal failure, wrong conversion ...!?
// doesnt matter
// doesn't matter
lKeys.clear();
}
......@@ -520,7 +520,7 @@ void SAL_CALL BaseContainer::flush()
catch(const css::uno::Exception& ex)
{
// Dont remove the clone. May be the outside
// user whish to repair it now and calls flush()
// user wish to repair it now and calls flush()
// later again ...
throw css::lang::WrappedTargetRuntimeException( "Flush rejected by internal container.",
......
......@@ -178,7 +178,7 @@ class BaseContainer : public BaseLock
of the global instance m_rCache, and will be used to change the
configuration.
@descr If no exception occures, its guaranteed, that the member m_rFlushCache
@descr If no exception occurs, its guaranteed, that the member m_rFlushCache
was initialized right and can be used further.
*/
void impl_initFlushMode()
......
......@@ -157,7 +157,7 @@ class CacheItem : public ::comphelper::SequenceAsHashMap
@descr Normaly the converter routines of the base class
SequenceAsHashMap do this job already.
But it doesnt provide a "pack" mechanism to
But it doesn't provide a "pack" mechanism to
ignore properties with empty (means "void") values.
@return css::uno::Sequence< css::beans::PropertyValue >
......
......@@ -412,7 +412,7 @@ CacheItem FilterCache::getItem( EItemType eType,
if ( !bIsHelpFilter && !impl_isModuleInstalled(sDocService) )
{
OUString sMsg("The requested filter '" + sItem +
"' exists ... but it shouldnt; because the corresponding LibreOffice module was not installed.");
"' exists ... but it should not; because the corresponding LibreOffice module was not installed.");
throw css::container::NoSuchElementException(sMsg, css::uno::Reference< css::uno::XInterface >());
}
}
......@@ -1053,7 +1053,7 @@ void FilterCache::impl_validateAndOptimize()
impl_resolveItem4TypeRegistration(&m_lDetectServices, sDetectService, sType);
// get its registration for file Extensions AND(!) URLPattern ...
// It doesnt matter if these items exists or if our
// It doesn't matter if these items exists or if our
// used index access create some default ones ...
// only in case there is no filled set of Extensions AND
// no filled set of URLPattern -> we must try to remove this invalid item
......@@ -1083,7 +1083,7 @@ void FilterCache::impl_validateAndOptimize()
#endif
// create an optimized registration for this type to
// its set list of extensions/url pattern. If its a "normal" type
// its set list of extensions/url pattern. If it's a "normal" type
// set it at the end of this optimized list. But if its
// a "Preferred" one - set it to the front of this list.
// Of course multiple "Preferred" registrations can occur
......@@ -1128,7 +1128,7 @@ void FilterCache::impl_validateAndOptimize()
// Dont check cross references between types and filters, if
// not all filters read from disk!
// OK - this cache can read single filters on demand too ...
// but then the fill state of this cache shouldnt be set to E_CONTAINS_FILTERS!
// but then the fill state of this cache should not be set to E_CONTAINS_FILTERS!
if (!bAllFiltersShouldExist)
continue;
......@@ -1341,7 +1341,7 @@ void FilterCache::impl_resolveItem4TypeRegistration( CacheItemList* pList
throw(css::uno::Exception)
{
CacheItem& rItem = (*pList)[sItem];
// In case its a new created entry (automaticly done by the boost::unordered_map index operator!)
// In case it's a new created entry (automaticly done by the boost::unordered_map index operator!)
// we must be shure, that this entry has its own name as property available.
// Its needed later at our container interface!
rItem[PROPNAME_NAME] <<= sItem;
......@@ -1450,7 +1450,7 @@ void FilterCache::impl_load(EFillState eRequiredState)
}
}
// update fill state. Note: its a bit field, which combines different parts.
// update fill state. Note: it's a bit field, which combines different parts.
m_eFillState = (EFillState) ((sal_Int32)m_eFillState | (sal_Int32)eRequiredState);
// any data readed?
......@@ -2237,7 +2237,7 @@ void FilterCache::impl_readOldFormat()
throw(css::uno::Exception)
{
// Attention: Opening/Reading of this old configuration format has to be handled gracefully.
// Its optional and shouldnt disturb our normal work!
// Its optional and should not disturb our normal work!
// E.g. we must check, if the package exists ...
css::uno::Reference< css::container::XNameAccess > xCfg;
......
......@@ -322,16 +322,16 @@ class FilterCache : public BaseLock
/** @short force special fill state of this cache.
@descr This method check if all requested items/properties already
exists. Only missing information will be readed.
@descr This method checks, if all requested items/properties already
exist. Only missing information will be readed.
Otherwise this method does nothing!
This method must be called from every user of this cache
every time it need a filled cache. Normaly we load
every time it needs a filled cache. Normally we load
only standard information into this cache on startup.
After a few seconds we start a special thread, which
may fill this cache completely. But if somehwere outside
need a filled cache before ... it can run into trouble,
may fill this cache completely. But if someone outside
needs a filled cache before ... it can run into trouble,
if this "load-on-demand" thread does not finished its work before.
This method "load(xxx)" synchronize such load-on-demand requests.
......@@ -872,7 +872,7 @@ class FilterCache : public BaseLock
@descr The outside code has to be shure, that the item does not already exists
inside this cachse. Otherwise it will be loaded twice. This method
doesnt check such constellations!
doesn't check such constellations!
@param eType
specify the type of config item, which must be interpreted.
......
......@@ -58,7 +58,7 @@ class QueryTokenizer : public ::boost::unordered_map< OUString
/** @short Because the given query can contain errors,
it should be checked outside.
TODO May its a good idea to describe the real problem
TODO May it's a good idea to describe the real problem
more detailed ...
*/
sal_Bool m_bValid;
......
......@@ -711,7 +711,7 @@ bool TypeDetection::impl_getPreselectionForType(
}
}
// if its a valid type - set it on all return values!
// if it's a valid type - set it on all return values!
if (!sType.isEmpty())
{
FlatDetection::iterator it = std::find_if(rFlatTypes.begin(), rFlatTypes.end(), FindByType(sType));
......
......@@ -93,7 +93,7 @@ private:
detection service), a "sugested" type name will be returned as "rLastChance".
It can be used after e.g. all well known deep detection services
was used without getting any result. Then this "last-chance-type"
should be returned. Of course using of it can fail too ... but its a try :-)
should be returned. Of course using of it can fail too ... but it's a try :-)
As an optimization - this method collects the names of all used deep
detection services. This information can be useful inside the may be
......@@ -137,7 +137,7 @@ private:
/** @short seek a might existing stream to position 0.
@descr This is an optinal action to be more robust
in case any detect service doesnt make this seek ...
in case any detect service doesn't make this seek ...
Normaly it's part of any called detect service or filter ...
but sometimes it's not done there.
......
......@@ -29,7 +29,7 @@
loglevel = 2
#************************************************
# This extension is used for all XML files. It doesnt
# This extension is used for all XML files. It doesn't
# matter if its used for reading fragments or writing
# XML packages.
# Must be given without any additional signes like "."
......@@ -41,7 +41,7 @@ loglevel = 2
extension_xcu=xcu
#************************************************
# This extension is used for all Package files. It doesnt
# This extension is used for all Package files. It doesn't
# matter if its used for reading such files or writing
# it.
# Must be given without any additional signes like "."
......
......@@ -4959,8 +4959,8 @@ SdrObject* SvxMSDffManager::ProcessObj(SvStream& rSt,
if (!bTextFrame)
{
//Either
//a) its a simple text object or
//b) its a rectangle with text and square wrapping.
//a) it's a simple text object or
//b) it's a rectangle with text and square wrapping.
bTextFrame =
(
(pImpRec->eShapeType == mso_sptTextSimple) ||
......
......@@ -7401,7 +7401,7 @@
<xsl:with-param name="current-pos" select="$current-pos + 1 + $font-size-length"/>
</xsl:call-template>
</xsl:when>
<!-- dont' consider tangled or adjoined '&X' and '&Y', '&U' & '&E', processing-check is necessary, too complex. :( -->
<!-- don't consider tangled or adjoined '&X' and '&Y', '&U' & '&E', processing-check is necessary, too complex. :( -->
<xsl:when test="starts-with($current-style-data,'&amp;X')">
<xsl:variable name="superscript-count-before">
<xsl:call-template name="get-substyle-count-in-data">
......
......@@ -53,7 +53,7 @@ namespace framework{
@descr These URLs implements a special functionality to close a document or the whole frame ...
and handle the state, it was the last frame or document. Then we create the
default backing document which can be used to open new ones using the file open dialog
or some other menu entries. Or we terminate the whole application in case this backing mode shouldnt
or some other menu entries. Or we terminate the whole application in case this backing mode should not
be used.
*/
class CloseDispatcher : // baseclasses ... order is necessary for right initialization!
......
......@@ -143,7 +143,7 @@ class PersistentWindowState : // baseclasses (order necessary for right initia
@param xWindow
must point to the container window of the frame.
We use it VCL part here - because the toolkit doesnt
We use it VCL part here - because the toolkit doesn't
provide the right functionality!
@return [string]
......@@ -173,7 +173,7 @@ class PersistentWindowState : // baseclasses (order necessary for right initia
@param xWindow
must point to the container window of the frame.
We use it VCL part here - because the toolkit doesnt
We use it VCL part here - because the toolkit doesn't
provide the right functionality!
@param sWindowState
......
......@@ -37,7 +37,7 @@ namespace framework{
@descr The protocol between job executor/dispatch and jobs is fix and well defined.
But why every implemented job should write such constant values directly into
it's code. Typos can occure or code will be changed by new developers ...
it's code. Typos can occur or code will be changed by new developers ...
Shared set of constant values can help to improve the mentainance of this code.
*/
class FWI_DLLPUBLIC JobConst
......
......@@ -122,7 +122,7 @@ class JobData : private ThreadHelpBase
};
/** Some jobs can be registered to "logical events", which are generated on demand if another document event
occures. E.g. "onDocumentOpened" in case "OnNew" or "OnLoad" was notified to the JobExecutor instance.
occurs. E.g. "onDocumentOpened" in case "OnNew" or "OnLoad" was notified to the JobExecutor instance.
And normaly the original event is transported as parameter set to the executed job. But then such job
cant differ between e.g. "OnNew" and "onDocumentOpened".
That's why we must know, for which type of event the job was realy triggered .-)
......
......@@ -55,7 +55,7 @@ namespace framework{
/**
@short implements a dispatch object for jobs
@descr Such dispatch object will be used by the generic dispatch mechanism if
an URL "vnd.sun.star.job:alias=<name>" occures.
an URL "vnd.sun.star.job:alias=<name>" occurs.
Then an instance of this class will be created and used.
This new instance will be called within his method
dispatch() or dispatchWithNotification() for executing the
......
......@@ -113,7 +113,7 @@ struct DispatchParams
/**
implements the functionality of AutoSave and AutoRecovery
of documents - including features of an EmergencySave in
case a GPF occures.
case a GPF occurs.
*/
typedef ::cppu::WeakImplHelper5<
css::lang::XServiceInfo,
......@@ -185,7 +185,7 @@ class AutoRecovery : // attention! Must be the first base class to guarentee ri
// TODO document me
enum ETimerType
{
/** the timer shouldnt be used next time */
/** the timer should not be used next time */
E_DONT_START_TIMER,
/** timer (was/must be) started with normal AutoSaveTimeIntervall */
E_NORMAL_AUTOSAVE_INTERVALL,
......@@ -641,7 +641,7 @@ class AutoRecovery : // attention! Must be the first base class to guarentee ri
@descr This method should be called only, if its clear that a new
document was opened/created during office runtime.
This method checks, if its a top level document (means not an embedded one).
This method checks, if it's a top level document (means not an embedded one).
Only such top level documents can be recognized by this auto save mechanism.
@param xDocument
......@@ -769,7 +769,7 @@ class AutoRecovery : // attention! Must be the first base class to guarentee ri
only if removing oft he old file was successfully.
If this method returns without an exception - everything
was OK. Otherwise the info struct can be analyzed to
get more information, e.g. when the problem occures.
get more information, e.g. when the problem occurs.
@param sBackupPath
the base path for saving such temp files.
......@@ -1017,7 +1017,7 @@ class AutoRecovery : // attention! Must be the first base class to guarentee ri
/** try to remove the specified file from disc.
Every URL supported by our UCB component can be used here.
Further it doesnt matter if the file realy exists or not.
Further it doesn't matter if the file realy exists or not.
Because removing a non exsistent file will have the same
result at the end ... a non existing file .-)
......
......@@ -390,9 +390,9 @@ class Desktop : // base classes
*
* Iterates over all child frames and try to close them.
* Given parameter bAllowUI enable/disable showing any UI
* (which mostly occure on calling XController->suspend()).
* (which mostly occur on calling XController->suspend()).
*
* These method doesnt stop if one frame could not be closed.
* This method doesn't stop if one frame could not be closed.
* It will ignore such frames and try all other ones.
* But it returns false in such case - true otherwise.
*
......
......@@ -392,8 +392,8 @@ class LoginDialog : public css::lang::XTypeProvider ,
/*-****************************************************************************************************//**
@short write changed values to configuration
@descr Normaly the dialog returns with an OK or ERROR value. If OK occure - we flush data
auomaticly. But otherwise we do nothing. If user of this service wish to use property set
@descr Normaly the dialog returns with an OK or ERROR value. If OK occurs - we flush data
automaticly. But otherwise we do nothing. If user of this service wishes to use property set
only without any UI(!) - he must call "flush()" explicitly to write data!
@seealso -
......
......@@ -40,7 +40,7 @@
#include <unotools/configitem.hxx>
#include <comphelper/sequenceasvector.hxx>
/* enable it if you whish to migrate old user settings (using the old cfg schema) on demand ....
/* enable it if you wish to migrate old user settings (using the old cfg schema) on demand ....
disable it in case only the new schema must be used.
*/
......
......@@ -28,9 +28,9 @@ namespace framework{
/*-************************************************************************************************************//**
@descr Describe different states of a feature of following implementation.
During live time of an object different working states occure:
During lifetime of an object different working states occur:
initialization - working - closing - closed
If you whish to implement thread safe classes you should use these feature to protect
If you wish to implement thread safe classes you should use this feature to protect
your code against calls at wrong time. e.g. you are not full initialized but somewhere
call an interface method (initialize phase means startup time from creating object till
calling specified first method e.g. XInitialization::initialze()!) then you should refuse
......
......@@ -143,7 +143,7 @@ class ReadGuard : private INonCopyable
/*-****************************************************************************************************//**