LibreOffice Module sc (master)  1
vbapagesetup.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_SC_SOURCE_UI_VBA_VBAPAGESETUP_HXX
20 #define INCLUDED_SC_SOURCE_UI_VBA_VBAPAGESETUP_HXX
21 
22 #include <cppuhelper/implbase.hxx>
23 #include <ooo/vba/excel/XPageSetup.hpp>
24 #include <com/sun/star/uno/XComponentContext.hpp>
25 #include <com/sun/star/sheet/XSpreadsheet.hpp>
27 
28 typedef cppu::ImplInheritanceHelper< VbaPageSetupBase, ov::excel::XPageSetup > ScVbaPageSetup_BASE;
29 
31 {
32  css::uno::Reference< css::sheet::XSpreadsheet > mxSheet;
34 public:
36  ScVbaPageSetup( const css::uno::Reference< ov::XHelperInterface >& xParent,
37  const css::uno::Reference< css::uno::XComponentContext >& xContext,
38  const css::uno::Reference< css::sheet::XSpreadsheet>& xSheet,
39  const css::uno::Reference< css::frame::XModel >& xModel);
40 
41  // Attribute
42  virtual OUString SAL_CALL getPrintArea() override;
43  virtual void SAL_CALL setPrintArea( const OUString& rAreas ) override;
44  virtual double SAL_CALL getHeaderMargin() override;
45  void SAL_CALL setHeaderMargin( double margin ) override;
46  double SAL_CALL getFooterMargin() override;
47  void SAL_CALL setFooterMargin( double margin ) override;
48  virtual css::uno::Any SAL_CALL getFitToPagesTall() override;
49  virtual void SAL_CALL setFitToPagesTall( const css::uno::Any& fitToPagesTall ) override;
50  virtual css::uno::Any SAL_CALL getFitToPagesWide() override;
51  virtual void SAL_CALL setFitToPagesWide( const css::uno::Any& fitToPagesWide ) override;
52  virtual css::uno::Any SAL_CALL getZoom() override;
53  virtual void SAL_CALL setZoom( const css::uno::Any& zoom ) override;
54  virtual OUString SAL_CALL getLeftHeader() override;
55  virtual void SAL_CALL setLeftHeader( const OUString& leftHeader ) override;
56  virtual OUString SAL_CALL getCenterHeader() override;
57  virtual void SAL_CALL setCenterHeader( const OUString& centerHeader ) override;
58  virtual OUString SAL_CALL getRightHeader() override;
59  virtual void SAL_CALL setRightHeader( const OUString& rightHeader ) override;
60  virtual OUString SAL_CALL getLeftFooter() override;
61  virtual void SAL_CALL setLeftFooter( const OUString& leftFooter ) override;
62  virtual OUString SAL_CALL getCenterFooter() override;
63  virtual void SAL_CALL setCenterFooter( const OUString& centerFooter ) override;
64  virtual OUString SAL_CALL getRightFooter() override;
65  virtual void SAL_CALL setRightFooter( const OUString& rightFooter ) override;
66  virtual sal_Int32 SAL_CALL getOrder() override;
67  virtual void SAL_CALL setOrder( sal_Int32 order ) override;
68  virtual sal_Int32 SAL_CALL getFirstPageNumber() override;
69  virtual void SAL_CALL setFirstPageNumber( sal_Int32 firstPageNumber ) override;
70  virtual sal_Bool SAL_CALL getCenterVertically() override;
71  virtual void SAL_CALL setCenterVertically( sal_Bool centerVertically ) override;
72  virtual sal_Bool SAL_CALL getCenterHorizontally() override;
73  virtual void SAL_CALL setCenterHorizontally( sal_Bool centerHorizontally ) override;
74  virtual sal_Bool SAL_CALL getPrintHeadings() override;
75  virtual void SAL_CALL setPrintHeadings( sal_Bool printHeadings ) override;
76 
77  virtual sal_Bool SAL_CALL getPrintGridlines() override;
78  virtual void SAL_CALL setPrintGridlines( sal_Bool _printgridlines ) override;
79  virtual OUString SAL_CALL getPrintTitleRows() override;
80  virtual void SAL_CALL setPrintTitleRows( const OUString& _printtitlerows ) override;
81  virtual OUString SAL_CALL getPrintTitleColumns() override;
82  virtual void SAL_CALL setPrintTitleColumns( const OUString& _printtitlecolumns ) override;
83  virtual sal_Int32 SAL_CALL getPaperSize() override;
84  virtual void SAL_CALL setPaperSize( sal_Int32 papersize ) override;
85  // XHelperInterface
86  virtual OUString getServiceImplName() override;
87  virtual css::uno::Sequence<OUString> getServiceNames() override;
88 };
89 #endif
90 
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setCenterHeader(const OUString &centerHeader) override
virtual sal_Bool SAL_CALL getPrintHeadings() override
virtual sal_Bool SAL_CALL getCenterHorizontally() override
virtual void SAL_CALL setOrder(sal_Int32 order) override
virtual sal_Bool SAL_CALL getCenterVertically() override
virtual sal_Int32 SAL_CALL getPaperSize() override
virtual OUString SAL_CALL getPrintTitleRows() override
virtual sal_Int32 SAL_CALL getOrder() override
virtual void SAL_CALL setRightFooter(const OUString &rightFooter) override
virtual sal_Bool SAL_CALL getPrintGridlines() override
virtual OUString SAL_CALL getLeftFooter() override
virtual OUString SAL_CALL getCenterHeader() override
virtual void SAL_CALL setPrintTitleRows(const OUString &_printtitlerows) override
ScVbaPageSetup(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::sheet::XSpreadsheet > &xSheet, const css::uno::Reference< css::frame::XModel > &xModel)
virtual void SAL_CALL setPaperSize(sal_Int32 papersize) override
virtual void SAL_CALL setCenterHorizontally(sal_Bool centerHorizontally) override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual OUString SAL_CALL getRightFooter() override
virtual void SAL_CALL setLeftHeader(const OUString &leftHeader) override
virtual void SAL_CALL setPrintArea(const OUString &rAreas) override
virtual css::uno::Any SAL_CALL getFitToPagesWide() override
virtual OUString SAL_CALL getLeftHeader() override
virtual void SAL_CALL setFitToPagesTall(const css::uno::Any &fitToPagesTall) override
virtual OUString SAL_CALL getPrintTitleColumns() override
virtual OUString getServiceImplName() override
unsigned char sal_Bool
void SAL_CALL setHeaderMargin(double margin) override
virtual void SAL_CALL setPrintHeadings(sal_Bool printHeadings) override
void SAL_CALL setFooterMargin(double margin) override
virtual double SAL_CALL getHeaderMargin() override
virtual void SAL_CALL setLeftFooter(const OUString &leftFooter) override
virtual void SAL_CALL setFitToPagesWide(const css::uno::Any &fitToPagesWide) override
virtual sal_Int32 SAL_CALL getFirstPageNumber() override
virtual void SAL_CALL setCenterFooter(const OUString &centerFooter) override
virtual css::uno::Any SAL_CALL getFitToPagesTall() override
virtual OUString SAL_CALL getRightHeader() override
virtual void SAL_CALL setCenterVertically(sal_Bool centerVertically) override
virtual void SAL_CALL setRightHeader(const OUString &rightHeader) override
virtual void SAL_CALL setFirstPageNumber(sal_Int32 firstPageNumber) override
virtual void SAL_CALL setZoom(const css::uno::Any &zoom) override
virtual void SAL_CALL setPrintGridlines(sal_Bool _printgridlines) override
css::uno::Reference< css::sheet::XSpreadsheet > mxSheet
virtual void SAL_CALL setPrintTitleColumns(const OUString &_printtitlecolumns) override
virtual OUString SAL_CALL getCenterFooter() override
virtual css::uno::Any SAL_CALL getZoom() override
virtual OUString SAL_CALL getPrintArea() override
double SAL_CALL getFooterMargin() override
cppu::ImplInheritanceHelper< VbaPageSetupBase, ov::excel::XPageSetup > ScVbaPageSetup_BASE