12#include <com/sun/star/drawing/XShape.hpp>
13#include <com/sun/star/sheet/XSheetAnnotationShapeSupplier.hpp>
15#include <cppunit/TestAssert.h>
25 uno::Reference< sheet::XSheetAnnotationShapeSupplier > xSheetAnnotationShapeSupplier(
init(), UNO_QUERY_THROW);
26 uno::Reference< drawing::XShape > xShape = xSheetAnnotationShapeSupplier->getAnnotationShape();
28 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"getAnnotationShape() wrong X position",
29 sal_Int32(7373), xShape->getPosition().X);
30 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"getAnnotationShape() wrong Y position",
31 sal_Int32(451), xShape->getPosition().Y);
33 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"getAnnotationShape() wrong width",
34 sal_Int32(11275), xShape->getSize().Width);
35 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"getAnnotationShape() wrong height",
36 sal_Int32(1386), xShape->getSize().Height);
void testGetAnnotationShape()
virtual css::uno::Reference< css::uno::XInterface > init()=0