xref: /aoo42x/main/sc/source/ui/vba/vbapagesetup.hxx (revision 38d50f7b)
1*38d50f7bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*38d50f7bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*38d50f7bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*38d50f7bSAndrew Rist  * distributed with this work for additional information
6*38d50f7bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*38d50f7bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*38d50f7bSAndrew Rist  * "License"); you may not use this file except in compliance
9*38d50f7bSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*38d50f7bSAndrew Rist  *
11*38d50f7bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*38d50f7bSAndrew Rist  *
13*38d50f7bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*38d50f7bSAndrew Rist  * software distributed under the License is distributed on an
15*38d50f7bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*38d50f7bSAndrew Rist  * KIND, either express or implied.  See the License for the
17*38d50f7bSAndrew Rist  * specific language governing permissions and limitations
18*38d50f7bSAndrew Rist  * under the License.
19*38d50f7bSAndrew Rist  *
20*38d50f7bSAndrew Rist  *************************************************************/
21*38d50f7bSAndrew Rist 
22*38d50f7bSAndrew Rist 
23cdf0e10cSrcweir #ifndef SC_VBA_PAGESETUP_HXX
24cdf0e10cSrcweir #define SC_VBA_PAGESETUP_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx>
27cdf0e10cSrcweir #include <ooo/vba/excel/XPageSetup.hpp>
28cdf0e10cSrcweir #include <com/sun/star/uno/XComponentContext.hpp>
29cdf0e10cSrcweir #include <com/sun/star/sheet/XSpreadsheet.hpp>
30cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
31cdf0e10cSrcweir #include <vbahelper/vbahelperinterface.hxx>
32cdf0e10cSrcweir #include <vbahelper/vbapagesetupbase.hxx>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir typedef cppu::ImplInheritanceHelper1< VbaPageSetupBase, ov::excel::XPageSetup > ScVbaPageSetup_BASE;
35cdf0e10cSrcweir 
36cdf0e10cSrcweir class ScVbaPageSetup :  public ScVbaPageSetup_BASE
37cdf0e10cSrcweir {
38cdf0e10cSrcweir     css::uno::Reference< css::sheet::XSpreadsheet > mxSheet;
39cdf0e10cSrcweir public:
40cdf0e10cSrcweir 	ScVbaPageSetup( const css::uno::Reference< ov::XHelperInterface >& xParent,
41cdf0e10cSrcweir                     const css::uno::Reference< css::uno::XComponentContext >& xContext,
42cdf0e10cSrcweir 		            const css::uno::Reference< css::sheet::XSpreadsheet>& xSheet,
43cdf0e10cSrcweir                     const css::uno::Reference< css::frame::XModel >& xModel) throw (css::uno::RuntimeException);
~ScVbaPageSetup()44cdf0e10cSrcweir 	virtual ~ScVbaPageSetup(){}
45cdf0e10cSrcweir 
46cdf0e10cSrcweir     // Attribute
47cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getPrintArea() throw (css::uno::RuntimeException);
48cdf0e10cSrcweir 	virtual void SAL_CALL setPrintArea( const rtl::OUString& rAreas ) throw (css::uno::RuntimeException);
49cdf0e10cSrcweir     virtual double SAL_CALL getHeaderMargin() throw (css::uno::RuntimeException);
50cdf0e10cSrcweir     void SAL_CALL setHeaderMargin( double margin ) throw (css::uno::RuntimeException);
51cdf0e10cSrcweir     double SAL_CALL getFooterMargin() throw (css::uno::RuntimeException);
52cdf0e10cSrcweir     void SAL_CALL setFooterMargin( double margin ) throw (css::uno::RuntimeException);
53cdf0e10cSrcweir 	virtual css::uno::Any SAL_CALL getFitToPagesTall() throw (css::uno::RuntimeException);
54cdf0e10cSrcweir 	virtual void SAL_CALL setFitToPagesTall( const css::uno::Any& fitToPagesTall ) throw (css::uno::RuntimeException);
55cdf0e10cSrcweir 	virtual css::uno::Any SAL_CALL getFitToPagesWide() throw (css::uno::RuntimeException);
56cdf0e10cSrcweir 	virtual void SAL_CALL setFitToPagesWide( const css::uno::Any& fitToPagesWide ) throw (css::uno::RuntimeException);
57cdf0e10cSrcweir 	virtual css::uno::Any SAL_CALL getZoom() throw (css::uno::RuntimeException);
58cdf0e10cSrcweir 	virtual void SAL_CALL setZoom( const css::uno::Any& zoom ) throw (css::uno::RuntimeException);
59cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getLeftHeader() throw (css::uno::RuntimeException);
60cdf0e10cSrcweir 	virtual void SAL_CALL setLeftHeader( const rtl::OUString& leftHeader ) throw (css::uno::RuntimeException);
61cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getCenterHeader() throw (css::uno::RuntimeException);
62cdf0e10cSrcweir 	virtual void SAL_CALL setCenterHeader( const rtl::OUString& centerHeader ) throw (css::uno::RuntimeException);
63cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getRightHeader() throw (css::uno::RuntimeException);
64cdf0e10cSrcweir 	virtual void SAL_CALL setRightHeader( const rtl::OUString& rightHeader ) throw (css::uno::RuntimeException);
65cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getLeftFooter() throw (css::uno::RuntimeException);
66cdf0e10cSrcweir 	virtual void SAL_CALL setLeftFooter( const rtl::OUString& leftFooter ) throw (css::uno::RuntimeException);
67cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getCenterFooter() throw (css::uno::RuntimeException);
68cdf0e10cSrcweir 	virtual void SAL_CALL setCenterFooter( const rtl::OUString& centerFooter ) throw (css::uno::RuntimeException);
69cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getRightFooter() throw (css::uno::RuntimeException);
70cdf0e10cSrcweir 	virtual void SAL_CALL setRightFooter( const rtl::OUString& rightFooter ) throw (css::uno::RuntimeException);
71cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getOrder() throw (css::uno::RuntimeException);
72cdf0e10cSrcweir 	virtual void SAL_CALL setOrder( sal_Int32 order ) throw (css::uno::RuntimeException);
73cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getFirstPageNumber() throw (css::uno::RuntimeException);
74cdf0e10cSrcweir 	virtual void SAL_CALL setFirstPageNumber( sal_Int32 firstPageNumber ) throw (css::uno::RuntimeException);
75cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL getCenterVertically() throw (css::uno::RuntimeException);
76cdf0e10cSrcweir 	virtual void SAL_CALL setCenterVertically( sal_Bool centerVertically ) throw (css::uno::RuntimeException);
77cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL getCenterHorizontally() throw (css::uno::RuntimeException);
78cdf0e10cSrcweir 	virtual void SAL_CALL setCenterHorizontally( sal_Bool centerHorizontally ) throw (css::uno::RuntimeException);
79cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL getPrintHeadings() throw (css::uno::RuntimeException);
80cdf0e10cSrcweir 	virtual void SAL_CALL setPrintHeadings( sal_Bool printHeadings ) throw (css::uno::RuntimeException);
81cdf0e10cSrcweir 
82cdf0e10cSrcweir 	// XHelperInterface
83cdf0e10cSrcweir 	virtual rtl::OUString& getServiceImplName();
84cdf0e10cSrcweir 	virtual css::uno::Sequence<rtl::OUString> getServiceNames();
85cdf0e10cSrcweir };
86cdf0e10cSrcweir #endif
87