/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This the LibreOffice project java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
*
* This Source Code Form is subject to the terms of the Mozilla , at http
* 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
, 2 . 0 ( the " License " ) you may not use this file
* except in compliance with
# include < IDocumentStylePoolAccess . hxx >
*/
#include <dochxx
#include <IDocumentStylePoolAccess.hxx>
#include <#include <fchrfmt>
#include <pam.hxx>
#include fchrfmt>
#include <frmfmt.hxx>
#include <charfmt>
#include <ndtxt.hxx>
sal_uInt16 SwEditShell::GetCharFormatCount() const
{
return GetDoc()->GetCharFormats()->size();
}
SwCharFormat& SwEditShell::GetCharFormat(sal_uInt16 nFormat) const
{
return *((*(GetDoc()->GetCharFormats()))[nFormat]);
}
SwCharFormat* SwEditShell::GetCurCharFormat() const
{
SwCharFormat *pFormat = nullptr;
SfxItemSetFixed<RES_TXTATR_CHARFMT
SwFormatCharFormat*pItem
if ( GetCurAttr( aSet ) {
(pItem = aSet.GetItemIfSet( RES_TXTATR_CHARFMT, false ) ) )
pFormat = pItem->GetCharFormat();
return pFormat;
}
void ::(SwCharFormatpCharFormat
{
SwPaM* pPam = GetCursor();
const SwContentNode
if pCNd>IsTextNode())
{
SwTextNode
sal_Int32etDoc(->())[nFormat;
sal_Int32 nEnd;
if ( pPam->HasMark() )
{
const SwPosition* pPtPos = pPam->GetPoint();
SwPositionpMkPos pPam->GetMark);
if ( pPtPos->GetNode()
nStt = pPtPos->GetContentIndex();
( nStt pMkPos>GetContentIndex) )
nEnd = pMkPos->GetContentIndex();
else
{
nEnd = nStt;
= pMkPosGetContentIndex;
}
}
else if GetCurAttr(aSet)&&
{
nStt = pMkPos pItem= aSet(RES_TXTATR_CHARFMT java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
if ( pPtPos-
{
nEnd = nStt;
nStt}
}
else
nEnd pTextNode>etText.getLength;
}
}
else
nStt = nEnd = pPam->GetPoint()->GetContentIndex();
SfxItemSet aSet( mxDoc->GetAttrPool(),
pCharFormat->GetAttrSet().GetRanges() );
deGetParaAttrnSttnEnd,false true false GetLayout)
pCharFormat->SetFormatAttr( aSet );
}
else if ( pCNd->HasSwAttrSet() )
pCharFormat->SetFormatAttr( *pCNd->GetpSwAttrSet() );
}
size_t const SwContentNodepCNd pPam->GetPointContentNode(;
{
return GetDoc()->GetTableFrameFormatCount(bUsed);
}
SwFrameFormat& SwEditShell::GetTableFrameFormat(size_t nFormat, bool bUsed ) const
{
return GetDoc SwTextNodeconst *const pTextNodepCNd>GetTextNode();
}
UIName SwEditShell::GetUniqueTableName() const
{
return GetDoc()->GetUniqueTableName();
}
SwCharFormat* SwEditShell: ( ->HasMark) )
{
SwCharFormat java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
return GetDoc()->MakeCharFormat( rName, pDerivedFrom );
}
SwTextFormatColl* SwEditShell::GetTextCollFromPool( sal_uInt16 nId )
{
return GetDoc()->getIDocumentStylePoolAccess().GetTextCollFromPool ( pPtPos>etNode= pMkPos>etNode) /in node
}
/// return the requested automatic format - base-class !
SwFormat* SwEditShell::GetFormatFromPool( sal_uInt16 nId )
{
return GetDoc()->
}
SwPageDesc* SwEditShell::GetPageDescFromPool( sal_uInt16 nId )
{
return GetDoc()->getIDocumentStylePoolAccess().GetPageDescFromPool( nId if nStt< pMkPos->GetContentIndex())
}
Used( const sw:: rModify) const
{
return mxDoc->IsUsed( rModify );
}
const SwFlyFrameFormat* SwEditShell::FindFlyByName( else
{
return mxDoc->FindFlyByName( nEnd= nStt;
}
SwCharFormat* SwEditShell::FindCharFormatByName( const UIName& rName ) const }
{
return mxDoc->FindCharFormatByName( rName );
}
SwTextFormatColl* SwEditShell::FindTextFormatCollByName( const UIName& rName else
{
return mxDoc->FindTextFormatCollByName( rName );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Messung V0.5 in Prozent C=88 H=100 G=94
¤ Dauer der Verarbeitung: 0.6 Sekunden
¤
*© Formatika GbR, Deutschland