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{
30private:
31 css::uno::Reference< css::drawing::XShape > m_xShape;
32 css::uno::Reference< css::beans::XPropertySet > m_xPropertySet;
34 sal_Int32 mnSide;
35
36private:
38 void makeWrap();
40 float getDistance( const OUString& sName );
42 void setDistance( const OUString& sName, float _distance );
43
44public:
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: */
SwVbaWrapFormat(css::uno::Sequence< css::uno::Any > const &aArgs, css::uno::Reference< css::uno::XComponentContext >const &xContext)
sal_Int32 mnWrapFormatType
virtual void SAL_CALL setSide(::sal_Int32 _side) override
virtual float SAL_CALL getDistanceTop() override
virtual void SAL_CALL setDistanceRight(float _distanceright) override
virtual void SAL_CALL setDistanceTop(float _distancetop) override
virtual float SAL_CALL getDistanceBottom() override
virtual void SAL_CALL setDistanceBottom(float _distancebottom) override
virtual ::sal_Int32 SAL_CALL getSide() override
css::uno::Reference< css::drawing::XShape > m_xShape
virtual void SAL_CALL setType(::sal_Int32 _type) override
virtual ::sal_Int32 SAL_CALL getType() override
float getDistance(const OUString &sName)
virtual float SAL_CALL getDistanceRight() override
css::uno::Reference< css::beans::XPropertySet > m_xPropertySet
virtual void SAL_CALL setDistanceLeft(float _distanceleft) override
virtual float SAL_CALL getDistanceLeft() override
void setDistance(const OUString &sName, float _distance)
virtual OUString getServiceImplName() override
virtual css::uno::Sequence< OUString > getServiceNames() override
InheritedHelperInterfaceWeakImpl< ooo::vba::word::XWrapFormat > SwVbaWrapFormat_BASE