Fix typos in code and comments.
Change-Id: I8f1419c60c8aec0784e6de685ba7f630ae99638d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210571 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
committed by
Julien Nabet
parent
0a67034a16
commit
6410690a38
@@ -425,7 +425,7 @@ void ScFormulaReferenceHelper::DoClose( sal_uInt16 nId )
|
||||
SfxViewFrame* pViewFrm = SfxViewFrame::Current();
|
||||
if ( pViewFrm && pViewFrm->HasChildWindow(FID_INPUTLINE_STATUS) )
|
||||
{
|
||||
// The input row is disabled with ToolBox::Disable disabled, thus it must be
|
||||
// The input row is disabled with ToolBox::Disable, thus it must be
|
||||
// reenabled with ToolBox::Enable (before the AppWindow is enabled)
|
||||
// for the buttons to be drawn as enabled.
|
||||
SfxChildWindow* pChild = pViewFrm->GetChildWindow(FID_INPUTLINE_STATUS);
|
||||
@@ -735,7 +735,7 @@ void ScRefHandler::AddRefEntry()
|
||||
|
||||
bool ScRefHandler::IsTableLocked() const
|
||||
{
|
||||
// the default is that the sheet can be switched during while the reference is edited
|
||||
// the default is that the sheet can be switched while the reference is edited
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -341,7 +341,7 @@ IMPL_LINK_NOARG(ScNameDefDlg, CancelBtnHdl, weld::Button&, void)
|
||||
IMPL_LINK_NOARG(ScNameDefDlg, AddBtnHdl, weld::Button&, void)
|
||||
{
|
||||
AddPushed();
|
||||
};
|
||||
}
|
||||
|
||||
IMPL_LINK_NOARG(ScNameDefDlg, NameModifyHdl, weld::TextWidget&, void) { IsNameValid(); }
|
||||
|
||||
|
||||
@@ -215,9 +215,9 @@ void ScNameDlg::UpdateChecks(const ScRangeData* pData)
|
||||
{
|
||||
// remove handlers, we only want the handlers to process
|
||||
// user input and not when we are syncing the controls with our internal
|
||||
// model ( also UpdateChecks is called already from some other event
|
||||
// model (also UpdateChecks is called already from some other event
|
||||
// handlers, triggering handlers while already processing a handler can
|
||||
// ( and does in this case ) corrupt the internal data
|
||||
// (and does in this case) corrupt the internal data)
|
||||
|
||||
m_xBtnCriteria->connect_toggled( Link<weld::Toggleable&,void>() );
|
||||
m_xBtnPrintArea->connect_toggled( Link<weld::Toggleable&,void>() );
|
||||
|
||||
@@ -40,7 +40,7 @@ bool InsertNameListOperation::runImplementation()
|
||||
const bool bRecord = rDoc.IsUndoEnabled();
|
||||
SCTAB nTab = aStartPos.Tab();
|
||||
|
||||
//local names have higher priority than global names
|
||||
// local names have higher priority than global names
|
||||
ScRangeName* pLocalList = rDoc.GetRangeName(nTab);
|
||||
sal_uInt16 nValidCount = 0;
|
||||
for (const auto& rEntry : *pLocalList)
|
||||
|
||||
@@ -144,7 +144,7 @@ void ScPrintAreasDlg::Close()
|
||||
|
||||
bool ScPrintAreasDlg::IsTableLocked() const
|
||||
{
|
||||
// Printing areas are per table, therefore it makes no sense,
|
||||
// Printing areas are per table, therefore it makes no sense
|
||||
// to switch the table during input
|
||||
|
||||
return true;
|
||||
|
||||
@@ -133,7 +133,7 @@ bool ScUndoInsertCells::Merge( SfxUndoAction* pNextAction )
|
||||
// Store paste action if this is part of paste with inserting cells.
|
||||
// A list action isn't used because Repeat wouldn't work (insert wrong cells).
|
||||
|
||||
// Pass ownership of the wrapped SfxUndoAction* to pPasteUndO
|
||||
// Pass ownership of the wrapped SfxUndoAction* to pPasteUndo
|
||||
pPasteUndo = pWrapper->ReleaseWrappedUndo();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -338,7 +338,7 @@ Chart2PositionMap::Chart2PositionMap(SCCOL nAllColCount, SCROW nAllRowCount,
|
||||
|
||||
if (nHeaderColCount && !bFoundValuesInCol && bFoundAnythingInCol && nCol == nHeaderColCount)
|
||||
{
|
||||
// There is no values in row, but some data. And this column is next to header
|
||||
// There are no values in row, but some data. And this column is next to header
|
||||
// So let's put it to header
|
||||
nHeaderColCount++;
|
||||
}
|
||||
@@ -2147,12 +2147,12 @@ sal_Bool SAL_CALL ScChart2DataProvider::createDataSequenceByFormulaTokensPossibl
|
||||
break;
|
||||
case ocOpen:
|
||||
if (p != pFirst)
|
||||
// open paran is allowed only as the first token.
|
||||
// open parent is allowed only as the first token.
|
||||
return false;
|
||||
break;
|
||||
case ocClose:
|
||||
if (p != pLast)
|
||||
// close paren is allowed only as the last token.
|
||||
// close parent is allowed only as the last token.
|
||||
return false;
|
||||
break;
|
||||
default:
|
||||
@@ -2206,12 +2206,12 @@ ScChart2DataProvider::createDataSequenceByFormulaTokens(
|
||||
break;
|
||||
case ocOpen:
|
||||
if (p != pFirst)
|
||||
// open paran is allowed only as the first token.
|
||||
// open parent is allowed only as the first token.
|
||||
throw lang::IllegalArgumentException();
|
||||
break;
|
||||
case ocClose:
|
||||
if (p != pLast)
|
||||
// close paren is allowed only as the last token.
|
||||
// close parent is allowed only as the last token.
|
||||
throw lang::IllegalArgumentException();
|
||||
break;
|
||||
default:
|
||||
@@ -2461,7 +2461,7 @@ ScChart2DataSequence::ScChart2DataSequence( ScDocument* pDoc,
|
||||
m_pDocument->AddUnoObject( *this);
|
||||
m_nObjectId = m_pDocument->GetNewUnoId();
|
||||
}
|
||||
// FIXME: real implementation of identifier and it's mapping to ranges.
|
||||
// FIXME: real implementation of identifier and its mapping to ranges.
|
||||
// Reuse ScChartListener?
|
||||
|
||||
// BM: don't use names of named ranges but the UI range strings
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace
|
||||
|
||||
aItem.PutProperties(aNames, aValues);
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
ScFilterOptionsObj::ScFilterOptionsObj() :
|
||||
bExport( false )
|
||||
|
||||
@@ -145,7 +145,7 @@ SCTAB ScNamedRangeObj::GetTab_Impl()
|
||||
return nTab;
|
||||
}
|
||||
else
|
||||
return -1;//global range name
|
||||
return -1; // global range name
|
||||
}
|
||||
|
||||
// sheet::XNamedRange
|
||||
|
||||
@@ -485,7 +485,7 @@ uno::Reference<container::XEnumerationAccess> SAL_CALL ScHeaderFooterTextObj::ge
|
||||
|
||||
uno::Reference<container::XNameAccess> SAL_CALL ScHeaderFooterTextObj::getTextFieldMasters()
|
||||
{
|
||||
// this does not exists in Calc (?)
|
||||
// this does not exist in Calc (?)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -1872,7 +1872,7 @@ void SAL_CALL ScTabViewObj::setPropertyValue(
|
||||
|
||||
// Options are set on the view and document (for new views),
|
||||
// so that they remain during saving.
|
||||
//! In the app (module) we need an extra options to tune that
|
||||
//! In the app (module) we need extra options to tune that
|
||||
//! (for new documents)
|
||||
|
||||
if ( aNewOpt == rOldOpt )
|
||||
|
||||
@@ -886,7 +886,7 @@ ScVbaApplication::getDisplayScrollBars()
|
||||
void SAL_CALL
|
||||
ScVbaApplication::setDisplayScrollBars( sal_Bool bSet )
|
||||
{
|
||||
// use uno here as it does all he repainting etc. magic
|
||||
// use uno here as it does all the repainting etc. magic
|
||||
uno::Reference< sheet::XSpreadsheetView > xView( getCurrentDocument()->getCurrentController(), uno::UNO_QUERY_THROW );
|
||||
uno::Reference< beans::XPropertySet > xProps( xView, uno::UNO_QUERY );
|
||||
xProps->setPropertyValue(u"HasVerticalScrollBar"_ustr, uno::Any( bSet ) );
|
||||
|
||||
@@ -135,7 +135,7 @@ ScVbaWSFunction::invoke(const OUString& FunctionName, const uno::Sequence< uno::
|
||||
uno::Any aRet;
|
||||
bool bAsArray = true;
|
||||
|
||||
// special handing for some functions that don't work correctly in FunctionAccess
|
||||
// special handling for some functions that don't work correctly in FunctionAccess
|
||||
formula::FormulaCompiler aCompiler;
|
||||
OpCode eOpCode = aCompiler.GetEnglishOpCode( FunctionName.toAsciiUpperCase() );
|
||||
switch( eOpCode )
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source eCode Form is subject to the terms of the Mozilla Public
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
@@ -2551,11 +2551,11 @@ bool ScViewFunc::DeleteTables(const std::vector<SCTAB>& rTabs, bool bRecord)
|
||||
{
|
||||
if (isFirstTab)
|
||||
{
|
||||
pUndoDoc->InitUndo( rDoc, nTab,nTab, true,true ); // incl. column/fow flags
|
||||
pUndoDoc->InitUndo( rDoc, nTab,nTab, true,true ); // incl. column/row flags
|
||||
isFirstTab = false;
|
||||
}
|
||||
else
|
||||
pUndoDoc->AddUndoTab( nTab,nTab, true,true ); // incl. column/fow flags
|
||||
pUndoDoc->AddUndoTab( nTab,nTab, true,true ); // incl. column/row flags
|
||||
|
||||
rDoc.CopyToDocument(0,0,nTab, rDoc.MaxCol(), rDoc.MaxRow(), nTab, InsertDeleteFlags::ALL,false, *pUndoDoc );
|
||||
rDoc.GetName( nTab, aOldName );
|
||||
|
||||
@@ -302,7 +302,7 @@
|
||||
</items>
|
||||
<child internal-child="accessible">
|
||||
<object class="AtkObject" id="type-atkobject">
|
||||
<property name="AtkObject::accessible-description" translatable="yes" context="datafielddialog|extended_tip|type">Select the type of calculating of the displayed value for the data field.</property>
|
||||
<property name="AtkObject::accessible-description" translatable="yes" context="datafielddialog|extended_tip|type">Select the type of calculation for the displayed value for the data field.</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
@@ -147,7 +147,7 @@ Sequence<Any> lcl_filterAndOrderScriptArgs(const Sequence<PropertyValue>& rArgs)
|
||||
|
||||
return aValues;
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference< XDispatch > SAL_CALL ScriptProtocolHandler::queryDispatch(
|
||||
const URL& aURL, const OUString&, sal_Int32 )
|
||||
|
||||
@@ -131,8 +131,8 @@ public:
|
||||
defined on the URLS. So when there are two resource ids A1.A2
|
||||
(A1 being the anchor of A2) and B1.B2 then A1.A2<B1.B2 when A1<B1 or
|
||||
A1==B1 and A2<B2. Resource ids may have different lengths: A1 <
|
||||
B1.B2 when A1<B1 or A1==B1 (anchors first then resources linked to them.</p>
|
||||
@param xId
|
||||
B1.B2 when A1<B1 or A1==B1 (anchors first then resources linked to them).</p>
|
||||
@param rxResourceId
|
||||
The resource id to which the called resource id is compared.
|
||||
@return
|
||||
Returns 0 when the called resource id is
|
||||
@@ -170,7 +170,7 @@ public:
|
||||
The resource URL of the anchor.
|
||||
@param eMode
|
||||
This mode specifies how the called resource has to be bound to
|
||||
the given anchor in order to have this function return. See the
|
||||
the given anchor in order to have this function return `TRUE`. See the
|
||||
description of isBoundTo() for more
|
||||
information.
|
||||
*/
|
||||
|
||||
+2
-2
@@ -620,7 +620,7 @@ public:
|
||||
SAL_DLLPRIVATE virtual bool IsCreatingDataObj() const override { return mpCreatingTransferable != nullptr; }
|
||||
|
||||
/** if the document does not contain at least one handout, one slide and one notes page with
|
||||
at least one master each this methods creates them.
|
||||
at least one master each this method creates them.
|
||||
If a reference document is given, the sizes and border settings of that document are used
|
||||
for newly created slides.
|
||||
*/
|
||||
@@ -940,7 +940,7 @@ public:
|
||||
css::text::WritingMode GetDefaultWritingMode() const;
|
||||
SAL_DLLPRIVATE void SetDefaultWritingMode( css::text::WritingMode eMode );
|
||||
|
||||
/** replacespOldPage from all custom shows with pNewPage or removes pOldPage from
|
||||
/** replaces pOldPage from all custom shows with pNewPage or removes pOldPage from
|
||||
all custom shows if pNewPage is 0.
|
||||
*/
|
||||
SAL_DLLPRIVATE void ReplacePageInCustomShows( const SdPage* pOldPage, const SdPage* pNewPage );
|
||||
|
||||
+4
-4
@@ -125,7 +125,7 @@ friend class sd::UndoAttrObject;
|
||||
sal_uInt16 mnPaperBin; ///< PaperBin
|
||||
SdPageLink* mpPageLink; ///< Page link (at left sides only)
|
||||
bool mbIsCanvasPage; ///< whether the page is a canvas page
|
||||
bool mbIsCanvasMasterPage; ///< whether it is the master page of canvas page
|
||||
bool mbIsCanvasMasterPage; ///< whether it is the master page of the canvas page
|
||||
|
||||
// PDF link annotations for read-only pdfium
|
||||
std::vector<std::pair<basegfx::B2DRectangle, OUString>> maLinkAnnotations;
|
||||
@@ -222,7 +222,7 @@ public:
|
||||
virtual rtl::Reference<SdrObject> RemoveObject(size_t nObjNum) override;
|
||||
|
||||
/** Also override ReplaceObject methods to realize when
|
||||
objects are removed with this mechanism instead of RemoveObject*/
|
||||
objects are removed with this mechanism instead of RemoveObject */
|
||||
virtual rtl::Reference<SdrObject> ReplaceObject(SdrObject* pNewObj, size_t nObjNum) override;
|
||||
|
||||
void SetObjText(SdrTextObj* pObj, SdrOutliner* pOutliner, PresObjKind eObjKind, std::u16string_view rStr );
|
||||
@@ -339,7 +339,7 @@ public:
|
||||
/** removes all custom animations for the given shape */
|
||||
void removeAnimations( const SdrObject* pObj );
|
||||
|
||||
/** Notify that the object has been renamed and the animation effects has to update. */
|
||||
/** Notify that the object has been renamed and the animation effects have to be updated. */
|
||||
void notifyObjectRenamed(const SdrObject* pObj);
|
||||
|
||||
/** Set the name of the page and broadcast a model change.
|
||||
@@ -371,7 +371,7 @@ public:
|
||||
void onEndTextEdit( SdrObject* pObj );
|
||||
|
||||
/** @return the presentation style with the given helpid from this masterpage or this
|
||||
slides masterpage */
|
||||
slide's masterpage */
|
||||
SD_DLLPUBLIC SdStyleSheet* getPresentationStyle( sal_uInt32 nHelpId ) const;
|
||||
|
||||
/** removes all empty presentation objects from this slide */
|
||||
|
||||
+2
-2
@@ -322,7 +322,7 @@
|
||||
#define STR_POOLSHEET_A0_HEADLINE NC_("STR_POOLSHEET_A0_HEADLINE", "Heading A0" )
|
||||
#define STR_POOLSHEET_A0_TEXT NC_("STR_POOLSHEET_A0_TEXT", "Text A0" )
|
||||
#define STR_POOLSHEET_GRAPHIC NC_("STR_POOLSHEET_GRAPHIC", "Graphic" )
|
||||
#define STR_POOLSHEET_SHAPES NC_("STR_POOLSHEET_GRAPHIC", "Shapes" )
|
||||
#define STR_POOLSHEET_SHAPES NC_("STR_POOLSHEET_SHAPES", "Shapes" )
|
||||
#define STR_POOLSHEET_LINES NC_("STR_POOLSHEET_LINES", "Lines" )
|
||||
#define STR_POOLSHEET_MEASURE NC_("STR_POOLSHEET_MEASURE", "Arrow Line" )
|
||||
#define STR_POOLSHEET_LINES_DASHED NC_("STR_POOLSHEET_LINES_DASHED", "Dashed Line" )
|
||||
@@ -464,7 +464,7 @@
|
||||
#define RID_SVXSTR_EDIT_GRAPHIC NC_("RID_SVXSTR_EDIT_GRAPHIC", "Link")
|
||||
|
||||
#define RID_SVXSTR_MENU_NEXT NC_("RID_SVXSTR_MENU_NEXT", "~Next")
|
||||
#define RID_SVXSTR_MENU_PREV NC_("RID_SVXSTR_MENU_NEXT", "~Previous")
|
||||
#define RID_SVXSTR_MENU_PREV NC_("RID_SVXSTR_MENU_PREV", "~Previous")
|
||||
#define RID_SVXSTR_MENU_FIRST NC_("RID_SVXSTR_MENU_FIRST", "~First Slide")
|
||||
#define RID_SVXSTR_MENU_LAST NC_("RID_SVXSTR_MENU_LAST", "~Last Slide")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user