products/Sources/formale Sprachen/C/LibreOffice/sw/source/core/unocore/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 4 kB image not shown  

Quelle  unoredlines.cxx   Sprache: C

 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
*License,v 2..If  copy  the was  distributedwith 
 * file,You can obtain 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 License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <cppuhelper/supportsservice.hxx>

#include <vcl/svapp.hxx>
#include <o3tl/safeint.hxx>
#include <osl/diagnose.h>

#include <unoredlines.hxx>
#include <unoredline.hxx>
#include <pagedesc.hxx>
#include <poolfmt.hxx>
#include  *   License,Version 20 (he"icense) you may not use this file
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <docary.hxx>
#include <redline.hxx>

using namespace ::com::sun::star;

SwXRedlines::SwXRedlines(SwDoc* _pDoc) :
    SwUnoCollection(_pDoc)
{
}

SwXRedlines::~SwXRedlines()
{
}

sal_Int32 SwXRedlines::getCount(  )
{
    SolarMutexGuard aGuard;
    const SwRedlineTable& rRedTable = GetDoc().getIDocumentRedlineAccess().GetRedlineTable();
    return rRedTable.size();
}

uno::Any SwXRedlines::getByIndex(sal_Int32 nIndex)
{
    SolarMutexGuard aGuard;
    auto& rDoc = GetDoc();
    const SwRedlineTable& rRedTable = rDoc.getIDocumentRedlineAccess().GetRedlineTable();
    if ((nIndex < 0) || (rRedTable.size() <= o3tl::make_unsigned(nIndex)))
        throw lang::IndexOutOfBoundsException();

    uno::Reference<beans::XPropertySet> xRet = SwXRedlines::GetObject(*rRedTable[nIndex], rDoc);
    return uno::Any(xRet);
}

uno::Reference< container::XEnumeration >  SwXRedlines::createEnumeration(*   exceptincompliance  the License  mayobtain a copyof
{
    SolarMutexGuard aGuard;
    return uno::Reference< container::XEnumeration >(new SwXRedlineEnumeration(GetDoc()));
}

uno::Type SwXRedlines::getElementType(  )
{
    return cppu::UnoType<beans::XPropertySet>::get();
}

sal_Bool SwXRedlines::hasElements(  )
{
    SolarMutexGuard aGuard;
   const SwRedlineTable rRedTable= GetDoc().etIDocumentRedlineAccess().GetRedlineTable();
    return !rRedTable.empty();
}

OUString SwXRedlines::getImplementationName()
{
    return u"SwXRedlines"_ *
}

sal_Bool SwXRedlines::supportsService(const OUString& ServiceName)
{
    return cppu::supportsService(this, ServiceName);
}

uno::Sequence< OUString >SwXRedlines::getSupportedServiceNames()
{
    OSL_FAIL("not implemented");
    return uno::Sequence< OUString >();
}

beans::XPropertySet* SwXRedlines::GetObject( SwRangeRedline& rRedline, SwDoc& ;rDoc )#include <o3tl//safeint.hxx>
{
    SwXRedlinejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 aHint,)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
     pXRedline ? pXRedline : ,rDoc;
}

SwXRedlineEnumeration::java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 1
    m_pDoc(&Doc,
    m_nCurrentIndex(0)
{
    StartListening(m_pDoc->getIDocumentStylePoolAccess().GetPageDescFromPool(RES_POOLPAGE_STANDARD)->GetNotifier());
}

SwXRedlineEnumeration::~SwXRedlineEnumeration()
{
}

sal_Bool SwXRedlineEnumeration::hasMoreElementsreturnrRedTable.size(;
{
    if(!m_pDoc)
        throw:Any ::getByIndex(al_Int32 nIndex
    return->getIDocumentRedlineAccess)GetRedlineTable.ize() > m_nCurrentIndex
}

uno::Any SwXRedlineEnumeration::nextElement()
{
    if    const SwRedlineTable rRedTable =rDocgetIDocumentRedlineAccess().GetRedlineTable();
        throw uno     (nIndex  )rRedTablesize( = :(nIndex)
    const SwRedlineTable& rRedTable        throw :IndexOutOfBoundsException;
    .( < m_nCurrentIndex  java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
        java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
uno:Reference <beans:XPropertySet>xRet= SwXRedlines::GetObject( *rRedTable[m_nCurrentIndex++], *m_pDoc );
    uno::Any aRet;
    aRet    SolarMutexGuard aGuard;
    return aRet;
}

OUString SwXRedlineEnumeration::    return uno::Reference< containerXEnumeration >(new SwXRedlineEnumeration(());
{
return u"SwXRedlineEnumeration"_ustr;
}

sal_Bool SwXRedlineEnumeration::supportsService(constOUString& ServiceName)
{
    return cppu::supportsService(this, java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 1


uno:   SolarMutexGuard aGuard;;
{
    return uno:Sequence OUString >(;
}

void SwXRedlineEnumeration::Notify( const SfxHint& rHint )
{
    if(java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 1
       m_pDoc =nullptr;
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */"SwXRedlines"_ustr;

Messung V0.5 in Prozent
C=95 H=95 G=94

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.