update dev300-m58
[ooovba.git] / sc / source / ui / vba / vbapagesetup.hxx
blob510d0600ac5f61a3d72f5b00a6ab1799d41abbd8
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile$
10 * $Revision$
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef SC_VBA_PAGESETUP_HXX
31 #define SC_VBA_PAGESETUP_HXX
33 #include <cppuhelper/implbase1.hxx>
34 #include <ooo/vba/excel/XPageSetup.hpp>
35 #include <com/sun/star/uno/XComponentContext.hpp>
36 #include <com/sun/star/sheet/XSpreadsheet.hpp>
37 #include <com/sun/star/beans/XPropertySet.hpp>
38 #include <vbahelper/vbahelperinterface.hxx>
39 #include <vbahelper/vbapagesetupbase.hxx>
41 typedef cppu::ImplInheritanceHelper1< VbaPageSetupBase, ov::excel::XPageSetup > ScVbaPageSetup_BASE;
43 class ScVbaPageSetup : public ScVbaPageSetup_BASE
45 css::uno::Reference< css::sheet::XSpreadsheet > mxSheet;
46 public:
47 ScVbaPageSetup( const css::uno::Reference< ov::XHelperInterface >& xParent,
48 const css::uno::Reference< css::uno::XComponentContext >& xContext,
49 const css::uno::Reference< css::sheet::XSpreadsheet>& xSheet,
50 const css::uno::Reference< css::frame::XModel >& xModel) throw (css::uno::RuntimeException);
51 virtual ~ScVbaPageSetup(){}
53 // Attribute
54 virtual rtl::OUString SAL_CALL getPrintArea() throw (css::uno::RuntimeException);
55 virtual void SAL_CALL setPrintArea( const rtl::OUString& rAreas ) throw (css::uno::RuntimeException);
56 virtual double SAL_CALL getHeaderMargin() throw (css::uno::RuntimeException);
57 void SAL_CALL setHeaderMargin( double margin ) throw (css::uno::RuntimeException);
58 double SAL_CALL getFooterMargin() throw (css::uno::RuntimeException);
59 void SAL_CALL setFooterMargin( double margin ) throw (css::uno::RuntimeException);
60 virtual css::uno::Any SAL_CALL getFitToPagesTall() throw (css::uno::RuntimeException);
61 virtual void SAL_CALL setFitToPagesTall( const css::uno::Any& fitToPagesTall ) throw (css::uno::RuntimeException);
62 virtual css::uno::Any SAL_CALL getFitToPagesWide() throw (css::uno::RuntimeException);
63 virtual void SAL_CALL setFitToPagesWide( const css::uno::Any& fitToPagesWide ) throw (css::uno::RuntimeException);
64 virtual css::uno::Any SAL_CALL getZoom() throw (css::uno::RuntimeException);
65 virtual void SAL_CALL setZoom( const css::uno::Any& zoom ) throw (css::uno::RuntimeException);
66 virtual rtl::OUString SAL_CALL getLeftHeader() throw (css::uno::RuntimeException);
67 virtual void SAL_CALL setLeftHeader( const rtl::OUString& leftHeader ) throw (css::uno::RuntimeException);
68 virtual rtl::OUString SAL_CALL getCenterHeader() throw (css::uno::RuntimeException);
69 virtual void SAL_CALL setCenterHeader( const rtl::OUString& centerHeader ) throw (css::uno::RuntimeException);
70 virtual rtl::OUString SAL_CALL getRightHeader() throw (css::uno::RuntimeException);
71 virtual void SAL_CALL setRightHeader( const rtl::OUString& rightHeader ) throw (css::uno::RuntimeException);
72 virtual rtl::OUString SAL_CALL getLeftFooter() throw (css::uno::RuntimeException);
73 virtual void SAL_CALL setLeftFooter( const rtl::OUString& leftFooter ) throw (css::uno::RuntimeException);
74 virtual rtl::OUString SAL_CALL getCenterFooter() throw (css::uno::RuntimeException);
75 virtual void SAL_CALL setCenterFooter( const rtl::OUString& centerFooter ) throw (css::uno::RuntimeException);
76 virtual rtl::OUString SAL_CALL getRightFooter() throw (css::uno::RuntimeException);
77 virtual void SAL_CALL setRightFooter( const rtl::OUString& rightFooter ) throw (css::uno::RuntimeException);
78 virtual sal_Int32 SAL_CALL getOrder() throw (css::uno::RuntimeException);
79 virtual void SAL_CALL setOrder( sal_Int32 order ) throw (css::uno::RuntimeException);
80 virtual sal_Int32 SAL_CALL getFirstPageNumber() throw (css::uno::RuntimeException);
81 virtual void SAL_CALL setFirstPageNumber( sal_Int32 firstPageNumber ) throw (css::uno::RuntimeException);
82 virtual sal_Bool SAL_CALL getCenterVertically() throw (css::uno::RuntimeException);
83 virtual void SAL_CALL setCenterVertically( sal_Bool centerVertically ) throw (css::uno::RuntimeException);
84 virtual sal_Bool SAL_CALL getCenterHorizontally() throw (css::uno::RuntimeException);
85 virtual void SAL_CALL setCenterHorizontally( sal_Bool centerHorizontally ) throw (css::uno::RuntimeException);
86 virtual sal_Bool SAL_CALL getPrintHeadings() throw (css::uno::RuntimeException);
87 virtual void SAL_CALL setPrintHeadings( sal_Bool printHeadings ) throw (css::uno::RuntimeException);
89 // XHelperInterface
90 virtual rtl::OUString& getServiceImplName();
91 virtual css::uno::Sequence<rtl::OUString> getServiceNames();
93 #endif