lok: calc - send other views our selection in their co-ordinates.
[LibreOffice.git] / include / vbahelper / vbapagesetupbase.hxx
blob527c625c4739e3e0b5976cd0d0d711fd67f070ae
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_VBAHELPER_VBAPAGESETUPBASE_HXX
20 #define INCLUDED_VBAHELPER_VBAPAGESETUPBASE_HXX
22 #include <exception>
24 #include <com/sun/star/uno/Reference.hxx>
25 #include <com/sun/star/uno/RuntimeException.hpp>
26 #include <ooo/vba/XPageSetupBase.hpp>
27 #include <sal/types.h>
28 #include <vbahelper/vbadllapi.h>
29 #include <vbahelper/vbahelper.hxx>
30 #include <vbahelper/vbahelperinterface.hxx>
32 namespace com { namespace sun { namespace star {
33 namespace beans { class XPropertySet; }
34 namespace frame { class XModel; }
35 namespace uno { class XComponentContext; }
36 } } }
38 namespace ooo { namespace vba {
39 class XHelperInterface;
40 } }
42 typedef InheritedHelperInterfaceWeakImpl< ooo::vba::XPageSetupBase > VbaPageSetupBase_BASE;
44 class VBAHELPER_DLLPUBLIC VbaPageSetupBase : public VbaPageSetupBase_BASE
46 protected:
47 css::uno::Reference< css::frame::XModel > mxModel;
48 css::uno::Reference< css::beans::XPropertySet > mxPageProps;
49 sal_Int32 mnOrientLandscape;
50 sal_Int32 mnOrientPortrait;
52 /// @throws css::uno::RuntimeException
53 VbaPageSetupBase( const css::uno::Reference< ov::XHelperInterface >& xParent,
54 const css::uno::Reference< css::uno::XComponentContext >& xContext );
55 public:
57 // Attribute
58 virtual double SAL_CALL getTopMargin() override;
59 virtual void SAL_CALL setTopMargin( double margin ) override;
60 virtual double SAL_CALL getBottomMargin() override;
61 virtual void SAL_CALL setBottomMargin( double margin ) override;
62 virtual double SAL_CALL getRightMargin() override;
63 virtual void SAL_CALL setRightMargin( double margin ) override;
64 virtual double SAL_CALL getLeftMargin() override;
65 virtual void SAL_CALL setLeftMargin( double margin ) override;
66 /// @throws css::uno::RuntimeException
67 virtual double SAL_CALL getHeaderMargin();
68 /// @throws css::uno::RuntimeException
69 virtual void SAL_CALL setHeaderMargin( double margin );
70 /// @throws css::uno::RuntimeException
71 virtual double SAL_CALL getFooterMargin();
72 /// @throws css::uno::RuntimeException
73 virtual void SAL_CALL setFooterMargin( double margin );
74 virtual sal_Int32 SAL_CALL getOrientation() override;
75 virtual void SAL_CALL setOrientation( sal_Int32 orientation ) override;
77 #endif
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */