android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / ui / vba / vbawrapformat.hxx
blobef28118ed9561918f30afaec07e4a513f1d48269
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SW_SOURCE_UI_VBA_VBAWRAPFORMAT_HXX
20 #define INCLUDED_SW_SOURCE_UI_VBA_VBAWRAPFORMAT_HXX
22 #include <com/sun/star/drawing/XShape.hpp>
23 #include <ooo/vba/word/XWrapFormat.hpp>
24 #include <vbahelper/vbahelperinterface.hxx>
26 typedef InheritedHelperInterfaceWeakImpl< ooo::vba::word::XWrapFormat > SwVbaWrapFormat_BASE;
28 class SwVbaWrapFormat : public SwVbaWrapFormat_BASE
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;
36 private:
37 /// @throws css::uno::RuntimeException
38 void makeWrap();
39 /// @throws css::uno::RuntimeException
40 float getDistance( const OUString& sName );
41 /// @throws css::uno::RuntimeException
42 void setDistance( const OUString& sName, float _distance );
44 public:
45 SwVbaWrapFormat( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext >const& xContext );
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;
60 virtual OUString getServiceImplName() override;
61 virtual css::uno::Sequence<OUString> getServiceNames() override;
64 #endif // INCLUDED_SW_SOURCE_UI_VBA_VBAWRAPFORMAT_HXX
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */