xref: /aoo4110/main/sw/source/ui/vba/vbapagesetup.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef SW_VBA_PAGESETUP_HXX
24 #define SW_VBA_PAGESETUP_HXX
25 
26 #include <cppuhelper/implbase1.hxx>
27 #include <ooo/vba/word/XPageSetup.hpp>
28 #include <com/sun/star/uno/XComponentContext.hpp>
29 #include <com/sun/star/beans/XPropertySet.hpp>
30 #include <vbahelper/vbahelperinterface.hxx>
31 #include <vbahelper/vbapagesetupbase.hxx>
32 
33 typedef cppu::ImplInheritanceHelper1< VbaPageSetupBase, ooo::vba::word::XPageSetup > SwVbaPageSetup_BASE;
34 
35 class SwVbaPageSetup :  public SwVbaPageSetup_BASE
36 {
37 private:
38     rtl::OUString getStyleOfFirstPage() throw (css::uno::RuntimeException);
39 
40 public:
41 	SwVbaPageSetup( const css::uno::Reference< ooo::vba::XHelperInterface >& xParent,
42                     const css::uno::Reference< css::uno::XComponentContext >& xContext,
43                     const css::uno::Reference< css::frame::XModel >& xModel,
44                     const css::uno::Reference< css::beans::XPropertySet >& xProps ) throw (css::uno::RuntimeException);
~SwVbaPageSetup()45 	virtual ~SwVbaPageSetup(){}
46 
47     // Attributes
48     virtual double SAL_CALL getGutter() throw (css::uno::RuntimeException);
49     virtual void SAL_CALL setGutter( double _gutter ) throw (css::uno::RuntimeException);
50     virtual double SAL_CALL getHeaderDistance() throw (css::uno::RuntimeException);
51     virtual void SAL_CALL setHeaderDistance( double _headerdistance ) throw (css::uno::RuntimeException);
52     virtual double SAL_CALL getFooterDistance() throw (css::uno::RuntimeException);
53     virtual void SAL_CALL setFooterDistance( double _footerdistance ) throw (css::uno::RuntimeException);
54     virtual sal_Bool SAL_CALL getDifferentFirstPageHeaderFooter() throw (css::uno::RuntimeException);
55     virtual void SAL_CALL setDifferentFirstPageHeaderFooter( sal_Bool status ) throw (css::uno::RuntimeException);
56     virtual ::sal_Int32 SAL_CALL getSectionStart() throw (css::uno::RuntimeException);
57     virtual void SAL_CALL setSectionStart( ::sal_Int32 _sectionstart ) throw (css::uno::RuntimeException);
58 
59 	// XHelperInterface
60 	virtual rtl::OUString& getServiceImplName();
61 	virtual css::uno::Sequence<rtl::OUString> getServiceNames();
62 };
63 #endif
64