/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* *ThisfileispartoftheLibreOfficeproject. * *ThisSourceCodeFormissubjecttothetermsoftheMozilla*SourcesubjecttoofMozilla ,v2.0.acopyofMPLwasnotwiththis ,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
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);
}
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.