LibreOffice Module vbahelper (master) 1
vbapagesetupbase.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_VBAPAGESETUPBASE_HXX
20#define INCLUDED_VBAHELPER_VBAPAGESETUPBASE_HXX
21
22#include <exception>
23
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>
31
32namespace com::sun::star {
33 namespace beans { class XPropertySet; }
34 namespace frame { class XModel; }
35 namespace uno { class XComponentContext; }
36}
37
38namespace ooo::vba {
39 class XHelperInterface;
40}
41
43
45{
46protected:
47 css::uno::Reference< css::frame::XModel > mxModel;
48 css::uno::Reference< css::beans::XPropertySet > mxPageProps;
51
53 VbaPageSetupBase( const css::uno::Reference< ov::XHelperInterface >& xParent,
54 const css::uno::Reference< css::uno::XComponentContext >& xContext );
55public:
56
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;
67 virtual double SAL_CALL getHeaderMargin();
69 virtual void SAL_CALL setHeaderMargin( double margin );
71 virtual double SAL_CALL getFooterMargin();
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;
76};
77#endif
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::frame::XModel > mxModel
sal_Int32 mnOrientPortrait
css::uno::Reference< css::beans::XPropertySet > mxPageProps
sal_Int32 mnOrientLandscape
B2VectorOrientation getOrientation(const B2DPolygon &rCandidate)
class SAL_NO_VTABLE XPropertySet
orientation
#define VBAHELPER_DLLPUBLIC
Definition: vbadllapi.h:28
InheritedHelperInterfaceWeakImpl< ooo::vba::XPageSetupBase > VbaPageSetupBase_BASE