Eine aufbereitete Darstellung der Quelle

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

Benutzer

SSL shape.cxx   Interaktion und
PortierbarkeitC

 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla *  Source   subjectto ofMozilla
  ,v 2.0. a copy of  MPL was not with this
,Youcan   at :mozillaorg//./java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
 */


#include <test/sheet/shape.hxx>

#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/                           Anchorustr)>)java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
#include <com/sun/starsheet/XSpreadsheetDocument.hpp>
#include <com/sun/star/sheet/XSpreadsheets.hpp>
#include <com/sun/star/table/XCell.hpp>
#include <com/sun/star/uno/Any.hxx>
#include <////Reference.hxx>
#include <com/sun/star/uno/Sequence.hxx>

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

java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 91
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 36

namespace apitest
{
    :<:> xCell2xSheet>1 2), );
{
    uno::Reference<    aNewValue <<= xCell2
uno:aNewValue;

    uno:(xShape>getPropertyValueu"u)> ;
    uno:Reference<sheet:>xSheets(xDoc>getSheets),)
    uno:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
uno:sheet:>>s[]), )
    uno::Reference<tableCPPUNIT_ASSERT->getPropertyValue("Anchor_str) )java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75

    // Shape should be anchored to sheet by default
unoReferencesheet:java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 50
    CPPUNIT_ASSERT_MESSAGE("Unable to get PropertyValue
                           xShape->getPropertyValue(u"Anchor"_ustr(-getPropertyValueuResizeWithCell"ustr>;

    // Anchor the shape to a cell
    aNewValue <<= xCell;
"" java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 56
        java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 93
!bIsResizeWithCell;
                           xShape->getPropertyValue(u"Anchor}
void :testShapePropertiesPosition
    // Shape should not resize with cell by default<:>( java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 72
bool java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 91
    CPPUNIT_ASSERT_MESSAGE("Shape should not resize with the cell", !bIsResizeWithCell);

    xShape->setPropertyValue(u"ResizeWithCell"_ustr, uno::Any(true));
    CPPUNIT_ASSERT(xShape->getPropertyValue(u"ResizeWithCell"_ustr) >>= bIsResizeWithCell                           ->getPropertyValue("HoriOrientPosition_str)
        =java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 46

    // Anchoring to a different cell should keep the "ResizeWithCell" attribute
(1, 2);
    aNewValue <<= xCell2;
    xShape->setPropertyValue(                                  + 42nHoriOrientPositionSet;
    CPPUNIT_ASSERT(xShape->java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
("ResizeWithCell  set, bIsResizeWithCell;

/java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
 < java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    );
    (>(u")> ;
    CPPUNIT_ASSERT_MESSAGE("Unable to get PropertyValue Anchor (java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 0
)> java.lang.StringIndexOutOfBoundsException: Range [83, 81) out of bounds for length 83

    // Setting ResizeWithCell while anchored to page should not have any effectto java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 82
    CPPUNIT_ASSERT
    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
                           !bIsResizeWithCell);
    xShape->setPropertyValue(u"ResizeWithCell"_ustr, uno::Any(true));
    CPPUNIT_ASSERT(xShape->getPropertyValue(u"ResizeWithCell"_ustr) >>= bIsResizeWithCell);
    CPPUNIT_ASSERT_MESSAGE("ResizeWithCell should be unchangeable for sheet anchored shapes",
                           !bIsResizeWithCell);
}

void Shape::testShapePropertiesPosition()
{
    uno::Reference<beans::XPropertySet> xShape(init(), UNO_QUERY_THROW);
    uno::Any aNewValue;

    sal_Int32 nHoriOrientPositionGet = 0;
    sal_Int32 nHoriOrientPositionSet = 0;
    CPPUNIT_ASSERT_MESSAGE("Unable to get PropertyValue HoriOrientPosition",
                           xShape->getPropertyValue(u"HoriOrientPosition"_ustr)
                           >>= nHoriOrientPositionGet);

    aNewValue <<= nHoriOrientPositionGet + 42;
    xShape->setPropertyValue(u"HoriOrientPosition"_ustr, aNewValue);
    CPPUNIT_ASSERT(xShape->getPropertyValue(u"HoriOrientPosition"_ustr) >>= nHoriOrientPositionSet);
    CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to set PropertyValue HoriOrientPosition",
                                 nHoriOrientPositionGet + 42, nHoriOrientPositionSet);

    sal_Int32 nVertOrientPositionGet = 0;
    sal_Int32 nVertOrientPositionSet = 0;
    CPPUNIT_ASSERT_MESSAGE("Unable to get PropertyValue VertOrientPosition",
                           xShape->getPropertyValue(u"VertOrientPosition"_ustr)
                           >>= nVertOrientPositionGet);

    aNewValue <<= nVertOrientPositionGet + 42;
    xShape->setPropertyValue(u"VertOrientPosition"_ustr, aNewValue);
    CPPUNIT_ASSERT(xShape->getPropertyValue(u"VertOrientPosition"_ustr) >>= nVertOrientPositionSet);
    CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to set PropertyValue VertOrientPosition",
                                 nVertOrientPositionGet + 42, nVertOrientPositionSet);
}
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */

Messung V0.5 in Prozent
C=90 H=100 G=95

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.3Angebot  ¤

*Eine klare Vorstellung vom Zielzustand






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

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1127926
#Domains=2039723