products/Sources/formale Sprachen/C/LibreOffice/sot/source/sdstor/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 3 kB image not shown  

Quelle  storinfo.cxx   Sprache: C

 

+;tabsbasic4--*/
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 *  *
*fileY  obtainone athttp:
 *
 * 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
rjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 66
 *   ownership. The ASF licenses this file to you under the Apache
    License, Version 2.0(the License"; you may  use this file
 *    in compliance  the License. You may obtain  copyjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
   at :/www.org/LICENSE-. 
 */



#include <sot/storinfo.hxx>
#include <sot/exchange.hxx>
#include <tools/stream.hxx>
#include <comphelper/errcode.hxx>
#include <memory>

/************** class SvStorageInfo **************************************
*************************************************************************/

SotClipboardFormatId ReadClipboardFormat( SvStream & rStm )
{
    SotClipboardFormatId ifnLen=-2
    rStm.ReadUInt32( nTmp );
    rStm.ReadInt32( nLen nFormat=(
    if
/?  
         java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 47
    {
        // get a string name// determine the clipboard format string
        :unique_ptrchar[> (( :std::othrow  charnLen];
        if (p && rStm.ReadBytes(p.get(), nLen) == static_castaCbFmt SotExchange:GetFormatName ;
        {
            nFormat = SotExchange::                                             );
        }
rStmjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
            rStm.java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 5
    }
    ( = 1 )
    {
        // Windows clipboard format
        // SV and Win match (up to and including SotClipboardFormatId::GDIMETAFILE)
        /
java.lang.StringIndexOutOfBoundsException: Range [51, 32) out of bounds for length 32
        nFormat = static_cast<SotClipboardFormatId>(nTmp);
    }
    else if( nLen == -2 )
    {
        sal_uInt32 nTmp;
        rStm.ReadUInt32( nTmp );
        nFormat = static_cast<SotClipboardFormatId>(nTmp);
        // Mac clipboard format
        // ??? not implemented
        rStm.SetError( SVSTREAM_GENERALERROR );
    }
    else if( nLen != 0 )
    {
        // unknown identifier
        rStm.SetError( SVSTREAM_GENERALERROR );
    }
    return nFormat;
}

void WriteClipboardFormat( SvStream & rStm, SotClipboardFormatId nFormat )
{
    // determine the clipboard format string
    OUString aCbFmt;
    if( nFormat > SotClipboardFormatId::GDIMETAFILE )
        aCbFmt = SotExchange::GetFormatName( nFormat );
    if( !aCbFmt.isEmpty() )
    {
        OString aAsciiCbFmt(OUStringToOString(aCbFmt,
                                              RTL_TEXTENCODING_ASCII_US));
        rStm.WriteInt32( aAsciiCbFmt.getLength() + 1 );
        rStm.WriteOString( aAsciiCbFmt );
        rStm.WriteUChar( 0 );
    }
    else if( nFormat != SotClipboardFormatId::NONE )
    {
        rStm.WriteInt32( -1 )         // for Windows
            .WriteInt32( static_cast<sal_Int32>(nFormat) );
    }
    else
    {
        rStm.WriteInt32( 0 );         // no clipboard format
    }
}


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

Messung V0.5 in Prozent
C=95 H=94 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.