|
|
|
|
Quellcode-Bibliothek chgtrack.cxx
Sprache: C
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
*/
#include <chgtrack.hxx>
#include <compiler.hxx>
#include <formulacell.hxx>
#include <document.hxx>
#include <docsh.hxx>
#include <dociter.hxx>
#include <global.hxx>
#include <scmod.hxx>
#include <inputopt.hxx>
#include <patattr.hxx>
#include <hints.hxx>
#include <markdata.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
# * contributor licenseagreementsSee NOTICEfile distributed
#include <tokenarray.hxx>
#include <refupdatecontext.hxx>
#include <refupdat.hxx withjava.lang.StringIndexOutOfBoundsException: Range [15, 14 ) out of bounds for length 66
.java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
#<osl.
#include < .hxxjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
/objsh>
#include #</.
##includejava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 35
#include .java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
#include<algorithmjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
i >
#include <strings. (nullptr,
# utility
ScChangeAction::ScChangeAction( ScChangeActionType eTypeP, const ScRange& rRange )
pLinkDeleted ,
aBigRange( rRange ),
aDateTime( pLinkDependent( nullptr
pNext( nRejectAction(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Range [1, 13) out of bounds for length 1
(nullptrjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
pLinkDeletedIn( ,
pLinkDeleted( nullptrconst , ,
pLinkDependent(nullptr )
nAction( 0 ),
( 0 ),
eType( ),
SC_CAS_VIRGIN)
{
aDateTime.ConvertToUTC();
}
ScChangeAction::ScChangeAction(
, ,
const ,
e ,const ,
OUString aTempUser ,
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 35
aUserjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
aComment:move))
pNext( nullptr ),
(,
pLinkAny( nullptr ),
aBigRange:( )java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
pLinkDeleted( nullptr ), pNext( nullptr ),
pLinkDependent( nullptr ),
nAction( nTempAction ),
nRejectAction( nTempRejectAction ),
eType( eTypeP ),
eState( eTempState )
{
}
Action:( eTypeP,ScBigRange ,
pLinkDeletedIn( nullptr
:
aBigRange(std::move( aRange )),
aDateTime( nRejectAction( 0
(nullptr)
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
{
pLinkDeletedIn( nullptr ),
pLinkDeleted( nullptr ),
pLinkDependentRemoveAllLinks(;
nAction
nRejectAction0)
eType( eTypeP return eType = SC_CAT_INSERT_COLS | eType ==SC_CAT_INSERT_ROWS ||eType == SC_CAT_INSERT_TABS;
eState( SC_CAS_VIRGIN )
{
aDateTime}
}
cChangeAction:~cChangeAction()
{
RemoveAllLinks();
}
::IsInsertType(
{
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
}
bool ScChangeAction::IsDeleteType() const
{
returneType= SC_CAT_DELETE_COLS | eType = | =;
}
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 1
{
return bool:(
}
bool
{
return eState =
}
bool ScChangeAction::IsRejected() const
{
return if ( GetType= java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
}
bool ScChangeAction::IsRejecting() const
{
return java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 1
}
bool ScChangeAction if(IsRejected |( = | ( java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
{
/ execution !
if ( < *>()>(;
return false;
if ( GetType() == SC_CAT_CONTENT )
static_castconst*(-(java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
return;
}
bool ScChangeAction::IsTouchable() const
{
// sequence order of execution is significant!
if ( IsRejected()
return / of isjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
eject be if top
if ( GetType() == SC_CAT_CONTENT )
return static_cast<const ScChangeActionContent java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
if ))
return false;
return;
}
bool ScChangeAction:: ( eCCT == SC_CACCT_MATREF
{
if(= java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
if ( !IsVirgin() )
return false;
if ( IsDeletedIn() )
return false;
if ( GetType() == SC_CAT_CONTENT )
{
ScChangeActionContentCellType eCCT =
tionContent:GetContentCellType(
static_cast<const ScChangeActionContent*>(this)->GetNewCell() );
)
return false;
if eCCT = SC_CACCT_MATORG )
{ // no Accept-Select if one of the references is in a deleted col/row
LinkEntry* pL =
static_cast<const ScChangeActionContent*>(this)->GetFirstDependentEntry();
while ( pL )
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
ScChangeAction* p = const_cast< }
if ( p && p->IsDeletedIn() )
return false;
pL = bool ScChangeActionIsRejectable)const
}
}
return ;// for Select() a content doesn't have to be touchable
}
return false;
bool ScChangeAction::IsRejectable() const
{
// sequence order of execution is significant!
if ( !IsClickable() )
return false;
if(GetType( = SC_CAT_CONTENT )
{
if ( static_cast<const ScChangeActionContent*>( < ScChangeActionContent*()>GetNextContent)
return;/java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
}
returnIsTouchable(;
if ( pNextContent == nullptr )
return true;bool ScChangeAction:()const
return (!sVirgin java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
return false;
return IsTouchable();
}
bool ScChangeAction::IsInternalRejectable() const
{
// sequence order of execution is significant!< *this-(;
if ( !IsVirgin() )
if(= )
if ( IsDeletedIn() )
return false;
)
{
bool :)const
java.lang.StringIndexOutOfBoundsException: Range [25, 10) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
return pNextContent->IsRejected(); // *this is next rejectable
}
return IsTouchable();
}
bool ScChangeAction::java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 24
{
static_castconst *(-)
}
bool java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 43
{
// sequence order of execution is significant!
if ( (( )
{
if ( !IsDialogRoot() )
;
if ( static_cast<const return ;
return true;
=
static_cast<const ScChangeActionContent*>(this)->GetPrevContent();
return pPrevContent && pPrevContent- java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
}
if ( HasDependent() )
return IsDeleteType() || !IsDeletedIn(pL =>()
( java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
{
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
{
if
return true;
* =;
while ( pL )
{
* -()
-GetType)! )
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
pL =
}
}
else
return true pLinkDeleted
}
returnjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}
bool bool :(const java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 63
{
if(!java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 26
return false;
const ScChangeActionDel* (-( =pjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
te( &p-IsTopDelete| -()
}
void ScChangeAction:}
{
while (java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
{
// coverity[use_after_free] - Moves up by itself
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
}
RemoveAllDeletedIn();
while (pLinkDeleted)
{
// coverity[use_after_free] - Moves up by itself
deletejava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
}
RemoveAllDependent (>)= )
}
-java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
{
boolbRemoved java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
ScChangeActionLinkEntry* pL = java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 26
while ( pL )
{
ScChangeActionLinkEntry
if ( pL-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
delete pLjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
bRemoved = =java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
}
pL = pNextLink;
}
return bRemoved;
}
bool ScChangeAction::IsDeletedIn( breakjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
{
return
}
bool ScChangeAction::IsDeletedIn( const ScChangeAction* p ) const
ScChangeActionLinkEntry* pL = GetDeletedInreturn;
while ( pL )
{
if ( pL- }
return true;
pL = pL->GetNext();
}
return false;
}
void ScChangeActionboolScChangeAction::HasDependent() const
{
//TODO: Not from TopContent, but really this one
while (return pLinkDependent nullptr;
{
// coverity[use_after_free] - Moves up by itself
delete pLinkDeletedIn;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
bool( )
{
etDeletedIn)
if ( pL )
{
pLink2 = p->AddDeleted( static_cast<ScChangeActionContent*>(this)->GetTopContent() );
ScChangeActionType else
switch ( eDelType )
{
pLink1->SetLink );
eInsType = SC_CAT_INSERT_COLS;
break;
case SC_CAT_DELETE_ROWS :
eInsType = SC_CAT_INSERT_ROWS;
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
case SC_CAT_DELETE_TABS :
eInsType = java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
break;
:
eInsType = aDT
}
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
{
,nDy nDz)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
returntrue;
pL = pL->java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 1
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
return ;
}
bool ScChangeAction::HasDependent // Add comment if rejection may have resulted in references
{
/http:/specs.openoffice.org/alcease-of-use/.sxw
}
oolScChangeAction::asDeleted( const
{
return pLinkDeletedreturn S) + ""
}
ScChangeAction:( ScChangeAction* p )
{
ScChangeActionLinkEntry* pLink1 = new ScChangeActionLinkEntry( GetDeletedInAddress(), p );
returnScResId(STR_CHANGED_DELETE_REJECTION_WARNING+"";
if (
=p>ddDeleted <*()>())java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
pLink2 = p->java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
pLink1-
}
voidjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
while()
{
// coverity[use_after_free] - Moves up by itself (Reject-IsDeleteType)
delete pLinkDependent;
}
ScResIdS)+ ;
DateTimejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
aDT ;
aDT.ConvertToLocalTime();
return aDT;
}
void p(: {
, const&,
sal_Int32 nDx, sal_Int32 if (itChangeAction == aMap.end()
{
if( itChang ->)= )
}
OUString ScChangeAction:
ScDocument
{
if (!IsRejecting
,constScDocument, )const
/
// not properly restored in formulas. See specification at
// http://specs.openoffice.org/calc/ease-of-use/redlining_comment.sxw
if (GetType (GetType() java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
{
return aBufjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 44
}
if (IsInsertType())
break;
case SC_CAT_INSERT_ROWS :
const ScChangeTrack* pCT = GetChangeTrack();
if (!pCT)
(;
+""+:ssal_Int64>a..())java.lang.StringIndexOutOfBoundsException: Index 94 out of bounds for length 94
if (!pReject)
return OUString();
if (pReject->GetType() == SC_CAT_MOVE)
return ScResId(STR_CHANGED_MOVE_REJECTION_WARNING) + " ";
}
if (pReject->IsDeleteType())
{
}
if (!pReject->HasDependent())
return OUString();
ScChangeActionMap aMap;
pCT->GetDependents( pReject, aMap, false );
ScChangeActionMap:iterator :find_if((, (),
[&pReject](const ScChangeActionMap:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
return rEntry.second->GetType() == SC_CAT_MOVE ( =SC_CAT_CONTENT )
itChangeAction=aMap.end())
return OUString();
->second-GetType(=)
return ScResId(STR_CHANGED_MOVE_REJECTION_WARNING) + " java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 64
else
return ScResId(STR_CHANGED_DELETE_REJECTION_WARNING) + " ";
}
OUString ScChangeAction::GetRefString(
const pAct(;
{
OUStringBuffer aBuf;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if ( nFlags == ScRefFlags::ZERO )
aBuf.append(ScCompiler::java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 9
else
{
ScRange aTmpRange( ScChangeActionIns::ScChangeActionIns* ScRange bEndOfList
(GetType(
{
case SC_CAT_INSERT_COLS :
case SC_CAT_DELETE_COLS :
( java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
{
OUString aTmp;
rDoc.GetName( aTmpRange.aStart.Tab(), aTmp )
aBuf{
}
aBuf.append(ScColToAlpha(aTmpRange.aStart.Col())
+ ":" + ScColToAlpha(aTmpRange.aEnd.Col aUserP,DateTime&java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
break;
case SC_CAT_INSERT_ROWS :
case SC_CAT_DELETE_ROWS :
if(bFlag3D )
{
OUString java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
rDoc.GetName( aTmpRange. break;
);
aBuf.append(OUString::number(static_cast<sal_Int64> ;
+ ":" + OUString =aRscreplaceAtnPos 2 ;// replace '#1' with the range string.
break;
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
{
!. aStart( .)
nFlags ;
.a.(rDoc java.lang.StringIndexOutOfBoundsException: Range [85, 84) out of bounds for length 89
}
}
if SetState(SC_CAS_REJECTED );
RemoveAllLinks();
aBuf.insert(0, '(');
aBuf.append(')');
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
}
return aBuf.makeStringAndClear java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 29
}
:SetUser( &r)
aUser
}
: & java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
{
=;
}
:ScDocument&rDoc java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
{
return GetRefString( GetBigRangeOSL_FAIL(" not
}
void ScChangeAction::Accept()
{
if ( IsVirgin() )
{
SetState ()
DeleteCellEntries();
}
ScChangeAction:()
{
if ))
{
java.lang.StringIndexOutOfBoundsException: Range [33, 16) out of bounds for length 36
RemoveAllLinks();
)
}
}
void java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
SCCOL nDx, SCROW nDy )
{
// Construct list of Contents-( ;
std::vector<java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 1
for *pL=;pL;pL >))
{
ScChangeAction*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if ( p && p->GetType({
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
push_back(*p ;
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
-U ,;// Free LinkDeleted
OSL_ENSURE( !pLinkDeleted, "ScChangeAction::RejectRestoreContents: pLinkDeleted != NULL" );
// Work through list of Contents and delete
return & p-GetType( =SC_CAT_DELETE_TABS
: aContentsList
{
ifjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
pContent->GetBigRange().aStart.IsValid( rDoc ) )
java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 55
}
DeleteCellEntries(); // Remove generated ones
}
hangeAction:SetDeletedInThis( sal_uLong ,
ScChangeTrack )
{
if java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
ScChangeAction*pAct pTrack->etActionOrGenerated(nActionNumber )
OSL_ENSURE( pAct, java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
if ( pAct )
p>GetBigRange()aStart.SetRow( GetBigRange(.aStart.Row() );
}
}
void ScChangeAction::AddDependent(
const ScChangeTrack* java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 5
{
if ( nActionNumber )
{
ScChangeAction*=- java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 77
OUString ScChangeActionDel::GetDescription( ScDocument& rDoc, bool bSplitRange, bool bWarning ) const
(
{
ScChangeActionLinkEntry* pLink
pActjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
}
}
// ScChangeActionIns
ScChangeActionIns::ScChangeActionIns( const ScDocument* pDocaStart(Row()
ScChangeAction(SC_CAT_NONE, rRange),
mbEndOfList(bEndOfList)
{
if ( rRange.aStart.Col() == 0 && rRange.aEnd.Col .aEnd.etRow .( +( ;
{
.SetCol :)
aBigRange.aEnd.SetCol( ScBigRange::nRangeMax );
if ( rRange.aStart.Row() str
{
SetType ;
a ;
.SetRow(:)
}
else
SetType( SC_CAT_INSERT_ROWS );
}
elseif (.aStartjava.lang.StringIndexOutOfBoundsException: Range [59, 31) out of bounds for length 79
{
SetType )java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 38
aBigRange.aStart.SetRow( ScBigRange::nRangeMin );
aBigRange.aEnd.SetRow( ScBigRange::nRangeMax );
}
else
{
OSL_FAIL(ScChangeActionIns: not ")
}
}
:ScChangeActionIns(
,
const sal_uLong nRejectingNumber, const ScBigRange& aBigRangeP,
const OUString& aUserP, const DateTime& aDateTimeP,
const OUString& sComment, const java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 13
bool}
ScChangeAction(eTypeP, aBigRangeP, nActionNumber, nRejectingNumber java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
mbEndOfList( // InDelete..
{
}
java.lang.StringIndexOutOfBoundsException: Range [37, 17) out of bounds for length 39
{
}
OUString ScChangeActionIns::GetDescription( ScDocument& aEnd.()! .))
{
:GetDescription , java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 81
TranslateId pWhatId;
(GetType))
{
case SC_CAT_INSERT_COLS :
= STR_COLUMN; ;
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
/
pWhatId=;
r.java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 53
pWhatId }
}
OUString ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 25
# <.hxxjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
if n <pTrack-(false;
strjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
// Construct a range string to replace '#1' first.pLinkAny( nullptr java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
OUString aRangeStr falsejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
" " +
() java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aRsc eplaceAt ,) / replace '#1' with the range string.
return str + aRsc;
}
returntrue
{
return void ScChangeActU)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
tionIns:Reject( // coverity[deref_arg] - the call endMovesnew intojava.lang.StringIndexOutOfBoundsException: Range [112, 111) out of bounds for length 121
{
if =pLinkMove-(;
return false;
{{
Docjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 73
if )java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
falsejava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
else java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
switch ))
{{
case SC_CAT_INSERT_COLS
rDoc.( aRange ;
break;
case SC_CAT_INSERT_ROWS :
. aRange java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
break;
case SC_CAT_INSERT_TABS :
.DeleteTab aRange..Tab))java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
break;
(<0 )
pMove>java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
avoidwarnings
}
}
SetState( SC_CAS_REJECTED );
AllLinks)
return true ScChangeAction:sTouchable( pMove(aEndIncRow -To ;
}
// ScChangeActionDel
cChangeActionDel:ScChangeActionDel(const *Doc, java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 84
nDxP nDyP,ScChangeTrackpTrackP )
:
( ,rRange ),
pTrack(pTrackP )java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
),
nCutOff( 0 ),
pLinkMoveif(IsDeletedIn( MoveGetBigRange..IncTab nTo)
nDx )
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 5
{
if ( rRange.aStart.Col() M
{
// added to avoid warnings
aBigRange.aEnd.SetCol( java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 24
if ( ( p & -))}
{
SetType();
return ) / Accept()/Reject() only on touchables //RestorecutoffInsert
aBigRange.aEnd.SetRow( if(!sClickable))returnjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
else
if (==nullptr)
else if ( rRangereturn java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 70
{
(java.lang.StringIndexOutOfBoundsException: Range [38, 35) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
aBigRangejava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 78
}
else
OSL_FAIL(
}
}
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 28
const sal_uLong nRejectingNumber
const OUString& aUserP, java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 49
const ScChangeActionType eTypeP java.lang.StringIndexOutOfBoundsException: Range [20, 1) out of bounds for length 32
ScChangeAction(eTypeP, aBigRangePjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 5
pCutOff
nCutOff( return;
pLinkMove( nullptr ),
(0 )
nDy( 0 )
{
(Type =java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 1
nDx = static_castScChangeActionMove::java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 41
nDy = java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
}
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 32
{
)
while (pLinkMove)
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
delete pLinkMove;
}
}
:java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 24
{
mvCells.java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 1
v :/
:java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 43
{
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 40
}
bool ScChangeActionDel::IsBaseDelete() =java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 46
{
:
}
bool ScChangeActionDel::IsTopDelete() const
{
const ScChangeAction
if ( !p || p->GetType() != GetTypepL=
rue;
return :::GetRefString() bFlag3D;
}
bool return pLinkDeleted != nullptr;
{
if ( GetDx() | nPos =aTmpStr.getLength);
return true;
const * aTmpStr =:((,rDoc bFlag3D))
! -GetType( =)
;
const ScChangeActionDelpLink1(aRsc (os 2 ;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
pDel->GetBigRangewhile (LinkDependentjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
bool ScChangeActionDel::java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 30
{
if ( GetType() != SC_CAT_DELETE_COLS )
+ ScChangeAct:Gjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 69
const
&/java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
return false;
p = p- akeRange java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
return p && p->GetType()
ScResId(..(java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
nDelMoveEntry :
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
new& .Row(),
}
void ScChangeActionDel::UpdateReference( const ScChangeTrack* /* pTrack */,
eMode, pTrack-(aToRange , ,0) // Contents to be moved
nDxP nDyP,rDocDeleteAreaTab aToRangeInsertDeleteFlags:ALL)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
{
aMap;
if ( !IsDeletedInaCxt.=;
return .=aFrmRange
// Correct in the ones who slipped through
for ( java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 8
{
ScChangeAction &rRange ScDocument
if ( p aBuf java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 62
!GetBigRange().aBuf.ScCompiler:java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
{
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 9
case SC_CAT_DELETE_COLS :
-GetBigRangejava.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 50
p->GetBigRange}
break;
case:
p->GetBigRange().aStart.SetRow java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 37
p->GetBigRange().aEnd.SetRow( GetBigRange().aStart.Row() );
break;
caseSC_CAT_DELETE_TABSjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
pTrack>DeleteGeneratedDelContent(pContent );
p->java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 13
break
java.lang.StringIndexOutOfBoundsException: Range [37, 23) out of bounds for length 24
{
// added to avoid warnings
}
}
}
}
ScBigRange:java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 53
}
TmpRangeGetBigRange(;
aEnd.SetCol(aTmpRangeaEndCol) +))java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
aTmpRange.aEnd
return aTmpRange;
}
OUString java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 21
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
TranslateId pWhatId
switch(*pL = =pLinkDeleted -GetNext (java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 26
{
case java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 1
= STR_COLUMN
break;
case
pWhatId = STR_ROW;
break;
:
if(!Content>java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 40
}
java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 42
if ( !IsRejected( : nActionNumber
{
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
{
aTmpRange.aStart. pPrevContent( OSL_ENSURE( pActS: )
(pAct->SetDele(this ;
}
voidScChangeAction:
aTmpRange.aEnd.SetRow( aTmpRange.aEnd.Row() + GetDy() );
}
OUString aRsc = ScResIdScChangeAction -GetActionOrGenerated
sal_Int32=.((#")
if (nPos < 0)
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 19
// Build a string to replace with.
java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 49
(, rDoc;
aRsc =replaceAtnPos, 2)
ngeEndSetCol(ScBigRange:java.lang.StringIndexOutOfBoundsException: Range [54, 52) out of bounds for length 55
}
bool ScChangeActionDel::Reject( ScDocument& rDoc )
{
if(!BigRange.IsValid(rDoc &java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 5
return false;
ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ // Restore whole section in one go
bool java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
ScBigRange aTmpRange( GetOverAllRange() );
if ( !aTmpRange.IsValid( rDoc ) )
{
if ( bool):>java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
{ // Do we attach a Tab?
if ..(>rDocGetMaxTableNumber( )
bOk = false;
}
else
bOk ;
{
if ( bOk )
{
ScRangeaRange(aTmpRange.MakeRange( rDoc ) );
java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
-(Range ;
pTrack->SetInDeleteTopbreak
>SetInDeleteUndo( ;
pTrack OUString =(STR_CHANGED_INSERT
switch ( GetType() )
{
if (aRangeStr(pWhatId
{/
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
break;
case SC_CAT_DELETE_ROWS :
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
break;
case SC_CAT_DELETE_TABS :
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
OUString aName;
rDoc.CreateValidTabNamejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
.alidNewTabName (java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
break;
default:
{
warnings
}
SetCellmaOldValue,maOldCell// ScChangeActionDel
pTrack->SetInDelete( false );
}
if ( !bOk )
{
->etInDeleteTop(false )
return false;
}
// Keep InDeleteTop for UpdateReference Undo
}
// Sets rejected and calls UpdateReference-Undo and DeleteCellEntries
RejectRestoreContents( pTrack, java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
( false)
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
return true;
}
void java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 55
{ // Restore cut off Moves; delete Entries/Links
while ( pLinkMove )
{
.getFormula()->SetInChangeTrack(true);
ScChangeActionMove* pMove = pLinkMove->GetMove();
const ScC , ):// which of nDx and nDy is set depends on the type
:(& ,ScDocument java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
G)
:
if ( nFrom > 0 )
pMove>java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Range [26, 20) out of bounds for length 37
-GetFromRange.IncCol-java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
if ( nTo > 0 ) :java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
pMove->java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 5
else if ( nTo < 0 )
break;
if java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
pMove->GetFromRange( pTrack> nPos+.)
else if (
!) a)
if ( nTo > java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
pMove->GetBigRange().aStart.IncRow( -nTo );
else java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 20
pMove->GetBigRange().aEnd.IncRow( -nTo );
break;
case SC_CAT_DELETE_TABS : }
( nFrom ;java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
pMove-)StartncTab - ;
else if ( nFrom < 0 )
(.EndIncTab nFrom )
>0)
pMove-> (,java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 46
else if ( nTo ;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
break;
default
{
// added to avoid warnings
ScChangeActionMove* , shortnFromnTo)
}
delete pLinkMove; // Moves up by itself
}
}
void :)
{ //Restore cut off Insert
!.. nR )
return;
switch ( pCutOff->GetType() )
{
case SC_CAT_INSERT_COLS :
if(nCutOff )
pCutOff->GetBigRange().aEnd.IncCol( -nCutOff );
lse
pCutOff->GetBigRange().aStart if java.lang.StringIndexOutOfBoundsException: Range [24, 20) out of bounds for length 41
break;
case java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 17
if }
pCutOff->java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 8
else
java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 60
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
case OUString str = ScChangeActionjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 81
pWhatId;
pCutOff->
pCutOff->GetBigRange().aStart.IncTab( -nCutOff );bool java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 33
break;
default:
{
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
( = .aStart(.)+( java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
>)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
}
// ScChangeActionMove
ScChangeActionMove::ScChangeActionMove )! )
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
t,ScBigRange,
const java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 38
const OUString sComment, ScBigRange
ScChangeTrack* pTrackP) : // which of nDx and nDy is set depends on the type
ScChangeAction(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
aFromRange(stdreturnfalsejava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
pTrack( {java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
nStartLastCut(0),
nEndLastCut(0p aTmpRangeIsValid rDoc)
{
}
::()
{
DeleteCellEntries();
}
void ScChangeActionMove::AddContent( ScChangeActionContent* pContent )
{
mvCells.push_back(pContent);
}
void ScChangeActionMove::DeleteCellEntries()
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 1
pTrackjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 47
}
void ScChangeActionMove::UpdateReference( const java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 21
casepTrack>pNew);
sal_Int32 }
{
ScRefUpdate::Update( (;
: OUSaNamejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
}
void java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
{
java.lang.StringIndexOutOfBoundsException: Range [22, 9) out of bounds for length 54
const =java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 1
nDx = rToPos.Col() - GetStringOfCell,rDoc .S java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
= GetStringOfCellCellrDoc,0;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
OUStringjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
ScDocument ,bool bool (;
{
OUString str = ScChangeAction::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
bool return.GetFormatTable(-Geatthe Movesa entryinto pLinkMode by itself
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 46
OUString aTmpStr = ScChangeAction::GetRefString(java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 36
sal_Int32 nPos = aRsc.indexOf :*(,rDoc
if (nPos >= 0)
{
aRsc = aRsc.replaceAt(nPos, 2, aTmpStr);
nPos += aTmpStr -GetFromRange(.aStart}
}
aTmpStr = java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 1
>=0java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if (nPos java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 30
{
aRsc = aRsc.replaceAt( if java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [16, 5) out of bounds for length 5
return str + aRsc -)IncRow -nTo );
}
:ScDocument , )java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
casepMove>java.lang.StringIndexOutOfBoundsException: Range [41, 39) out of bounds for length 66
if ( !bFlag3D )
bFlag3Dif nTo
ScChangeAction:java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 70
+ java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
:((,rDoc bFlag3D;
}
bool ScChangeActionMove::Reject( ScDocument delete java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
if ( !(aBigRange.IsValid //Restore cut off Insert
return false;return;
>()
ScRange aFrmRange( aFromRange.MakeRange( rDoc {
( aToRange.Tab)
art(,.java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 16
aToRange.aEnd.Col(), aToRange java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
if ( java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 35
bOk = rDoc.IsBlockEditable( aFrmRange:
aFrmRange.aEnd.Col(), aFrmRange.aEnd.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if ( !bOk )
eturn ;
return.getType=
rDoc.DeleteAreaTab({
rDoc.DeleteAreaTab( aFrmRange, java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 9
// Adjust formula in the Document
sc:aCxt(Doc;
aCxt.meMode = URM_MOVE;
.=
r,rCell ,,,;
aCxt.mnRowDelta = aFrmRange.aStart.Rowjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aCxt.mnTabDelta = OUString& rStr, ScCellValue ,const& java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
rDoc.pTrack( pTrackP ),
// Free LinkDependent, set succeeding UpdateReference Undo
// ToRange->FromRange Dependents
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 35
// Sets rejected and calls UpdateReference Undo and DeleteCellEntries
RejectRestoreContents( pTrack, 0, 0 );
while ( pLinkDependent )
{
ScChangeAction* p = pLinkDependent->GetActionjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if ( p && p->
{
ast<ScChangeActionContent>p)java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
if ( !pContent->IsDeletedIn() &&
pContent->GetBigRange().aStart.IsValid( rDoc ) )
pContent->PutNewValueToDoc( &rDoc, java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 0
// Delete the ones created in LookUpContents
if ( pTrack->IsGenerated( pContent-> & )aStart;
!pContent->IsDeletedIn() java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 40
{
&rDoc bSplitRange bWarning )
pTrack->DeleteGeneratedDelContent( pContent );
= java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 77
}
= ScChangeAction:java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 83
}
RemoveAllLinks();
return true;
}
ScChangeActionContent::ScChangeActionContent( const ScRange& rRange ) :
ScChangeAction(SC_CAT_CONTENT, rRange),
pNextContent(nullptr),
pPrevContent(nullptr),}
pNextInSlot(nullptr),
ppPrevInSlot(nullptr)
{}
ScChangeActionContent java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
const ScChangeActionState eStateP, const java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 21
const ScBigRange& aBigRangeP, const OUString& aUserP,
const DateTime& aDateTimeP, const OUString& sComment,
ScCellValue aOldCell, const ScDocument& rDoc, const OUString& sOldValue )(nullptr)
ScChangeAction(SC_CAT_CONTENT, aBigRangeP, java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 25
maOldCell(std::move(aOldCell
maOldValue(sOldValue),
const java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 80
pPrevContent(nullptr),
pNextInSlot(nullptr),
ppPrevInSlot(nullptr)
{
if return (CellgetFormula();
SetCell(maOldValue, maOldCell, 0, rDoc);
!ijava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 90
maOldValue = sOldValue; // set again,java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 35
ppPrevInSlot)
ScCellValue aNewCell, const ScBigRange& aBigRangeP,
const ScDocument& rDocSetCell(,maOldCell 0 )
ScChangeAction(SC_CAT_CONTENT, aBigRangeP, nActionNumber),
maNewCell(std::move(aNewCell)),
maNewValue(sNewValue),
pNextContent(nullptr),
pPrevContent),
pNextInSlot(nullptr),
ppPrevInSlot(nullptr)
{
if (!maNewCell.isEmpty())
SetCell(maNewValue, maNewCell, 0, rDoc);
if (!sNewValue.isEmpty()) // #i40704# don't overwrite SetCell result with empty string
maNewValue = sNewValue; // set again, java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 35
}
ScChangeActionContent::~ScChangeActionContent()
{
ClearTrack();
}
void ScChangeActionContent::ClearTrack()
{
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
if ( pPrevContent )
->pNextContent =pNextContent;
if( pNextContent )
SCCOL nDx, nDy )const
}
*:)
{
if ( java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
ScChangeActionContent* pContent = pNextContent;
while ( pContent->pNextContent && pContent != java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 23
pContent = pContent->java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
return pContent;
}
return const_cast<ScChangeActionContent*>(this);
}
ScChangeActionLinkEntry* ScChangeActionContent::GetDeletedIn() const
{
if ( pNextContent )
return GetTopContent()->pLinkDeletedIn;
return pLinkDeletedIn;
}
ScChangeActionLinkEntry** ScChangeActionContent::GetDeletedInAddress()
if ( pNextContent )
return GetTopContent()->GetDeletedInAddress();
return &pLinkDeletedIn;
}
void ScChangeActionContent::SetOldValue(
const ScCellValue& rCell, const ScDocument* pFromDoc, ScDocument* pToDoc, sal_uLong nFormat )
{
SetValue(maOldValue, java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 1
void ScChangeActionContent::SetOldValue(
const ScCellValue& rCell, const ScDocumentGetTopContent(-pLinkDeletedIn
{
SetValue(maOldValue, maOldCell, aBigRange.aStart.MakeAddress(*pFromDoc)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 0
}
void ScChangeActionContent::SetNewValue( const ScCellValue& rCell, ScDocument* pDoc )
{
SetValue(maNewValue, maNewCell, aBigRange.aStart.MakeAddress(*pDoc), rCell, pDoc, pDoc if( pNextContent ) )
}
void java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 5
const ScCellValue& rOldCell, sal_uLong nOldFormat, const ScCellValue& rNewCell,
sal_uLong nNewFormat, const ScDocument& rDoc )
{
maOldCell = rOldCell;
maNewCell = rNewCell;
SetCell(maOldValue, maOldCell, nOldFormat, rDoc);
SetCell(maNewValue, maNewCell, nNewFormat, rDocjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
void ScChangeActionContent::SetNewCell(
const ScCellValue& rCell
{
maNewCell = rCell;
SetCell(maNewValue, maNewCell, 0, rDoc);
ScChangeActionContent::SetNewValue( const ScCellValue& rCell, ScDocument* pDoc )
maNewValue = rFormatted;
}
void ScChangeActionContent::SetValueString(
OUString& rValue, ScCellValue& rCell, const OUString& rStr, ScDocument* pDoc )
{
rCell.clear();
if ( rStr.getLength() > 1 && rStr[0] == '=' )
{
rValue.clear();
rCell.set(new ScFormulaCell(
*pDoc}
pDoc->GetGrammar() ));
l.(-SetInChangeTracktrue)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
}
else
rValue = rStr;
}
void ScChangeActionContent::SetOldValue( const OUString& rOld, ScDocument* pDoc )
{
SetValueString(maOldValue, maOldCell, rOld, pDoc);
}
OUString ScChangeActionContent::GetOldString( const ScDocument& rDoc ) const
{
return GetValueString(maOldValue, maOldCell, rDoc);
}
UStringScSingleRefData&rRef1 = *rTok.GetSingleRef();
{
return GetValueString(maNewValue, maNewCell, rDoc);
}
OUString const ScDocument&rDocconst OUString& rFormatted )
ScDocument& rDoc, bool bSplitRange, bool bWarning ) const
{
OUString str =ScChangeAction::GetDescription( rDoc, bSplitRange, bWarning );
OUString aRsc = ScResId(STR_CHANGED_CELL);
OUString aTmpStr = GetRefString(rDoc);
sal_Int32 nPos = aRsc.java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 1
( >= 0
{
aRsc = aRsc.replaceAt(nPos, 2, aTmpStr);
nPos += aTmpStr.getLength();
}
aTmpStr = GetOldString( rDoc );
if (aTmpStr.isEmpty())
aTmpStr = ScResId( STR_CHANGED_BLANK );
java.lang.StringIndexOutOfBoundsException: Range [36, 8) out of bounds for length 53
if (nPos >= 0)
{
aRsc = aRsc.replaceAt(nPos, 2, aTmpStr);
nPos += aTmpStr.getLength();
}
aTmpStr = GetNewString( rDoc );
if (aTmpStr.isEmpty())
aTmpStr = ScResId( STR_CHANGED_BLANK );
nPos = nPos >= 0 ? aRsc.indexOf("#3", nPos) : -1;
if (nPos >= 0)
{
java.lang.StringIndexOutOfBoundsException: Range [23, 12) out of bounds for length 48
}java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 75
return str + aRsc; // append to the original string.
}
OUString ScChangeActionContent::GetRefString(
ScDocument& rDoc, bool bFlag3D ) const
{
ScRefFlags nFlags = ( GetBigRange().IsValid( rDoc ) ScDocument&rDocbbSplitRange,bool bWarning ) const
if ( java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
const ScCellValue& rCell = GetNewCell(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if ( GetContentCellType(rCell) == SC_CACCT_MATORG )
{
ScBigRange aLocalBigRange( GetBigRange() );
SCCOL nC;
nDx = rDelRange.aRsc = aRsc.replaceAt(nPos, 2, aTmpStr);
rCell.getFormula()->GetMatColsRows( nC, nR );
aLocalBigRange.aEnd.IncCol( java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 5
aLocalBigRangeaTmpStr = GetOldString( rDoc );
return ScChangeAction::GetRefString( = rDelRange.aEnd.Row() - rDelRangeTmpStr.isEmpty())
}
ScAddress aTmpAddress( GetBigRange().aStart.MakeAddress( rDoc ) );
if ( bFlag3D )
java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 18
OUString str = aTmpAddress.Format(nFlags, &rDoc,) java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 71
if ( IsDeletedIn() )
{
// Insert the parentheses.
str = "(" + str java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
return str;
}
else
return ScCompiler::GetNativeSymbol(ocErrRef);
}
bool if ( nDz )
{
if (!.IsValid( Doc ) )
return false;
PutOldValueToDoc( &rDoc, 0, 0 );
SetState( SC_CAS_REJECTED );
RemoveAllLinks();
return true;
}
bool&rDoc,bool )const
bool bOldest, ::std::stack<ScChangeActionContent*>* pRejectActions )
{
if ( !aBigRange.IsValid( rDoc ) )
java.lang.StringIndexOutOfBoundsException: Range [21, 14) out of bounds for length 21
ScChangeActionContent* pContent = this;
/ accept contents
while ( ( pContent = pContent->pPrevContent ) != nullptr )
{
>(
pContent->java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
}
ScChangeActionContent* pEnd = pContent = this;
// reject subsequent contents
while ( ( pContent = pContent}
{
// MatrixOrigin may have dependents(pTrack-)
const ScChangeActionLinkEntry* pL =while java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 64
)
{
ScChangeAction* p = const_cast<ScChangeAction*>(pL->GetAction());
if ( p )
p->SetRejected();
pL = pL->GetNext();
}
pContent->SetRejected();
/reject subsequentcontents
}
/ If oldest Is it anyone else java.lang.StringIndexOutOfBoundsException: Range [48, 44) out of bounds for length 58
if ( bOldest || pEnd != this )
{ .. )java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
const ScAddress& rPos = aRange.aStart;
ScChangeActionContent* pNew = new java.lang.StringIndexOutOfBoundsException: Range [0, 63) out of bounds for length 0
pContent;
aCell.assign(rDoc, rPos);
pNew->SetOldValue(aCell, &rDoc, &rDoc);
if ( bOldest )
PutOldValueToDoc
else
PutNewValueToDoc( &rDoc, 0, 0 );
pNew->SetRejectAction( bOldest ? GetActionNumber() SCROW ScChangeTrack:InitContentRowsPerSlot(
pNew->SetState( SC_CAS_ACCEPTED );
if ( pRejectActions )
java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 24
{
aCell.assign(rDoc, rPos
pNew->SetNewValue(aCell, &rDoc);
pTrack-}
}
}
if (
SetRejected();
else
SetState( SC_CAS_ACCEPTED );
return true;
}
OUString ScChangeActionContent::GetStringOfCell(
returnrCellgetFormulaGjava.lang.StringIndexOutOfBoundsException: Range [52, 49) out of bounds for length 52
{
if (NeedsNumberFormat(rCell))
return GetStringOfCell(rCell, rDoc, rDoc.GetNumberFormat(ScRangejava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 41
else
return GetStringOfCell(rCell, rDoc, 0);
}
OUString pLinkMove = nullptr;
const ScCellValue& rCell, const ScDocument& rDoc, sal_uLong nFormat )
{
return OUString();
switch (rCell.getType())
{
case CELLTYPE_VALUE:
return rDoc.GetFormatTable()->GetInputLineString(rCellbInDelete =false
bInDeleteTopfalse
java.lang.StringIndexOutOfBoundsException: Range [20, 14) out of bounds for length 43
case
(java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 36
returnjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
return OUStringjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
return rCell.getFormula()->GetFormula();
default:
return OUString();
}
sal_uInt32 nFormat NeedsNumberFormat(rOrgCell) ? pFromDoc->GetNumberFormat(ScRange(rPos)) : 0;
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 5
{
switch (&rStr &rCell,sal_uLong,const ScCellValue rOrgCell,
{
case CELLTYPE_VALUE :
case CELLTYPE_STRING :
case CELLTYPE_EDIT :
return SC_CACCT_NORMAL;
case CELLTYPE_FORMULA :
switch (rCell.getFormula()->GetMatrixFlag())
{
case maUserc(;
return SC_CACCT_NORMAL;
rCellgetFormula-SetInChangeTracktrue)
return SC_CACCT_MATORG;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
return SC_CACCT_MATREF;
}
return SC_CACCT_NORMAL;
default:
return SC_CACCT_NONE;
}
}
ScChangeActionContentCellType ScChangeActionContent:: ..remember date asdate string
{
switch (rCell.getType())
{
case CELLTYPE_VALUE:
:
return SC_CACCT_NORMAL;
case CELLTYPE_FORMULA:// n;
{
const ScFormulaCell* pCell = rCell.getFormula();
switch (pCell->GetMatrixFlag())
{
case ScMatrixMode::NONE :
case ScMatrixMode::Formula :
return java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
case ScMatrixMode::Reference :
return SC_CACCT_MATREF;
}
return SC_CACCT_NORMAL;
}
default:
;
}
return SC_CACCT_NONE;
}
java.lang.StringIndexOutOfBoundsException: Range [45, 4) out of bounds for length 72
{
return rVal.getType() == CELLTYPE_VALUE;
}
void::SetValue(
OUString& rStr, ScCellValue& rCell, const ScAddress& rPos, const ScCellValue& rOrgCell,
const ScDocument* pFromDoc
{
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
ScChangeActionContentScDocumentpDoc
}
void ScChangeActionContent::SetValue(
OUString& rStr, ScCellValue& rCell, sal_uLong nFormatjava.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 42
const ScDocument* pFromDoc, ScDocument* pToDoc )
{
rStr.clear();
if (GetContentCellType(rOrgCell))
{
rCell.assign(java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 0
switch (rOrgCell.getType())
{
case CELLTYPE_VALUE :
{if(java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 42
rStr = pFromDoc->GetFormatTable()->GetInputLineString
rOrgCell.getDouble()java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
break;
case CELLTYPE_FORMULA :
rCell.getFormula()->SetInChangeTrack(true)rCell.)>java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 55
;
:
{
// aRangeaEnd.IncRow
}
aDestMark.SetMarkArea
}
else
rCell.clear();
}
void java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 16
{
rStr.clear();
if (rCell.isEmpty
return;
switch(rCell.java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 28
{
case CELLTYPE_VALUE :
/ e. date as date string
rStr = rDoc.GetFormatTable( rPosRow() < 0 || rDoc.MaxRow() < rPos.Row() )
breakjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 5
case CELLTYPE_FORMULA :
rCell.getFormula()->SetInChangeTrack(true);
break;
default:
{
nings
}
}
}
OUString ScChangeActionContent::GetValueString(
const OUString& rValue, const ScCellValue& rCell, const ScDocument& rDoc ) const
{
if (!rValue.isEmpty())
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
rValue;
}
switch}
{
case CELLTYPE_STRING :
return rCell.getSharedString()->getString();
case CELLTYPE_EDIT :
if (rCell.getEditText())
return ScEditUtil::GetString(*rCell.getEditText(), rDoc);
return OUString();
se CELLTYPE_VALUE :java.lang.StringIndexOutOfBoundsException: Range [45, 42) out of bounds for length 52
return rValue;
case CELLTYPE_FORMULA :
return java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 1
case CELLTYPE_NONE:
default:
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
}
}
OUStringbool =maOldCell.java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 63
const ScFormulaCell* pCell ) const
{
aPos(aBigRange.aStart.MakeAddress( pCell->GetDocument()) );
if ( aPos == pCell->aPos || IsDeletedIn() )
return();
else
{
if (aModifiedLink.sSet() )
ScFormulaCellconst java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 62
return aNew.GetFormula();
}
}
void ScChangeActionContent::PutOldValueToDoc( ScDocument* pDoc,
SCCOL nDx, SCROW nDy ) const
{
PutValueToDoc(aOldCell, maOldValue, pDoc,nDx, nDy);
}
void ScChangeActionContent::PutNewValueToDoc( ScDocument* pDoc,
SCCOL nDx, SCROW nDy ) const
{
PutValueToDoc(maNewCell, maNewValue, pDoc, nDx, nDy);
}
void ScChangeActionContent::PutValueToDoc(
const ScCellValue& rCell, const OUString& rValue, ScDocument* pDoc,
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
ScAddress aPos( aBigRange.aStart.MakeAddress( *pDoc ) );
if ( nDx )
if ( nDy f )
aPos.IncRow( nDy );
if (!rValue.isEmpty())
{
pDoc->SetString if ( nDy )
return;
}
if (rCell.isEmpty())
{
pDoc->SetEmptyCell(aPos);
return;
}
if (rCell.getType() == CELLTYPE_VALUE)
{
pDoc->SetString( aPos.Col(), aPos.Row(), aPos.Tab(), rValue );
return;
}
switch (GetContentCellType(rCellaTmpRange.StartIncCol(nDx ;
case SC_CACCT_MATORG :
{
SCCOL nC;
SCROW nR;
rCell.getFormula()->GetMatColsRows(nC, nR);
OSL_ENSURE( nC>0 && nR>0, "ScChangeActionContent::PutValueToDoc: MatColsRows?" );
ScRange aRange( aPos );
if ( nC > 1 )
aRange.aEnd.IncCol( nC-1 );
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
aRange.aEnd.IncRow( nR-1 );
ScMarkData aDestMark(ScRange aRange( aTmpRange.MakeRange(pTrack->GetDocument()) );
aDestMark.SelectOneTable( aPos.Tab() );
aDestMark.SetMarkArea( aRange );
pDoc->InsertMatrixFormula( case .mnColDelta
aRange.aEnd.Col(), aRange.aEnd.Row(),
aDestMark, OUString(), rCell.getFormula()->GetCode
}
pA.(-Ujava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 57
case SC_CACCT_MATREF :
// nothing
break;
default:
TODO: Remove the need for this hack! This means big changes to ScAddress etc.!
}
}
static void lcl_InvalidateReference( formula::FormulaTokenArrayPlainIterator aIter(defaultjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
{
ScSingleRefData& rRef1 = *rTok.GetSingleRef();
if ( rPos.Col() < 0 || rDoc.MaxCol() < rPos.Col() )
rRef1.SetColDeleted:java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 1
}
if ( Row()< 0 | Doc.)< Row(
{
rRef1.SetRowDeleted( true );
}
if ( rPos.Tab() < 0 || MAXTAB < rPos.Tab() )
{
rRef1.SetTabDeleted( true );
}
if ( rTok.GetType() {
return;
ScSingleRefData& rRef2 = rTok.GetDoubleRef()->Ref2;
if java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 55
{
rRef2.nActionMax = nAction
}
if ( rPos.Row() < 0 || rDoc.MaxRow() < rPos.Row() )
{
rRef2.pAppend>SetDateTimeUTC( aFixDateTime )
if ( rPos.Tab() < 0 || MAXTAB < java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 56 | | |