summaryrefslogtreecommitdiff
path: root/framework/source/services
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/services')
-rw-r--r--framework/source/services/autorecovery.cxx26
-rw-r--r--framework/source/services/desktop.cxx10
-rw-r--r--framework/source/services/frame.cxx12
-rw-r--r--framework/source/services/pathsettings.cxx4
-rw-r--r--framework/source/services/substitutepathvars.cxx2
-rw-r--r--framework/source/services/taskcreatorsrv.cxx2
6 files changed, 28 insertions, 28 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index b03c7e9a1a8e..3e40ef9edb63 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -208,7 +208,7 @@ static const sal_Int32 GIVE_UP_RETRY = 1; // in
#define MIN_TIME_FOR_USER_IDLE 10000 // 10s user idle
-// enable the following defines in case you whish to simulate a full disc for debug purposes .-)
+// enable the following defines in case you wish to simulate a full disc for debug purposes .-)
// this define throws everytime a document is stored or a configuration change
// should be flushed an exception ... so the special error handler for this scenario is triggered
@@ -911,7 +911,7 @@ css::uno::Reference< css::container::XNameAccess > AutoRecovery::implts_openConf
// <- SAFE ----------------------------------
OUString sCFG_PACKAGE_RECOVERY(RTL_CONSTASCII_USTRINGPARAM(CFG_PACKAGE_RECOVERY));
- // throws a RuntimeException if an error occure!
+ // throws a RuntimeException if an error occurs!
css::uno::Reference< css::container::XNameAccess > xCFG(
::comphelper::ConfigurationHelper::openConfig(xContext, sCFG_PACKAGE_RECOVERY, ::comphelper::ConfigurationHelper::E_STANDARD),
css::uno::UNO_QUERY);
@@ -1681,7 +1681,7 @@ void AutoRecovery::implts_registerDocument(const css::uno::Reference< css::frame
AutoRecovery::TDocumentInfo aNew;
aNew.Document = xDocument;
- // TODO replace getLocation() with getURL() ... its a workaround currently only!
+ // TODO replace getLocation() with getURL() ... it's a workaround currently only!
css::uno::Reference< css::frame::XStorable > xDoc(aNew.Document, css::uno::UNO_QUERY_THROW);
aNew.OrgURL = xDoc->getLocation();
@@ -1698,7 +1698,7 @@ void AutoRecovery::implts_registerDocument(const css::uno::Reference< css::frame
implts_specifyAppModuleAndFactory(aNew);
// Hack! Check for "illegal office documents" ... as e.g. the Basic IDE
- // Its not realy a full featured office document. It doesnt provide an URL, any filter, a factory URL etcpp.
+ // Its not realy a full featured office document. It doesn't provide an URL, any filter, a factory URL etcpp.
// TODO file bug to Basci IDE developers. They must remove the office document API from its service.
if (
(aNew.OrgURL.isEmpty()) &&
@@ -1894,7 +1894,7 @@ void AutoRecovery::implts_markDocumentAsSaved(const css::uno::Reference< css::fr
AutoRecovery::TDocumentInfo& rInfo = *pIt;
rInfo.DocumentState = AutoRecovery::E_UNKNOWN;
- // TODO replace getLocation() with getURL() ... its a workaround currently only!
+ // TODO replace getLocation() with getURL() ... it's a workaround currently only!
css::uno::Reference< css::frame::XStorable > xDoc(rInfo.Document, css::uno::UNO_QUERY);
rInfo.OrgURL = xDoc->getLocation();
@@ -2201,7 +2201,7 @@ AutoRecovery::ETimerType AutoRecovery::implts_saveDocs( sal_Bool bAl
// 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 immediately.
+ // Because the WindowManager will kill the process if it doesn't react immediately.
// On the other side we cant risk a concurrent save request ... because we know
// that it will produce a crash.
@@ -2292,7 +2292,7 @@ void AutoRecovery::implts_saveOneDoc(const OUString&
AutoRecovery::TDocumentInfo& rInfo ,
const css::uno::Reference< css::task::XStatusIndicator >& xExternalProgress)
{
- // no document? => can occure if we loaded our configuration with files,
+ // no document? => can occur if we loaded our configuration with files,
// which couldnt be recovered successfully. In such case we have all needed information
// excepting the real document instance!
@@ -2330,7 +2330,7 @@ void AutoRecovery::implts_saveOneDoc(const OUString&
Reference< XDocumentRecovery > xDocRecover(rInfo.Document, css::uno::UNO_QUERY_THROW);
// safe the state about "trying to save"
- // ... we need it for recovery if e.g. a crash occures inside next line!
+ // ... we need it for recovery if e.g. a crash occurs inside next line!
rInfo.DocumentState |= AutoRecovery::E_TRY_SAVE;
implts_flushConfigItem(rInfo);
@@ -2597,7 +2597,7 @@ AutoRecovery::ETimerType AutoRecovery::implts_openDocs(const DispatchParams& aPa
/* Normaly we listen as XModifyListener on a document to know if a document was changed
since our last AutoSave. And we deregister us in case we know this state.
But directly after one document as recovered ... we must start listening.
- Otherwhise the first "modify" doesnt reach us. Because we ourself called setModified()
+ Otherwhise the first "modify" doesn't reach us. Because we ourself called setModified()
on the document via API. And currently we dont listen for any events (not at the GlobalEventBroadcaster
nor at any document!).
*/
@@ -3424,7 +3424,7 @@ sal_Bool AutoRecovery::impl_enoughDiscSpace(sal_Int32 nRequiredSpace)
#ifdef SIMULATE_FULL_DISC
return sal_False;
#else // SIMULATE_FULL_DISC
- // In case an error occures and we are not able to retrieve the needed information
+ // In case an error occurs and we are not able to retrieve the needed information
// it's better to "disable" the feature ShowErrorOnFullDisc !
// Otherwhise we start a confusing process of error handling ...
@@ -3476,7 +3476,7 @@ void AutoRecovery::impl_establishProgress(const AutoRecovery::TDocumentInfo&
// for loading documents into this frame)!
// But if no frame exists ... we can try to locate it using any frame bound to the provided
// document. Of course we must live without any frame in case the document does not exists at this
- // point. But this state shouldnt occure. In such case xNewFrame should be valid ... hopefully .-)
+ // point. But this state should not occur. In such case xNewFrame should be valid ... hopefully .-)
css::uno::Reference< css::frame::XFrame > xFrame = xNewFrame;
if (
(!xFrame.is() ) &&
@@ -3515,7 +3515,7 @@ void AutoRecovery::impl_establishProgress(const AutoRecovery::TDocumentInfo&
// So we use a two step mechanism:
// 1) we set the progress inside the MediaDescriptor, which will be provided to the filter
// 2) and we set a special Frame property, which overwrites the normal behaviour of Frame::createStatusIndicator .-)
- // But we supress 2) in case we uses an internal progress. Because then it doesnt matter
+ // But we supress 2) in case we uses an internal progress. Because then it doesn't matter
// if our applications make it wrong. In such case the internal progress resists at the same frame
// and there is no need to forward progress activities to e.g. an outside dialog .-)
if (
@@ -3542,7 +3542,7 @@ void AutoRecovery::impl_forgetProgress(const AutoRecovery::TDocumentInfo&
// for loading documents into this frame)!
// But if no frame exists ... we can try to locate it using any frame bound to the provided
// document. Of course we must live without any frame in case the document does not exists at this
- // point. But this state shouldnt occure. In such case xNewFrame should be valid ... hopefully .-)
+ // point. But this state should not occur. In such case xNewFrame should be valid ... hopefully .-)
css::uno::Reference< css::frame::XFrame > xFrame = xNewFrame;
if (
(!xFrame.is() ) &&
diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx
index af9776ea9110..1064c2a4540a 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -983,7 +983,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Desktop::findFrame( const OUS
// We doesn't support search for following special targets.
// If we reject this requests - we mustnt check for such names
// in following code again and again. If we do not so -wrong
- // search results can occure!
+ // search results can occur!
//-----------------------------------------------------------------------------------------------------
if (
(sTargetFrameName==SPECIALTARGET_DEFAULT ) || // valid for dispatches - not for findFrame()!
@@ -1078,7 +1078,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Desktop::findFrame( const OUS
// a special feature: We use it to start search on our direct children only. That means we supress
// search on ALL child frames. May that can be useful to get access on opened document tasks
// only without filter out all non realy required sub frames ...
- // Used helper method on our container doesn't create any frame - its a search only.
+ // Used helper method on our container doesn't create any frame - it's a search only.
//-------------------------------------------------------------------------------------------------
if (
( ! xTarget.is() ) &&
@@ -1091,7 +1091,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Desktop::findFrame( const OUS
//-------------------------------------------------------------------------------------------------
// II.III) CHILDREN
// Search on all children for the given target name.
- // An empty name value can't occure here - because it must be already handled as "_self"
+ // An empty name value can't occur here - because it must be already handled as "_self"
// before. Used helper function of container doesn't create any frame.
// It makes a deep search only.
//-------------------------------------------------------------------------------------------------
@@ -1195,7 +1195,7 @@ void SAL_CALL Desktop::dispose()
/*-************************************************************************************************************//**
@interface XComponent
@short add/remove listener for dispose events
- @descr Add an event listener to this object, if you whish to get information
+ @descr Add an event listener to this object, if you wish to get information
about our dieing!
You must releas ethis listener reference during your own disposing() method.
@@ -1899,7 +1899,7 @@ void Desktop::impl_sendNotifyTerminationEvent()
// Reactivate controller.
// It can happen that XController.suspend() returned true ... but a registered close listener
// throwed these veto exception. Then the controller has to be reactivated. Otherwise
- // these document doesnt work any more.
+ // these document doesn't work any more.
if (
(bSuspended ) &&
(xController.is())
diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx
index 23f8cc58ff14..463c8a7eb574 100644
--- a/framework/source/services/frame.cxx
+++ b/framework/source/services/frame.cxx
@@ -743,7 +743,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Frame::findFrame( const OUStr
// We doesn't support search for following special targets.
// If we reject this requests - we mustnt check for such names
// in following code again and again. If we do not so -wrong
- // search results can occure!
+ // search results can occur!
//-----------------------------------------------------------------------------------------------------
if (
(sTargetFrameName==SPECIALTARGET_DEFAULT ) || // valid for dispatches - not for findFrame()!
@@ -873,7 +873,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Frame::findFrame( const OUStr
//-------------------------------------------------------------------------------------------------
// II.II) CHILDREN
// Search on all children for the given target name.
- // An empty name value can't occure here - because it must be already handled as "_self"
+ // An empty name value can't occur here - because it must be already handled as "_self"
// before. Used helper function of container doesn't create any frame.
// It makes a deep search only.
//-------------------------------------------------------------------------------------------------
@@ -952,7 +952,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Frame::findFrame( const OUStr
//-------------------------------------------------------------------------------------------------
// II.III.II) PARENT
// Forward search to our parent (if he exists.)
- // To prevent us against recursive and superflous calls (which can occure if we allow him
+ // To prevent us against recursive and superflous calls (which can occur if we allow him
// to search on his children too) we must change used search flags.
//-------------------------------------------------------------------------------------------------
if (
@@ -1005,7 +1005,7 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL Frame::findFrame( const OUStr
@param -
@return true, if is it a top frame ... false otherwise.
- @onerror No error should occure!
+ @onerror No error should occur!
*//*-*****************************************************************************************************/
sal_Bool SAL_CALL Frame::isTop() throw( css::uno::RuntimeException )
{
@@ -1221,7 +1221,7 @@ void SAL_CALL Frame::deactivate() throw( css::uno::RuntimeException )
@param -
@return true if active, false otherwise.
- @onerror No error should occure.
+ @onerror No error should occur.
*//*-*****************************************************************************************************/
sal_Bool SAL_CALL Frame::isActive() throw( css::uno::RuntimeException )
{
@@ -2104,7 +2104,7 @@ css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL Fram
/*-****************************************************************************************************//**
@short register/unregister interceptor for dispatch calls
- @descr If you whish to handle some dispatches by himself ... you should be
+ @descr If you wish to handle some dispatches by himself ... you should be
an interceptor for it. Please see class OInterceptionHelper for further information.
@seealso class OInterceptionHelper
diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx
index 1722064f8560..15fb3c05e89f 100644
--- a/framework/source/services/pathsettings.cxx
+++ b/framework/source/services/pathsettings.cxx
@@ -923,8 +923,8 @@ void PathSettings::impl_setPathValue( sal_Int32 nID ,
// At least it depends from the feature using this path, if an empty path list is allowed.
// first we should try to store the changed (copied!) path ...
- // In case an error occure on saving time an exception is thrown ...
- // If no exception occures we can update our internal cache (means
+ // In case an error occurs on saving time an exception is thrown ...
+ // If no exception occurs we can update our internal cache (means
// we can overwrite pOrgPath !
impl_storePath(aChangePath);
pOrgPath->takeOver(aChangePath);
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index 3050b4b65612..93520030b5e0 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -762,7 +762,7 @@ throw ( NoSuchElementException, RuntimeException )
// Use vector with strings to detect endless recursions!
std::vector< OUString > aEndlessRecursiveDetector;
- // Search for first occure of "$(...".
+ // Search for first occurrence of "$(...".
sal_Int32 nDepth = 0;
bool bSubstitutionCompleted = false;
sal_Int32 nPosition = aWorkText.indexOf( m_aVarStart ); // = first position of "$(" in string
diff --git a/framework/source/services/taskcreatorsrv.cxx b/framework/source/services/taskcreatorsrv.cxx
index e265e2c04e8b..8e9014f07992 100644
--- a/framework/source/services/taskcreatorsrv.cxx
+++ b/framework/source/services/taskcreatorsrv.cxx
@@ -124,7 +124,7 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL TaskCreatorService::createI
// #i53630#
// Mark all document windows as "special ones", so VCL can bind
- // special features to it. Because VCL doesnt know anything about documents ...
+ // special features to it. Because VCL doesn't know anything about documents ...
// Note: Doing so it's no longer supported, that e.g. our wizards can use findFrame(_blank)
// to create it's previes frames. They must do it manually by using WindowDescriptor+Toolkit!
css::uno::Reference< css::frame::XDesktop > xDesktop(xParentFrame, css::uno::UNO_QUERY);