Fix typos
Change-Id: Iec31617554fae0f6c5a3d795a917ce9096d84405 Reviewed-on: https://gerrit.libreoffice.org/76521 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
committed by
Julien Nabet
parent
a5dabf94fa
commit
c87cf4e76f
@@ -434,7 +434,7 @@ bool ConfigItem::PutProperties( const Sequence< OUString >& rNames,
|
|||||||
if(( m_nMode & ConfigItemMode::AllLocales ) == ConfigItemMode::AllLocales )
|
if(( m_nMode & ConfigItemMode::AllLocales ) == ConfigItemMode::AllLocales )
|
||||||
{
|
{
|
||||||
// If ConfigItem works in "ALL_LOCALES"-mode ... we must support a Sequence< PropertyValue >
|
// If ConfigItem works in "ALL_LOCALES"-mode ... we must support a Sequence< PropertyValue >
|
||||||
// as value of an localized configuration entry!
|
// as value of a localized configuration entry!
|
||||||
// How we can do that?
|
// How we can do that?
|
||||||
// We must split all PropertyValues to "Sequence< OUString >" AND "Sequence< Any >"!
|
// We must split all PropertyValues to "Sequence< OUString >" AND "Sequence< Any >"!
|
||||||
impl_unpackLocalizedProperties( rNames, rValues, lNames, lValues );
|
impl_unpackLocalizedProperties( rNames, rValues, lNames, lValues );
|
||||||
|
@@ -377,7 +377,7 @@ namespace utl
|
|||||||
bResult = true;
|
bResult = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if the name refers to a indirect descendant
|
// check if the name refers to an indirect descendant
|
||||||
else if (m_xHierarchyAccess.is() && m_xHierarchyAccess->hasByHierarchicalName(_rPath))
|
else if (m_xHierarchyAccess.is() && m_xHierarchyAccess->hasByHierarchicalName(_rPath))
|
||||||
{
|
{
|
||||||
OSL_ASSERT(!_rPath.isEmpty());
|
OSL_ASSERT(!_rPath.isEmpty());
|
||||||
|
@@ -40,10 +40,10 @@
|
|||||||
/*-************************************************************************************************************
|
/*-************************************************************************************************************
|
||||||
@descr These values are used to define necessary keys from our configuration management to support
|
@descr These values are used to define necessary keys from our configuration management to support
|
||||||
all functionality of these implementation.
|
all functionality of these implementation.
|
||||||
It's a fast way to make changes if some keys change his name or location!
|
It's a fast way to make changes if some keys change its name or location!
|
||||||
|
|
||||||
Property handle are necessary to specify right position in return list of configuration
|
Property handle are necessary to specify right position in return list of configuration
|
||||||
for asked values. We ask it with a list of properties to get his values. The returned list
|
for asked values. We ask it with a list of properties to get its values. The returned list
|
||||||
has the same order like our given name list!
|
has the same order like our given name list!
|
||||||
e.g.:
|
e.g.:
|
||||||
NAMELIST[ PROPERTYHANDLE_xxx ] => VALUELIST[ PROPERTYHANDLE_xxx ]
|
NAMELIST[ PROPERTYHANDLE_xxx ] => VALUELIST[ PROPERTYHANDLE_xxx ]
|
||||||
@@ -359,7 +359,7 @@ void SvtModuleOptions_Impl::ImplCommit()
|
|||||||
}
|
}
|
||||||
// Resize commit list to real size.
|
// Resize commit list to real size.
|
||||||
// If nothing to do - suppress calling of configuration ...
|
// If nothing to do - suppress calling of configuration ...
|
||||||
// It could be to expensive :-)
|
// It could be too expensive :-)
|
||||||
if( nRealCount > 0 )
|
if( nRealCount > 0 )
|
||||||
{
|
{
|
||||||
lCommitProperties.realloc( nRealCount );
|
lCommitProperties.realloc( nRealCount );
|
||||||
@@ -572,7 +572,7 @@ css::uno::Sequence< OUString > SvtModuleOptions_Impl::impl_ExpandSetNames( const
|
|||||||
|
|
||||||
/*-************************************************************************************************************
|
/*-************************************************************************************************************
|
||||||
@short helper to classify given factory by name
|
@short helper to classify given factory by name
|
||||||
@descr Every factory has his own long and short name. So we can match right enum value for internal using.
|
@descr Every factory has its own long and short name. So we can match right enum value for internal using.
|
||||||
|
|
||||||
@attention We change in/out parameter "eFactory" in every case! But you should use it only, if return value is sal_True!
|
@attention We change in/out parameter "eFactory" in every case! But you should use it only, if return value is sal_True!
|
||||||
Algorithm: Set out-parameter to probably value ... and check the longname.
|
Algorithm: Set out-parameter to probably value ... and check the longname.
|
||||||
@@ -671,7 +671,7 @@ bool SvtModuleOptions_Impl::ClassifyFactoryByName( const OUString& sName, SvtMod
|
|||||||
*//*-*************************************************************************************************************/
|
*//*-*************************************************************************************************************/
|
||||||
void SvtModuleOptions_Impl::impl_Read( const css::uno::Sequence< OUString >& lFactories )
|
void SvtModuleOptions_Impl::impl_Read( const css::uno::Sequence< OUString >& lFactories )
|
||||||
{
|
{
|
||||||
// Expand every set node name in lFactories to full qualified paths to his properties
|
// Expand every set node name in lFactories to full qualified paths to its properties
|
||||||
// and get right values from configuration.
|
// and get right values from configuration.
|
||||||
const css::uno::Sequence< OUString > lProperties = impl_ExpandSetNames( lFactories );
|
const css::uno::Sequence< OUString > lProperties = impl_ExpandSetNames( lFactories );
|
||||||
const css::uno::Sequence< css::uno::Any > lValues = GetProperties( lProperties );
|
const css::uno::Sequence< css::uno::Any > lValues = GetProperties( lProperties );
|
||||||
|
@@ -217,7 +217,7 @@ const OUString& SvtPathOptions_Impl::GetPath( SvtPathOptions::Paths ePath )
|
|||||||
OUString aResult;
|
OUString aResult;
|
||||||
sal_Int32 nHandle = m_aMapEnumToPropHandle[ static_cast<sal_Int32>(ePath) ];
|
sal_Int32 nHandle = m_aMapEnumToPropHandle[ static_cast<sal_Int32>(ePath) ];
|
||||||
|
|
||||||
// Substitution is done by the service itself using the substition service
|
// Substitution is done by the service itself using the substitution service
|
||||||
Any a = m_xPathSettings->getFastPropertyValue( nHandle );
|
Any a = m_xPathSettings->getFastPropertyValue( nHandle );
|
||||||
a >>= aPathValue;
|
a >>= aPathValue;
|
||||||
if( ePath == SvtPathOptions::PATH_ADDIN ||
|
if( ePath == SvtPathOptions::PATH_ADDIN ||
|
||||||
@@ -289,7 +289,7 @@ void SvtPathOptions_Impl::SetPath( SvtPathOptions::Paths ePath, const OUString&
|
|||||||
aNewValue = rNewPath;
|
aNewValue = rNewPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resubstitution is done by the service itself using the substition service
|
// Resubstitution is done by the service itself using the substitution service
|
||||||
a <<= aNewValue;
|
a <<= aNewValue;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@@ -1263,7 +1263,7 @@ sal_Unicode ConvertChar::RecodeChar( sal_Unicode cChar ) const
|
|||||||
if ( IsStarSymbol( OUString::createFromAscii(mpSubsFontName) ) )
|
if ( IsStarSymbol( OUString::createFromAscii(mpSubsFontName) ) )
|
||||||
{
|
{
|
||||||
cRetVal = 0xE12C;
|
cRetVal = 0xE12C;
|
||||||
SAL_WARN( "unotools.misc", "Forcing a bullet substition from 0x" <<
|
SAL_WARN( "unotools.misc", "Forcing a bullet substitution from 0x" <<
|
||||||
OString::number(cChar, 16) << " to 0x" <<
|
OString::number(cChar, 16) << " to 0x" <<
|
||||||
OString::number(cRetVal, 16));
|
OString::number(cRetVal, 16));
|
||||||
}
|
}
|
||||||
@@ -1275,7 +1275,7 @@ sal_Unicode ConvertChar::RecodeChar( sal_Unicode cChar ) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// recode the string assuming the character codes are symbol codes
|
// recode the string assuming the character codes are symbol codes
|
||||||
// from an traditional symbol font (i.e. U+F020..U+F0FF)
|
// from a traditional symbol font (i.e. U+F020..U+F0FF)
|
||||||
void ConvertChar::RecodeString( OUString& rStr, sal_Int32 nIndex, sal_Int32 nLen ) const
|
void ConvertChar::RecodeString( OUString& rStr, sal_Int32 nIndex, sal_Int32 nLen ) const
|
||||||
{
|
{
|
||||||
sal_Int32 nLastIndex = nIndex + nLen;
|
sal_Int32 nLastIndex = nIndex + nLen;
|
||||||
|
@@ -547,9 +547,9 @@ void SAL_CALL ScVbaControl::fireEvent( const script::ScriptEvent& rEvt )
|
|||||||
if ( xControl.is() ) // normal control ( from dialog/userform )
|
if ( xControl.is() ) // normal control ( from dialog/userform )
|
||||||
{
|
{
|
||||||
// #FIXME We should probably store a reference to the
|
// #FIXME We should probably store a reference to the
|
||||||
// parent dialog/userform here ( other wise the name of
|
// parent dialog/userform here (otherwise the name of
|
||||||
// dialog could be changed and we won't be aware of it.
|
// dialog could be changed and we won't be aware of it.
|
||||||
// ( OTOH this is probably an unlikely scenario )
|
// (OTOH this is probably an unlikely scenario)
|
||||||
evt.Source = xThisControl;
|
evt.Source = xThisControl;
|
||||||
aEvt.Source = xControl;
|
aEvt.Source = xControl;
|
||||||
evt.ScriptCode = m_sLibraryAndCodeName;
|
evt.ScriptCode = m_sLibraryAndCodeName;
|
||||||
|
@@ -533,7 +533,7 @@ ScVbaShape::Select( const uno::Any& /*Replace*/ )
|
|||||||
xSelectSupp->select( uno::makeAny( m_xShape ) );
|
xSelectSupp->select( uno::makeAny( m_xShape ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// This method should not be part of Shape, what we reall need to do is...
|
// This method should not be part of Shape, what we really need to do is...
|
||||||
// dynamically create the appropriate objects e.g. TextBox, Oval, Picture etc.
|
// dynamically create the appropriate objects e.g. TextBox, Oval, Picture etc.
|
||||||
// ( e.g. the ones that really do have ShapeRange as an attribute )
|
// ( e.g. the ones that really do have ShapeRange as an attribute )
|
||||||
uno::Any SAL_CALL
|
uno::Any SAL_CALL
|
||||||
|
@@ -34,7 +34,7 @@ void
|
|||||||
VbaTextFrame::setAsMSObehavior()
|
VbaTextFrame::setAsMSObehavior()
|
||||||
{
|
{
|
||||||
//set property TextWordWrap default as False.
|
//set property TextWordWrap default as False.
|
||||||
// TextFitToSize control the text content. it seems we should set the default as False.
|
// TextFitToSize control the text content. It seems we should set the default as False.
|
||||||
// com.sun.star.drawing.TextFitToSizeType.NONE
|
// com.sun.star.drawing.TextFitToSizeType.NONE
|
||||||
m_xPropertySet->setPropertyValue( "TextWordWrap", uno::makeAny( false ) );
|
m_xPropertySet->setPropertyValue( "TextWordWrap", uno::makeAny( false ) );
|
||||||
m_xPropertySet->setPropertyValue( "TextFitToSize", uno::makeAny( drawing::TextFitToSizeType_NONE ) );
|
m_xPropertySet->setPropertyValue( "TextFitToSize", uno::makeAny( drawing::TextFitToSizeType_NONE ) );
|
||||||
|
@@ -1333,7 +1333,7 @@ STDMETHODIMP CMAccessible::Put_XAccAgent(hyper pAgent)
|
|||||||
* When a UNO control disposing, it disposes its listeners,
|
* When a UNO control disposing, it disposes its listeners,
|
||||||
* then notify AccObject in bridge management, then notify
|
* then notify AccObject in bridge management, then notify
|
||||||
* COM that the XAccessible is invalid,so set m_xAccessible as NULL
|
* COM that the XAccessible is invalid,so set m_xAccessible as NULL
|
||||||
* @param isDestroy, true is it need to be destroyed.
|
* @param isDestroy, true is it needs to be destroyed.
|
||||||
* @return S_OK if successful and E_FAIL if failure.
|
* @return S_OK if successful and E_FAIL if failure.
|
||||||
*/
|
*/
|
||||||
STDMETHODIMP CMAccessible::NotifyDestroy(BOOL isDestroy)
|
STDMETHODIMP CMAccessible::NotifyDestroy(BOOL isDestroy)
|
||||||
|
@@ -226,8 +226,8 @@ public:
|
|||||||
STDMETHOD(Get_XAccChildID)(/*[out,retval]*/ long* childID) override;
|
STDMETHOD(Get_XAccChildID)(/*[out,retval]*/ long* childID) override;
|
||||||
// AccObjectManagerAgent is a management object in UNO, here keep its pointer for
|
// AccObjectManagerAgent is a management object in UNO, here keep its pointer for
|
||||||
// the implementation of accNavigate when descendant manage happens for List,Tree, or Table
|
// the implementation of accNavigate when descendant manage happens for List,Tree, or Table
|
||||||
// AccObjectManagerAgent and the following UNO objects XAccessble,XAccessibleSelection,
|
// AccObjectManagerAgent and the following UNO objects XAccessible,XAccessibleSelection,
|
||||||
// XAccessibleAction are all used to operate UNO accessiblility information directly when
|
// XAccessibleAction are all used to operate UNO accessibility information directly when
|
||||||
// implement some specific MSAA methods,such as accSelection,accNavigate
|
// implement some specific MSAA methods,such as accSelection,accNavigate
|
||||||
static AccObjectManagerAgent* g_pAgent;
|
static AccObjectManagerAgent* g_pAgent;
|
||||||
|
|
||||||
|
@@ -87,7 +87,7 @@ void AccDialogEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
|
|||||||
}
|
}
|
||||||
else if (oldValue >>= xChild)
|
else if (oldValue >>= xChild)
|
||||||
{
|
{
|
||||||
//delete a existing child
|
//delete an existing child
|
||||||
if(xChild.is())
|
if(xChild.is())
|
||||||
{
|
{
|
||||||
XAccessible* pAcc = xChild.get();
|
XAccessible* pAcc = xChild.get();
|
||||||
|
@@ -100,7 +100,7 @@ void AccFrameEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
|
|||||||
}
|
}
|
||||||
else if (oldValue >>= xChild)
|
else if (oldValue >>= xChild)
|
||||||
{
|
{
|
||||||
//delete a existing child
|
//delete an existing child
|
||||||
if(xChild.is())
|
if(xChild.is())
|
||||||
{
|
{
|
||||||
XAccessible* pAcc = xChild.get();
|
XAccessible* pAcc = xChild.get();
|
||||||
|
@@ -87,7 +87,7 @@ void AccWindowEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
|
|||||||
}
|
}
|
||||||
else if (oldValue >>= xChild)
|
else if (oldValue >>= xChild)
|
||||||
{
|
{
|
||||||
//delete a existing child
|
//delete an existing child
|
||||||
if(xChild.is())
|
if(xChild.is())
|
||||||
{
|
{
|
||||||
XAccessible* pAcc = xChild.get();
|
XAccessible* pAcc = xChild.get();
|
||||||
|
Reference in New Issue
Block a user