Kaydet (Commit) 3e926736 authored tarafından Adolfo Jayme Barrientos's avatar Adolfo Jayme Barrientos

Miscellaneous typos

Change-Id: I5187364d420ab78c36a91632efab9c32951d867a
üst 34d06214
...@@ -158,7 +158,7 @@ static sal_Int64 ImpStringToCurrency( const OUString &rStr ) ...@@ -158,7 +158,7 @@ static sal_Int64 ImpStringToCurrency( const OUString &rStr )
OUString sTmp( rStr.trim() ); OUString sTmp( rStr.trim() );
const sal_Unicode* p = sTmp.getStr(); const sal_Unicode* p = sTmp.getStr();
// normalise string number by removeing thousands & decimal point separators // normalise string number by removing thousand & decimal point separators
OUStringBuffer sNormalisedNumString( sTmp.getLength() + nFractDigit ); OUStringBuffer sNormalisedNumString( sTmp.getLength() + nFractDigit );
if ( *p == '-' || *p == '+' ) if ( *p == '-' || *p == '+' )
...@@ -195,7 +195,7 @@ static sal_Int64 ImpStringToCurrency( const OUString &rStr ) ...@@ -195,7 +195,7 @@ static sal_Int64 ImpStringToCurrency( const OUString &rStr )
} }
// can we raise error here ? ( previous behaviour was more forgiving ) // can we raise error here ? ( previous behaviour was more forgiving )
// so... not sure that could bread existing code, lets see if anyone // so... not sure that could break existing code, let's see if anyone
// complains. // complains.
if ( p != sTmp.getStr() + sTmp.getLength() ) if ( p != sTmp.getStr() + sTmp.getLength() )
......
...@@ -61,10 +61,10 @@ public class NativeView extends java.awt.Canvas ...@@ -61,10 +61,10 @@ public class NativeView extends java.awt.Canvas
* ( e.g. get the window handle and necessary system information ) * ( e.g. get the window handle and necessary system information )
* *
* Why here? * Why here?
* Because the handle seems to be available for already visible windows * Because the handle seems to be available for already-visible windows
* only. So it's the best place to get it. Special helper method * only. So it's the best place to get it. The special helper method
* can be called more than ones - but call native code one times only * can be called more than once - but call native code one time only
* and safe the handle and the system type on our members maHandle/maSystem! * and save the handle and the system type on our members maHandle/maSystem!
*/ */
public void setVisible( boolean bState ) public void setVisible( boolean bState )
{ {
...@@ -123,11 +123,11 @@ public class NativeView extends java.awt.Canvas ...@@ -123,11 +123,11 @@ public class NativeView extends java.awt.Canvas
* windows in a java UI container. * windows in a java UI container.
* *
* Note: * Note:
* Native code for windows register special function pointer to handle * Native code for Windows registers a special function pointer to handle
* window messages ... But if it doesn't check for an already registered * window messages... But if it doesn't check for an already-registered
* instance of this handler it will do it twice and produce a stack overflow * instance of this handler it will do it twice and produce a stack overflow
* because such method call herself in a never ending loop ... * because such method calls itself in a never-ending loop...
* So we try to use the JNI code one times only and safe already getted * So we try to use the JNI code one time only and save already-obtained
* information inside this class. * information inside this class.
*/ */
public native int getNativeWindowSystemType(); public native int getNativeWindowSystemType();
......
...@@ -763,8 +763,8 @@ bool TypeDetection::impl_getPreselectionForDocumentService( ...@@ -763,8 +763,8 @@ bool TypeDetection::impl_getPreselectionForDocumentService(
// step over all filters, and check if its registered type // step over all filters, and check if its registered type
// match the given URL. // match the given URL.
// But use temp. list of "preselected types" instead of incoming rFlatTypes list! // But use temp. list of "preselected types" instead of incoming rFlatTypes list!
// The reason behind: we must filter the getted results. And copying of stl entries // The reason behind: we must filter the obtained results. And copying stl entries
// is an easier job then removing it .-) // is an easier job than removing them .-)
for (OUStringList::const_iterator pFilter = lFilters.begin(); for (OUStringList::const_iterator pFilter = lFilters.begin();
pFilter != lFilters.end(); pFilter != lFilters.end();
++pFilter) ++pFilter)
...@@ -895,7 +895,7 @@ OUString TypeDetection::impl_detectTypeFlatAndDeep( utl::MediaDescriptor& r ...@@ -895,7 +895,7 @@ OUString TypeDetection::impl_detectTypeFlatAndDeep( utl::MediaDescriptor& r
// d) detect service return a valid result => return its decision // d) detect service return a valid result => return its decision
// e) detect service return an invalid result // e) detect service return an invalid result
// or any needed information could not be // or any needed information could not be
// getted from the cache => ignore it, and continue with search // obtained from the cache => ignore it, and continue with search
for (FlatDetection::const_iterator pFlatIt = lFlatTypes.begin(); for (FlatDetection::const_iterator pFlatIt = lFlatTypes.begin();
pFlatIt != lFlatTypes.end() ; pFlatIt != lFlatTypes.end() ;
......
...@@ -88,7 +88,7 @@ class OComponentEnumeration : public ::cppu::WeakImplHelper2< ::com::sun::star ...@@ -88,7 +88,7 @@ class OComponentEnumeration : public ::cppu::WeakImplHelper2< ::com::sun::star
/*-**************************************************************************************************** /*-****************************************************************************************************
@short check count of accessible elements of enumeration @short check count of accessible elements of enumeration
@descr You can call this method to get information about accessible elements in future. @descr You can call this method to get information about accessible elements in future.
Elements you have already getted are not accessible! Elements you have already gotten are not accessible!
@seealso interface XEnumeration @seealso interface XEnumeration
@return sal_True = if more elements accessible<BR> @return sal_True = if more elements accessible<BR>
......
...@@ -117,7 +117,7 @@ class PersistentWindowState : public ::cppu::WeakImplHelper2< ...@@ -117,7 +117,7 @@ class PersistentWindowState : public ::cppu::WeakImplHelper2<
@param sModuleName @param sModuleName
identifies the application module, where the identifies the application module, where the
information should be getted for. information should be obtained for.
@return [string] @return [string]
contains the information about position and size. contains the information about position and size.
......
...@@ -84,8 +84,8 @@ class QuietInteraction : public ::cppu::WeakImplHelper1< ...@@ -84,8 +84,8 @@ class QuietInteraction : public ::cppu::WeakImplHelper1<
/** /**
@short return the handled interaction request @short return the handled interaction request
@descr We saved any getted interaction request internally. @descr We saved any obtained interaction request internally.
May the outside user of this class is interessted Maybe the outside user of this class is interested
on that. Especially we got an unknown interaction on that. Especially we got an unknown interaction
and aborted it hard. and aborted it hard.
......
...@@ -141,11 +141,11 @@ public class NativeView extends java.awt.Canvas ...@@ -141,11 +141,11 @@ public class NativeView extends java.awt.Canvas
* windows in a java UI container. * windows in a java UI container.
* *
* Note: * Note:
* Native code for windows register special function pointer to handle * Native code for Windows registers a special function pointer to handle
* window messages ... But if it doesn't check for an already registered * window messages... But if it doesn't check for an already-registered
* instance of this handler it will do it twice and produce a stack overflow * instance of this handler it will do it twice and produce a stack overflow
* because such method call herself in a never ending loop ... * because such method calls itself in a never-ending loop...
* So we try to use the JNI code one time only and save already getted * So we try to use the JNI code one time only and save already-obtained
* information inside this class. * information inside this class.
*/ */
public native int getNativeWindowSystemType(); public native int getNativeWindowSystemType();
......
...@@ -136,7 +136,7 @@ public class _XShape extends MultiMethodTest { ...@@ -136,7 +136,7 @@ public class _XShape extends MultiMethodTest {
result &= (sNew.Height-gSize.Height <= 2) && (sNew.Width-gSize.Width <= 2); result &= (sNew.Height-gSize.Height <= 2) && (sNew.Width-gSize.Width <= 2);
if (result && ((sNew.Height-gSize.Height != 0) || (sNew.Width-gSize.Width != 0))){ if (result && ((sNew.Height-gSize.Height != 0) || (sNew.Width-gSize.Width != 0))){
log.println("NOTE: there is a difference between the expected and the getted value. " + log.println("NOTE: there is a difference between the expected and the gotten value. " +
"This might be ok because of problems in calculation from points <-> twips"); "This might be ok because of problems in calculation from points <-> twips");
} }
tRes.tested("setSize()", result); tRes.tested("setSize()", result);
......
...@@ -105,7 +105,7 @@ public class _XObjectInspectorModel extends MultiMethodTest { ...@@ -105,7 +105,7 @@ public class _XObjectInspectorModel extends MultiMethodTest {
boolean result = (minHelpTextLines.intValue() == getMinHelpTextLines); boolean result = (minHelpTextLines.intValue() == getMinHelpTextLines);
if (!result) if (!result)
log.println("FAILED: value:" + minHelpTextLines + " getted value:" + getMinHelpTextLines); log.println("FAILED: value:" + minHelpTextLines + " gotten value:" + getMinHelpTextLines);
tRes.tested("MinHelpTextLines()", result) ; tRes.tested("MinHelpTextLines()", result) ;
} }
...@@ -123,7 +123,7 @@ public class _XObjectInspectorModel extends MultiMethodTest { ...@@ -123,7 +123,7 @@ public class _XObjectInspectorModel extends MultiMethodTest {
boolean result = (maxHelpTextLines.intValue() == getMaxHelpTextLines); boolean result = (maxHelpTextLines.intValue() == getMaxHelpTextLines);
if (!result) if (!result)
log.println("FAILED: expected value:" + maxHelpTextLines + " getted value:" + getMaxHelpTextLines); log.println("FAILED: expected value:" + maxHelpTextLines + " gotten value:" + getMaxHelpTextLines);
tRes.tested("MaxHelpTextLines()", result); tRes.tested("MaxHelpTextLines()", result);
} }
......
...@@ -279,7 +279,7 @@ void ConfigItem::impl_unpackLocalizedProperties( const Sequence< OUString > ...@@ -279,7 +279,7 @@ void ConfigItem::impl_unpackLocalizedProperties( const Sequence< OUString >
sal_Int32 nPropertyCounter; // counter of inner loop for Sequence< PropertyValue > sal_Int32 nPropertyCounter; // counter of inner loop for Sequence< PropertyValue >
sal_Int32 nPropertiesSize; // marks end of inner loop sal_Int32 nPropertiesSize; // marks end of inner loop
OUString sNodeName; // base name of node ( e.g. "UIName/" ) ... expand to locale ( e.g. "UIName/de" ) OUString sNodeName; // base name of node ( e.g. "UIName/" ) ... expand to locale ( e.g. "UIName/de" )
Sequence< PropertyValue > lProperties; // localized values of an configuration entry getted from lInValues-Any Sequence< PropertyValue > lProperties; // localized values of an configuration entry gotten from lInValues-Any
// Optimise follow algorithm ... A LITTLE BIT :-) // Optimise follow algorithm ... A LITTLE BIT :-)
// There exist two different possibilities: // There exist two different possibilities:
......
...@@ -724,7 +724,7 @@ class Topics(object): ...@@ -724,7 +724,7 @@ class Topics(object):
We hold the format of the last row, because one might wish to give it We hold the format of the last row, because one might wish to give it
a special format, other than the one on the bottom of each topic. a special format, other than the one on the bottom of each topic.
The left and right borders of the whole table are, on the other side, The left and right borders of the whole table are, on the other side,
part of the topics rows format, and need not be preserved separateley. part of the topics rows format, and need not be preserved separately.
''' '''
table = None table = None
lastRowFormat = [] lastRowFormat = []
......
...@@ -193,11 +193,11 @@ class TopicsControl(ControlScroller): ...@@ -193,11 +193,11 @@ class TopicsControl(ControlScroller):
self.focusGained2(xc) self.focusGained2(xc)
''' '''
Sometimes I set the focus programatically to a control Sometimes I set the focus programmatically to a control
(for example when moving a row up or down, the focus should move (for example when moving a row up or down, the focus should move
with it). with it).
In such cases, no VCL event is being triggered so it must In such cases, no VCL event is being triggered so it must
be called programtically. be called programmatically.
This is done by this method. This is done by this method.
@param control @param control
''' '''
...@@ -608,7 +608,7 @@ class TopicsControl(ControlScroller): ...@@ -608,7 +608,7 @@ class TopicsControl(ControlScroller):
After moving row X to X+/-1, the selection (or cursor position) of the After moving row X to X+/-1, the selection (or cursor position) of the
last focused control should be restored. last focused control should be restored.
The control's row is the given guiRow. The control's row is the given guiRow.
The control's column is detecte4d according to the given event. The control's column is detected according to the given event.
This method is called as subsequent to different events, This method is called as subsequent to different events,
thus it is comfortable to use the event here to detect the column, thus it is comfortable to use the event here to detect the column,
rather than in the different event methods. rather than in the different event methods.
...@@ -693,7 +693,7 @@ class TopicsControl(ControlScroller): ...@@ -693,7 +693,7 @@ class TopicsControl(ControlScroller):
''' '''
updates a single cell in the preview document. updates a single cell in the preview document.
Is called when a single value is changed, since we really Is called when a single value is changed, since we really
don't have to update the whole row for one small changhe... don't have to update the whole row for one small change...
@param row the data row to update (topic number). @param row the data row to update (topic number).
@param column the column to update (a gui column, not a document column). @param column the column to update (a gui column, not a document column).
@param data the data of the entire row. @param data the data of the entire row.
...@@ -707,7 +707,7 @@ class TopicsControl(ControlScroller): ...@@ -707,7 +707,7 @@ class TopicsControl(ControlScroller):
traceback.print_exc() traceback.print_exc()
''' '''
when removeing rows, this method updates when removing rows, this method updates
the preview document to show the number of rows the preview document to show the number of rows
according to the data model. according to the data model.
''' '''
......
...@@ -462,7 +462,7 @@ void SAXEventKeeperImpl::smashBufferNode( ...@@ -462,7 +462,7 @@ void SAXEventKeeperImpl::smashBufferNode(
* empty * empty
* *
* NOTES * NOTES
* when removeing a Blocker's BufferNode, the bClearRoot flag should be * when removing a Blocker's BufferNode, the bClearRoot flag should be
* true. Because a Blocker can buffer many SAX events which are not used * true. Because a Blocker can buffer many SAX events which are not used
* by any other ElementCollector or Blocker. * by any other ElementCollector or Blocker.
* When the bClearRoot is set to true, the root BufferNode will be first * When the bClearRoot is set to true, the root BufferNode will be first
......
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