Fix rudimentary Emscripten Qt6 copy -> paste support
[LibreOffice.git] / include / vbahelper / vbapagesetupbase.hxx
bloba6d8fadce7e6b2c2704eea1e70e8ae0def07e9a1
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::sun::star {
33 namespace beans { class XPropertySet; }
34 namespace frame { class XModel; }
35 namespace uno { class XComponentContext; }
38 namespace ooo::vba {
39 class XHelperInterface;
42 typedef InheritedHelperInterfaceWeakImpl< ooo::vba::XPageSetupBase > VbaPageSetupBase_BASE;
44 class VBAHELPER_DLLPUBLIC VbaPageSetupBase : public VbaPageSetupBase_BASE
46 protected:
47 css::uno::Reference< css::beans::XPropertySet > mxPageProps;
48 sal_Int32 mnOrientLandscape;
49 sal_Int32 mnOrientPortrait;
51 /// @throws css::uno::RuntimeException
52 VbaPageSetupBase( const css::uno::Reference< ov::XHelperInterface >& xParent,
53 const css::uno::Reference< css::uno::XComponentContext >& xContext );
54 public:
56 // Attribute
57 virtual double SAL_CALL getTopMargin() override;
58 virtual void SAL_CALL setTopMargin( double margin ) override;
59 virtual double SAL_CALL getBottomMargin() override;
60 virtual void SAL_CALL setBottomMargin( double margin ) override;
61 virtual double SAL_CALL getRightMargin() override;
62 virtual void SAL_CALL setRightMargin( double margin ) override;
63 virtual double SAL_CALL getLeftMargin() override;
64 virtual void SAL_CALL setLeftMargin( double margin ) override;
65 /// @throws css::uno::RuntimeException
66 virtual double SAL_CALL getHeaderMargin();
67 /// @throws css::uno::RuntimeException
68 virtual void SAL_CALL setHeaderMargin( double margin );
69 /// @throws css::uno::RuntimeException
70 virtual double SAL_CALL getFooterMargin();
71 /// @throws css::uno::RuntimeException
72 virtual void SAL_CALL setFooterMargin( double margin );
73 virtual sal_Int32 SAL_CALL getOrientation() override;
74 virtual void SAL_CALL setOrientation( sal_Int32 orientation ) override;
76 #endif
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */