Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef SW_VBA_XWRAPFORMAT_HXX
20 : #define SW_VBA_XWRAPFORMAT_HXX
21 :
22 : #include <com/sun/star/drawing/XShape.hpp>
23 : #include <ooo/vba/word/XWrapFormat.hpp>
24 : #include <vbahelper/vbahelperinterface.hxx>
25 :
26 : typedef InheritedHelperInterfaceImpl1< ooo::vba::word::XWrapFormat > SwVbaWrapFormat_BASE;
27 :
28 0 : class SwVbaWrapFormat : public SwVbaWrapFormat_BASE
29 : {
30 : private:
31 : css::uno::Reference< css::drawing::XShape > m_xShape;
32 : css::uno::Reference< css::beans::XPropertySet > m_xPropertySet;
33 : sal_Int32 mnWrapFormatType;
34 : sal_Int32 mnSide;
35 :
36 : private:
37 : void makeWrap() throw (css::uno::RuntimeException);
38 : float getDistance( const rtl::OUString& sName ) throw (css::uno::RuntimeException);
39 : void setDistance( const rtl::OUString& sName, float _distance ) throw (css::uno::RuntimeException);
40 :
41 : public:
42 : SwVbaWrapFormat( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext >const& xContext );
43 :
44 : virtual ::sal_Int32 SAL_CALL getType() throw (css::uno::RuntimeException);
45 : virtual void SAL_CALL setType( ::sal_Int32 _type ) throw (css::uno::RuntimeException);
46 : virtual ::sal_Int32 SAL_CALL getSide() throw (css::uno::RuntimeException);
47 : virtual void SAL_CALL setSide( ::sal_Int32 _side ) throw (css::uno::RuntimeException);
48 : virtual float SAL_CALL getDistanceTop() throw (css::uno::RuntimeException);
49 : virtual void SAL_CALL setDistanceTop( float _distancetop ) throw (css::uno::RuntimeException);
50 : virtual float SAL_CALL getDistanceBottom() throw (css::uno::RuntimeException);
51 : virtual void SAL_CALL setDistanceBottom( float _distancebottom ) throw (css::uno::RuntimeException);
52 : virtual float SAL_CALL getDistanceLeft() throw (css::uno::RuntimeException);
53 : virtual void SAL_CALL setDistanceLeft( float _distanceleft ) throw (css::uno::RuntimeException);
54 : virtual float SAL_CALL getDistanceRight() throw (css::uno::RuntimeException);
55 : virtual void SAL_CALL setDistanceRight( float _distanceright ) throw (css::uno::RuntimeException);
56 :
57 : virtual rtl::OUString getServiceImplName();
58 : virtual css::uno::Sequence<rtl::OUString> getServiceNames();
59 : };
60 :
61 : #endif//SW_VBA_XWRAPFORMAT_HXX
62 :
63 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|