LibreOffice Module sc (master) 1
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
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 .
18 */
19#pragma once
22#include <ooo/vba/excel/XPageSetup.hpp>
23#include <com/sun/star/uno/XComponentContext.hpp>
24#include <com/sun/star/sheet/XSpreadsheet.hpp>
27typedef cppu::ImplInheritanceHelper<VbaPageSetupBase, ov::excel::XPageSetup> ScVbaPageSetup_BASE;
31 css::uno::Reference<css::sheet::XSpreadsheet> mxSheet;
36 ScVbaPageSetup(const css::uno::Reference<ov::XHelperInterface>& xParent,
37 const css::uno::Reference<css::uno::XComponentContext>& xContext,
38 css::uno::Reference<css::sheet::XSpreadsheet> xSheet,
39 const css::uno::Reference<css::frame::XModel>& xModel);
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;
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;
90/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setCenterVertically(sal_Bool centerVertically) override
virtual OUString SAL_CALL getCenterFooter() override
virtual sal_Bool SAL_CALL getCenterVertically() override
virtual void SAL_CALL setLeftFooter(const OUString &leftFooter) override
virtual void SAL_CALL setRightFooter(const OUString &rightFooter) override
virtual void SAL_CALL setPrintArea(const OUString &rAreas) override
virtual OUString SAL_CALL getRightFooter() override
virtual void SAL_CALL setLeftHeader(const OUString &leftHeader) override
virtual void SAL_CALL setPrintHeadings(sal_Bool printHeadings) override
void SAL_CALL setHeaderMargin(double margin) override
virtual OUString SAL_CALL getPrintTitleColumns() override
virtual void SAL_CALL setRightHeader(const OUString &rightHeader) override
virtual void SAL_CALL setOrder(sal_Int32 order) override
virtual void SAL_CALL setPaperSize(sal_Int32 papersize) override
void SAL_CALL setFooterMargin(double margin) override
virtual void SAL_CALL setFitToPagesTall(const css::uno::Any &fitToPagesTall) override
virtual sal_Bool SAL_CALL getCenterHorizontally() override
virtual void SAL_CALL setFirstPageNumber(sal_Int32 firstPageNumber) override
virtual sal_Int32 SAL_CALL getFirstPageNumber() override
virtual OUString SAL_CALL getPrintArea() override
virtual void SAL_CALL setCenterHeader(const OUString &centerHeader) override
virtual css::uno::Any SAL_CALL getFitToPagesTall() override
virtual css::uno::Sequence< OUString > getServiceNames() override
double SAL_CALL getFooterMargin() override
virtual OUString SAL_CALL getPrintTitleRows() override
virtual void SAL_CALL setCenterHorizontally(sal_Bool centerHorizontally) override
virtual sal_Bool SAL_CALL getPrintHeadings() override
virtual sal_Int32 SAL_CALL getPaperSize() override
virtual OUString SAL_CALL getLeftFooter() override
ScVbaPageSetup(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::sheet::XSpreadsheet > xSheet, const css::uno::Reference< css::frame::XModel > &xModel)
virtual double SAL_CALL getHeaderMargin() override
virtual OUString SAL_CALL getLeftHeader() override
virtual void SAL_CALL setCenterFooter(const OUString &centerFooter) override
virtual css::uno::Any SAL_CALL getZoom() override
virtual void SAL_CALL setPrintTitleColumns(const OUString &_printtitlecolumns) override
virtual void SAL_CALL setPrintTitleRows(const OUString &_printtitlerows) override
virtual void SAL_CALL setFitToPagesWide(const css::uno::Any &fitToPagesWide) override
virtual OUString SAL_CALL getRightHeader() override
css::uno::Reference< css::sheet::XSpreadsheet > mxSheet
virtual sal_Int32 SAL_CALL getOrder() override
virtual css::uno::Any SAL_CALL getFitToPagesWide() override
virtual void SAL_CALL setPrintGridlines(sal_Bool _printgridlines) override
virtual OUString SAL_CALL getCenterHeader() override
virtual sal_Bool SAL_CALL getPrintGridlines() override
virtual void SAL_CALL setZoom(const css::uno::Any &zoom) override
virtual OUString getServiceImplName() override
unsigned char sal_Bool
cppu::ImplInheritanceHelper< VbaPageSetupBase, ov::excel::XPageSetup > ScVbaPageSetup_BASE