Kaydet (Commit) 7d202623 authored tarafından Ilmari Lauhakangas's avatar Ilmari Lauhakangas Kaydeden (comit) Julien Nabet

Fix typos and grammar

Change-Id: I4143da3c5a809118d57849664f6ab1d2e775837f
Reviewed-on: https://gerrit.libreoffice.org/46253Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
Tested-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 4094f9ba
......@@ -60,8 +60,8 @@ import util.utils;
* of the <code>TypeDetection<code> must match with an expected type.
*
*
* To get information which test file should support which type, filter and
* document service, this information was collect from configuration files:
* To get information on which test file should support which type, filter and
* document service, this information was collected from configuration files:
* <UL>
* <LI><a href="#TypeDetection.props">TypeDetection.props</a></LI>
* <LI><a href="#files.csv">files.csv</a></LI>
......@@ -72,7 +72,7 @@ import util.utils;
* <p>
* <h3><A name="TypeDetection.props"></A>
* <code>typeDetection.props</code></h3>
* At fist there will be the <code>typeDetection.props</code>. Here the following
* At first there will be the <code>typeDetection.props</code>. Here the following
* properties should be set (with example values):
*
* TestDocumentPath=file:///path/to/my/testdocuments
......@@ -100,7 +100,7 @@ import util.utils;
* this file
*
* The second example displays two document types for
* <code>XInputStream</CODE> (<code>generic_Text</CODE>). This
* <code>XInputStream</CODE> (<code>generic_Text</CODE>). These
* two document types are listed by a colon ':' as separator.
* This is needed because XInputStream can detect a text file as
* generic_Text.
......@@ -112,9 +112,9 @@ import util.utils;
* filter to detect the document. This make sense ie. for csv-files: You can
* open csv files as Writer or as Calc. To check this case you have to specify
* in <code>csv.files</code> a fileAlias like ?csv_writer? and ?csv_calc? with
* the same fileURL and it's specific defaultFileType.
* The returned file type by <code>TypeDetection</code> must equal to
* correspond <code>defaultFileType</code> from <code>csv.files</code>
* the same fileURL and its specific defaultFileType.
* The returned file type by <code>TypeDetection</code> must be equal to the
* corresponding <code>defaultFileType</code> from <code>csv.files</code>
*
* Syntax: fileAlias;FilterName;FilterOptions;FilterData
* Example: Writer6_1;%SO6productname %SO6formatversion Textdocument;
......@@ -125,18 +125,18 @@ import util.utils;
* name which should be used. Here we have a special: <code>%SO6productname
* %SO6formatversion</code> will be replaced by the equals of
* <code>typeDetection.props</code>. The filter names depends on the Office
* name and version. So a future Office could called ?StarSuite 8?.
* name and version. So a future Office could be called ?StarSuite 8?.
* <code>FilterOptions</code> is not relevant for this filter. But ie. for csv
* filter this entry could be used to specify the separator of the csv file.
* <code>FilterData<code> if filter needs some FilterData arguments you can
* specify it here
* specify them here
*
* <p>
* <H3><a name="preselectedType.csv"></A>
* <code>preselectedType.csv</code></H3>
* In this file you can preselect the type
* <code>TypeDetection</code> should use.
* The returned file type by <code>TypeDetection</code> must equal to the
* The file type returned by <code>TypeDetection</code> must be equal to the
* preselected file type.
* Note: If you try to use invalid types you will get a failed test because
* <code>TypeDetection</code> tries to find out the type itself.
......@@ -153,8 +153,8 @@ import util.utils;
* <p>
* <H3><a name="serviceName.csv"></A>
* <code>serviceName.csv</code></H3> In this file you can preselect a service name
* to detect the file type. The returned file type by
* <code>TypeDetection</code> must equal to correspond
* to detect the file type. The file type returned by
* <code>TypeDetection</code> must be equal to the corresponding
* <code>defaultFileType</code> from <code>csv.files</code>
*
* Syntax: fileAlias;serviceName
......@@ -275,7 +275,7 @@ public class TypeDetection extends ComplexTestCase {
}
/** To check the <CODE>TypeDedection</CODE> by URL the <CODE>MediaDescriptor</CODE>
* was filled at fist with the URL only, at second with <CODE>XInputStream</CODE>
* was filled at first with the URL only, at second with <CODE>XInputStream</CODE>
* only. The <CODE>TypeDetection</CODE> must return the expected value
* @param fileAlias the alias name of the test file
* @param fileURL the URL of the test file
......
......@@ -5624,7 +5624,7 @@ SvxMSDffManager::SvxMSDffManager(SvStream& rStCtrl_,
m_pBLIPInfos( new SvxMSDffBLIPInfos ),
m_xShapeInfosByTxBxComp( new SvxMSDffShapeInfos_ByTxBxComp ),
nOffsDgg( nOffsDgg_ ),
nBLIPCount( USHRT_MAX ), // initialize with error, since we fist check if the
nBLIPCount( USHRT_MAX ), // initialize with error, since we first check if the
nGroupShapeFlags(ShapeFlag::NONE), // ensure initialization here, as some corrupted
// files may yield to this being uninitialized
maBaseURL( rBaseURL ),
......
......@@ -1868,7 +1868,7 @@
<xsl:variable name="value2" select="substring-after($tmp,' ')"/>
<xsl:value-of select="concat( 'atan' , '( ' , $value2, '/' , $value1 , ')' )"/>
</xsl:when><- -->
<!-- ellipse and sumangle are always used by arc commans like this
<!-- ellipse and sumangle are always used by arc command like this
eqn="ellipse @24 @4 height" ; and eqn="sumangle @2 360 0"
mod is always used too.-->
<!--mod =sqrt( v*v + P1×P1 + P2×P2). ( 3 parameters )-->
......
......@@ -2044,7 +2044,7 @@ void Frame::implts_forgetSubFrames()
/*-****************************************************************************************************
@short destroy instance
@descr The owner of this object calles the dispose method if the object
@descr The owner of this object calls the dispose method if the object
should be destroyed. All other objects and components, that are registered
as an EventListener are forced to release their references to this object.
Furthermore this frame is removed from its parent frame container to release
......
......@@ -428,7 +428,7 @@ void ZipPackage::parseContentType()
if ( aContentTypeInfo.getLength() != 2 )
throw io::IOException(THROW_WHERE );
// set the implicit types fist
// set the implicit types first
for ( nInd = 0; nInd < aContentTypeInfo[0].getLength(); nInd++ )
m_xRootFolder->setChildStreamsTypeByExtension( aContentTypeInfo[0][nInd] );
......
......@@ -114,7 +114,7 @@ public class MultiMethodTest
* Runs the interface test: its method tests. First, it initializes some
* of MultiMethodTest fields, like tRes, log, tEnv, etc. Then, it queries
* the tested interface and initializes 'oObj' field (defined in a
* subclass). Before calling method tests, before() method calles to allow
* subclass). Before calling method tests, before() method is called to allow
* initialization of s stuff before testing. Then, the method tests are
* called. After them, after() method is called, to allow cleaning up the
* stuff initialized in before() and test methods.
......
......@@ -73,7 +73,7 @@ public class _XDispatchRecorder extends MultiMethodTest {
oObj.startRecording(xFrame);
log.println("dispatch calles via API must be recorded");
log.println("dispatch calls via API must be recorded");
dispURL = utils.parseURL(tParam.getMSF(), ".uno:InsertText");
PropertyValue prop = new PropertyValue();
......
......@@ -93,9 +93,9 @@ public class _XTextRangeCompare extends MultiMethodTest {
/**
* One cursor is created and to its position a paragraph
* inserted, then the fist five characters was selected.
* inserted, then the first five characters were selected.
* A second cursor was created and the last 7 characters
* was selected.<p>
* were selected.<p>
*
* Has <b>OK</b> status if the compare returns 1, i.e.
* the second cursor end is before the first.
......@@ -134,9 +134,9 @@ public class _XTextRangeCompare extends MultiMethodTest {
/**
* One cursor is created and to its position a paragraph
* inserted, then the fist five characters was selected.
* inserted, then the first five characters were selected.
* A second cursor was created and the last 7 characters
* was selected.<p>
* were selected.<p>
*
* Has <b>OK</b> status if the compare returns 1, i.e.
* the second cursor start is before the first.
......
......@@ -2147,7 +2147,7 @@ void XclImpCheckBoxObj::DoReadObj5( XclImpStream& rStrm, sal_uInt16 nNameLen, sa
maTextData.maData.mnFlags = rStrm.ReaduInt16();
rStrm.Ignore( 20 );
ReadName5( rStrm, nNameLen );
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // fist macro size invalid and unused
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // first macro size invalid and unused
ReadCellLinkFormula( rStrm, true );
maTextData.maData.mnTextLen = rStrm.ReaduInt16();
maTextData.ReadByteString( rStrm );
......@@ -2239,7 +2239,7 @@ void XclImpOptionButtonObj::DoReadObj5( XclImpStream& rStrm, sal_uInt16 nNameLen
maTextData.maData.mnFlags = rStrm.ReaduInt16();
rStrm.Ignore( 32 );
ReadName5( rStrm, nNameLen );
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // fist macro size invalid and unused
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // first macro size invalid and unused
ReadCellLinkFormula( rStrm, true );
maTextData.maData.mnTextLen = rStrm.ReaduInt16();
maTextData.ReadByteString( rStrm );
......@@ -2360,7 +2360,7 @@ void XclImpGroupBoxObj::DoReadObj5( XclImpStream& rStrm, sal_uInt16 nNameLen, sa
maTextData.maData.mnFlags = rStrm.ReaduInt16();
rStrm.Ignore( 26 );
ReadName5( rStrm, nNameLen );
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // fist macro size invalid and unused
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // first macro size invalid and unused
maTextData.maData.mnTextLen = rStrm.ReaduInt16();
maTextData.ReadByteString( rStrm );
maTextData.maData.mnShortcut = rStrm.ReaduInt16();
......@@ -2441,7 +2441,7 @@ void XclImpEditObj::DoReadObj5( XclImpStream& rStrm, sal_uInt16 nNameLen, sal_uI
maTextData.maData.mnFlags = rStrm.ReaduInt16();
rStrm.Ignore( 14 );
ReadName5( rStrm, nNameLen );
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // fist macro size invalid and unused
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // first macro size invalid and unused
maTextData.maData.mnTextLen = rStrm.ReaduInt16();
maTextData.ReadByteString( rStrm );
mnContentType = rStrm.ReaduInt16();
......@@ -2549,7 +2549,7 @@ void XclImpSpinButtonObj::DoReadObj5( XclImpStream& rStrm, sal_uInt16 nNameLen,
ReadFrameData( rStrm );
ReadSbs( rStrm );
ReadName5( rStrm, nNameLen );
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // fist macro size invalid and unused
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // first macro size invalid and unused
ReadCellLinkFormula( rStrm, true );
}
......@@ -2586,7 +2586,7 @@ void XclImpScrollBarObj::DoReadObj5( XclImpStream& rStrm, sal_uInt16 nNameLen, s
ReadFrameData( rStrm );
ReadSbs( rStrm );
ReadName5( rStrm, nNameLen );
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // fist macro size invalid and unused
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // first macro size invalid and unused
ReadCellLinkFormula( rStrm, true );
}
......@@ -2672,7 +2672,7 @@ void XclImpListBoxObj::DoReadObj5( XclImpStream& rStrm, sal_uInt16 nNameLen, sal
maTextData.maData.mnDefFontIdx = rStrm.ReaduInt16();
rStrm.Ignore( 4 );
ReadName5( rStrm, nNameLen );
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // fist macro size invalid and unused
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // first macro size invalid and unused
ReadCellLinkFormula( rStrm, true );
ReadFullLbsData( rStrm, rStrm.GetRecLeft() );
mbHasDefFontIdx = true;
......@@ -2777,7 +2777,7 @@ void XclImpDropDownObj::DoReadObj5( XclImpStream& rStrm, sal_uInt16 nNameLen, sa
mnBottom = rStrm.ReaduInt16();
rStrm.Ignore( 4 );
ReadName5( rStrm, nNameLen );
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // fist macro size invalid and unused
ReadMacro5( rStrm, rStrm.ReaduInt16() ); // first macro size invalid and unused
ReadCellLinkFormula( rStrm, true );
ReadFullLbsData( rStrm );
mbHasDefFontIdx = true;
......
......@@ -523,7 +523,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt)
if ((dynamic_cast<const E3dObject* >(pObject) != nullptr) && (rMarkList.GetMarkCount() == 1))
{
mpWindow->SetPointer(Pointer(PointerStyle::Rotate));
bDefPointer = false; // Otherwise it'll be calles Joes routine and the mousepointer will reconfigurate again
bDefPointer = false; // Otherwise it'll be called Joe's routine and the mousepointer will reconfigurate again
}
}
......
......@@ -75,7 +75,7 @@ protected:
virtual void Run() = 0;
private:
/** This timer is used to collect calles to RequestCompaction() and
/** This timer is used to collect calls to RequestCompaction() and
eventually call Run().
*/
Timer maCompactionTimer;
......
......@@ -1250,7 +1250,7 @@ sal_uInt16 SwNodes::GetSectionLevel(const SwNodeIndex &rIdx)
{
// special treatment for 1st Node
if(rIdx == 0) return 1;
// no recursion! This calles a SwNode::GetSectionLevel (missing "s")
// no recursion! This calls a SwNode::GetSectionLevel (missing "s")
return rIdx.GetNode().GetSectionLevel();
}
......
......@@ -60,7 +60,7 @@ static bool SetGrfFlySize( const Size& rGrfSz, SwGrfNode* pGrfNd, const Size &rO
static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
{
//call fist all not SwNoTextFrames, then the SwNoTextFrames.
//call first all not SwNoTextFrames, then the SwNoTextFrames.
// The reason is, that in the SwNoTextFrames the Graphic
// after a Paint will be swapped out! So all other "behind"
// them haven't a loaded Graphic.
......
......@@ -1601,7 +1601,7 @@ SwTwips SwFrame::AdjustNeighbourhood( SwTwips nDiff, bool bTst )
}
else
{
//The page can shrink to 0. The fist page keeps the same size like
//The page can shrink to 0. The first page keeps the same size like
//VisArea.
nChg = nDiff;
long nInvaAdd = 0;
......
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