LibreOffice Module vbahelper (master) 1
vbalineformat.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_VBAHELPER_SOURCE_VBAHELPER_VBALINEFORMAT_HXX
20#define INCLUDED_VBAHELPER_SOURCE_VBAHELPER_VBALINEFORMAT_HXX
21
22#include <com/sun/star/drawing/XShape.hpp>
23#include <com/sun/star/beans/XPropertySet.hpp>
24#include <ooo/vba/msforms/XLineFormat.hpp>
26
28
30{
31private:
32 css::uno::Reference< css::drawing::XShape > m_xShape;
33 css::uno::Reference< css::beans::XPropertySet > m_xPropertySet;
36 virtual OUString getServiceImplName() override;
37 virtual css::uno::Sequence<OUString> getServiceNames() override;
38 static sal_Int32 convertLineStartEndNameToArrowheadStyle( std::u16string_view sLineName );
40 static OUString convertArrowheadStyleToLineStartEndName( sal_Int32 nArrowheadStyle );
41public:
42 ScVbaLineFormat( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::drawing::XShape >& xShape );
43
44 // Attributes
45 virtual sal_Int32 SAL_CALL getBeginArrowheadStyle() override;
46 virtual void SAL_CALL setBeginArrowheadStyle( sal_Int32 _beginarrowheadstyle ) override;
47 virtual sal_Int32 SAL_CALL getBeginArrowheadLength() override;
48 virtual void SAL_CALL setBeginArrowheadLength( sal_Int32 _beginarrowheadlength ) override;
49 virtual sal_Int32 SAL_CALL getBeginArrowheadWidth() override;
50 virtual void SAL_CALL setBeginArrowheadWidth( sal_Int32 _beginarrowheadwidth ) override;
51 virtual sal_Int32 SAL_CALL getEndArrowheadStylel() override;
52 virtual void SAL_CALL setEndArrowheadStylel( sal_Int32 _endarrowheadstylel ) override;
53 virtual sal_Int32 SAL_CALL getEndArrowheadLength() override;
54 virtual void SAL_CALL setEndArrowheadLength( sal_Int32 _endarrowheadlength ) override;
55 virtual sal_Int32 SAL_CALL getEndArrowheadWidth() override;
56 virtual void SAL_CALL setEndArrowheadWidth( sal_Int32 _endarrowheadwidth ) override;
57 virtual double SAL_CALL getWeight() override;
58 virtual void SAL_CALL setWeight( double _weight ) override;
59 virtual sal_Bool SAL_CALL getVisible() override;
60 virtual void SAL_CALL setVisible( sal_Bool _visible ) override;
61 virtual double SAL_CALL getTransparency() override;
62 virtual void SAL_CALL setTransparency( double _transparency ) override;
63 virtual sal_Int16 SAL_CALL getStyle() override;
64 virtual void SAL_CALL setStyle( sal_Int16 _style ) override;
65 virtual sal_Int32 SAL_CALL getDashStyle() override;
66 virtual void SAL_CALL setDashStyle( sal_Int32 _dashstyle ) override;
67
68 // Methods
69 virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL BackColor() override;
70 virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL ForeColor() override;
71};
72
73#endif // INCLUDED_VBAHELPER_SOURCE_VBAHELPER_VBALINEFORMAT_HXX
74
75/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setVisible(sal_Bool _visible) override
virtual sal_Int32 SAL_CALL getEndArrowheadWidth() override
virtual void SAL_CALL setDashStyle(sal_Int32 _dashstyle) override
virtual void SAL_CALL setStyle(sal_Int16 _style) override
virtual sal_Int32 SAL_CALL getBeginArrowheadLength() override
virtual OUString getServiceImplName() override
virtual void SAL_CALL setBeginArrowheadStyle(sal_Int32 _beginarrowheadstyle) override
virtual void SAL_CALL setBeginArrowheadLength(sal_Int32 _beginarrowheadlength) override
static sal_Int32 convertLineStartEndNameToArrowheadStyle(std::u16string_view sLineName)
css::uno::Reference< css::beans::XPropertySet > m_xPropertySet
virtual void SAL_CALL setTransparency(double _transparency) override
virtual void SAL_CALL setEndArrowheadWidth(sal_Int32 _endarrowheadwidth) override
virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL ForeColor() override
virtual double SAL_CALL getWeight() override
virtual sal_Int32 SAL_CALL getEndArrowheadStylel() override
virtual sal_Bool SAL_CALL getVisible() override
virtual sal_Int32 SAL_CALL getBeginArrowheadWidth() override
virtual sal_Int32 SAL_CALL getDashStyle() override
ScVbaLineFormat(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::drawing::XShape > &xShape)
virtual void SAL_CALL setEndArrowheadLength(sal_Int32 _endarrowheadlength) override
static OUString convertArrowheadStyleToLineStartEndName(sal_Int32 nArrowheadStyle)
virtual void SAL_CALL setEndArrowheadStylel(sal_Int32 _endarrowheadstylel) override
virtual double SAL_CALL getTransparency() override
virtual sal_Int32 SAL_CALL getBeginArrowheadStyle() override
virtual void SAL_CALL setWeight(double _weight) override
virtual css::uno::Reference< ov::msforms::XColorFormat > SAL_CALL BackColor() override
virtual css::uno::Sequence< OUString > getServiceNames() override
css::uno::Reference< css::drawing::XShape > m_xShape
virtual sal_Int16 SAL_CALL getStyle() override
sal_Int32 m_nLineDashStyle
virtual sal_Int32 SAL_CALL getEndArrowheadLength() override
virtual void SAL_CALL setBeginArrowheadWidth(sal_Int32 _beginarrowheadwidth) override
unsigned char sal_Bool
InheritedHelperInterfaceWeakImpl< ov::msforms::XLineFormat > ScVbaLineFormat_BASE