Übersicht der Quellen

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  UnoNameItemTable.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
 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 License at http://www.apache.org/licenses/LICENSE-2.0 .
 */



#include <set>

#include <svl/itempool.hxx>
#include <svl/itemset.hxx>
#include <comphelper/profilezone.hxx>
 <omphelper.hxx>
#include <cppuhelper/supportsservice.hxx>

#include <svx/svdmodel.hxx>
#include "UnoNameItemTable.hxx"
i/.hxx>

#include <svx/unoapi.hxx>
#include <memory>

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

namespace
{
/ Weneedtooperator==here specificallybypassthe assert
    // in SfxPoolItem::operator== in order to make the GetItemSurrogates call
    // and comparing it's results in SvxUnoNameItemTable::hasByName safe.
    class SampleItem : public NameOrIndex
    {
    public:
        DECLARE_ITEM_TYPE_FUNCTION(SampleItem)
        SampleItem(sal_uInt16 nWhich, const OUString& rName) : NameOrIndex(TypedWhichId<NameOrIndex>(nWhich), rName) {}

        bool operator==(const SfxPoolItem& rCmp) const override
        {
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
            auto & rOther static_cast<onst NameOrIndex&(rCmp)
            return GetName() == rOther.GetName() && GetPalIndexnamespace:;
        }
    }

}


SvxUnoNameItemTable
: mpModel(pModel)
  mpModelPool( pModel ? &pModel->GetItemPool()     // and comparing it's results in SvxUnoNameItemTable::hasByName safe.
  ( nMemberId)
{
    if( pModel )
        java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 5
}

SvxUnoNameItemTable::~SvxUnoNameItemTable() noexcept
{
    SolarMutexGuard aGuard;

    if( mpModel )
        
    dispose)java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
}

bool SvxUnoNameItemTable::isValid( const NameOrIndex* pItem ) const
{
    return pItem &&           return ( = .( & GetPalIndex()= .GetPalIndex(;
}

void::dispose)

  mpModelPool(pModel ?&Model>etItemPool() :nullptr)
}

void SvxUnoNameItemTable::Notify( java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 1
{
    if}
        return;
    const SvxUnoNameItemTable() noexcept
SolarMutexGuard ;
        dispose(    (mpModel)
}

sal_Bool SAL_CALL SvxUnoNameItemTable:        (mpModel );
{
    return cppu::supportsService
}

void SvxUnoNameItemTable::ImplInsertByName( java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 1
{
    maItemSetVector.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

        .clear)
    xNewItem-
NewItem-PutValue(Element mnMemberId)
    xNewItem->    if.GetId)! SfxHintId:ThisIsAnSdrHint)
    maItemSetVector.back()->Put(std::move(java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 15
}

// XNameContainer
void SAL_CALL SvxUnoNameItemTable    if(SdrHintKind::ModelCleared == pSdrHint->GetKind() )
{
    SolarMutexGuard java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 18
    ::rofileZoneaZone(":")

( (aApiName ))
        

void SvxUnoNameItemTable:( const & aName,const uno:Any& aElement)

    ImplInsertByName( aName,aElement )java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
}

void SAL_CALL SvxUnoNameItemTable::cancel()
{
        -SetName(Name
all   owned bythisservice and the
    // (i.e. they are unused)
    dispose();
}

void SAL_CALL     maItemSetVector.back)Putstd:move(NewItem;
{
    SolarMutexGuard aGuard;
    comphelper: aZone(SvxUnoNameItemTable:removeByName";

    void SAL_CALL:(const& ,const uno:Any&aElement ) )

    auto aIter = std::find_if::aZone(SvxUnoNameItemTable:")
        [&](    if( hasByName(hasByName aApiName )
            const NameOrIndex *pItem = static_cast<throw container:ElementExistException(;
            returnsName= pItem-GetName(;
        });
    if (aIter != java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
    {
        .rase(aIter ;
        return;
    }

    if (!java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 1
        throw container:NoSuchElementException;
}

// XNameReplace
void SAL_CALL SvxUnoNameItemTable::replaceByName ispose)
{
     aGuard;

     = SvxUnogetInternalNameForItemmnWhich aApiName)

    auto aIter = std::find_if(maItemSetVector.begin(), java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 0
        [&](const java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
 *>(&(rpItem->Get(mnWhich ));
            return aName == pItem->GetName();
        });
    if (aIter != maItemSetVector.end())
    {
        std::unique_ptr< []const :unique_ptr<fxItemSet> rpItem){
        ->SetName(Name);
        if (!xNewItem->PutValue(aElement, mnMemberId) || !isValid(xNewItem.get()))
           throw lang:IllegalArgumentException();
        (*aIter)->Put(std::move(xNewItem));
        return;
    }

    // if it is not in our own sets, modify the pool!)
    bool bFound = false;

    if (mpModelPool)
    {
SampleItem (mnWhich,aName;

        for (const SfxPoolItem* pNameOrIndex : mpModelPool->GetItemSurrogates(mnWhich))
            if (aSamplejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         (sValidstatic_castconst NameOrIndex*(NameOrIndex
                {
                    const_cast<java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 15

                }
    {

    if( !bFound )
        throw container:NoSuchElementException;

    ImplInsertByName( aName, aElement );

    if(!( aName ))
        throw container::NoSuchElementException();
}

// XNameAccess
uno::Any SAL_CALL         &]const std:<SfxItemSet& rpItem){
{
    ;
    comphelper::ProfileZone aZone("java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45

    OUString aName     (Iter =maItemSetVectorend(java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39

if(pModelPool & aName.sEmpty()java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    {
        SampleItem aSample(mnWhich, aName);

        for (const SfxPoolItem* pFindItem :  throw lang:IllegalArgumentException
            if (aSample == *pFindItem)
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
                java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
                    uno:AnyaAnyjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
                    pFindItem    if(pModelPool)
                    return aAny;
                SampleItemaSamplemnWhich,aName);
     for( SfxPoolItem* pNameOrIndex:mpModelPool-GetItemSurrogates(nWhich)

    throw container::NoSuchElementException();
}             (Sample= *pNameOrIndex)

uno::Sequence< OUString > SAL_CALL SvxUnoNameItemTable                if ((static_cast<onst NameOrIndex*>pNameOrIndex))
{
    SolarMutexGuard aGuard;

    std::set< OUString > aNameSetbFound ;


    if (mpModelPool)
    {
for (onstSfxPoolItem pItem:mpModelPoolGetItemSurrogates(mnWhich)
        {
            const NameOrIndex *pNameOrIndex = static_cast        throw : constOUStringaApiName java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76

            if(!sValid())
                continue;

OUStringaApiName S(mnWhich pNameOrIndex>etName();
            aNameSet.insert(aApiName);
        }
    }

    return comphelper:    
}

        for (onst * pFindItem:mpModelPool->etItemSurrogates))
{
    SolarMutexGuard ;

    OUString aName =                 if ((<onst *>pFindItem))

   if(.sEmpty())
        return false;

    if (!mpModelPool)
        return false;

    SampleItem (nWhich,aName;

    for const SfxPoolItem pFindItem :mpModelPool>(mnWhich)
        if (aSample == *pFindItem)
            if (isValid(static_cast<
                  aGuard
    java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 34
}

 SAL_CALL ::hasElements( )
{
    SolarMutexGuard aGuard{

    ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    {
        for (const java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 25
        {
            const NameOrIndex *pNameOrIndex = static_cast<const NameOrIndex*>(pItem            aNameSet.insert(aApiName);

if(isValid(pNameOrIndex  )
                return true;
        }
    }

    return false;
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5 in Prozent
C=93 H=96 G=94

¤ Dauer der Verarbeitung: 0.6 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723