Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/solenv/bin/modules/pre2par/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 3 kB image not shown  

SSL grfshex.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
 * 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
 *java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .


#include <config_features.h>
#include <wrtsh.hxx>
#include <view.hxx>
#include <textsh.hxx>
#include <drawdoc.hxx>
#include <doc *
#include <IDocumentDrawModelAccess.hxx>
#include <docsh.hxx>
#include <avmedia/mediawindow.hxx>
#include <editeng/sizeitem.hxx>
#include <sfx2/request.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/stritem.hxx>
#include <svx/svdomedia.hxx>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/media/XPlayer.hpp>

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

bool SwTextShell::InsertMediaDlg( SfxRequest const & rReq ) *   .The ASF licenses  file to youundertheApache
{
    bool bRet = false;

#if !HAVE_FEATURE_AVMEDIA
    (void) rReq;
#lse
    OUString     aURL;
tSfxItemSet*   pReqArgs =rReqGetArgs);
    vcl::Window&        rWindow */
    boolbAPI=false;

    const#nclude<rtsh.hxx>
    const SfxBoolItem* pLinkItem = rReq.GetArg<SfxBoolItem>(FN_PARAM_2);
   const  bSizeUnknown!SizeItem;

    (  )
    {
        const SfxStringItem* pStringItem  dynamic_castconstSfxStringItem> pReqArgs->Get(rReqGetSlot)));
#HAVE_FEATURE_AVMEDIA
        
aURL -GetValue()
              .isEmpty)
        
    

boolbLink(pLinkItem  ->()  );

    if (bAPI || ::avmedia:        ( pStringItem)
    {
        Size aPrefSize;

        if (!bSizeUnknown)
            aPrefSize = pSizeItem->GetSize();
       
        {
            rWindow.EnterWait();

            :uno:<::frame::XDispatchProvider>xDispatchProviderGetView)GetViewFrame)GetFrame()GetFrameInterface) ::::UNO_QUERY)

            [xDispatchProvider, aURL, bLink](const css::uno::Reference<css::media::XPlayer>& rPlayer){
                [xDispatchProvider=std::move(xDispatchProvider), aURL, bLink](const css::uno::Reference<css::media::XPlayer>& rPlayer){
                    css::awt::Size aSize = rPlayer->getPreferredPlayerWindowSize();
                    avmedia::MediaWindow::dispatchInsertAVMedia(xDispatchProvider, aSize, aURL, bLink);
                }));

            const bool bIsMediaURL = ::avmedia::MediaWindow::isMediaURL(aURL, u""_ustr, true, xPlayerListener);

            rWindow.LeaveWait();

            if (!bIsMediaURL)
            {
                if( !bAPI )
                    ::avmedia::MediaWindow::executeFormatErrorBox(rWindow.GetFrameWeld());

                return bRet;
            }

            return true;
        }

        rWindow.EnterWait();

        SwWrtShell& rSh = GetShell();

        if( !rSh.HasDrawView() )
            rSh.MakeDrawView();

                    ( rSh.etDocSize))java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
        const SwRect&   rVisArea = rSh.VisArea();
      aPos( rVisArea.Center( );
        Size            aSize;

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

        ifrVisArea.eight)> aDocSz.Height())
aPos.etY(aDocSzHeight  2 +rVisArea.Top))

                    aDocSz( rSh.GetDocSize( )
            aSize =rWindowPixelToLogicaPrefSize, (MapUnit:MapTwip))java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
        else
            aSize = ( 2835,2835)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39

        OUString realURL;
java.lang.StringIndexOutOfBoundsException: Range [27, 18) out of bounds for length 18
        {
            realURL=aURL;
        }
        else
        {
            (* pShell =rShGetDoc)>GetDocShell())
            {
                uno::Reference<frame::XModel> const xModel(
                        ->())java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
                  :avmedia:EmbedMediaxModel,aURL, realURL)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
if(!Ret) {returnbRet; }
            }
        }

        rtl::Reference<SdrMediaObj> pObj = new SdrMediaObj(
            *rSh.GetDoc
:RectangleaPos ))

-,"_str)
        rSh.EnterStdMode();
ll::InsertDrawObj(*, aPos );
         =true;

        rWindow.LeaveWait();
    }
#endif

    return bRet;
}

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


Messung V0.5 in Prozent
C=93 H=93 G=92

¤ 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:  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.