LibreOffice Module vbahelper (master)
1
include
vbahelper
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
>
29
#include <
vbahelper/vbahelper.hxx
>
30
#include <
vbahelper/vbahelperinterface.hxx
>
31
32
namespace
com::sun::star
{
33
namespace
beans {
class
XPropertySet
; }
34
namespace
frame {
class
XModel; }
35
namespace
uno
{
class
XComponentContext; }
36
}
37
38
namespace
ooo::vba
{
39
class
XHelperInterface;
40
}
41
42
typedef
InheritedHelperInterfaceWeakImpl< ooo::vba::XPageSetupBase >
VbaPageSetupBase_BASE
;
43
44
class
VBAHELPER_DLLPUBLIC
VbaPageSetupBase
:
public
VbaPageSetupBase_BASE
45
{
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
;
51
53
VbaPageSetupBase
(
const
css::uno::Reference< ov::XHelperInterface >& xParent,
54
const
css::uno::Reference< css::uno::XComponentContext >& xContext );
55
public
:
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: */
InheritedHelperInterfaceWeakImpl
Definition:
vbahelperinterface.hxx:109
VbaPageSetupBase
Definition:
vbapagesetupbase.hxx:45
VbaPageSetupBase::mxModel
css::uno::Reference< css::frame::XModel > mxModel
Definition:
vbapagesetupbase.hxx:47
VbaPageSetupBase::mnOrientPortrait
sal_Int32 mnOrientPortrait
Definition:
vbapagesetupbase.hxx:50
VbaPageSetupBase::mxPageProps
css::uno::Reference< css::beans::XPropertySet > mxPageProps
Definition:
vbapagesetupbase.hxx:48
VbaPageSetupBase::mnOrientLandscape
sal_Int32 mnOrientLandscape
Definition:
vbapagesetupbase.hxx:49
getOrientation
B2VectorOrientation getOrientation(const B2DPolygon &rCandidate)
com::sun::star::beans::XPropertySet
class SAL_NO_VTABLE XPropertySet
com::sun::star
ooo::vba
orientation
orientation
uno
types.h
vbadllapi.h
VBAHELPER_DLLPUBLIC
#define VBAHELPER_DLLPUBLIC
Definition:
vbadllapi.h:28
vbahelper.hxx
vbahelperinterface.hxx
VbaPageSetupBase_BASE
InheritedHelperInterfaceWeakImpl< ooo::vba::XPageSetupBase > VbaPageSetupBase_BASE
Definition:
vbapagesetupbase.hxx:42
Generated on Sun Jul 30 2023 04:29:16 for LibreOffice Module vbahelper (master) by
1.9.3