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