Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef SW_VBA_XWRAPFORMAT_HXX
29 : : #define SW_VBA_XWRAPFORMAT_HXX
30 : :
31 : : #include <com/sun/star/drawing/XShape.hpp>
32 : : #include <ooo/vba/word/XWrapFormat.hpp>
33 : : #include <vbahelper/vbahelperinterface.hxx>
34 : :
35 : : typedef InheritedHelperInterfaceImpl1< ooo::vba::word::XWrapFormat > SwVbaWrapFormat_BASE;
36 : :
37 [ # # ]: 0 : class SwVbaWrapFormat : public SwVbaWrapFormat_BASE
38 : : {
39 : : private:
40 : : css::uno::Reference< css::drawing::XShape > m_xShape;
41 : : css::uno::Reference< css::beans::XPropertySet > m_xPropertySet;
42 : : sal_Int32 mnWrapFormatType;
43 : : sal_Int32 mnSide;
44 : :
45 : : private:
46 : : void makeWrap() throw (css::uno::RuntimeException);
47 : : float getDistance( const rtl::OUString& sName ) throw (css::uno::RuntimeException);
48 : : void setDistance( const rtl::OUString& sName, float _distance ) throw (css::uno::RuntimeException);
49 : :
50 : : public:
51 : : SwVbaWrapFormat( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext >const& xContext );
52 : :
53 : : virtual ::sal_Int32 SAL_CALL getType() throw (css::uno::RuntimeException);
54 : : virtual void SAL_CALL setType( ::sal_Int32 _type ) throw (css::uno::RuntimeException);
55 : : virtual ::sal_Int32 SAL_CALL getSide() throw (css::uno::RuntimeException);
56 : : virtual void SAL_CALL setSide( ::sal_Int32 _side ) throw (css::uno::RuntimeException);
57 : : virtual float SAL_CALL getDistanceTop() throw (css::uno::RuntimeException);
58 : : virtual void SAL_CALL setDistanceTop( float _distancetop ) throw (css::uno::RuntimeException);
59 : : virtual float SAL_CALL getDistanceBottom() throw (css::uno::RuntimeException);
60 : : virtual void SAL_CALL setDistanceBottom( float _distancebottom ) throw (css::uno::RuntimeException);
61 : : virtual float SAL_CALL getDistanceLeft() throw (css::uno::RuntimeException);
62 : : virtual void SAL_CALL setDistanceLeft( float _distanceleft ) throw (css::uno::RuntimeException);
63 : : virtual float SAL_CALL getDistanceRight() throw (css::uno::RuntimeException);
64 : : virtual void SAL_CALL setDistanceRight( float _distanceright ) throw (css::uno::RuntimeException);
65 : :
66 : : virtual rtl::OUString getServiceImplName();
67 : : virtual css::uno::Sequence<rtl::OUString> getServiceNames();
68 : : };
69 : :
70 : : #endif//SW_VBA_XWRAPFORMAT_HXX
71 : :
72 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|