Fix typos

Change-Id: I53571976c4e045a5a09f1adc4425b41d96b0e6a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210565
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2026-09-10 21:26:38 +02:00
committed by Julien Nabet
parent 1be25f4913
commit eeb4290b30
19 changed files with 58 additions and 58 deletions
+1 -1
View File
@@ -526,7 +526,7 @@ void CGM::ImplDoClass5()
case 0xf4 : /*set color name - for Pantone support*/ break;
default: break;
}
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -1
View File
@@ -774,7 +774,7 @@ void OInterfaceContainer::implInsert(sal_Int32 _nIndex, const Reference< XProper
}
// approveNewElement (no matter if called here or outside) has ensure that all relevant interfaces
// approveNewElement (no matter if called here or outside) has ensured that all relevant interfaces
// exist
// set the name, and add as change listener for the name
+1 -1
View File
@@ -2897,7 +2897,7 @@ const std::pair<TranslateId, int> RID_STRLIST_FUNCTION_NAMES[] =
/* ERROR.TYPE( #REF! ) == 4 */
/* L10n: preserve the leading '#' hash character in translations. */
{ NC_("RID_STRLIST_FUNCTION_NAMES", "#REF!") , ocErrRef },
/* ERROR.TYPE( #NAME! ) == 5 */
/* ERROR.TYPE( #NAME? ) == 5 */
/* L10n: preserve the leading '#' hash character in translations. */
{ NC_("RID_STRLIST_FUNCTION_NAMES", "#NAME?") , ocErrName },
/* ERROR.TYPE( #NUM! ) == 6 */
+1 -1
View File
@@ -1374,7 +1374,7 @@ FormulaTokenArray * FormulaTokenArray::RewriteMissing( const MissingConvention &
FormulaMissingContext* pCtx = (nAlloc < nTokens ? new FormulaMissingContext[nTokens] : &aCtx[0]);
int* pOcas = (nAlloc < nTokens ? new int[nTokens] : &aOpCodeAddressStack[0]);
int* pOcds = (nAlloc < nTokens ? new int[nTokens] : &aOpCodeDcountStack[0]);
// Never go below 0, never use 0, mpFunc always NULL.
// Never go below 0, never use 0, mpFunc always nullptr.
pCtx[0].Clear();
int nFn = 0;
int nOcas = 0;
+1 -1
View File
@@ -1542,7 +1542,7 @@ void FormulaDlg_Impl::UpdateSelection()
aOrigSelection = m_pTheRefEdit->GetSelection();
}
// because its initially hidden, give it its optimal size so clicking the
// because it is initially hidden, give it its optimal size so clicking the
// refbutton has an initial size to work when retro-fitting this to .ui
m_xEdRef->GetWidget()->set_size_request(m_xEdRef->GetWidget()->get_preferred_size().Width(), -1);
m_xEdRef->GetWidget()->show();
+1 -1
View File
@@ -209,7 +209,7 @@ void ArgInput::Hide()
}
}
//Casts the Controls again.
//Shows the Controls again.
void ArgInput::Show()
{
if (m_pFtArg && m_pBtnFx && m_pEdArg && m_pRefBtn)
+14 -14
View File
@@ -30,16 +30,16 @@
namespace framework{
/**
@short implement XFrames, XIndexAccess and XElementAccess interfaces as helper for services
@short implements XFrames, XIndexAccess and XElementAccess interfaces as helper for services
@descr Use this class as helper for these interfaces. We share mutex and framecontainer with our owner.
The framecontainer is a member of it from type "FrameContainer". That means;
we have the same information as our owner. In current implementation we use mutex and lock-mechanism
to prevent against compete access. In future we plan support of semaphore!
to prevent concurrent access. In future we plan support of semaphore!
@devstatus deprecated
@ATTENTION Don't use this class as direct member - use it dynamically. Do not derive from this class.
We hold a weakreference to our owner not to our superclass.
We hold a weak reference to our owner, not to our superclass.
*/
class OFrames final : public ::cppu::WeakImplHelper< css::frame::XFrames >
{
@@ -47,10 +47,10 @@ class OFrames final : public ::cppu::WeakImplHelper< css::frame::XFrames >
/**
@short standard ctor
@descr These initialize a new instance of this class with all needed information for work.
@descr This initializes a new instance of this class with all needed information for work.
We share framecontainer with owner implementation! It's a threadsafe container.
@param xOwner , reference to our owner. We hold a wekreference to prevent us against cross-references!
@param pFrameContainer , pointer to shared framecontainer of owner. It's valid only, if weakreference is valid!
@param xOwner , reference to our owner. We hold a weak reference to prevent cross-references!
@param pFrameContainer , pointer to shared framecontainer of owner. It's valid only, if weak reference is valid!
*/
OFrames( const css::uno::Reference< css::frame::XFrame >& xOwner ,
FrameContainer* pFrameContainer );
@@ -83,9 +83,9 @@ class OFrames final : public ::cppu::WeakImplHelper< css::frame::XFrames >
/**
@short return list of all applicable frames for given flags
@descr Call these to get a list of all frames, which are match with given search flags.
@descr Call this to get a list of all frames, which match given search flags.
@param "nSearchFlag", flags to search right frames.
@return A list of founded frames.
@return A list of found frames.
@onerror An empty list is returned.
*/
@@ -96,19 +96,19 @@ class OFrames final : public ::cppu::WeakImplHelper< css::frame::XFrames >
/**
@short get count of all current frames in container
@descr This is the beginning of full index-access. With a count you can step over all items in container.
Next call should be getByIndex(). But these mechanism works only, if no lock in container is set!
Next call should be getByIndex(). But this mechanism works only, if no lock in container is set!
@seealso class FrameContainer
@seealso method getByIndex()
@return Count of current items in container.
@onerror If a lock is set, we return 0 for prevent further access!
@onerror If a lock is set, we return 0 to prevent further access!
*/
virtual sal_Int32 SAL_CALL getCount() override;
/**
@short get specified container item by index
@descr If you called getCount() successful - this method return the specified element as an Any.
@descr If you called getCount() successfully - this method returns the specified element as an Any.
You must observe the range from 0 to count-1! Otherwise an IndexOutOfBoundsException is thrown.
@seealso class FrameContainer
@@ -134,7 +134,7 @@ class OFrames final : public ::cppu::WeakImplHelper< css::frame::XFrames >
/**
@short get fill state of current container
@descr Call these to get information about, if items exist in container or not.
@descr Call this to get information about, if items exist in container or not.
(container-lock is ignored)
@return sal_True, if container contains some items.
@return sal_False, otherwise.
@@ -147,7 +147,7 @@ class OFrames final : public ::cppu::WeakImplHelper< css::frame::XFrames >
/**
@short standard destructor
@descr This method destruct an instance of this class and clear some member.
@descr This method destructs an instance of this class and clear some member.
This method is protected, because it's not allowed to use this class as a member!
You MUST use a dynamical instance (pointer). That's the reason for a protected dtor.
*/
@@ -158,7 +158,7 @@ class OFrames final : public ::cppu::WeakImplHelper< css::frame::XFrames >
@descr There are two ways to delete an instance of this class.<BR>
1) delete with destructor<BR>
2) dispose from parent or factory or...<BR>
This method do the same for both ways! It free used memory and release references ...
This method does the same for both ways! It frees used memory and release references ...
@seealso method dispose() (if it exist!)
@seealso destructor ~TaskEnumeration()
+7 -7
View File
@@ -48,10 +48,10 @@ namespace {
@descr Such dispatch object will be used by the generic dispatch mechanism if
a 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
This new instance will be called within its method
dispatch() or dispatchWithNotification() for executing the
real job. We do it, control the life cycle of this internal
wrapped job and inform any interested listener if it finish.
wrapped job and inform any interested listener if it finishes.
*/
class JobDispatch : public ::cppu::WeakImplHelper<
css::lang::XServiceInfo
@@ -128,7 +128,7 @@ public:
/**
@short standard ctor
@descr It initialize this new instance.
@descr It initializes this new instance.
@param xContext
reference to the uno service manager
@@ -151,7 +151,7 @@ JobDispatch::~JobDispatch()
/**
@short implementation of XInitialization
@descr A protocol handler can provide this functionality, if it wish to get additional information
@descr A protocol handler can provide this functionality, if it wishes to get additional information
about the context it runs. In this case the frame reference would be given by the outside code.
@param lArguments
@@ -182,7 +182,7 @@ void SAL_CALL JobDispatch::initialize( const css::uno::Sequence< css::uno::Any >
/**
@short implementation of XDispatchProvider::queryDispatches()
@descr Every protocol handler will be asked for his agreement, if a URL was queried
@descr Every protocol handler will be asked for its agreement, if a URL was queried
for which this handler is registered. It's the chance for this handler to validate
the given URL and return a dispatch object (may be itself) or not.
@@ -300,7 +300,7 @@ void JobDispatch::impl_dispatchEvent( /*IN*/ const OUString&
{
// get list of all enabled jobs
// The called static helper methods read it from the configuration and
// filter disabled jobs using it's time stamp values.
// filter disabled jobs using its timestamp values.
std::vector< OUString > lJobs = JobData::getEnabledJobsForEvent(m_xContext, sEvent);
css::uno::Reference< css::frame::XDispatchResultListener > xThis( static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY );
@@ -428,7 +428,7 @@ void JobDispatch::impl_dispatchAlias( /*IN*/ const OUString&
/**
@short implementation of XDispatch::dispatch()
@descr Because the methods dispatch() and dispatchWithNotification() are different in her parameters
@descr Because the methods dispatch() and dispatchWithNotification() are different in their parameters
only, we can forward this request to dispatchWithNotification() by using an empty listener!
@param aURL
+11 -11
View File
@@ -114,7 +114,7 @@ public:
/**
@short standard ctor
@descr It initialize this new instance.
@descr It initializes this new instance.
@param xContext
reference to the uno service manager
@@ -182,7 +182,7 @@ void JobExecutor::disposing(std::unique_lock<std::mutex>& /*rGuard*/) {
@short implementation of XJobExecutor interface
@descr We use the given event to locate any registered job inside our configuration
and execute it. Further we control the lifetime of it and suppress
shutdown of the office till all jobs was finished.
shutdown of the office till all jobs were finished.
@param sEvent
is used to locate registered jobs
@@ -196,7 +196,7 @@ void SAL_CALL JobExecutor::trigger( const OUString& sEvent )
std::unique_lock g(m_aMutex);
// Optimization!
// Check if the given event name exist inside configuration and reject wrong requests.
// Check if the given event name exists inside configuration and reject wrong requests.
// This optimization suppress using of the cfg api for getting event and job descriptions ...
if (std::find(m_lEvents.begin(), m_lEvents.end(), sEvent) == m_lEvents.end())
return;
@@ -205,7 +205,7 @@ void SAL_CALL JobExecutor::trigger( const OUString& sEvent )
// get list of all enabled jobs
// The called static helper methods read it from the configuration and
// filter disabled jobs using it's time stamp values.
// filter disabled jobs using its timestamp values.
std::vector< OUString > lJobs = JobData::getEnabledJobsForEvent(m_xContext, sEvent);
// step over all enabled jobs and execute it
@@ -237,8 +237,8 @@ void SAL_CALL JobExecutor::notifyEvent( const css::document::EventObject& aEvent
::std::vector< JobData::TJob2DocEventBinding > lJobs;
// Optimization!
// Check if the given event name exist inside configuration and reject wrong requests.
// This optimization suppress using of the cfg api for getting event and job descriptions.
// Check if the given event name exists inside configuration and reject wrong requests.
// This optimization suppresses using of the cfg api for getting event and job descriptions.
// see using of m_lEvents.find() below ...
// retrieve event context from event source
@@ -253,7 +253,7 @@ void SAL_CALL JobExecutor::notifyEvent( const css::document::EventObject& aEvent
{
std::unique_lock g(m_aMutex);
// Special feature: If the events "OnNew" or "OnLoad" occurs - we generate our own event "onDocumentOpened".
// Special feature: If the events "OnNew" or "OnLoad" occur - we generate our own event "onDocumentOpened".
if (
(aEvent.EventName == "OnNew") ||
(aEvent.EventName == "OnLoad")
@@ -263,7 +263,7 @@ void SAL_CALL JobExecutor::notifyEvent( const css::document::EventObject& aEvent
JobData::appendEnabledJobsForEvent(m_xContext, EVENT_ON_DOCUMENT_OPENED, lJobs);
}
// Special feature: If the events "OnCreate" or "OnLoadFinished" occurs - we generate our own event "onDocumentAdded".
// Special feature: If the events "OnCreate" or "OnLoadFinished" occur - we generate our own event "onDocumentAdded".
if (
(aEvent.EventName == "OnCreate") ||
(aEvent.EventName == "OnLoadFinished")
@@ -340,7 +340,7 @@ void SAL_CALL JobExecutor::elementReplaced( const css::container::ContainerEvent
// I'm not interested on changed items :-)
}
/** @short the used cfg changes notifier wish to be released in its reference.
/** @short the used cfg changes notifier wishes to be released in its reference.
@descr We close our internal used configuration instance to
free this reference.
@@ -351,8 +351,8 @@ void SAL_CALL JobExecutor::elementReplaced( const css::container::ContainerEvent
the global event broadcaster service. But we don't hold any reference to this service
which can or must be released. Because this broadcaster itself is a one instance service
too, we can ignore this request. On the other side we must release our internal CFG
reference... SOLUTION => check the given event source and react only, if it's our internal
hold configuration object!
reference... SOLUTION => check the given event source and react only, if it's our internally
held configuration object!
*/
void SAL_CALL JobExecutor::disposing( const css::lang::EventObject& aEvent )
{
@@ -659,7 +659,7 @@ ParserFlags cclass_Unicode::getFlagsExtended(sal_uInt32 const c, const cclass_Un
ParserFlags::CHAR_DONTCARE : (bStart ? ParserFlags::CHAR_WORD : (ParserFlags::CHAR_DONTCARE | ParserFlags::WORD_SEP | ParserFlags::VALUE_SEP) ));
case U_OTHER_PUNCTUATION:
// fdo#61754 Let's see (if we are not at the start) if this is midletter
// punctuation and allow it in a word if it is similarly to
// punctuation and allow it in a word if it is similar to
// U_NON_SPACING_MARK, for example U+00B7 MIDDLE DOT.
// tdf#123575 for U+30FB KATAKANA MIDDLE DOT property is not
// U_WB_MIDLETTER but U_WB_KATAKANA instead, explicitly test that
@@ -802,14 +802,14 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
eState = ssGetWordFirstChar;
bQuote = true;
postSymbolIndex = nextCharIndex;
nParseTokensType = 0; // will be taken of first real character
nParseTokensType = 0; // will be taken from first real character
r.TokenType = KParseType::SINGLE_QUOTE_NAME;
}
else if ( nMask & ParserFlags::CHAR_STRING )
{
eState = ssGetString;
postSymbolIndex = nextCharIndex;
nParseTokensType = 0; // will be taken of first real character
nParseTokensType = 0; // will be taken from first real character
r.TokenType = KParseType::DOUBLE_QUOTE_STRING;
}
else if ( nMask & ParserFlags::CHAR_DONTCARE )
@@ -854,7 +854,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
{
if (current == cGroupSep)
{
// depending or requested nContTypes, accept only if
// depending on requested nContTypes, accept only if
// it is followed by 3 digits
sal_Int32 tempIndex(index);
sal_uInt32 const nextChar2((tempIndex < rText.getLength()) ? rText.iterateCodePoints(&tempIndex) : 0);
+3 -3
View File
@@ -118,7 +118,7 @@ OUString replacePunctuation( const OUString &rStr )
.replace(u'\u201E', '"')
.replace(u'\u201F', '"');
}
};
}
TextSearch::TextSearch(const Reference < XComponentContext > & rxContext)
: m_xContext( rxContext )
@@ -164,7 +164,7 @@ void TextSearch::setOptions2( const SearchOptions2& rOptions )
// match is not case-altered, leave case-(in)sensitive to regex engine.
transliterateFlags &= ~TransliterationFlags::IGNORE_CASE;
}
else if ( aSrchPara.searchString.indexOf('\'') > - 1 || aSrchPara.searchString.indexOf('"') > - 1 )
else if ( aSrchPara.searchString.indexOf('\'') > -1 || aSrchPara.searchString.indexOf('"') > -1 )
{
bSearchApostrophe = true;
bReplaceApostrophe = isReplacePunctuation(aSrchPara.searchString);
@@ -794,7 +794,7 @@ SearchResult TextSearch::NSrchFrwrd( std::unique_lock<std::mutex>& /*rGuard*/, c
return aRet;
}
SearchResult TextSearch::NSrchBkwrd( std::unique_lock<std::mutex>& /*rGuard*/,const OUString& searchStr, sal_Int32 startPos, sal_Int32 endPos )
SearchResult TextSearch::NSrchBkwrd( std::unique_lock<std::mutex>& /*rGuard*/, const OUString& searchStr, sal_Int32 startPos, sal_Int32 endPos )
{
SearchResult aRet;
aRet.subRegExpressions = 0;
@@ -155,7 +155,7 @@ TMList const TMlist[] = { // Modules ModulesNew
// no enum defined for these trans. application has to use impl name to load them
// TmItem2 (NumToCharArabic_Indic), // () (67)
// TmItem2 (NumToCharEstern_Arabic_Indic),// () (68)
// TmItem2 (NumToCharEastern_Arabic_Indic),// () (68)
// TmItem2 (NumToCharIndic), // () (69)
// TmItem2 (NumToCharThai), // () (70)
{TransliterationModules(0), TransliterationModulesNew(0), nullptr}
+1 -1
View File
@@ -840,7 +840,7 @@ public:
// Only for EditEngine mode
void QuickInsertText( const OUString& rText, const ESelection& rSel );
void QuickDelete( const ESelection& rSel );
/// Set attributes from rSet an all characters of nPara.
/// Set attributes from rSet on all characters of nPara.
void SetCharAttribs(sal_Int32 nPara, const SfxItemSet& rSet);
void RemoveCharAttribs( sal_Int32 nPara, sal_uInt16 nWhich = 0 );
void QuickFormatDoc();
+3 -3
View File
@@ -45,9 +45,9 @@ namespace oox::ppt {
class PPTShape final : public oox::drawingml::Shape
{
OUString msModelId; // fallback dgs smartart shape reference
ShapeLocation meShapeLocation; // placeholdershapes (mnSubType != 0) on Master are never displayed
bool mbReferenced; // placeholdershapes on Layout are displayed only, if they are not referenced
// placeholdershapes on Slide are displayed always
ShapeLocation meShapeLocation; // placeholder shapes (mnSubType != 0) on Master are never displayed
bool mbReferenced; // placeholder shapes on Layout are displayed only if they are not referenced
// placeholder shapes on Slide are always displayed
oox::drawingml::ShapePtr mpPlaceholder;
/// Set if spPr tag is non empty for the shape
bool mbHasNoninheritedShapeProperties;
+1 -1
View File
@@ -534,7 +534,7 @@ public:
NfKeywordTable matches the locale with which the SvNumberFormatter
instance was created and initialized.
This function preliminary exists for unit tests and otherwise is
This function primarily exists for unit tests and otherwise is
pretty much useless.
*/
const NfKeywordTable& GetKeywords(sal_uInt32 nKey);
+2 -2
View File
@@ -239,7 +239,7 @@ private:
std::optional<std::vector<unotools::WeakReference<SdrObject>>> mxNavigationOrder;
bool mbObjOrdNumsDirty;
bool mbRectsDirty;
/// This flag is <TRUE/> when the mpNavigation list has been changed but
/// This flag is <TRUE/> when the mxNavigationOrder list has been changed but
/// the indices of the referenced SdrObjects still have their old values.
bool mbIsNavigationOrderDirty;
@@ -458,7 +458,7 @@ protected:
virtual css::uno::Reference< css::uno::XInterface > createUnoPage();
// Copying of pages is split into two parts: construction and copying of page objects,
// because the copying might need access to fully initialized page. CloneSdrPage() is responsible
// because the copying might need access to a fully initialized page. CloneSdrPage() is responsible
// to call lateInit() after copy-construction of a new object. Any initialization in derived
// classes that needs access to the page objects must be deferred to lateInit. And it must
// call lateInit() of its parent class.
@@ -166,7 +166,7 @@ void Hyphenator::ensureLocales()
aSuppLocales = comphelper::containerToSequence(aLocalesVec);
//! For each dictionary and each locale we need a separate entry.
//! If this results in more than one dictionary per locale than (for now)
//! If this results in more than one dictionary per locale then (for now)
//! it is undefined which dictionary gets used.
//! In the future the implementation should support using several dictionaries
//! for one locale.
@@ -429,7 +429,7 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const OUString& aWo
// pa: fields contain stems resulted by compound word analysis of non-dictionary words
// hy: fields contain hyphenation data of dictionary (compound) words
Reference< XSpellAlternatives > xTmpRes;
bool bAnalyzed = false; // enough the analyse once the word
bool bAnalyzed = false; // enough to analyse once the word
bool bCompoundHyphenation = true; // try to hyphenate compound words better
OUString sStems; // processed result of the compound word analysis, e.g. com|pound|word
sal_Int32 nSuffixLen = 0; // do not remove break points in suffixes
@@ -74,7 +74,7 @@ interface XDatabaseDataProvider
the corresponding master field.<br/>
Alternatively, you could simply base your report on the table <code>invoices</code>,
and add the column name <code>cust_ref</code> to the DetailFields. In this case,
and implicit filter clause <code>WHERE cust_ref = :&lt;new_param_name&gt;</code> will
an implicit filter clause <code>WHERE cust_ref = :&lt;new_param_name&gt;</code> will
be created, and the artificial parameter will be filled from the corresponding
master field.<br/>
If a string in this property denotes both a column name and a parameter name, it
@@ -95,7 +95,7 @@ interface XDatabaseDataProvider
means in case the #Command specifies an SQL statement, the inherited
com::sun::star::sdbc::RowSet::EscapeProcessing
becomes relevant:<br/>
It then can be to used to specify whether the SQL statement should be analyzed on the
It then can be used to specify whether the SQL statement should be analyzed on the
client side before sending it to the database server.<br/>
The default value for com::sun::star::sdbc::RowSet::EscapeProcessing
is `TRUE`. By switching it to `FALSE`, you can pass backend-specific SQL statements,
+1 -1
View File
@@ -39,7 +39,7 @@ published interface XSubmitListener: com::sun::star::lang::XEventListener
/** is invoked when a component is about to submit its data.
@param Event
the event happened
the event that happened
@returns
`TRUE` when submitting was approved, otherwise `FALSE`.