Kaydet (Commit) 0dc23795 authored tarafından Julien Nabet's avatar Julien Nabet

Typos for "available"

Change-Id: I8050b1f2ea5414b6e6da3392e8e22d330c794ff5
Reviewed-on: https://gerrit.libreoffice.org/41836Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 16c5e238
...@@ -131,16 +131,16 @@ DataLabelResources::DataLabelResources(VclBuilderContainer* pWindow, vcl::Window ...@@ -131,16 +131,16 @@ DataLabelResources::DataLabelResources(VclBuilderContainer* pWindow, vcl::Window
aPlacementToStringMap[nEnum] = m_pLB_LabelPlacement->GetEntry(static_cast<sal_uInt16>(nEnum)); aPlacementToStringMap[nEnum] = m_pLB_LabelPlacement->GetEntry(static_cast<sal_uInt16>(nEnum));
std::vector< sal_Int32 > aAvailabelPlacementList; std::vector< sal_Int32 > aAvailablePlacementList;
const SfxPoolItem *pPoolItem = nullptr; const SfxPoolItem *pPoolItem = nullptr;
if( rInAttrs.GetItemState(SCHATTR_DATADESCR_AVAILABLE_PLACEMENTS, true, &pPoolItem) == SfxItemState::SET ) if( rInAttrs.GetItemState(SCHATTR_DATADESCR_AVAILABLE_PLACEMENTS, true, &pPoolItem) == SfxItemState::SET )
aAvailabelPlacementList = static_cast<const SfxIntegerListItem*>(pPoolItem)->GetList(); aAvailablePlacementList = static_cast<const SfxIntegerListItem*>(pPoolItem)->GetList();
m_pLB_LabelPlacement->Clear(); m_pLB_LabelPlacement->Clear();
for( size_t nN=0; nN<aAvailabelPlacementList.size(); ++nN ) for( size_t nN=0; nN<aAvailablePlacementList.size(); ++nN )
{ {
sal_uInt16 nListBoxPos = static_cast<sal_uInt16>( nN ); sal_uInt16 nListBoxPos = static_cast<sal_uInt16>( nN );
sal_Int32 nPlacement = aAvailabelPlacementList[nN]; sal_Int32 nPlacement = aAvailablePlacementList[nN];
m_aPlacementToListBoxMap[nPlacement]=nListBoxPos; m_aPlacementToListBoxMap[nPlacement]=nListBoxPos;
m_aListBoxToPlacementMap[nListBoxPos]=nPlacement; m_aListBoxToPlacementMap[nListBoxPos]=nPlacement;
m_pLB_LabelPlacement->InsertEntry( aPlacementToStringMap[nPlacement] ); m_pLB_LabelPlacement->InsertEntry( aPlacementToStringMap[nPlacement] );
......
...@@ -57,7 +57,7 @@ public class Bootstrap_Test { ...@@ -57,7 +57,7 @@ public class Bootstrap_Test {
String services[] = msf.getAvailableServiceNames(); String services[] = msf.getAvailableServiceNames();
logger.log(Level.FINE, "Available services are:"); logger.log(Level.FINE, "Available services are:");
if (services.length == 0) if (services.length == 0)
logger.log(Level.FINE, "No services avialable!"); logger.log(Level.FINE, "No services available!");
else else
for ( int i=0; i<services.length; i++ ) for ( int i=0; i<services.length; i++ )
......
...@@ -159,14 +159,14 @@ public class ServiceManager implements XMultiServiceFactory, ...@@ -159,14 +159,14 @@ public class ServiceManager implements XMultiServiceFactory,
ArrayList<Object> availableFact = factoriesByServiceNames.get( serviceName ); ArrayList<Object> availableFact = factoriesByServiceNames.get( serviceName );
DEBUG(""); DEBUG("");
DEBUG("aviable factories for " + serviceName +" "+ availableFact); DEBUG("available factories for " + serviceName +" "+ availableFact);
DEBUG(""); DEBUG("");
if ( !availableFact.isEmpty() ) if ( !availableFact.isEmpty() )
factory = availableFact.get(availableFact.size()-1); factory = availableFact.get(availableFact.size()-1);
} else // not found in list of services - now try the implementations } else // not found in list of services - now try the implementations
factory = factoriesByImplNames.get( serviceName ); // return null if none is aviable factory = factoriesByImplNames.get( serviceName ); // return null if none is available
if (DEBUG) { if (DEBUG) {
if (factory == null) System.err.println("service not registered"); if (factory == null) System.err.println("service not registered");
...@@ -181,7 +181,7 @@ public class ServiceManager implements XMultiServiceFactory, ...@@ -181,7 +181,7 @@ public class ServiceManager implements XMultiServiceFactory,
} }
/** /**
* Supplies a list of all avialable services names. * Supplies a list of all available services names.
* *
* @return list of Strings of all service names. * @return list of Strings of all service names.
* @see com.sun.star.container.XContentEnumerationAccess * @see com.sun.star.container.XContentEnumerationAccess
...@@ -469,7 +469,7 @@ public class ServiceManager implements XMultiServiceFactory, ...@@ -469,7 +469,7 @@ public class ServiceManager implements XMultiServiceFactory,
System.err.println("The implementation " + xServiceInfo.getImplementationName() + System.err.println("The implementation " + xServiceInfo.getImplementationName() +
" is not registered for the service " + serviceName + " - ignoring!"); " is not registered for the service " + serviceName + " - ignoring!");
} }
// remove the vector if no implementations aviable for the service // remove the vector if no implementations available for the service
if (vec.isEmpty()) { if (vec.isEmpty()) {
factoriesByServiceNames.remove(serviceName); factoriesByServiceNames.remove(serviceName);
} }
......
...@@ -295,7 +295,7 @@ void SAL_CALL ExportDocumentHandler::initialize( const uno::Sequence< uno::Any > ...@@ -295,7 +295,7 @@ void SAL_CALL ExportDocumentHandler::initialize( const uno::Sequence< uno::Any >
m_xDelegatee = aArgs.getUnpackedValueOrDefault("DocumentHandler",m_xDelegatee); m_xDelegatee = aArgs.getUnpackedValueOrDefault("DocumentHandler",m_xDelegatee);
m_xModel = aArgs.getUnpackedValueOrDefault("Model",m_xModel); m_xModel = aArgs.getUnpackedValueOrDefault("Model",m_xModel);
OSL_ENSURE(m_xDelegatee.is(),"No document handler avialable!"); OSL_ENSURE(m_xDelegatee.is(),"No document handler available!");
if ( !m_xDelegatee.is() || !m_xModel.is() ) if ( !m_xDelegatee.is() || !m_xModel.is() )
throw uno::Exception(); throw uno::Exception();
......
...@@ -345,7 +345,7 @@ void SAL_CALL ImportDocumentHandler::initialize( const uno::Sequence< uno::Any > ...@@ -345,7 +345,7 @@ void SAL_CALL ImportDocumentHandler::initialize( const uno::Sequence< uno::Any >
m_xDelegatee = aArgs.getUnpackedValueOrDefault("DocumentHandler",m_xDelegatee); m_xDelegatee = aArgs.getUnpackedValueOrDefault("DocumentHandler",m_xDelegatee);
m_xModel = aArgs.getUnpackedValueOrDefault("Model",m_xModel); m_xModel = aArgs.getUnpackedValueOrDefault("Model",m_xModel);
OSL_ENSURE(m_xDelegatee.is(),"No document handler avialable!"); OSL_ENSURE(m_xDelegatee.is(),"No document handler available!");
if ( !m_xDelegatee.is() || !m_xModel.is() ) if ( !m_xDelegatee.is() || !m_xModel.is() )
throw uno::Exception(); throw uno::Exception();
......
...@@ -36,7 +36,7 @@ Assistent::Assistent(int nNoOfPages) ...@@ -36,7 +36,7 @@ Assistent::Assistent(int nNoOfPages)
bool Assistent::InsertControl(int nDestPage, vcl::Window* pUsedControl) bool Assistent::InsertControl(int nDestPage, vcl::Window* pUsedControl)
{ {
DBG_ASSERT( (nDestPage > 0) && (nDestPage <= mnPages), "Page not aviable!"); DBG_ASSERT( (nDestPage > 0) && (nDestPage <= mnPages), "Page not available!");
if((nDestPage>0)&&(nDestPage<=mnPages)) if((nDestPage>0)&&(nDestPage<=mnPages))
{ {
...@@ -77,7 +77,7 @@ void Assistent::PreviousPage() ...@@ -77,7 +77,7 @@ void Assistent::PreviousPage()
bool Assistent::GotoPage(const int nPageToGo) bool Assistent::GotoPage(const int nPageToGo)
{ {
DBG_ASSERT( (nPageToGo > 0) && (nPageToGo <= mnPages), "Page not aviable!"); DBG_ASSERT( (nPageToGo > 0) && (nPageToGo <= mnPages), "Page not available!");
if((nPageToGo>0)&&(nPageToGo<=mnPages)&&mpPageStatus[nPageToGo-1]) if((nPageToGo>0)&&(nPageToGo<=mnPages)&&mpPageStatus[nPageToGo-1])
{ {
...@@ -136,14 +136,14 @@ bool Assistent::IsFirstPage() const ...@@ -136,14 +136,14 @@ bool Assistent::IsFirstPage() const
bool Assistent::IsEnabled( int nPage ) const bool Assistent::IsEnabled( int nPage ) const
{ {
DBG_ASSERT( (nPage>0) && (nPage <= mnPages), "Page not aviable!" ); DBG_ASSERT( (nPage>0) && (nPage <= mnPages), "Page not available!" );
return (nPage>0) && (nPage <= mnPages && mpPageStatus[nPage-1]); return (nPage>0) && (nPage <= mnPages && mpPageStatus[nPage-1]);
} }
void Assistent::EnablePage( int nPage ) void Assistent::EnablePage( int nPage )
{ {
DBG_ASSERT( (nPage>0) && (nPage <= mnPages), "Page not aviable!" ); DBG_ASSERT( (nPage>0) && (nPage <= mnPages), "Page not available!" );
if((nPage>0) && (nPage < mnPages && !mpPageStatus[nPage-1])) if((nPage>0) && (nPage < mnPages && !mpPageStatus[nPage-1]))
{ {
...@@ -153,7 +153,7 @@ void Assistent::EnablePage( int nPage ) ...@@ -153,7 +153,7 @@ void Assistent::EnablePage( int nPage )
void Assistent::DisablePage( int nPage ) void Assistent::DisablePage( int nPage )
{ {
DBG_ASSERT( (nPage>0) && (nPage <= mnPages), "Page not aviable!" ); DBG_ASSERT( (nPage>0) && (nPage <= mnPages), "Page not available!" );
if((nPage>0) && (nPage <= mnPages && mpPageStatus[nPage-1])) if((nPage>0) && (nPage <= mnPages && mpPageStatus[nPage-1]))
{ {
......
...@@ -3146,14 +3146,14 @@ void XMLTextParagraphExport::_exportTextGraphic( ...@@ -3146,14 +3146,14 @@ void XMLTextParagraphExport::_exportTextGraphic(
void XMLTextParagraphExport::_collectTextEmbeddedAutoStyles(const Reference < XPropertySet > & ) void XMLTextParagraphExport::_collectTextEmbeddedAutoStyles(const Reference < XPropertySet > & )
{ {
SAL_WARN( "xmloff", "no API implementation avialable" ); SAL_WARN( "xmloff", "no API implementation available" );
} }
void XMLTextParagraphExport::_exportTextEmbedded( void XMLTextParagraphExport::_exportTextEmbedded(
const Reference < XPropertySet > &, const Reference < XPropertySet > &,
const Reference < XPropertySetInfo > & ) const Reference < XPropertySetInfo > & )
{ {
SAL_WARN( "xmloff", "no API implementation avialable" ); SAL_WARN( "xmloff", "no API implementation available" );
} }
void XMLTextParagraphExport::exportEvents( const Reference < XPropertySet > & rPropSet ) void XMLTextParagraphExport::exportEvents( const Reference < XPropertySet > & rPropSet )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment