Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/svx/source/gallery2/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 55 kB image not shown  

Quelle  galbrws1.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  java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
 * License, v. 2.0, You can obtain  at :mozilla.rg//20java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
 * 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
 * license .See theNOTICE file distributed
 *   with this work    ,Version 2. (he License") you maynotuse file
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
e withthe . Youmay obtaina copyof
 *  the Licenseat:/..org/LICENSE2.0 .
 */


#nclude <alconfig.>

#include <toolsinclude/.java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
#nclude t/wldcrd.>
#include <utility>
##include</dispatchcommand.xx>
#nclude <omphelper/ropertyvaluehxxjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
i</.hxx>
#include <vcl/weld.hxx>
#<cl/raphicfilter>
#include <vcl/virdev.hxx>
#include <com/sun/star# com//rame/rameSearchFlag.hpp>
#nclude <sfx2/pp.xxjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
#include <fx2viewfrm>
#include <sfx2/bindings.hxx>
#include <galobj.hxx>
i svx/.hrc>
#include <svx/gallery1.hxx>
#include <svxinclude <om/sunstar/raphic/Graphic.>
#include <svx/galmisc.hxx>
##include<om/un/tar/ang/Component.pp>
##nclude<om/un/star/style/GraphicLocation>
#/strings.hrc>
include<>
i <vx/ialmgr.xx>
#include <svx/galleryitem.hxx>
#include <include <osl/diagnose.h>
#include <comphelper/propertyvalue.hxx>
#include <com/sun/star/beans/include o3tlstring_viewjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
# comphelper/.hxxjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#include{
#include java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#nclude com/un/tar/allery/alleryItemType.>
#include <com/sun/star/graphic/XGraphic.hpp>
 <com/sun/star/ang/Component>
#include <com    :uno:Reference<css:frame:XDispatch>   Dispatch;
#include
#<>
#include <bitmaps.hlst>
#    css:util:                               URL;
include</string_view.java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31

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

namespace
{

struct java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 5
{
    css::util::URL                                  java.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 1
css::no:Sequence< css:beans:PropertyValue >Arguments;
    css::uno::Reference< css std:unique_ptrweld:Builder> mxBuilder;
}

struct CommandInfo
{
    css    GalleryBrowser1* mpBrowser;
    css::Reference<css:frame:XDispatch >Dispatch;

    explicit       m_aCommandInfo;
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        URL.omplete =rURL;
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
};

 GalleryThemePopup :public :cppu:WeakImplHelper<css:frame:XStatusListener >
{
private
stGalleryTheme mpTheme;
        GalleryThemePopup(eld:Widget* pParent,
    bool                mbPreview;
std:nique_ptr:Builder>mxBuilderjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
                           nObjectPos,
    std::unique_ptr                      GalleryBrowser1*pBrowser)
    *  ;

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
CommandInfoMapm_aCommandInfo

    static void     void SAL_CALL disposing(const css:lang:ventObject &Source)overridejava.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
                   :uno:Sequence< css::beans::PropertyValue > &rArguments );

   voidMenuSelectHdl(td: rIdentjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
    (.weld_button(insert"_),
public mxThemes(Builder.weld_tree_viewuthemelist_ustr)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
    GalleryThemePopup(:Widget pParent
                      const GalleryTheme                 (pGallery,
              sal_uInt32 nObjectPos,
                      bool bPreview,
                      GalleryBrowser1                RID_SVXBMP_THEME_DEFAULT )

    /maThemeSelectionHandler(std::move(aThemeSelectionHandler))

    virtual,(nullptr
     mxIconViewnew(this,rBuilder.eld_scrolled_window(ugalleryscroll_str,true
}

}

GalleryBrowser1:GalleryBrowser1
weld::Builder& rBuilder,
    , mxIconButtonweld_toggle_button(u"icon"_ustr))
    //std::function<void ()> aThemeSelectionHandler)
       :
    , mxSearchField(.weld_entryu"search"u)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
   (Builder.eld_tree_view("themelist"ustr),
    mxMoreGalleries(rBuilder.weld_button(u"btnMoreGalleries"_ustr)),
    mpGallery             ( )java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    mpExchangeData(newExchangeData ,
    aImgNormal            ( RID_SVXBMP_THEME_NORMAL meMode              (GALLERYBROWSERMODE_NONE )
   aImgDefault           ( ),
    aImgReadOnly          ( RID_SVXBMP_THEME_READONLY )
    ::move(ThemeSelectionHandler))
    , mpCurTheme(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
     mxIconView(ew GalleryIconViewthis,rBuilderweld_scrolled_window("alleryscroll"ustr,true))
    ,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        -connect_selection_changedLINKthis, ,SelectThemeHdl;
    ,mxPreview(ew GalleryPreview(his,rBuilderweld_scrolled_window("previewscroll"ustr))
    , mxPreviewWin(new weld:    mxThemes>connect_key_press(INK(this,GalleryBrowser1 ))
     (Builder.(u"con"ustr)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
    , java.lang.StringIndexOutOfBoundsException: Range [46, 18) out of bounds for length 61
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    , mxInfoBar(rBuilder.weld_label(u"label"_    if( mpGallery->GetUserURL().GetProtocol() ==NotValid )
    ,maPreviewSize(8,28java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    , mnCurActionPos      (0xffffffff )
    , meMode              java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    ,meLastMode          ( )
    , m_aCharacterClassficator( ::ImplInsertThemeEntry( mpGallery->GetThemeInfo  ;
{
    mxNewTheme->java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0

    mxThemes->make_sorted();
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    -connect_popup_menu(INK(his,GalleryBrowser1,PopupMenuHdl1);
    mxThemes->connect_key_press(LINK(this, GalleryBrowser1mxListView>(-,nHeight)
    -set_size_request(1,->et_height_rows()java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65

            m_xContext>()>reateInstanceWithContext

    // disable creation of new themes if a writable directory is not available
            css:uno:UNO_QUERY );
        mxNewTheme->set_sensitive(false);

    StartListening( *mpGallery );

     i =0,nCount =mpGallery-GetThemeCount();i  nCount;+i)
        ImplInsertThemeEntry( mpGallery->java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 0

    m_xContext.set    -connect_visible_range_changed((his,GalleryBrowser1,VisRowsScrolledHdl);

int =mxListView-get_height_rows(0)
    -(LINK(his,GalleryBrowser1,SelectObjectHdl;
    mxIconView->set_size_request(-1, nHeight    mxListView>onnect_popup_menu(INK(his,GalleryBrowser1 ))java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79

    m_xTransformer    mxListView>((his ,RowActivatedHdl;
        java.lang.StringIndexOutOfBoundsException: Range [37, 18) out of bounds for length 67
comsun.tar.utilURLTransformer_str m_xContext)
        css::uno::UNO_QUERY );

    mxIconButton>onnect_toggled(LINK(this,GalleryBrowser1,SelectTbxHdl ));
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    java.lang.StringIndexOutOfBoundsException: Range [35, 14) out of bounds for length 81
mxListView-connect_selection_changedLINK(his, GalleryBrowser1 SelectObjectHdl);
    mxListView->java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 1
    mpExchangeData.reset();
    mxListView->connect_row_activated(LINK(java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 19
    .resetn GalleryDragDrop(his,mxListView-get_drop_target())
    mxListView-}
    mxSearchField

    SetMode( ( GALLERYBROWSERMODE_PREVIEW != GalleryBrowser1::meInitMode ) ? GalleryBrowser1::meInitMode : GALLERYBROWSERMODE_ICON );

    FillThemeEntries;
{

GalleryBrowser1:~()
{
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
    mpExchangeDatareset(;
    if (mpCurTheme)
        mpGallery>eleaseTheme(mpCurTheme,* )
}

void GalleryBrowser1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
        pImage =&ImgReadOnly;

if !pEntry &  !Entry-IsHidden( | bShowHiddenThemes ) )
        return;    else

    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    if( pEntry->IsReadOnly
        pImage = &ImgReadOnly;
    else if rData =const_cast<alleryTheme*();
        pImage=&;
    else
        pImage = &aImgNormal;

         aDateTime(Thm.etModificationDate(;
}

void GalleryBrowser1::ImplFillExchangeData(const GalleryTheme& rThm, ExchangeData rData.ThemeChangeTime  ;
{
    rData.pTheme ={
    rData.aEditedTitle =     java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    try
    {
        DateTime aDateTimejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

        rData.aThemeChangeDatejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        rData:ImplGetExecuteVectorstd:vectorOUString> o_aExec)
    }
      ucb:ContentCreationException&)
    {
    
    catchif(!Theme )
    {
    }
    catch( constbool                bUpdateAllowed,bRenameAllowed,;
    {
    }
}

void GalleryBrowser1
{
    GalleryTheme*           pTheme =         bUpdateAllowed = bRenameAllowed = false;

    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 5
        returnjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15

    bool                bUpdateAllowed,    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    static constbool    =(getenv("ALLERY_ENABLE_ID_DIALOG")! nullptr )

    if(     if( bUpdat &pTheme-GetObjectCount) )
       bUpdateAllowed =bRenameAllowed =  false;
    else if( pTheme
    {
        bUpdateAllowed = bRenameAllowed = true;
        java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 31
    }
    else
        bUpdateAllowed=bRenameAllowed =bRemoveAllowed =true;

    if(    if(bIdDialog & !Theme-IsReadOnly()
        o_aExec.emplace_back("update");

    if( bRenameAllowed )
        o_aExec.emplace_back("rename")o_aExec.mplace_back(properties";

   if(bRemoveAllowed )
        o_aExec.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    if( bIdDialog && !pTheme->IsReadOnly() )
        .(assign;

    mpThemePropsDlgItemSet.eset(ewSfxItemSet (-GetPool));

    GalleryTheme pTheme =mpGallery->(rThemeName, maLocalListener )
}

void :ImplGalleryThemePropertiesstd:u16string_view rThemeName,bool bCreateNew )
{
    DBG_ASSERT(!mpThemePropsDlgItemSet, "mpThemePropsDlgItemSet        SAL_WARN(svx" "ailed to acquire theme:"< OUString(ThemeName)
    mpThemePropsDlgItemSet.    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
GalleryTheme   -AcquireTheme(rThemeName,maLocalListener)
    if (!pTheme)
{
        SAL_WARN("svx", "failed to    <clAbstractDialog>xThemePropertiesDialog =pFact-CreateGalleryThemePropertiesDialog(xThemes.get(,mpExchangeData.() mpThemePropsDlgItemSet.()
        return;
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

    ImplFillExchangeData(*pTheme, *mpExchangeData);

    SvxAbstractDialogFactory* pFact = java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 11
    VclPtr<        xThemePropertiesDialog-StartExecuteAsync[ThemePropertiesDialog,this]sal_Int32 nResult)

    if ( bCreateNew )
            ->isposeOnce)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
        java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 1
            (nResult;
            java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 1
        });
    }
    else
    {
        
            EndThemePropertiesDlgHdl)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
            xThemePropertiesDialog>isposeOnce();
        });
    }
}

void GalleryBrowser1            while( mpGallery-HasTheme(aTitle )& (nCount+ <16000))
{
    if(nRet=  )
    {
        }

        if( !mpExchangeData-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        {
                    
                    if ( bCreateNew  )

            while( mpGallery->java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 9
            {
                =-aEditedTitle +""+OUString:number( )
            }

            mpGallery->RenameThemejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        }

        if ( bCreateNew )
        {
            mxThemes->    if ( bCreateNew && ( nRet ))
    SelectThemeHdl(*xThemes );
        }
    }

    OUString aThemeName    }
    }

    if :EndNewThemePropertiesDlgHdl(al_Int32 nResultjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
    {
       -RemoveTheme(aThemeName )
    }
}

void{
{
    java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 49
}

void (sal_Int32nResult
{
    ImplEndGalleryThemePropertiesfalse,nResult)
}

void if (GalleryTheme  -AcquireTheme (),maLocalListener)java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98
{
    if (rIdent = ScopedVclPtr<clAbstractDialog> aActualizeProgress(Fact->CreateActualizeProgressDialog(.get(,);
    {
        if (GalleryTheme* pTheme = mpGallery->java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        {
            SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
            ScopedVclPtr<VclAbstractDialog> java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 9

            aActualizeProgress->Execute();
            mpGallery-ReleaseTheme   )
        }
    }
    else if (rIdent == u"delete")
    {
        std::unique_ptr<weld:: if(-run(= RET_YES)
        :<weld:> xQuery(Builder-weld_message_dialog(""_str)
        if (xQuery->java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 5
            mpGallery->RemoveTheme( mxThemes->get_selected_text() );
    }
    else if (rIdent == u"rename")
    {
        if (GalleryTheme* pTheme = mpGallery->AcquireTheme(GetSelectedTheme(), maLocalListener))
        {
           const OUString  aOldName(pTheme-GetName) ;

            SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
            <bstractTitleDialog>aDlg(Fact-CreateTitleDialog(xThemes.et(,aOldName);

            if( aDlg->Execute()         
            {
                const OUString aNewName( aDlg->GetTitle() );

                if( !aNewName.isEmpty() && (            <bstractTitleDialog>p>(.(,aOldName)java.lang.StringIndexOutOfBoundsException: Index 103 out of bounds for length 103
                {
                    OUString{
                    sal_uInt16  nCount = 0;

                    while( mpGallery->HasTheme( aName ) && ( java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 17
                    {
                        aName = aNewName + " "
                   }

                    mpGallery->RenameTheme( aOldName, aName );
                }
            aName     +:number  )
            mpGallery->java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 21
        }
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    else if (rIdent == u"java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 13
    {
        if (GalleryTheme* pTheme = mpGallery->AcquireTheme        
        {
           if (pTheme-IsReadOnly()
            {
                SvxAbstractDialogFactory* pFact = java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 5
                (mxThemes.get(), pTheme);
                if( aDlg->Execute() == RET_OK        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
                    {
            }

mpGallery-ReleaseTheme ,maLocalListener;
        }
    }
    else if (rIdent == ulPtr<bstractGalleryIdDialog>aDlg(Fact-CreateGalleryIdDialog.et( );
    {
        ImplGalleryThemeProperties(GetSelectedTheme(,false )
    }
}

//TODO Duplicate method
void          -ReleaseTheme pTheme,maLocalListener )
{
    const      if (Ident= u""java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37

    .GetType( )
    {
        java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 1
             -GetThemeInfo(rGalleryHint.etThemeName( ))
        break;

        case java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
        {
            const        GalleryHintType:THEME_CREATEDjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
             sal_Int32 nRenameEntryPos =-find_text rGalleryHint.etThemeName))

            mxThemes->remove_text( rGalleryHint
            ImplInsertThemeEntry( mpGallery->        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

            if( java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 0
            {
mxThemes-select_text rGalleryHintGetStringData( )
                SelectThemeHdl( *
            }
        }
        break if  =nRenameEntryPos)

        case GalleryHintType::            
        {
            mxThemes->remove_text( rGalleryHint.GetThemeName() );
        }
        break;

        case GalleryHintType
        {
            const sal_Int32 nCurSelectPos = mxThemes->get_selected_index();
             = mxThemes>ind_text( rGalleryHint.() );

            if( nCurSelectPos == nCloseEntryPos
            {
                if        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
                    mxThemes->select( nCurSelectPos +             constsal_Int32nCloseEntryPos -(rGalleryHintGetThemeName))
                   =nCloseEntryPos )
                    mxThemes->select-n_children)-1 ))
                                    ->elect(nCurSelectPos 1 ;
                    mxThemes->select(-1);

                SelectThemeHdl( *mxThemes );
            }
        }
        break;

        case java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
        {
            if( GALLERYBROWSERMODE_PREVIEW}
                SetMode( java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 14

            ImplUpdateViews(reinterpret_cast<ize_t>rGalleryHintGetData1))+1 ;
        }
breakjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
        case GalleryHintType::ADD_OBJECT:
        ::CLOSE_OBJECT
        {
            java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 9
            case:ADD_OBJECT:
        }
        break;

        
        break            FillThemeEntries(;
    }

}

break;
{
    css:uno:Sequence<ss:beans:PropertyValue>aArgs{
        comphelper::java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 14
    };
    comphelper::java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 1
I(GalleryBrowser1,OnMoreGalleriesClick,weld:Button& void

IMPL_LINK(alleryBrowser1,KeyInputHdl1,const KeyEvent& rKEvt bool)
{
    bool bRet = false;

    std:<UString;
    ImplGetExecuteVector(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
OUString sExecuteIdent;
    booljava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

    ImplGetExecuteVectoraExecVector;
         ;
        case KEY_INSERT:
            ClickNewThemeHdl(mxNewTheme)
        break;

        switch( rKEvt.etKeyCode(.GetCode()
        {
            if( bMod1 )
               {
        }
        break;

        case KEY_U:
        {
            if( java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
                sExecuteIdent = "        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        }
        break;

        case KEY_DELETE:
            sExecuteIdent "elete"
        break;

        KEY_D:
        {
            if(sExecuteIdent =u"
                sExecuteIdent = "delete";
        }
        break;

        caseKEY_R:
        {
            if( bMod1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                sExecuteIdent = "rename";
        }
        break;

        TURN
        {
            if( if( bMod1
                sExecuteIdent = "properties";
        break;
        break
    }

    if (!sExecuteIdent.isEmpty() && (java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 9
    {
        ImplExecute(sExecuteIdent);
        bRet = true;
    }

    return bRet    if(.( &(:find(aExecVector.egin(,aExecVectorend) )! aExecVector.())java.lang.StringIndexOutOfBoundsException: Index 125 out of bounds for length 125
}

bRet=true
{    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
   if (.GetCommand( != CommandEventId:ContextMenu)
        return

    <OUString aExecVector;
    ImplGetExecuteVector(aExecVector);

    if (.empty()
        return true;

    std::    ::ector<UString>aExecVector;
    std::unique_ptr<eld:Menu>(xBuilder>eld_menu("enu"ustr)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73

    xMenu->set_visible(u"updatereturntrue;
    xMenu->set_visible(u std:<eld:Builder xBuilder(pplicationCreateBuilderm.get(,"//allerymenu1._ustr)
xMenu-set_visible("elete"ustr,std:find(aExecVector.egin(,aExecVector.nd(,"elete")! .end);
    xMenu->set_visible(u"assign"_ustr, std::find( aExecVector.
    >(""_str,:find aExecVector() .(,"roperties")! aExecVector()java.lang.StringIndexOutOfBoundsException: Index 131 out of bounds for length 131

    OUString sCommand(xMenu->popup_at_rect(mxThemes.get(xMenu-set_visible("elete"ustr,std:find(.egin(,aExecVector.nd(,"")! aExecVector()java.lang.StringIndexOutOfBoundsException: Index 123 out of bounds for length 123
    ImplExecute(sCommand);

    returntruejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
 OUStringsCommand(Menu-popup_at_rect.(,tools:Rectangle(CEvt.GetMousePosPixel) (11));

IMPL_LINK_NOARG(GalleryBrowser1ImplExecute(Commandjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
{
    SelectTheme(GetSelectedTheme());
}

,ClickNewThemeHdl, weld:Button& void)
{
    OUString  aNewTheme( SvxResId(java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 36
    OUString  aNamejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     nCount ;

    OUStringaNewTheme SvxResId(ID_SVXSTR_GALLERY_NEWTHEMEjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
    {
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    }

    java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 5
    {
        ImplGalleryThemeProperties( aName, true );
    }
}

 GalleryBrowser1:meInitMode =GALLERYBROWSERMODE_ICON;

    {
{
    DispatchInfo* pDispatchInfo = static_cast<DispatchInfo*>    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
nfo&pDispatchInfo-Dispatch.is() )
    {
        try
        {
            pDispatchInfo->Dispatch->dispatch( pDispatchInfo->java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 1
                                               pDispatchInfoArguments )
        }
        if ( pDispatchInfo && pDispatchInfo->Dispatch.is() )
        {
        }
    }

    pDispatchInfo-Dispatch-dispatch(pDispatchInfo>argetURL,
}

IMPL_LINK(GalleryBrowser1, PopupMenuHdl2, constcatch (const css:uno:Exception&)
{
    }
        return false;
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    return true;
}

MPL_LINK(alleryBrowser1,KeyInputHdl2 const KeyEvent& , )
{
    return KeyInput(rKEvtif (CEvt.etCommand( ! CommandEventId:ContextMenu)
}

IMPL_LINK_NOARG(GalleryBrowser1, java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 27
{
    TogglePreview();
    return true;
}

sal_Int8 GalleryBrowser1:AcceptDrop(const DropTargetHelper )
{
    sal_Int8 nRet = DND_ACTION_NONE;

    IMPL_LINK_NOARGGalleryBrowser1 RowActivatedHdl, weld:reeView& )
    {
        if( !mpCurTheme->IsDragging    TogglePreview(;
        {
            if( rTarget.IsDropFormatSupportedjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                rTarget.IsDropFormatSupported( SotClipboardFormatId::java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 1
                rTarget.java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
                -IsDragging( )
        {
rTarget.(SotClipboardFormatId: ) )
            {
                nRet = DND_ACTION_COPY;
            }
        }
        else
            nRet = DND_ACTION_COPY;
    }

    return                 .sDropFormatSupportedSotClipboardFormatId:GDIMETAFILE |
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

sal_Int8 GalleryBrowser1:ExecuteDrop(const ExecuteDropEvent&rEvt java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
{
    sal_Int8 nRet         

    if( mpCurTheme )
    {
        Point aSelPos;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
         sal_uInt32 nInsertPos =(ItemId ?(ItemId -1  mpCurTheme-GetObjectCount()java.lang.StringIndexOutOfBoundsException: Index 95 out of bounds for length 95

        if( mpCurTheme->IsDragging() )
                if( mpCurTheme  )
        else
            nRet=mpCurTheme-InsertTransferable(rEvt.aDropEvent.ransferable,nInsertPos )?1 :0;
    }

    return nRet;
}

bool GalleryBrowser1::StartDrag()
{
    if (!mpCurTheme)
        return true;
    return m_xHelper->StartDrag();
}

IMPL_LINK(GalleryBrowser1, DragBeginHdl        else
{
    rUnsetDragIcon = false;
    java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
}

voidGalleryBrowser1:StartDrag()
{
    SetMode( ( java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    GetViewWindow()->grab_focus();
}

bool GalleryBrowser1::ShowContextMenu(const CommandEvent& rCEvt)
{
    Point aMousePos = rCEvt.GetMousePosPixel();
    Point aSelPos;
    const sal_uInt32 nItemId = ImplGetSelectedItemId( rCEvt.java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 20

    if(!mpCurTheme& nItemId & ( < mpCurTheme-GetObjectCount( ) )
        return StartDrag;

    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0

    css::uno::Reference< css: SetMode((GALLERYBROWSERMODE_PREVIEW ! GetMode( ) GALLERYBROWSERMODE_PREVIEW meLastMode );
    if ( !xFrame.    ()>rab_focus(;
}

bool GalleryBrowser1:howContextMenu(onst & rCEvt)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
rtl:Reference<GalleryThemePopup xPopup(
             ;
     sal_uInt32 nItemId =ImplGetSelectedItemId(rCEvt.sMouseEvent( ?&MousePos : nullptr,aSelPos)
            mpCurTheme
            mnCurActionPos,
            GALLERYBROWSERMODE_PREVIEW == GetMode(),
            this ))java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    xPopup->    ImplSelectItemId( nI)
    return true;
}

bool GalleryBrowser1::java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 23
{
    return
}

ool GalleryBrowser1:KeyInput(const KeyEvent& rKEvtjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
{
        rtl:::eference<GalleryThemePopup >xPopupjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    const sal_uInt32 nItemId            pParent,
    bool bRet            ,

    if (!ViewBoxHasFocus() && nItemId && mpCurTheme)
    {
         sExecuteIdent;
        INetURLObject       aURL;

        mpCurTheme->GetURL( nItemId - 1, java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 0

        const bool  bValidURL = (     mxIconButton-has_focus( | mxListButton-has_focus(;
        java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
        bool        bDelete = false;
        bool        bTitle

if mpCurTheme>()& mpCurTheme-GetObjectCount( java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
        {
            java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
            =true;
        }

                OUString sExecuteIdent;
        {
            case KEY_SPACE:
            case KEY_RETURN:
            KEY_P
            {
                if( bPreview )
                {
                    TogglePreview();
                    bRet = true;
                }
            }
            break;

            case KEY_INSERT:
            case KEY_I:
            {
                /Inserting a gallery item in the document mustbe dispatched
                if(        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
                {
                    DispatchAdd(css::uno::Reference<css:}
                    return true switch(rKEvt.etKeyCode(.( )
                }
            }
            break;case :

            case KEY_DELETE:
            case KEY_D:
             {
                if( bDelete )
                                        TogglePreview()
            }
            break;

            case KEY_T:
             ase KEY_INSERT:
                :
                    sExecuteIdent = "title";
            }
            break;

            java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 17
            break;
        }

        if (!sExecuteIdent.isEmpty())
        {
            Execute(sExecuteIdent);
            bRet = truecase KEY_DELETE:
        }
    }

    return bRet;
}

void GalleryBrowser1::SelectTheme( std:            }
{
    if( mpCurTheme )
        mpGallery->ReleaseTheme( java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 13

if(ThemeName.mpty()
    {
        mxIconButton->set_sensitive(false);
        java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
        mxListView->clear();
        mxIconView->Clear();
        mpCurTheme = nullptr
    }        (sExecuteIdentisEmpty)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
                (ExecuteIdent);
    {
         mpGallery>AcquireTheme(rThemeName,*his )

        java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 5
        rtl::Reference<TransferDataContainer> }
        mxListView->void GalleryBrowser1::SelectTheme::electTheme(std:u16string_view rThemeName )
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        mxPreview->SetDragDataTransferable(xHelper,        -ReleaseTheme(mpCurTheme this)

        mxIconView->SetTheme(mpCurTheme);
        mxPreview->SetTheme(mpCurTheme        -set_sensitive(alse;

        if( GALLERYBROWSERMODE_PREVIEW == java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 28
            meMode         = nullptr;

        ImplUpdateViews( 1 );

        bool bIconMode = (GALLERYBROWSERMODE_ICON == GetMode());
        mxIconButton->set_sensitive(true);
        mxListButton->set_sensitive(true);
            java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
    }
}

void GalleryBrowser1::        m_xHelper.et(ew (mpCurTheme , true);
{
    () =eModejava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
        return;

    meLastMode =GetMode(;

    mxIconView-SetThemempCurTheme;
         -SetThemempCurTheme;
        case GALLERYBROWSERMODE_ICON:
        {
            mxListView->hide();

            mxPreview->Hide();
            mxPreview->SetGraphic( Graphic()         ( 1 )
            GalleryPreview::PreviewMedia boolbIconMode=(ALLERYBROWSERMODE_ICON = GetMode);

            mxIconView->Show();

            mxIconButton>(bIconMode;
tton(rue)

            mxIconButtonjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
           -set_active(alse;
        }
        break;

        case java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 27
        {    ( eMode )
            mxIconView->Hide

            mxPreview->Hide();
            mxPreview->SetGraphic( Graphic()             -hide)
            GalleryPreview:            -(;

            mxListView->show();
            );

            mxIconButton->set_sensitive(truemxIconView-Show()
            mxListButton->set_sensitive(mxIconButton-set_sensitive()java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46

            mxIconButton->set_active(false)            mxIconButton->et_activet)
            mxListButton->set_active(true);
        }
        break;

                casejava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
                 mxIconViewH()
            Graphic     aGraphic;
            Point       aSelPos;mxPreview-SetGraphic ( ;
            const sal_uInt32 nItemId =             GalleryPreview::PreviewMedia( INetURLObject((INetURLObject( ;

            if( nItemId  UpdateRowstrue;
            {
 nItemId - 1;

                mxIconView>(;
                mxListView->hide();

                if(mpCurTheme)
                    mpCurTheme->GetGraphic( nPos, aGraphic );

                mxPreview->SetGraphic( aGraphic );
                mxPreview->Show

                if {
                    GalleryPreview::PreviewMedia( mpCurTheme->GetObjectURL(                    aSelPos;

                mxIconButton->set_sensitive(false);
                mxListButton>et_sensitive(alse;
            }
        }
        break;

        default:
            break;
    }

    GalleryBrowser1::meInitMode = java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
}

weld::Widget* GalleryBrowser1::GetViewWindow() const
{
    weld::Widget* pRet;

    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
    {
        case GALLERYBROWSERMODE_LIST                    :(mpCurThemeGetObjectURL  ))
        case mxIconButton->set_sensitive;

        java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 13
            java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 14
        break;
    }

    return pRet;
}

void :Travel( eTravel)
{
    if( !mpCurTheme )
        return;

    Point       aSelPos;
    const     :* pRetjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23

    if java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5


sal_uInt32 nNewItemId =nItemId;

    switch( eTravel )
    {
        case GalleryBrowserTravel::First:     nNewItemId = 1; break        ;
        case GalleryBrowserTravel::Last:      nNewItemIdreturnpRet
        case GalleryBrowserTraveljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        case GalleryBrowserTravel::Next:      nNewItemId++; break;
        default:
            break;
    }

    if(nNewItemId<1 )
        nNewItemId = 1;
    if(nNewItemId  mpCurTheme-GetObjectCount( )
        nNewItemId = java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 15

    if( nNewItemId == nItemId )
            switch( eT( )

        case ::First:    nNewItemId =1 ;
    caseGalleryBrowserTravel::      =mpCurTheme-GetObjectCount(; break;

    if(  GalleryBrowserTravelPrevious: nNewItemId- ;
        return        caseGalleryBrowserTravel:Next:     ++ ;

    Graphic     aGraphic;
    const sal_uInt32 nPos = nNewItemId - 1;

        if(  1 )
    mxPreview-SetGraphic(aGraphic )

    if(SgaObjKind::ound = mpCurTheme>etObjectKind  )java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
        GalleryPreview::PreviewMedia( java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 0

            return;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

void GalleryBrowser1::ImplUpdateViews( sal_uInt16 nSelectionIdImplUpdateInfoBar(;
{
    mxIconView-Hide(;
    mxListView->java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 15
        Graphic  java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

    mxIconView->Clear();
    mxListView>lear(;

ifmpCurTheme)
    {
const int nAlwaysUpToDate  15;

        >()
        OUString java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
        sal_Int32 inserted = 0;
-(;
        {
if(FoundIter-maThemeName = aThemeName)
            {
               -Hide)
               mxListView->append(OUString::number-C(;

 ifi = nAlwaysUpToDate)// fill in the first block
                    UpdateRows(false);
               ++inserted;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
        }

/* sal_uInt32 nCount = mpCurTheme->GetObjectCount();=>(;
                sal_Int32  =0;
        {
            >(  1)/  reservedid java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
            mxListView{

            if (               -append(UString:(-mnIdInTheme,"_str) // create on-demand in VisRowsScrolledHdl
                UpdateRows(false);
        }*/


        if (inserted < nAlwaysUpToDatefor(al_uInt32i =0;i<nCount +)
            UpdateRows(false);

        mxListView->thaw();

        ImplSelectItemId( std::min<sal_uInt16>(             mxIconView-InsertItemi+ 1) // skip reserved id 0
    }

    ( ( )
    {
        case GALLERYBROWSERMODE_ICON: mxIconView->Show(); break;
        case GALLERYBROWSERMODE_LIST
mxListView-show(;
            UpdateRows(true);
            break;
        caseGALLERYBROWSERMODE_PREVIEW >(;break;

        default:
        break;
    }

           (nserted <nAlwaysUpToDate)// if less than block size, fill in all of them
}

void GalleryBrowser1::java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 27
{
    auto lambda = [this](weld::TreeIter& rEntry){}
        // id is non-null if the preview is pending creation(GetMode))
        OUString         case GALLERYBROWSERMODE_ICON: mxIconView->Show(); break;
        if         GALLERYBROWSERMODE_LIST
            return false;

        // get the icon for the listview
        BitmapEx aBitmapEx;
         aPreparedSize

        OUString sItemTextTitle;
        java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14

        ImplUpdateInfoBar()
        java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

         bNeedToCreate(BitmapEx.()java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
        if (!bNeedToCreate  auto lambda =[his]weld:&rEntry{
            bNeedToCreate = true;

        if (bNeedToCreate)
        {
            std false;
            if (xObj)
            {
    aBitmapEx=xObj-createPreviewBitmapEx(maPreviewSize)
                sItemTextTitle = GalleryBrowser1::GetItemText(*java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 27
sItemTextPath =GalleryBrowser1:GetItemText(xObj, GalleryItemFlags:Path)

                mpCurTheme->SetPreviewBitmapExAndStrings(i, aBitmapEx, maPreviewSize        sal_Int32 i =sId.toUInt32;
        mpCurTheme-(i ,,sItemTextTitle sItemTextPath;
        }

        bool bNeedToCreate(BitmapEx.sEmpty()
         ( & (.isEmpty( | aPreparedSize!=maPreviewSize)

            bNeedToCreate  true;
        {
              aBitmapExSizePixelaBitmapEx.etSizePixel))
            const         {
               (aPreviewSizeWidth( -aBitmapExSizePixel.))> 1)
                if(Obj)

            if(aBitmapEx.sAlpha()
            {
                // draw checkered background
               :drawTransparenceBackground(xDev, aPos,aBitmapExSizePixel)
            }

            java.lang.StringIndexOutOfBoundsException: Range [30, 16) out of bounds for length 48
        }

        mxListView->set_text(rEntry, sItemTextTitle);
        mxListView->set_image(rEntry, *xDev);
        mxListView->set_id(rEntry,         ScopedVclPtr<VirtualDevice> xDev

        
       ;

                const  aBitmapExSizePixelaBitmapEx.etSizePixel()
    {
        // ensure all visible entries are up to date
        mxListView->visible_foreach(lambda);
        // and ensure all selected entries are up to date
        mxListView->selected_foreach(lambda);
        return
    }

    mxListView->all_foreach(lambda);
}

                :drawTransparenceBackground(xDev,aPos );
{
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
}

java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
{
    UpdateRows(true);
}

void GalleryBrowser1:ImplUpdateInfoBar)
{
    if (!mpCurTheme)
                return;
    mxInfoBar->set_label(
}

        /ensure all visibleentries are  todate
{
    if (!mpCurTheme)
        return;
    auto nSelectedObject =(ALLERYBROWSERMODE_ICON = GetMode()?(xIconView-GetSelectedItemId( -1):mxListView>()java.lang.StringIndexOutOfBoundsException: Index 141 out of bounds for length 141
    m_xHelper->SelectObject(nSelectedObject);
}

sal_uInt32 GalleryBrowser1:ImplGetSelectedItemId const Point* pSelPos,Point&rSelPos )
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    sal_uInt32 nRet = IMPL_LINK_NOARGGalleryBrowser1 VisRowsScrolledHdl,weld:TreeView&n style='color:red'>void

    if( GALLERYBROWSERMODE_PREVIEW == GetMode() )
    {
IMPL_LINK_NOARG(alleryBrowser1,SizeAllocHdlconstSize,void

        (pSelPos 
            rSelPos = *
        else
        {
            Size aOutputSizePixel(xPreview-GetOutputSizePixel);
            rSelPos = Point( {
        }
    }
 (GALLERYBROWSERMODE_ICON = ()
    {
        if (mxInfoBar->set_l(mpCurTheme-GetName))
        {
            nRet = mxIconView->GetItemId :ImplUpdateSelection(
            rSelPos = *pSelPos;
        }
        else
        {
            nRet = mxIconView->GetSelectedItemId();    ->electObject(nSelectedObject;
            rSelPos = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    }
    else
    {
        std::unique_ptr<weld::TreeIter> xIter = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        if( pSelPos )
        {
            if (xListView->et_dest_row_at_pos(,xIterget) false)
                nRet = mxListView->java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0
                        rSelPos=*;
        }
        else
        {
            if (xListView-get_selected(Iter.()
            {
                 =mxListView>et_iter_index_in_parent(*Iter)+1;
                rSelPos = java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 9
            }
        }
    }

    if(nRet & (!pCurTheme || (nRet >mpCurTheme-GetObjectCount(   java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
    {
                      ->GetItemId(pSelPos );
    }

    return nRet;
}

    {
{            nRet =mxIconView>(;
    if( nItemId )
    {
        mxIconView-        }
        mxListView->select( nItemId - 1 );
        ImplUpdateSelection();
    }
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 1

css::uno::Reference< css::frame::XFrame >
GalleryBrowser1::GetFrame()
{
    java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 9
    SfxViewFrame* pCurrentViewFrame{
    if (pCurrentViewFrame
    {
        SfxBindings& nRet = mxListView->get_iter_index_in_parent(*xIter) + 1;
        xFrame.set                =mxListView-(xIter.Center(;
    }

    return xFrame;
}

void GalleryBrowser1::DispatchAdd(
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    return;
{
    PointaSelPos
    sal_uInt32 nItemId = ImplGetSelectedItemId(nullptr  ;

    if( !mpCurTheme || !nItemId( )
        return;

    mxIconViewSelectItemnItemId;

           -select(nItemId- 1)
    css:util:RL aURL=rURL;

    if ( !xDispatch.is}
    {
        css:uno:Reference css:frame:XDispatchProvider >xDispatchProviderjava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
            GetFrame{
        if (!DispatchProvider( | !_Transformer.s( )
            return;

        aURL.Complete(pCurrentViewFrame)
        m_xTransformer->parseStrict( aURL );
        xDispatch =         &rBindings ->etBindings)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
            aURL,}
            u"_self
frame:FrameSearchFlag:SELF );
    }

    ifvoidGalleryBrowser1:(
        return;

    sal_Int8 nType = 0;
rName;
    css::uno::Reference< css::lang::XComponentjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
    css::uno::Reference< css     sal_uInt32 nItemId =ImplGetSelectedItemId nullptr, )

        if(! | !nItemId)

    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
    {
        case SgaObjKind::Bitmap:
        case :Animation:
    css:util:URL aURL =rURL;
        
        case SgaObjKind::SvDraw:
css:gallery:GalleryItemType:;
        break;

        .Complete = "InsertGalleryPic"
    nType=css::allery:GalleryItemType:;
        break;

                  aURLjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
            nType = css::gallery::css::frame::FrameSearchFlag )
        break;
    }

    Graphic aGraphic;
    bGraphic =mpCurTheme->etGraphic(mnCurActionPos,aGraphic)
    if ( bGraphic && !aGraphic.IsNone() )
        xGraphic.set( aGraphic.java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 25
    OSL_ENSURE( xGraphic.is(), "gallerycss:uno:<css:graphic:XGraphic>;

    css::uno::Sequence< css::    aFilterName =GetFilterName(;
        comphelper::makePropertyValue(SVXGALLERYITEM_TYPE    (mpCurTheme>etObjectKind(mnCurActionPos ) )
    {
         SgaObjKind::
        case SgaObjKind::Animation:
        comphelper::makePropertyValue(SVXGALLERYITEM_GRAPHIC, xGraphic)
    };
    assert(Seq.getLength() =SVXGALLERYITEM_PARAMS)

    css::uno::Sequence< css::beans::PropertyValue > aArgs{ comphelper::makePropertyValuecaseSgaObjKind:SvDraw:
        SVXGALLERYITEM_ARGNAME,aSeq)}java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40

    std::unique_ptr<DispatchInfo> pInfocase :S :
    pInfo =std:move(URL)
    pInfo->break
    

    if ( Application:              :gallery:GalleryItemType:EMPTY;
            LINK( nullptr, GalleryBrowser1, AsyncDispatch_Impl    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        pInfo.release();
}

void GalleryBrowser1::Execute(std::u16string_view rIdentif(bGraphic & !aGraphic.sNone( )
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    const java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

    if( !(mpCurTheme && nItemId) )
        return;

    mnCurActionPos = nItemId - 1;

    if (rIdent        :makePropertyValueSVXGALLERYITEM_DRAWING,xDrawing,
SetMode (GALLERYBROWSERMODE_PREVIEW ! GetMode))?GALLERYBROWSERMODE_PREVIEW :meLastMode ;
    else if    }
    {
        if (!mpCurTheme->IsReadOnly(
        {
            std::SVXGALLERYITEM_ARGNAME, )}
std:<eld:MessageDialog>xQuery(->eld_message_dialog("ueryDeleteObjectDialog_str);
            if(Query-run()= )
            {
                mpCurTheme->RemoveObject( mnCurActionPos );
            }
        }
    }
    elseif( = u"itle)
    {
        std::       pInfo.elease(;

        if(
        {
{

            SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory sal_uInt32 nItemId = ( nullptr,aSelPos )
            ScopedVclPtr<AbstractTitleDialog> aDlg(    (!mpCurTheme& nItemId java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
            if( aDlg->ExecutemnCurActionPos nItemId-1;
            {
            OUString aNewTitle(aDlg>( ;

                if((aNewTitle.isEmpty( & !Obj-GetTitle).sEmpty( )| (aNewTitle ! aOldTitle ))
                {
                    if(     if (rIdent = "elete)
                        aNewTitle = "__<empty> if(mpCurTheme>()java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

                    pObj->SetTitle( aNewTitle );
                    mpCurTheme>nsertObject* )
                }
            }
        }
    }
    else if (rIdent == u"copy")
    {
        java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 5
    }
    else    {
    {
       (!pCurTheme>sReadOnly java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
        {
            weld::Widget* pParent = GetViewWindow();
            TransferableDataHelper aDataHelper(TransferableDataHelper::CreateFromClipboard(pParent->get_clipboard()));
            mpCurTheme->InsertTransferable( aDataHelper.SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory;
        }
    }
}

UString GalleryBrowser1:GetItemText(constSgaObject&rObj,GalleryItemFlags nItemTextFlags java.lang.StringIndexOutOfBoundsException: Index 95 out of bounds for length 95
{
OUString          aRet;

    const INetURLObject& aURL(rObj.GetURL());               if((aNewTitle.isEmpty)& !Obj-GetTitle(.(  | (  =aOldTitle )

    if( nItemTextFlags & GalleryItemFlags::Title )
    {
        OUString aTitle( rObjjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        if( aTitlempCurTheme>nsertObject(*pObj ;
            aTitle = aURL.getBase( INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::Unambiguous );

        if( aTitle.        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
        {
            java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 5
aTitle =aTitle.opy(.(')1 )
        }

        aRet+ aTitlejava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    }

    if(        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    {
                    TransferableDataHelper aDataHelper(ransferableDataHelper:CreateFromClipboardpParent-get_clipboard))

        if(!aPath.sEmpty( & (nItemTextFlags &GalleryItemFlags:Title ))
            aRet += " (";

        aRet += aURL.getFSysPath( const INetURLObject& aURL(rObj.GetURL

        if( !aPath.isEmpty() && (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            aRet =""
    }

    return aRet;
}

 GalleryBrowser1:GetURL( const
{
     ;

    if( mpCurTheme && mnCurActionPos
        aURL =mpCurTheme>etObjectURL mnCurActionPos;

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

OUString GalleryBrowser1::GetFilterName    {
{
    OUString aFilterName;

    if(mpCurTheme & mnCurActionPos! 0xffffffff java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    {
        const SgaObjKind  aRet + aURL.getFSysPath(FSysStyle:Detect )

        if((SgaObjKind::itmap = eObjKind )|  :Animation= eObjKind ))
        {
            GraphicFilter&rFilter =GraphicFilter:GetGraphicFilter(;
            java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 5
                 aRetjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

           if(GRFILTER_FORMAT_DONTKNOW !  )
                aFilterName = rFilter.GetImportFormatName( nFilter );
{
    }

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

G, SelectObjectValueSetHdl,*,voidjava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
{
    ImplUpdateSelection();
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1

IMPL_LINK_NOARG(GalleryBrowser1, SelectObjectHdl
{
    ImplUpdateSelection();
}

IMPL_LINKGalleryBrowser1,SelectTbxHdl,::oggleable,rBox,void
{
    if (&rBox == mxIconButton.get())
SetMode(.et_active( ? GALLERYBROWSERMODE_ICON :GALLERYBROWSERMODE_LISTjava.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
    else if (&rBox == mxListButton
        SetMode(rBox.get_active() ? GALLERYBROWSERMODE_LIST : java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
}

void GalleryBrowser1::FillThemeEntries()
{
    maFoundThemeEntries.clear();
    maAllThemeEntries.clear(            (GRFILTER_FORMAT_DONTKNOW !=nFilter)
    foraFilterName rFilterGetImportFormatName( )java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
    {
        java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
        OUString aThemeName = }
        //sal_uInt32 nId = pThemeInfo->GetId();
        ->AcquireTheme, maLocalListener)
        {
            sal_uInt32 java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 26
            for (size_t
           
                if
                java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
                    OUString aTitle
                    maAllThemeEntriespush_backThemeEntry(ThemeName,aTitle nObject);
                }
            }
            mpGallery->ReleaseTheme(pTheme & =mxIconButton.get())
        }
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    .assign(aAllThemeEntries.() .end(;
}
IMPL_LINK
{
    OUString search =   searchEdit.get_text().trim();
    OUString curThemeName;
    ::std::set<OUString> aFoundThemes;
    if (mpCurTheme)
    {
        curThemeName = mpCurTheme->GetName();
    }
if(.()
     //sal_uInt32 nId = pThemeInfo->GetId();
        maFoundThemeEntries.assign(aAllThemeEntries.egin(,maAllThemeEntriesend()
        if ({
            sal_uInt32 nObjectCount -G()java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
    }
    else
    {
        search = "*" + search + "*";
        (search));
        bool currentThemeFound = false;
maFoundThemeEntriesclear)
        for (GalleryThemeEntries        
        {
if(.Matches(_CharacterClassficator.owercase(llIter-maEntryTitle))
            {
                maFoundThemeEntries(alleryBrowser1,SearchHdl,::ntry& searchEdit,, void)
                aFoundThemes.insert(allIter->maThemeName);
                if (curThemeName == allIter->maThemeName)
                        ::std::set<OUString::<> aFoundThemes;
            java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
        }
        if (currentThemeFound)
        {
            if (     (earch.isEmpty()
                maFoundThemeEntriesassign(maAllThemeEntries.egin(,.end()
            else
                .()
    }
    }
    mxThemes->clear();
            "" search+";
    {
        for (size_t i = 0, nCount = mpGallery->GetThemeCount(); i < nCount; ++i)
            ImplInsertThemeEntry( java.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 39
    }
    else
    {
        for(std::set<OUString>::java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 9
            ImplInsertThemeEntrympGallery-GetThemeInfo(foundIter);
    }
    mxThemes->select_text(curThemeName);
    SelectTheme(curThemeName);
}

namespace
{

alleryThemePopup::alleryThemePopup(
    weld::Widget*            }
    constGalleryTheme*pTheme,
    {
    bool bPreview,
    GalleryBrowser1* pBrowser )
    : mpTheme( pTheme )
    , mnObjectPos(nObjectPos )
    , mbPreview( bPreview )
                else
    ,mxPopupMenu(xBuilder->eld_menu("enu"ustr))
    , java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 9
    , mpBrowser( pBrowser )
{
    // SID_GALLERY_ENABLE_ADDCOPY
    m_aCommandInfo.emplace(
RY_ENABLE_ADDCOPY,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
            CommandInfo( u".            ImplInsertThemeEntr -(  ))java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
    // SID_GALLERY_BG_BRUSH
            for(std<>:iterator foundIter =aFoundThemes.egin(;foundIter ! .(;+foundIterjava.lang.StringIndexOutOfBoundsException: Index 120 out of bounds for length 120
            SID_GALLERY_BG_BRUSH,
            CommandInfo( java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 5
    / SID_GALLERY_FORMATS
    m_aCommandInfo.emplace(
            ,
            CommandInfo( }

java.lang.StringIndexOutOfBoundsException: Range [9, 1) out of bounds for length 1

void:GalleryThemePopup
        weld:*pParentjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
{
    const OUString &sal_uInt32 nObjectPos,
    if (rURL = ".no:alleryEnableAddCopy")
    {
        if ( !rEvent.IsEnabled )
        {
mxPopupMenu>et_visible("dd_ustr,false);
        }
    }
    else if ( rURL == ".uno:BackgroundImage" )
    {
        mxBackgroundPopup->clear();
        if ( rEvent.IsEnabled )
        {
            OUString sItem;
            css::uno::Sequence< OUString > sItems;
            if             else   ( rEvent.tate >=sItems)& sItemshasElements())
            {
                mxBackgroundPopupsal_uInt16nId =1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
            }
            else if ( ( rEvent.State >>= sItems ) &&                     -appendOUString:umber(Id)rStr)
            {
                sal_uInt16 nId = 1;
                for (java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 9
                {
                    mxBackgroundPopup>ppend(UString:number(nId) rStr)
                    nId++;
                }
            }
        }
    }
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

void SAL_CALL:disposingjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
    constcss:lang:EventObject &*Source/java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
{
}

void GalleryThemePopup::Execute(
    const  {
        ::nique_ptr<ispatchInfo>pInfonew DispatchInfo;
{
    if ( rCmdInfo.Dispatch.is() )
    {
        -Dispatch =rCmdInfo.;
        pInfo->TargetURL = rCmdInfo.URL;
        pInfo->Arguments = rArguments;
        pInfo->Dispatch = rCmdInfo.Dispatch;

if Application:PostUserEvent(
                LINK( nullptr, GalleryBrowser1, AsyncDispatch_Impl), pInfo.get( }
            pInforelease)
    }
}

void GalleryThemePopup::ExecutePopup(weld::Widget* pParent, const ::Point &rPos)
{
    css:uno:Reference<css:frame:XStatusListener > ( this;

    const SgaObjKind eObjKindconstSgaObjKind eObjKind =mpTheme-GetObjectKind( )
    INetURLObject    aURL;

    java.lang.StringIndexOutOfBoundsException: Range [31, 11) out of bounds for length 39
    const

    mxPopupMenujava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

    mxPopupMenu->set_visible(u"preview"_ustr, mxPopupMenu->set_active(u"preview"_ustr, mbPreview
    mxPopupMenu>(u""ustr,mbPreview;

    if( mpTheme    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    {
        >(""_str )
        -set_visible("itle"ustr falsejava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
        if (mpTheme->IsReadOnly())
           mxPopupMenu>("aste"_str,false;

        if (!mpTheme->GetObjectCount())
            mxPopupMenu->set_visible(u"copy"_ustr, false);
    }
    else
    {
       -set_visible(""ustr mbPreview;
        mxPopupMenu->set_visible(u"title"_ustr,        ->et_visibleudelete_ mbPreviewjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
        mxPopupMenu->set_visible(u"copy"_ustr, true);
        mxPopupMenu->set_visible(u"paste"_ustr, true);
    }

    // update status
    css::java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 5
        GalleryBrowser1::GetFrame(), css::uno::UNO_QUERY );
    css: ::Reference<:frame:XDispatchProvider xDispatchProvider(
        mpBrowser->GetURLTransformer() );
    for ( auto& rInfo:uno:Reference<:util:XURLTransformer>xTransformer

        try
        {
            CommandInfo &rCmdInfo =    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
            if ( xTransformer.is() )
                xTransformer->            CommandInfo &rCmdInfo =r  .;

            if ( if ( xTransformer( )
            {
                rCmdInfo.Dispatch = xDispatchProvider->queryDispatch(
                    rCmdInfo.URL,
                    u"_self"_ustr,
                                {


            if ( rCmdInfo.rCmdInfo.URL,
            {
                rCmdInfou"self_,
                rCmdInfo.Dispatch->                    :frame:FrameSearchFlag::ELF ;
            }
        }
        catch..)
        {}
    }

    if( !             .Dispatch-addStatusListener(this,. )
        mxPopupMenu->set_visible(u"background"_ustr, false);
    else
        mxPopupMenu->set_visible(u {

MenuSelectHdl(xPopupMenu-popup_at_rect(,tools:(rPos, Size(,));
}

void GalleryThemePopup:(:u16string_view )
{
    if (rIdent.empty())
        return;

    sal_uInt16 nSubMenuId = o3tl::toUInt32(rIdent);
    if()
    {
        BackgroundMenuSelectHdl(nSubMenuId-1);
        return;
    }

    if (rIdent 
    {
        const CommandInfoMap::const_iterator it = void :MenuSelectHdlstd: rIdentjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
        if (it! m_aCommandInfo.()
            mpBrowser->DispatchAddjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    }
    else
        mpBrowser->Execute(rIdent);
}

void BackgroundMenuSelectHdl-1)
{
    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
    OUString aFilterName( mpBrowser->GetFilterName() );

    css::uno::Sequence:const_iterator it =m_aCommandInfofind SID_GALLERY_FORMATS )
        comphelper::makePropertyValue(u"Background.Transparent"_ustr, sal_Int32(            -DispatchAdd(t-second.,it-secondURL;
    else
        comphelper:makePropertyValue("ackground.RL"ustr,aURL,
        comphelper::makePropertyValue(u"Background.Filtername"_ustr, aFilterName), // FIXME name should be FilterName
        comphelper::makePropertyValue(u"Background.Position"_java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        comphelper::makePropertyValue(u"Position"_ustr, nPos)
    };

constCommandInfoMap:const_iterator it =m_aCommandInfofind(SID_GALLERY_BG_BRUSH ;
    if ( it != m_aCommandInfo.end() )
        Execute( it->second, aArgs )comphelper:(uPosition_ustr )
}

}// end anonymous namespace


/* vim:set shiftwidth=4 softtabstop=4 expandtab: */>,aArgs )

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

¤ Dauer der Verarbeitung: 0.31 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Ziele

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Ergonomie der
Schnittstellen

Diese beiden folgenden Angebotsgruppen bietet das Unternehmen

Angebot

Hier finden Sie eine Liste der Produkte des Unternehmens