Kaydet (Commit) f0b85731 authored tarafından Andrea Gelmini's avatar Andrea Gelmini Kaydeden (comit) Julien Nabet

Fix typos

Change-Id: Ia976371bf52eb1216d8abe728d80bbb87a3c38a2
Reviewed-on: https://gerrit.libreoffice.org/47858Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst ecd85579
......@@ -179,7 +179,7 @@ void SAL_CALL OConnectionPool::disposing( const css::lang::EventObject& Source )
{
MutexGuard aGuard(m_aMutex);
TActiveConnectionMap::iterator aIter = m_aActiveConnections.find(xConnection);
OSL_ENSURE(aIter != m_aActiveConnections.end(),"OConnectionPool::disposing: Conenction wasn't in pool");
OSL_ENSURE(aIter != m_aActiveConnections.end(),"OConnectionPool::disposing: Connection wasn't in pool");
if(aIter != m_aActiveConnections.end())
{ // move the pooled connection back to the pool
aIter->second.aPos->second.nALiveCount = m_nALiveCount;
......@@ -195,7 +195,7 @@ void SAL_CALL OConnectionPool::disposing( const css::lang::EventObject& Source )
Reference< XConnection> OConnectionPool::createNewConnection(const OUString& _rURL,const Sequence< PropertyValue >& _rInfo)
{
// create new pooled conenction
// create new pooled connection
Reference< XPooledConnection > xPooledConnection = new ::connectivity::OPooledConnection(m_xDriver->connect(_rURL,_rInfo),m_xProxyFactory);
// get the new connection from the pooled connection
Reference<XConnection> xConnection = xPooledConnection->getConnection();
......
......@@ -431,7 +431,7 @@ namespace drawinglayer
// only do something when bitmap fill has a size in discrete units
if(nBWidth > 0 && nBHeight > 0)
{
// nBWidth, nBHeight is the pixel size of the neede bitmap. To not need to scale it
// nBWidth, nBHeight is the pixel size of the needed bitmap. To not need to scale it
// in vcl many times, create a size-optimized version
const Size aNeededBitmapSizePixel(nBWidth, nBHeight);
BitmapEx aBitmapEx(rFillGraphicAttribute.getGraphic().GetBitmapEx());
......
......@@ -33,7 +33,7 @@ void CGM::ImplDoClass0()
break;
case 0x02 : /*End MetaFile*/
{
if ( mpBitmapInUse ) // process existend graphic
if ( mpBitmapInUse ) // process existing graphic
{
CGMBitmapDescriptor* pBmpDesc = mpBitmapInUse->GetBitmap();
// do anything with the bitmap
......@@ -70,7 +70,7 @@ void CGM::ImplDoClass0()
{
if ( mbPicture )
{
if ( mpBitmapInUse ) // process existend graphic
if ( mpBitmapInUse ) // process existing graphic
{
CGMBitmapDescriptor* pBmpDesc = mpBitmapInUse->GetBitmap();
// do anything with the bitmap
......
......@@ -107,7 +107,7 @@ void CGM::ImplDoClass4()
if ( mbFirstOutPut )
mpOutAct->FirstOutPut();
if ( mpBitmapInUse && ( mnElementID != 9 ) ) // process existend graphic
if ( mpBitmapInUse && ( mnElementID != 9 ) ) // process existed graphic
{ // because there are now no pending bitmap actions
CGMBitmapDescriptor* pBmpDesc = mpBitmapInUse->GetBitmap();
// do anything with the bitmap
......
......@@ -80,7 +80,7 @@ namespace connectivity
class OOO_DLLPUBLIC_DBTOOLS OSQLParseTreeIterator final
{
private:
css::sdbc::SQLException m_aErrors; // conatins the error while iterating through the statement
css::sdbc::SQLException m_aErrors; // contains the error while iterating through the statement
const OSQLParseNode* m_pParseTree; // current ParseTree
const OSQLParser& m_rParser; // if set used for general error messages from the context
OSQLStatementType m_eStatementType;
......
......@@ -423,7 +423,7 @@ public:
// from rSourceModel
// sal_False= the MasterPageDescriptors of
// the pages of the rSourceModel will be
// mapped on the exisiting MasterPages.
// mapped on the existing MasterPages.
// bUndo.....................: An undo action is generated for the merging.
// Undo is only for the target model, not for the
// rSourceModel.
......
......@@ -298,7 +298,7 @@ SvcMain(DWORD argc, LPWSTR *argv)
ReportSvcStatus(SERVICE_START_PENDING, NO_ERROR, 3000);
// This event will be used to tell the SvcCtrlHandler when the work is
// done for when a stop comamnd is manually issued.
// done for when a stop command is manually issued.
gWorkDoneEvent = CreateEvent(nullptr, TRUE, FALSE, nullptr);
if (!gWorkDoneEvent)
{
......
......@@ -3351,7 +3351,7 @@ int NS_main(int argc, NS_tchar **argv)
// on our own.
// If we still want to use the service try to launch the service
// comamnd for the update.
// command for the update.
if (useService)
{
// If the update couldn't be started, then set useService to false so
......
......@@ -40,7 +40,7 @@ namespace drawingml {
void TextCharacterProperties::assignUsed( const TextCharacterProperties& rSourceProps )
{
// overwrite all properties exisiting in rSourceProps
// overwrite all properties existing in rSourceProps
maHyperlinkPropertyMap.assignUsed( rSourceProps.maHyperlinkPropertyMap );
maLatinFont.assignIfUsed( rSourceProps.maLatinFont );
maLatinThemeFont.assignIfUsed( rSourceProps.maLatinThemeFont );
......
......@@ -148,7 +148,7 @@ public class ConfigHelper
/**
* Insert a structured node (group) in a name container (set)
* or else update it and retrun the <CODE>XNameReplace</CODE> of it.<P>
* or else update it and return the <CODE>XNameReplace</CODE> of it.<P>
* The <CODE>XSingleServiceFacttory</CODE> of the <CODE>set</CODE> will be used
* to create a new group. This group is specific to its set and
* creates defined entries.
......@@ -156,7 +156,7 @@ public class ConfigHelper
* @param groupName The name of the goup which should be returned
* @param setName The name of the set
* @throws com.sun.star.uno.Exception throws
* <CODE>com.sun.star.uno.Exeception</CODE> on any error.
* <CODE>com.sun.star.uno.Exception</CODE> on any error.
*/
public XNameReplace getOrInsertGroup(String setName, String groupName)
throws com.sun.star.uno.Exception
......@@ -193,7 +193,7 @@ public class ConfigHelper
* @param groupName the name of the <CODE>group</CODE> which property should be changed
* @param propName the name of the property which should be changed
* @param propValue the value the property should get
* @throws com.sun.star.uno.Exception throws <CODE>com.sun.star.uno.Exeception</CODE> on any error.
* @throws com.sun.star.uno.Exception throws <CODE>com.sun.star.uno.Exception</CODE> on any error.
*/
public void updateGroupProperty(String setName,
String groupName,
......@@ -227,12 +227,12 @@ public class ConfigHelper
/**
* Insert a property in an extensible group container or else update it
* @param setName the name of the <CODE>set</CODE> which contains the <CODE>group</CODE>
* @param group The name of the <CODE>group</CODE> which conatins the <CODE>extensible group</CODE>.
* @param group The name of the <CODE>group</CODE> which contains the <CODE>extensible group</CODE>.
* @param extGroup The name of the <CODE>extensible group</CODE> which
* [should] contain the property
* @param propName The name of the property.
* @param propValue The value of the property.
* @throws com.sun.star.uno.Exception throws <CODE>com.sun.star.uno.Exeception</CODE> on any error.
* @throws com.sun.star.uno.Exception throws <CODE>com.sun.star.uno.Exception</CODE> on any error.
*/
public void insertOrUpdateExtensibleGroupProperty(
String setName,
......
......@@ -44,7 +44,7 @@ import com.sun.star.ucb.XCachedContentResultSetFactory;
public class _XCachedContentResultSetFactory extends MultiMethodTest {
/**
* Conatins the tested object.
* Contains the tested object.
*/
public XCachedContentResultSetFactory oObj;
private XResultSet resSetStub = null ;
......
......@@ -44,7 +44,7 @@ import com.sun.star.ucb.XCachedContentResultSetStubFactory;
public class _XCachedContentResultSetStubFactory extends MultiMethodTest {
/**
* Conatins the tested object.
* Contains the tested object.
*/
public XCachedContentResultSetStubFactory oObj;
private XResultSet resSet = null ;
......
......@@ -45,7 +45,7 @@ import com.sun.star.ucb.XDynamicResultSet;
public class _XCachedDynamicResultSetFactory extends MultiMethodTest {
/**
* Conatins the tested object.
* Contains the tested object.
*/
public XCachedDynamicResultSetFactory oObj;
private XDynamicResultSet resSetStub = null ;
......
......@@ -48,7 +48,7 @@ import com.sun.star.uno.UnoRuntime;
public class _XCachedDynamicResultSetStubFactory extends MultiMethodTest {
/**
* Conatins the tested object.
* Contains the tested object.
*/
public XCachedDynamicResultSetStubFactory oObj;
private XDynamicResultSet resSet = null ;
......
......@@ -65,7 +65,7 @@ import lib.StatusException;
public class _XCommandProcessor extends MultiMethodTest {
/**
* Conatins the tested object.
* Contains the tested object.
*/
public XCommandProcessor oObj;
......
......@@ -25,7 +25,7 @@ import com.sun.star.ucb.XCommandProcessor2;
public class _XCommandProcessor2 extends MultiMethodTest {
/**
* Conatins the tested object.
* Contains the tested object.
*/
public XCommandProcessor2 oObj;
......
......@@ -55,7 +55,7 @@ import com.sun.star.uno.Type;
public class _XSortedDynamicResultSetFactory extends MultiMethodTest {
/**
* Conatins the tested object.
* Contains the tested object.
*/
public XSortedDynamicResultSetFactory oObj;
......
......@@ -130,7 +130,7 @@ private:
};
// Entity binds all information neede for a single file
// Entity binds all information needed for a single file
struct Entity
{
InputSource structSource;
......
......@@ -143,7 +143,7 @@ private:
const std::shared_ptr<BitmapCache>& rpCache);
/** This method is used internally to initialize a newly created
BitmapCache with already exisiting previews.
BitmapCache with already existing previews.
*/
void Recycle (
const std::shared_ptr<BitmapCache>& rpCache,
......
......@@ -374,7 +374,7 @@ void SlideSorterModel::SetDocumentSlides (
mxSlides = nullptr;
ClearDescriptorList ();
// Reset the current page to cause everbody to release references to it.
// Reset the current page to cause everybody to release references to it.
mrSlideSorter.GetController().GetCurrentSlideManager()->NotifyCurrentSlideChange(-1);
// Set the new set of pages.
......
......@@ -644,7 +644,7 @@ SCODE STDMETHODCALLTYPE COooFilter::Load(IStream *pStm)
//M-------------------------------------------------------------------------
// Method: COooFilter::GetSizeMax (IPersistStream::GetSizeMax)
// Summary: Returns the size in bytes of the stream neede to save the object.
// Summary: Returns the size in bytes of the stream needed to save the object.
// Arguments: pcbSize
// [out] Pointer to a 64 bit unsigned int indicating the size needed
// Returns: E_NOTIMPL
......
......@@ -108,7 +108,7 @@ static void mergeKeys(
if (xSource->getKeyType( name ) == registry::RegistryKeyType_KEY)
{
// try to open exisiting dest key or create new one
// try to open existing dest key or create new one
Reference< registry::XRegistryKey > xDestKey( xDest->createKey( name ) );
Reference< registry::XRegistryKey > xSourceKey( xSource->openKey( name ) );
mergeKeys( xDestKey, xSourceKey, links );
......
......@@ -442,7 +442,7 @@ DECLARE_OOXMLEXPORT_TEST(testChartInFooter, "chart-in-footer.docx")
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
if (xDrawPageSupplier.is())
{
// If xDrawPage->getCount()==1, then document conatins one shape.
// If xDrawPage->getCount()==1, then document contains one shape.
uno::Reference<container::XIndexAccess> xDrawPage(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xDrawPage->getCount()); // One shape in the doc
}
......
......@@ -620,7 +620,7 @@ DECLARE_OOXMLEXPORT_TEST(testBehinddoc, "behinddoc.docx")
DECLARE_OOXMLEXPORT_TEST(testSmartArtAnchoredInline, "fdo73227.docx")
{
/* Given file conatins 3 DrawingML objects as 1Picture,1SmartArt and 1Shape.
/* Given file contains 3 DrawingML objects as 1Picture,1SmartArt and 1Shape.
* Check for SmartArt.
* SmartArt should get written as "Floating Object" i.e. inside <wp:anchor> tag.
* Also check for value of attribute "id" of <wp:docPr>. It should be unique for
......
......@@ -569,7 +569,7 @@ DECLARE_OOXMLEXPORT_TEST(testFdo81492, "fdo81492.docx")
DECLARE_OOXMLEXPORT_TEST(testEditTime, "fdo81341.docx")
{
/* Issue was LO was not able to Import and Export EditTime in seconds format.
* It was supporting Time in "HH:MM" format. But if DOCX conatins Time in seconds,
* It was supporting Time in "HH:MM" format. But if DOCX contains Time in seconds,
* then LO was not able to display time in "HH:MM:SS" format.
* While exporting LO was writing plain text instead of field entry.
*/
......
......@@ -341,7 +341,7 @@ after the CH_TXTATR).
It would probably be a bad idea to add another nesting hint without
CH_TXTATR; on the other hand, it would be difficult adding a CH_TXTATR to
RES_TXTATR_INETFMT and RES_TXTATR_CJK_RUBY, due to the overwriting and
splitting of exising hints that is necessary for backward compatibility.
splitting of existing hints that is necessary for backward compatibility.
@param rNode the text node
@param rHint the hint to be inserted
......@@ -546,7 +546,7 @@ SwpHints::TryInsertNesting( SwTextNode & rNode, SwTextAttrNesting & rNewHint )
{
assert((nOtherStart < nNewStart) || (nNewEnd < nOtherEnd));
// scenario: there is a RUBY, and contained within that a META;
// now a RUBY is inserted within the META => the exising RUBY is split:
// now a RUBY is inserted within the META => the existing RUBY is split:
// here it is not possible to simply insert the left/right fragment
// of the existing RUBY because they <em>overlap</em> with the META!
Delete( *itOther ); // this also does NoteInHistory!
......
......@@ -4458,7 +4458,7 @@ void DocxAttributeOutput::DefaultStyle()
SAL_INFO("sw.ww8", "TODO DocxAttributeOutput::DefaultStyle()");
}
/* Writes <a:srcRect> tag back to document.xml if a file conatins a cropped image.
/* Writes <a:srcRect> tag back to document.xml if a file contains a cropped image.
* NOTE : Tested on images of type JPEG,EMF/WMF,BMP, PNG and GIF.
*/
void DocxAttributeOutput::WriteSrcRect(const SdrObject* pSdrObj, const SwFrameFormat* pFrameFormat )
......
......@@ -893,7 +893,7 @@ static void benchmark(
// while (i--)
// xBench->setSequence( aSeq );
// tEnd = getSystemTicks();
// rSheet.insert( "transfer of exisiting objects", nLoop, tEnd - tStart );
// rSheet.insert( "transfer of existing objects", nLoop, tEnd - tStart );
// exceptions
i = nLoop;
......
......@@ -66,7 +66,7 @@ import share.LogWriter;
public class _XCommandProcessor {
/**
* Conatins the tested object.
* Contains the tested object.
*/
public XCommandProcessor oObj;
private final LogWriter log = null;
......
......@@ -109,7 +109,7 @@ public:
css::uno::Reference< css::container::XHierarchicalNameAccess >
getRootConfigReadNameAccess( const OUString & rServiceSpecifier );
// Note: may retrun an empty reference.
// Note: may return an empty reference.
css::uno::Reference< css::util::XOfficeInstallationDirectories >
getOfficeInstallationDirectories();
};
......
......@@ -36,7 +36,7 @@ The COM components also call into the same global AccObjectWinManager
as the UNO components do so both have to be synchronized in the same way.
So we use the SolarMutex for all synchronization since anything else
would be rather difficult to make work. Unfortunately there is a
pre-exising problem in vcl with Win32 Window creation and destruction
pre-existing problem in vcl with Win32 Window creation and destruction
on non-main threads where a synchronous SendMessage is used while
the SolarMutex is locked that can cause deadlocks if the main thread is
waiting on the SolarMutex itself at that time and thus not handing the
......
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