LibreOffice Module sw (master)  1
vbawrapformat.hxx
Go to the documentation of this file.
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 INCLUDED_SW_SOURCE_UI_VBA_VBAWRAPFORMAT_HXX
20 #define INCLUDED_SW_SOURCE_UI_VBA_VBAWRAPFORMAT_HXX
21 
22 #include <com/sun/star/drawing/XShape.hpp>
23 #include <ooo/vba/word/XWrapFormat.hpp>
25 
27 
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:
38  void makeWrap();
40  float getDistance( const OUString& sName );
42  void setDistance( const OUString& sName, float _distance );
43 
44 public:
45  SwVbaWrapFormat( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext >const& xContext );
46 
47  virtual ::sal_Int32 SAL_CALL getType() override;
48  virtual void SAL_CALL setType( ::sal_Int32 _type ) override;
49  virtual ::sal_Int32 SAL_CALL getSide() override;
50  virtual void SAL_CALL setSide( ::sal_Int32 _side ) override;
51  virtual float SAL_CALL getDistanceTop() override;
52  virtual void SAL_CALL setDistanceTop( float _distancetop ) override;
53  virtual float SAL_CALL getDistanceBottom() override;
54  virtual void SAL_CALL setDistanceBottom( float _distancebottom ) override;
55  virtual float SAL_CALL getDistanceLeft() override;
56  virtual void SAL_CALL setDistanceLeft( float _distanceleft ) override;
57  virtual float SAL_CALL getDistanceRight() override;
58  virtual void SAL_CALL setDistanceRight( float _distanceright ) override;
59 
60  virtual OUString getServiceImplName() override;
61  virtual css::uno::Sequence<OUString> getServiceNames() override;
62 };
63 
64 #endif // INCLUDED_SW_SOURCE_UI_VBA_VBAWRAPFORMAT_HXX
65 
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
float getDistance(const OUString &sName)
virtual void SAL_CALL setDistanceTop(float _distancetop) override
virtual void SAL_CALL setDistanceBottom(float _distancebottom) override
sal_Int32 mnWrapFormatType
virtual OUString getServiceImplName() override
virtual float SAL_CALL getDistanceLeft() override
virtual void SAL_CALL setType(::sal_Int32 _type) override
css::uno::Reference< css::beans::XPropertySet > m_xPropertySet
virtual float SAL_CALL getDistanceRight() override
virtual ::sal_Int32 SAL_CALL getType() override
virtual ::sal_Int32 SAL_CALL getSide() override
virtual void SAL_CALL setDistanceRight(float _distanceright) override
SwVbaWrapFormat(css::uno::Sequence< css::uno::Any > const &aArgs, css::uno::Reference< css::uno::XComponentContext >const &xContext)
css::uno::Reference< css::drawing::XShape > m_xShape
virtual float SAL_CALL getDistanceTop() override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual void SAL_CALL setDistanceLeft(float _distanceleft) override
InheritedHelperInterfaceWeakImpl< ooo::vba::word::XWrapFormat > SwVbaWrapFormat_BASE
void setDistance(const OUString &sName, float _distance)
virtual float SAL_CALL getDistanceBottom() override
virtual void SAL_CALL setSide(::sal_Int32 _side) override