Fix typos

Change-Id: Ic111b676ec93509a4cf9ad0f691f34f940a798b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209501
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2026-08-22 13:51:15 +02:00
committed by Julien Nabet
parent 955424ce1e
commit c3ae29c312
6 changed files with 12 additions and 12 deletions
+7 -7
View File
@@ -384,12 +384,12 @@ ScImportAsciiDlg::ScImportAsciiDlg(weld::Window* pParent, std::u16string_view aD
// 2) copy paste of 2 CJK lines in Calc from another application
// sc/source/ui/view/viewfun5.cxx ScViewFunc::PasteDataFormatFormattedText,
// part "nFormatId == SotClipboardFormatId::STRING || nFormatId == SotClipboardFormatId::STRING_TSVC..."
// (eg: tdf#172587). In this part, we use ScImportStringStream which sets explicitely the encoding to RTL_TEXTENCODING_UNICODE
// (eg: tdf#172587). In this part, we use ScImportStringStream which sets explicitly the encoding to RTL_TEXTENCODING_UNICODE
// => we don't need to call DetectEncoding
//
// 3) use of Text to Columns function (in Calc/Data)
// sc/source/ui/view/cellsh2.cxx ScCellShell::ExecuteDB, part SID_TEXT_TO_COLUMNS
// (eg: tdf#166299). In this part, we use a SvMemoryStream and we already sets the encoding to RTL_TEXTENCODING_UNICODE
// (eg: tdf#166299). In this part, we use a SvMemoryStream and we already set the encoding to RTL_TEXTENCODING_UNICODE
// => we don't need to call DetectEncoding
// Retrieve encoding, first time from the stream
@@ -502,7 +502,7 @@ ScImportAsciiDlg::ScImportAsciiDlg(weld::Window* pParent, std::u16string_view aD
if (nFromRow != 1)
{
mxNfRow->set_value(nFromRow);
// tdf#163638 - show visual indicator for from rows
// tdf#163638 - show visual indicator for the "From Row" value
mxTableBox->GetGrid().Execute(CSVCMD_SETFIRSTIMPORTLINE, nFromRow - 1);
}
mxNfRow->connect_value_changed(LINK(this, ScImportAsciiDlg, FirstRowHdl));
@@ -563,7 +563,7 @@ bool ScImportAsciiDlg::GetLine( sal_uLong nLine, OUString &rText, sal_Unicode& r
if (!mpRowPosArray)
mpRowPosArray.reset( new sal_uLong[ASCIIDLG_MAXROWS + 2] );
if (!mnRowPosCount) // complete re-fresh
if (!mnRowPosCount) // complete refresh
{
memset( mpRowPosArray.get(), 0, sizeof(mpRowPosArray[0]) * (ASCIIDLG_MAXROWS+2));
@@ -604,10 +604,10 @@ bool ScImportAsciiDlg::GetLine( sal_uLong nLine, OUString &rText, sal_Unicode& r
mnStreamPos = mpDatStream->Tell();
}
// If the file content isn't unicode, ReadUniStringLine
// If the file content isn't Unicode, ReadUniStringLine
// may try to seek beyond the file's end and cause a CANTSEEK error
// (depending on the stream type). The error code has to be cleared,
// or further read operations (including non-unicode) will fail.
// or further read operations (including non-Unicode) will fail.
if ( mpDatStream->GetError() == ERRCODE_IO_CANTSEEK )
mpDatStream->ResetError();
@@ -879,7 +879,7 @@ void ScImportAsciiDlg::SeparatorHdl(const weld::Widget* pCtrl)
OUString aOldFldSeps( maFieldSeparators);
sal_Unicode cOldSep = mcTextSep;
mcTextSep = lcl_CharFromCombo( *mxCbTextSep, SCSTR_TEXTSEP );
// Any separator changed may result in completely different lines due to
// Any separator change may result in completely different lines due to
// embedded line breaks.
if (cOldSep != mcTextSep)
{
+1 -1
View File
@@ -720,7 +720,7 @@ void ScTabPageSortOptions::ActivatePage( const SfxItemSet& rSet )
if (!pDlg)
return;
//tdf#168905 If sort by row, then include affects boundary columns.
//tdf#168905 If sorting by row, the include option affects the boundary columns.
if (aSortData.bByRow)
{
m_xBtnIncComments->set_label(aStrCommentsColLabel);
+1 -1
View File
@@ -87,7 +87,7 @@ private:
sal_Unicode nCellPercentFormatDecSep; // 0:= no percent format, else which decimal separator
sal_uInt16 nAutoPar; // autom.parentheses than can be overwritten
sal_uInt16 nAutoPar; // automatic parentheses that can be overwritten
ScAddress aCursorPos;
ScInputMode eMode;
@@ -16,7 +16,7 @@
namespace sc
{
/** Previous sparkline group data, which is restored at undo ungroupping */
/** Previous sparkline group data, which is restored at undo ungrouping */
struct SparklineUndoData
{
SparklineUndoData(ScAddress const& rAddress, ScRangeList aDataRangeList,
+1 -1
View File
@@ -390,7 +390,7 @@ void ScContentTree::ActivateSelectedEntry()
if (ScPostIt* pNote = pSrcDoc ? pSrcDoc->GetNote(aPos.Col(), aPos.Row(), aPos.Tab()) : nullptr)
{
bool bVisible = pNote->IsCaptionShown();
// Effectivelly set the visibility of the comment
// Effectively set the visibility of the comment
GetManualOrCurrent()->GetDocFunc().ShowNote(aPos, !bVisible);
// Put the note in edit mode
ScTabViewShell* pScTabViewShell = ScNavigatorDlg::GetTabViewShell();
+1 -1
View File
@@ -121,7 +121,7 @@ bool detectThisFormat(SvStream& rStr, const sal_uInt16* pSearch)
else if( nMuster & M_ALT(0) )
{ // alternative Bytes
sal_uInt8 nCntAlt = static_cast<sal_uInt8>(nMuster);
bSync = false; // first unsynchron
bSync = false; // first unsynchronized
while( nCntAlt > 0 )
{
pSearch++;