Line data Source code
1 : #ifndef INCLUDED_OOO_VBA_MSFORMS_XSHAPE_HDL
2 : #define INCLUDED_OOO_VBA_MSFORMS_XSHAPE_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/RuntimeException.hdl"
7 : namespace ooo { namespace vba { namespace msforms { class XPictureFormat; } } }
8 : namespace ooo { namespace vba { namespace msforms { class XFillFormat; } } }
9 : namespace ooo { namespace vba { namespace msforms { class XLineFormat; } } }
10 : #include "ooo/vba/XHelperInterface.hdl"
11 : #include "com/sun/star/uno/Any.h"
12 : #include "com/sun/star/uno/Reference.h"
13 : #include "cppu/macros.hxx"
14 : #include "rtl/ustring.hxx"
15 : #include "sal/types.h"
16 :
17 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
18 :
19 : namespace ooo { namespace vba { namespace msforms {
20 :
21 0 : class SAL_NO_VTABLE XShape : public ::ooo::vba::XHelperInterface
22 : {
23 : public:
24 :
25 : // Attributes
26 : virtual ::rtl::OUString SAL_CALL getName() = 0;
27 : virtual void SAL_CALL setName( const ::rtl::OUString& _name ) = 0;
28 : virtual double SAL_CALL getHeight() = 0;
29 : virtual void SAL_CALL setHeight( double _height ) = 0;
30 : virtual double SAL_CALL getWidth() = 0;
31 : virtual void SAL_CALL setWidth( double _width ) = 0;
32 : virtual double SAL_CALL getLeft() = 0;
33 : virtual void SAL_CALL setLeft( double _left ) = 0;
34 : virtual double SAL_CALL getTop() = 0;
35 : virtual void SAL_CALL setTop( double _top ) = 0;
36 : virtual ::sal_Bool SAL_CALL getVisible() = 0;
37 : virtual void SAL_CALL setVisible( ::sal_Bool _visible ) = 0;
38 : virtual ::sal_Int32 SAL_CALL getZOrderPosition() = 0;
39 : virtual ::sal_Int32 SAL_CALL getType() = 0;
40 : virtual double SAL_CALL getRotation() = 0;
41 : virtual void SAL_CALL setRotation( double _rotation ) = 0;
42 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::msforms::XLineFormat > SAL_CALL getLine() = 0;
43 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::msforms::XFillFormat > SAL_CALL getFill() = 0;
44 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::msforms::XPictureFormat > SAL_CALL getPictureFormat() = 0;
45 : virtual ::sal_Bool SAL_CALL getLockAspectRatio() = 0;
46 : virtual void SAL_CALL setLockAspectRatio( ::sal_Bool _lockaspectratio ) = 0;
47 : virtual ::sal_Bool SAL_CALL getLockAnchor() = 0;
48 : virtual void SAL_CALL setLockAnchor( ::sal_Bool _lockanchor ) = 0;
49 : virtual ::sal_Int32 SAL_CALL getRelativeHorizontalPosition() = 0;
50 : virtual void SAL_CALL setRelativeHorizontalPosition( ::sal_Int32 _relativehorizontalposition ) = 0;
51 : virtual ::sal_Int32 SAL_CALL getRelativeVerticalPosition() = 0;
52 : virtual void SAL_CALL setRelativeVerticalPosition( ::sal_Int32 _relativeverticalposition ) = 0;
53 :
54 : // Methods
55 : virtual ::com::sun::star::uno::Any SAL_CALL TextFrame() = 0;
56 : virtual ::com::sun::star::uno::Any SAL_CALL WrapFormat() = 0;
57 : virtual void SAL_CALL Delete() = 0;
58 : virtual void SAL_CALL ZOrder( ::sal_Int32 ZOrderCmd ) = 0;
59 : virtual void SAL_CALL IncrementRotation( double Increment ) = 0;
60 : virtual void SAL_CALL IncrementLeft( double Increment ) = 0;
61 : virtual void SAL_CALL IncrementTop( double Increment ) = 0;
62 : virtual void SAL_CALL Select( const ::com::sun::star::uno::Any& Replace ) = 0;
63 : virtual void SAL_CALL ScaleHeight( double Factor, ::sal_Bool RelativeToOriginalSize, ::sal_Int32 Scale ) = 0;
64 : virtual void SAL_CALL ScaleWidth( double Factor, ::sal_Bool RelativeToOriginalSize, ::sal_Int32 Scale ) = 0;
65 : virtual ::com::sun::star::uno::Any SAL_CALL ShapeRange( const ::com::sun::star::uno::Any& index ) = 0;
66 :
67 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
68 :
69 : protected:
70 0 : ~XShape() throw () {} // avoid warnings about virtual members and non-virtual dtor
71 : };
72 :
73 :
74 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::msforms::XShape const *);
75 : } } }
76 :
77 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::msforms::XShape > *) SAL_THROW(());
78 :
79 : #endif
|