build fix: no comphelper/profilezone.hxx in this branch
[LibreOffice.git] / include / vbahelper / vbapagesetupbase.hxx
blob69bc76b63de4980494784e37086abe0f669b0aa5
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 VbaPageSetupBase( const css::uno::Reference< ov::XHelperInterface >& xParent,
53 const css::uno::Reference< css::uno::XComponentContext >& xContext ) throw (css::uno::RuntimeException);
54 public:
56 // Attribute
57 virtual double SAL_CALL getTopMargin() throw (css::uno::RuntimeException, std::exception) override;
58 virtual void SAL_CALL setTopMargin( double margin ) throw (css::uno::RuntimeException, std::exception) override;
59 virtual double SAL_CALL getBottomMargin() throw (css::uno::RuntimeException, std::exception) override;
60 virtual void SAL_CALL setBottomMargin( double margin ) throw (css::uno::RuntimeException, std::exception) override;
61 virtual double SAL_CALL getRightMargin() throw (css::uno::RuntimeException, std::exception) override;
62 virtual void SAL_CALL setRightMargin( double margin ) throw (css::uno::RuntimeException, std::exception) override;
63 virtual double SAL_CALL getLeftMargin() throw (css::uno::RuntimeException, std::exception) override;
64 virtual void SAL_CALL setLeftMargin( double margin ) throw (css::uno::RuntimeException, std::exception) override;
65 virtual double SAL_CALL getHeaderMargin() throw (css::uno::RuntimeException);
66 virtual void SAL_CALL setHeaderMargin( double margin ) throw (css::uno::RuntimeException);
67 virtual double SAL_CALL getFooterMargin() throw (css::uno::RuntimeException);
68 virtual void SAL_CALL setFooterMargin( double margin ) throw (css::uno::RuntimeException);
69 virtual sal_Int32 SAL_CALL getOrientation() throw (css::uno::RuntimeException, std::exception) override;
70 virtual void SAL_CALL setOrientation( sal_Int32 orientation ) throw (css::uno::RuntimeException, std::exception) override;
72 #endif
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */