Branch data 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() throw (::com::sun::star::uno::RuntimeException) = 0;
27 : : virtual void SAL_CALL setName( const ::rtl::OUString& _name ) throw (::com::sun::star::uno::RuntimeException) = 0;
28 : : virtual double SAL_CALL getHeight() throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual void SAL_CALL setHeight( double _height ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual double SAL_CALL getWidth() throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual void SAL_CALL setWidth( double _width ) throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual double SAL_CALL getLeft() throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual void SAL_CALL setLeft( double _left ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual double SAL_CALL getTop() throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual void SAL_CALL setTop( double _top ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::sal_Bool SAL_CALL getVisible() throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual void SAL_CALL setVisible( ::sal_Bool _visible ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::sal_Int32 SAL_CALL getZOrderPosition() throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::sal_Int32 SAL_CALL getType() throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual double SAL_CALL getRotation() throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual void SAL_CALL setRotation( double _rotation ) throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::msforms::XLineFormat > SAL_CALL getLine() throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::msforms::XFillFormat > SAL_CALL getFill() throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::msforms::XPictureFormat > SAL_CALL getPictureFormat() throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::sal_Bool SAL_CALL getLockAspectRatio() throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual void SAL_CALL setLockAspectRatio( ::sal_Bool _lockaspectratio ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::sal_Bool SAL_CALL getLockAnchor() throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual void SAL_CALL setLockAnchor( ::sal_Bool _lockanchor ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual ::sal_Int32 SAL_CALL getRelativeHorizontalPosition() throw (::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual void SAL_CALL setRelativeHorizontalPosition( ::sal_Int32 _relativehorizontalposition ) throw (::com::sun::star::uno::RuntimeException) = 0;
51 : : virtual ::sal_Int32 SAL_CALL getRelativeVerticalPosition() throw (::com::sun::star::uno::RuntimeException) = 0;
52 : : virtual void SAL_CALL setRelativeVerticalPosition( ::sal_Int32 _relativeverticalposition ) throw (::com::sun::star::uno::RuntimeException) = 0;
53 : :
54 : : // Methods
55 : : virtual ::com::sun::star::uno::Any SAL_CALL TextFrame( ) throw (::com::sun::star::uno::RuntimeException) = 0;
56 : : virtual ::com::sun::star::uno::Any SAL_CALL WrapFormat( ) throw (::com::sun::star::uno::RuntimeException) = 0;
57 : : virtual void SAL_CALL Delete( ) throw (::com::sun::star::uno::RuntimeException) = 0;
58 : : virtual void SAL_CALL ZOrder( ::sal_Int32 ZOrderCmd ) throw (::com::sun::star::uno::RuntimeException) = 0;
59 : : virtual void SAL_CALL IncrementRotation( double Increment ) throw (::com::sun::star::uno::RuntimeException) = 0;
60 : : virtual void SAL_CALL IncrementLeft( double Increment ) throw (::com::sun::star::uno::RuntimeException) = 0;
61 : : virtual void SAL_CALL IncrementTop( double Increment ) throw (::com::sun::star::uno::RuntimeException) = 0;
62 : : virtual void SAL_CALL Select( const ::com::sun::star::uno::Any& Replace ) throw (::com::sun::star::uno::RuntimeException) = 0;
63 : : virtual void SAL_CALL ScaleHeight( double Factor, ::sal_Bool RelativeToOriginalSize, ::sal_Int32 Scale ) throw (::com::sun::star::uno::RuntimeException) = 0;
64 : : virtual void SAL_CALL ScaleWidth( double Factor, ::sal_Bool RelativeToOriginalSize, ::sal_Int32 Scale ) throw (::com::sun::star::uno::RuntimeException) = 0;
65 : : virtual ::com::sun::star::uno::Any SAL_CALL ShapeRange( const ::com::sun::star::uno::Any& index ) throw (::com::sun::star::uno::RuntimeException) = 0;
66 : : virtual void SAL_CALL Copy( ) throw (::com::sun::star::uno::RuntimeException) = 0;
67 : :
68 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
69 : :
70 : : protected:
71 : 0 : ~XShape() throw () {} // avoid warnings about virtual members and non-virtual dtor
72 : : };
73 : :
74 : :
75 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::msforms::XShape const *);
76 : : } } }
77 : :
78 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::msforms::XShape > *) SAL_THROW(());
79 : :
80 : : #endif
|