Fix typos

Change-Id: Id8c7cf460cba5af89891c470e1aaa61b227d356e
Reviewed-on: https://gerrit.libreoffice.org/16310
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
This commit is contained in:
Andrea Gelmini
2015-06-16 11:25:13 +00:00
committed by Michael Stahl
parent 814af9f1e5
commit 3fa7b0b70f
43 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -744,7 +744,7 @@ void ModulWindow::EditMacro( const OUString& rMacroName )
TextSelection aSel( TextPaM( nStart, 0 ), TextPaM( nStart, 0 ) );
AssertValidEditEngine();
TextView * pView = GetEditView();
// scroll if applicabel so that first line is at the top
// scroll if applicable so that first line is at the top
long nVisHeight = GetOutputSizePixel().Height();
if ( (long)pView->GetTextEngine()->GetTextHeight() > nVisHeight )
{
@@ -116,7 +116,7 @@ public class SequenceOutputStreamUnitTest
xSeekableInStream.closeInput ();
m_aTestHelper.Message ( "Both streams closed." );
//compare the original, written and read arrys
//compare the original, written and read arrays
for ( int i = 0; i < nBytesCnt; ++i ) {
if ( pBytesOriginal[i] != pBytesWritten[i] ) {
m_aTestHelper.Error ( "Written array not identical to " +
@@ -155,4 +155,4 @@ public class SequenceOutputStreamUnitTest
}
private static final OfficeConnection connection = new OfficeConnection();
}
}
+1 -1
View File
@@ -66,7 +66,7 @@ sdbcx::ObjectType OKeys::appendObject( const OUString&, const Reference< XProper
if ( !getImplementation( pKey, descriptor ) || pKey == NULL)
m_pConnection->throwGenericSQLException( STR_INVALID_KEY_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) );
// To pass as column parameter to Key's Apppend method
// To pass as column parameter to Key's Append method
OLEVariant vOptional;
vOptional.setNoArg();
+1 -1
View File
@@ -144,7 +144,7 @@ public:
rtl::Reference < XMLPropertySetMapper > GetColumnStylesPropertySetMapper() const;
rtl::Reference < XMLPropertySetMapper > GetCellStylesPropertySetMapper() const;
/** add a Info to the sequence which will be appened to the data source
/** add a Info to the sequence which will be appended to the data source
@param _rInfo The property to append.
*/
inline void addInfo(const ::com::sun::star::beans::PropertyValue& _rInfo)
+2 -2
View File
@@ -1049,14 +1049,14 @@ void SbaGridControl::StartDrag( sal_Int8 _nAction, const Point& _rPosPixel )
// determine if dragging is allowed
// (Yes, this is controller (not view) functionality. But collecting and evaluating all the
// information necessary via UNO would be quite difficult (if not impossible) so
// my laziness says 'do it here' ...)
// my laziness says 'do it here'...)
long nRow = GetRowAtYPosPixel(_rPosPixel.Y());
sal_uInt16 nColPos = GetColumnAtXPosPixel(_rPosPixel.X());
sal_uInt16 nViewPos = (nColPos == BROWSER_INVALIDID) ? (sal_uInt16)-1 : nColPos-1;
// 'the handle column' and 'no valid column' will both result in a view position of -1 !
bool bCurrentRowVirtual = IsCurrentAppending() && IsModified();
// the current row doesn't really exist : the user's appendign a new one and already has entered some data,
// the current row doesn't really exist: the user's appending a new one and already has entered some data,
// so the row contains data which has no counter part within the data source
long nCorrectRowCount = GetRowCount();
+1 -1
View File
@@ -122,7 +122,7 @@ TYPEINIT1_FACTORY(SvxWordLineModeItem, SfxBoolItem, new SvxWordLineModeItem(fals
TYPEINIT1_FACTORY(SvxContourItem, SfxBoolItem, new SvxContourItem(false, 0));
TYPEINIT1_FACTORY(SvxPropSizeItem, SfxUInt16Item, new SvxPropSizeItem(100, 0));
TYPEINIT1_FACTORY(SvxColorItem, SfxPoolItem, new SvxColorItem(0));
// XXX: Should 2nd argoment of next line SfxColorItem or SfxPoolItem?
// XXX: Should 2nd argument of next line SfxColorItem or SfxPoolItem?
TYPEINIT1_FACTORY(SvxBackgroundColorItem, SvxColorItem, new SvxBackgroundColorItem(0));
TYPEINIT1_FACTORY(SvxCharSetColorItem, SvxColorItem, new SvxCharSetColorItem(0));
TYPEINIT1_FACTORY(SvxKerningItem, SfxInt16Item, new SvxKerningItem(0, 0));
+1 -1
View File
@@ -371,7 +371,7 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStrea
const uno::Reference< io::XStream >& xCachedVisualRepresentation )
throw ( uno::Exception )
{
OSL_ENSURE( xTargetStream.is() && xCachedVisualRepresentation.is(), "Invalid argumants!\n" );
OSL_ENSURE( xTargetStream.is() && xCachedVisualRepresentation.is(), "Invalid arguments!\n" );
if ( !xTargetStream.is() || !xCachedVisualRepresentation.is() )
throw uno::RuntimeException();
+1 -1
View File
@@ -2945,7 +2945,7 @@ void ODatabaseForm::reload_impl(bool bMoveToFirst, const Reference< XInteraction
{
// only if there is no approve listener we can post the event at this time
// otherwise see approveRowsetChange
// the aprrovement is done by the aggregate
// the approvement is done by the aggregate
if (!m_aRowSetApproveListeners.getLength())
{
::cppu::OInterfaceIteratorHelper aIter(m_aLoadListeners);
+1 -1
View File
@@ -375,7 +375,7 @@ void OFormattedModel::describeAggregateProperties( Sequence< Property >& _rAggre
RemoveProperty(_rAggregateProps, PROPERTY_STRICTFORMAT);
// no strict format property for formatted fields: it does not make sense, 'cause
// there is no general way to decide which characters/sub strings are allowed during the input of an
// arbitraryly formatted control
// arbitrary formatted control
}
void OFormattedModel::getFastPropertyValue(Any& rValue, sal_Int32 nHandle) const
+1 -1
View File
@@ -178,7 +178,7 @@ public:
void addMIP( void* pTag, const XNode_t&, const MIP& );
void removeMIPs( void* pTag );
/// query which MIPs appy to the given node
/// query which MIPs apply to the given node
MIP queryMIP( const XNode_t& xNode ) const;
/// re-bind all bindings
@@ -49,7 +49,7 @@ CSubmissionGet::CSubmissionGet(const OUString& aURL, const css::uno::Reference<
CSubmission::SubmissionResult CSubmissionGet::submit(const css::uno::Reference< css::task::XInteractionHandler >& aInteractionHandler)
{
// GET always uses apllicatin/x-www-formurlencoded
// GET always uses application/x-www-formurlencoded
boost::scoped_ptr< CSerialization > apSerialization(new CSerializationURLEncoded());
apSerialization->setSource(m_aFragment);
apSerialization->serialize();
+2 -2
View File
@@ -566,8 +566,8 @@ private:
bool impl_isFrameAlreadyUsedForLoading(const css::uno::Reference< css::frame::XFrame >& xFrame) const;
/** @short try to determine the used application module
of this load request and applay right position and size
for this document window ... hopefully before we show it .-)
of this load request and apply right position and size
for this document window... hopefully before we show it .-)
*/
void impl_applyPersistentWindowState(const css::uno::Reference< css::awt::XWindow >& xWindow);
+1 -1
View File
@@ -136,7 +136,7 @@ private:
//Something like an OutputDevice requires the SolarMutex to be taken before use
//for threadsafety. The user can ensure this, except in the case of its dtor
//being called from reset due to a terminate on the XComponent being called
//from an aribitrary thread
//from an arbitrary thread
template<class T> class unique_disposing_solar_mutex_reset_ptr
: public unique_disposing_ptr<T>
{
@@ -38,7 +38,7 @@ namespace drawinglayer
Base class for ControlPrimitive handling. It decoposes to a
graphical representation (Bitmap data) of the control. This
representation is limited to a quadratic pixel maximum defined
in the applicatin settings.
in the application settings.
*/
class DRAWINGLAYER_DLLPUBLIC ControlPrimitive2D : public BufferedDecompositionPrimitive2D
{
+1 -1
View File
@@ -30,7 +30,7 @@ enum SvxFrameDirection
FRMDIR_HORI_LEFT_TOP,
/** Horizontal, from right to left, from top to bottom
(typical for ararbic/hebrew languages). */
(typical for arabic/hebrew languages). */
FRMDIR_HORI_RIGHT_TOP,
/** Vertical, from top to bottom, from right to left
+1 -1
View File
@@ -76,7 +76,7 @@ namespace rtl
*/
inline Bootstrap();
/** Opens a bootstrap argment container
/** Opens a bootstrap argument container
@see rtl_bootstrap_args_open()
*/
inline Bootstrap(const rtl::OUString & iniName);
+1 -1
View File
@@ -236,7 +236,7 @@ public:
const SfxSlot* pNextSlot; // with the same Status-Method
const SfxFormalArgument* pFirstArgDef; // first formal Argument-Definition
sal_uInt16 nArgDefCount; // Number of formal Argumentents
sal_uInt16 nArgDefCount; // Number of formal Arguments
long nDisableFlags; // DisableFlags that need to be
// present, so that the Slot
// can be enabled
+1 -1
View File
@@ -65,7 +65,7 @@ namespace svt
virtual void Dying() SAL_OVERRIDE;
private:
// triggers a re-arrance of the panel deck elements
// triggers a re-arrange of the panel deck elements
void impl_triggerRearrange() const;
size_t impl_getPanelPositionFromWindow( const vcl::Window* i_pDrawerWindow ) const;
void impl_removeDrawer( const size_t i_nPosition );
+1 -1
View File
@@ -169,7 +169,7 @@ public:
bool IsSetPageOrg() const { return (0L != mpPageOriginOverlay); }
// HitTest. If sal_True, in rnHelpLineNum is the number of the auxiliary line and in rpPv
// the appendent PageView.
// the appendend PageView.
bool PickHelpLine(const Point& rPnt, short nTol, const OutputDevice& rOut, sal_uInt16& rnHelpLineNum, SdrPageView*& rpPV) const;
// Move of an available auxiliary line. Use nHelpLineNum and pPV from PickHelpLine.
+1 -1
View File
@@ -649,7 +649,7 @@ void LwpGraphicObject::CreateGrafObject()
XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager();
pImage->SetStyleName(pXFStyleManager->AddStyle(pImageStyle).m_pStyle->GetStyleName());
// set archor to frame
// set anchor to frame
pImage->SetAnchorType(enumXFAnchorFrame);
// set object name
+1 -1
View File
@@ -6430,7 +6430,7 @@ void Test::testMixData()
ScDocument aClipDoc(SCDOCMODE_CLIP);
copyToClip(m_pDoc, ScRange(0,0,0,1,0,0), &aClipDoc); // A1:B1
// Copy A2:B2 to the mix document (for arithemetic paste).
// Copy A2:B2 to the mix document (for arithmetic paste).
ScDocument aMixDoc(SCDOCMODE_CLIP);
copyToClip(m_pDoc, ScRange(0,1,0,1,1,0), &aMixDoc); // A2:B2
+1 -1
View File
@@ -144,7 +144,7 @@ public:
virtual ApiFilterSettings finalizeImport( sal_Int32 nMaxCount ) SAL_OVERRIDE;
private:
/** Apeends the passed filter criteriom, if it contains valid settings. */
/** Appends the passed filter criteriom, if it contains valid settings. */
void appendCriterion( const FilterCriterionModel& rCriterion );
private:
+1 -1
View File
@@ -146,7 +146,7 @@ public:
bool GetObjectIsMarked( SdrObject * pObject );
bool SelectCurrentViewObject( const OUString& rName );
// #i123922# helper which checks if a Graphic may be appied to an existing
// #i123922# helper which checks if a Graphic may be applied to an existing
// SdrObject; if it's a SdrGrafObj the fill will be replaced. If it's a
// fillable, non-OLE SdrObject, the FillStyle will be adapted
SdrObject* ApplyGraphicToObject(
+1 -1
View File
@@ -228,7 +228,7 @@ public:
@ATTENTION
Note that the string returned may be truncated even inside
a quoted field if some (arbritary) maximum length was reached.
a quoted field if some (arbitrary) maximum length was reached.
There currently is no way to exactly determine the conditions,
whether this was at a line end, or whether open quotes
would have closed the field before the line end, as even a
+1 -1
View File
@@ -196,7 +196,7 @@ private:
*/
void onUpdateStyleSettings( bool bForceUpdate = false );
/** this link is called from the vcl applicaten when the stylesettings
/** this link is called from the vcl application when the stylesettings
change. Its only purpose is to call onUpdateStyleSettings() then.
*/
DECL_LINK( AppEventListenerHdl, void * );
+1 -1
View File
@@ -486,7 +486,7 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( uno::Refere
uno::Reference< container::XEnumerationAccess > xEnumAccess( xParent, uno::UNO_QUERY );
// first we fill the arrys with the position and paragraph for every character
// first we fill the arrays with the position and paragraph for every character
// inside the text
if( xEnumAccess.is() )
{
+1 -1
View File
@@ -368,7 +368,7 @@ bool DrawView::SetAttributes(const SfxItemSet& rSet,
}
/**
* Notify for change of site arragement
* Notify for change of site arrangement
*/
void DrawView::Notify(SfxBroadcaster& rBC, const SfxHint& rHint)
+1 -1
View File
@@ -614,7 +614,7 @@ bool SfxHelp::Start_Impl(const OUString& rURL, const vcl::Window* pWindow, const
// check if help window is still open
// If not, create a new one and return access directly to the internal sub frame showing the help content
// search must be done here; search one desktop level could return an arbitraty frame
// search must be done here; search one desktop level could return an arbitrary frame
Reference< XFrame2 > xHelp(
xDesktop->findFrame( "OFFICE_HELP_TASK", FrameSearchFlag::CHILDREN),
UNO_QUERY);
+1 -1
View File
@@ -332,7 +332,7 @@ void BackingWindow::initControls()
mpButtonsBox->SetBackground(aWallpaper);
// thin white rectangle aronud the Help and Extensions buttons
// thin white rectangle around the Help and Extensions buttons
mpThinBox1->SetBackground(aButtonsText);
mpThinBox2->SetBackground(aButtonsText);
+1 -1
View File
@@ -79,7 +79,7 @@ public:
bool Commit();
bool Revert();
void OpenStream( StgIo&, bool=false ); // set up an approbiate stream
void OpenStream( StgIo&, bool=false ); // set up an appropriate stream
void Close();
sal_Int32 GetSize();
bool SetSize( sal_Int32 );
+1 -1
View File
@@ -757,7 +757,7 @@ SmCaretPosGraphBuildingVisitor::SmCaretPosGraphBuildingVisitor( SmNode* pRootNod
//Handle the special case where NTABLE is used a rootnode
if( pRootNode->GetType( ) == NTABLE ){
//Children are SmLineNodes
//Or so I thought... Aparently, the children can be instances of SmExpression
//Or so I thought... Apparently, the children can be instances of SmExpression
//especially if there's a error in the formula... So he we go, a simple work around.
SmNodeIterator it( pRootNode );
while( it.Next( ) ){
+1 -1
View File
@@ -460,7 +460,7 @@ Reference< XInterface > FmFormObj::ensureModelEnv(const Reference< XInterface >
OUString aToken = sAccessPath.getToken( 0, '\\', nTokIndex );
sal_uInt16 nIndex = (sal_uInt16)aToken.toInt32();
// get the DSS of the source form (we have to find an aquivalent for)
// get the DSS of the source form (we have to find an equivalent for)
DBG_ASSERT(nIndex<xSourceContainer->getCount(), "FmFormObj::ensureModelEnv : invalid access path !");
Reference< XPropertySet > xSourceForm;
xSourceContainer->getByIndex(nIndex) >>= xSourceForm;
+1 -1
View File
@@ -3980,7 +3980,7 @@ bool SdrDragCrop::EndSdrDrag(bool /*bCopy*/)
// as it was done before because the top-left of that new rect *will* have an offset
// caused by the evtl. existing shear and/or rotation, so calculate a unrotated
// rectangle how it would be as a result when appling the unit coordinate change
// rectangle how it would be as a result when applying the unit coordinate change
// to the unrotated original transformation.
basegfx::B2DTuple aScale;
basegfx::B2DTuple aTranslate;
+1 -1
View File
@@ -2611,7 +2611,7 @@ void RestoreContent( SwFrm *pSav, SwLayoutFrm *pParent, SwFrm *pSibling, bool bG
}
}
// the parent needs to grow appropiately
// the parent needs to grow appropriately
SwTwips nGrowVal = 0;
SwFrm* pLast;
do
+1 -1
View File
@@ -696,7 +696,7 @@ void SwHTMLParser::SetControlSize( const uno::Reference< drawing::XShape >& rSha
awt::Size aSz( rShape->getSize() );
awt::Size aNewSz( 0, 0 );
// #i71248# ensure we got a XControl before apllying corrections
// #i71248# ensure we got a XControl before applying corrections
if(xControl.is())
{
if( bMinWidth || bMinHeight )
+1 -1
View File
@@ -2630,7 +2630,7 @@ WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp(ww::WordVersion eVersion, SvStream* pSt,
//one more FC than grrpl entries
maEntries.push_back(Entry(Get_Long(pStart)));
//we expect them sorted, but it appears possible for them to arive unsorted
//we expect them sorted, but it appears possible for them to arrive unsorted
std::sort(maEntries.begin(), maEntries.end());
mnIdx = 0;
+1 -1
View File
@@ -471,7 +471,7 @@ void SwIndexMarkPane::InsertMark()
pSh->StartAllAction();
// all equal strings have to be selected here so that the
// entry is apllied to all equal strings
// entry is applied to all equal strings
if(bApplyAll)
{
lcl_SelectSameStrings(*pSh, bWordOnly, bCaseSensitive);
+1 -1
View File
@@ -71,7 +71,7 @@ private:
/** automatic/named character attribute set */
SfxItemSet* m_pItemSet_TextAttr;
/** automatic/named paragraph attribute set
* (it can be caractere attribute applyied to the paragraph) */
* (it can be character attribute applied to the paragraph) */
SfxItemSet* m_pItemSet_ParAttr;
/** table attribute set */
+1 -1
View File
@@ -901,7 +901,7 @@ DateFormat LocaleDataWrapper::scanDateFormatImpl( const OUString& rCode )
{
if (areChecksEnabled())
{
OUString aMsg( "LocaleDataWrapper::scanDateFormat: no magic applyable" );
OUString aMsg( "LocaleDataWrapper::scanDateFormat: no magic applycable" );
outputCheckMessage( appendLocaleInfo( aMsg ) );
}
return DMY;
+1 -1
View File
@@ -4246,7 +4246,7 @@ sal_Int32 PDFWriterImpl::updateOutlineItemCount( std::vector< sal_Int32 >& rCoun
sal_Int32 nCount = 0;
if( m_aContext.OpenBookmarkLevels < 0 || // all levels arevisible
if( m_aContext.OpenBookmarkLevels < 0 || // all levels are visible
m_aContext.OpenBookmarkLevels >= nItemLevel // this level is visible
)
{
+1 -1
View File
@@ -284,7 +284,7 @@ namespace vcl
// but no actual painting happens, so our "DrawText( Point, ... )" is never called
// In this case, calculate the rect from what OutputDevice::GetTextRect would give us. This has
// the disadvantage of less accuracy, compared with the approach to calculate the rect from the
// single "DrawText( Point, ... )" calls, since more intermediate arithmetics will translate
// single "DrawText( Point, ... )" calls, since more intermediate arithmetic will translate
// from ref- to target-units.
aTextRect = m_rTargetDevice.GetTextRect( aRect, _rText, _nStyle, NULL, this );
}
+1 -1
View File
@@ -323,7 +323,7 @@ void MyWin::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect)
aLineColor = approachColor(aLineColor, aApproachColor);
rRenderContext.SetLineColor(aLineColor);
// switch aproach color
// switch approach color
if (aApproachColor.IsRGBEqual(aLineColor))
{
if (aApproachColor.GetRed())
+1 -1
View File
@@ -996,7 +996,7 @@ void XMLMetaFieldImportContext::InsertMeta(
*
* All *-mark-end index marks should instantiate *this* class (because
* it doesn't process attributes other than ID), while the *-mark and
* *-mark-start classes should instantiate the apporpiate subclasses.
* *-mark-start classes should instantiate the appropriate subclasses.
*/
class XMLIndexMarkImportContext_Impl : public SvXMLImportContext
{