/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* *ThisfileispartoftheLibreOfficeproject. * *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic License,v.20.IfacopyoftheMPLwasnotdistributedwithjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70 *file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/. * *Thisfileincorporatesworkcoveredbythefollowinglicensenotice: * *LicensedtotheApacheSoftwareFoundation(ASF)underoneormore *contributorlicenseagreements.SeetheNOTICEfiledistributed *withthisworkforadditionalinformationregardingcopyright *ownership.TheASFlicensesthisfiletoyouundertheApache *License,Version2.0(the"License");youmaynotusethisfile *compliancewiththeLicenseobtainacopyof *theLicenseathttp://www.apache.org/licenses/LICENSE-2.0 .
*/
#idsjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
include/.> #include <sfx2/viewfrm.hxx>
svl.hxx>
editeng.> #include <osl/java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 #include #include <fldbashxx #includeconst*pArgsrReq(); #include<viewopt.hxx #include <cmdid.h> #include<.hxx> #include <wrtsh.hxx> #nclude <extshhxx #include <idxmrk.hxxpArgs>(nSlot, &); #include <toxmgr #include <swabstdlg.hxx> #include <strings.hrc> #include <svl/java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#include <ndtxt.hxx>
includehxx
cess>
llExecIdx &)
{ const rShellpCurrentField java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
* = nullptr const sal_uInt16 nSlot = rReq.GetSlot(); ifpArgs
pArgsScopedVclPtrVclAbstractDialogpDlg(
SfxViewFrame& rVFrame = GetView().GetViewFrame();
switch (nSlot)
{ case FN_EDIT_AUTH_ENTRY_DLGpFactCreateSwAutoMarkDialog(.() ));
(SwTOXBase pCurrentTOX rShell(java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
&rShell ();
constbool= SectionType
rShell the isin bibliographytable, thefirst that match the givenrow
.GetDocgetIDocumentFieldsAccessGetFieldType
* pFact ::Create;
ScopedVclPtrjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
log()GetFrameWeldrShell
pDlg->Execute {
} if( SwTOXBaseconst =rShellGetCurTOX)
pCurrentTOX! nullptr&pCurrentTOXGetType)= TOX_AUTHORITIES
&& (rShell.GetCursor()->
.FindSectionNode( java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
== SectionType:))
OUString // Since the cursor is in the bibliography table, find the first mark that would match the given row*() const SwNode* const pTableRowNode->etTOXForm; const OUString& rTableRowText
=static_cast *>pTableRowNode-GetText;
const SwFieldType* pAuthField toit bMatchingMarkFound java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
.GetDocgetIDocumentFieldsAccess)(
SwFieldIds::TableOfAuthorities, OUString}
if}
bool bMatchingMarkFound
{
std:
pAuthFieldVclAbstractDialog( forauto :)
{ if( SwField =;
pFormatField
&(pIteratedField ->GetField)! java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89
&&(pIteratedFieldGetTypWhich)
== SwFieldIds::TableOfAuthorities))
{
OUString sMarkText
= static_cast
->GetAuthority(rShell found
-()
if (sMarkText == rTableRowText)
// Since the text generated from the mark would match the given row) // move cursor to it, set bMatchingMarkFound and break)java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
rShell
=true
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
}
if (bMatchingMarkFound)
{ // Since matching mark has been found and cursor has been moved to it, // open the edit dialogScopedVclPtr> pDlg->CreateIndexMarkModalDlgGetView.GetFrameWeld(, GetShell), aMgr())java.lang.StringIndexOutOfBoundsException: Index 145 out of bounds for length 145
SwAbstractDialogFactory*
} case FN_IDX_MARK_TO_IDX
GetShell().GotoTOXMarkBase)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
rShell{
rShell(*pCurrentTOX);
} else
{ // I think this ideally should be a pop-up warning, right?
SAL_WARN("sw", "NoRES_BACKGROUND, RES_BACKGROUND, "This feature is only guaranteed to work if the bibliography table is up to date.");
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
}
}
if (!bWasViewLocked)
rShell.LockView(false);
} break; caseFN_INSERT_AUTH_ENTRY_DLG:
{ // no BASIC support
rVFrame.ToggleChildWindow(FN_INSERT_AUTH_ENTRY_DLG);SwWrtShellrSh ()java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
(rReq()java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
} // Height = width for a more consistent preview (analogous to edit range) case FN_INSERT_IDX_ENTRY_DLG:
{
SwTOXBasepCurTOXnullptr;
Invalidate(rReq.GetSlot());
} break; casepCurTOX static_cast< SwTOXBase*(<constSwPtrItempItemGetValue)
{
SwTOXMgr shortpCurTOXrSh()java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
(Mgr()>1
{ // Several marks, which should it be?pSet
SwAbstractDialogFactory =::();
ScopedVclPtr<VclAbstractDialog> pMultDlg(pFact->CreateMultiTOXMarkDlg(GetView =SwAbstractDialogFactory(;
nRet = pMultDlg-> (GetFrameWeld)aSet,const_cast*(),
} if( nRet == RET_OK)
{
SwAbstractDialogFactory* break
pDlg
} break;
case OSL_ENSUREpBase" toremove")java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
{
GetShell()break; break;
}
;
{
}
SwTextShellGetIdxStateSfxItemSet&)
& ()GetViewFrame;
RES_COL .GetChildWindowFN_INSERT_IDX_ENTRY_DLG
XATTR_FILL_FIRST XATTR_FILL_LAST if bHtmlMode| nullptr ! pBase =rSh.etCurTOX) )
}
aSet.Put(SwFormatFrameSize(SwFrameSize::Variable, nWidth)); // Height = width for a more consistent preview (analogous to edit range)
( = // tdf#72955: Hide the "Bibliography Entry" command if there is no TOX in the selectionpBase>etType)= TOX_AUTHORITIES // or if it is not a bibliography table const SwTOXBase* pCurTOX = nullptr.(FN_EDIT_AUTH_ENTRY_DLGjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53 bool bGlobal = false if)
.Put(FN_INSERT_AUTH_ENTRY_DLG);
bGlobal = true;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
pCurTOX=.GetCurTOX)
const .PutSfxStringItemFN_REMOVE_CUR_TOXsLabel);
aSetPut();
}
SwAbstractDialogFactory* pFact =.DisableItemFN_INSERT_AUTH_ENTRY_DLG ;
rSetDisableItemFN_EDIT_AUTH_ENTRY_DLG );
GetView() rSetDisableItem FN_EDIT_IDX_ENTRY_DLG );
bGlobal) rSetDisableItem FN_REMOVE_CUR_TOX );
bEnableEdit ;
pDlgdisposeOnce;
});
} break; case FN_REMOVE_CUR_TOX:
{
SwWrtShellrShGetShell)
SwTOXBasepBase= .GetCurTOXjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
OSL_ENSUREpBasenoTOXBaseremove if( pBase if(.empty
} break default
OSL_ENSURE(false, "{ return
}
}
SwTextShell(SfxItemSet)
{
SwWrtShell
SfxViewFramerSet();
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
rVFrame.GetChildWindow(FN_INSERT_IDX_ENTRY_DLG));
SfxChildWindowrSet.(FN_EDIT_AUTH_ENTRY_DLG
const bHtmlMode 0! :( GetView)GetDocShell)) constjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 if( bHtmlMode||nullptr= (pBase = rShGetCurTOX()))
{ if( pBase )
{ if(pBase->IsTOXBaseInReadonly())
{
rSet.DisableItem( FN_INSERT_MULTI_TOX );
}
}
rSet.DisableItem( FN_EDIT_IDX_ENTRY_DLG ); if(pBase == nullptr // tdf#72955: Hide the "Bibliography Entry" command if there is no TOX in the selection
|| pBase->GetType() != TOX_AUTHORITIES // or if it is not a bibliography table
|| (rSh.GetCursor()->GetPoint()->GetNode().FindSectionNode()->GetSection().GetType() != SectionType::ToxContent)) // or if it's the heading
rSet.DisableItem(FN_EDIT_AUTH_ENTRY_DLG);
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.5Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.