LibreOffice Module sc (master) 1
xipage.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
20#pragma once
21
22#include "xlpage.hxx"
23#include "xiroot.hxx"
24
25// Page settings ==============================================================
26
30{
31public:
32 explicit XclImpPageSettings( const XclImpRoot& rRoot );
33
35 const XclPageData& GetPageData() const { return maData; }
36
38 void Initialize();
39
41 void ReadSetup( XclImpStream& rStrm );
43 void ReadMargin( XclImpStream& rStrm );
45 void ReadCenter( XclImpStream& rStrm );
47 void ReadHeaderFooter( XclImpStream& rStrm );
49 void ReadPageBreaks( XclImpStream& rStrm );
51 void ReadPrintHeaders( XclImpStream& rStrm );
53 void ReadPrintGridLines( XclImpStream& rStrm );
55 void ReadImgData( XclImpStream& rStrm );
56
58 void SetPaperSize( sal_uInt16 nXclPaperSize, bool bPortrait );
60 void SetFitToPages( bool bFitToPages ) { maData.mbFitToPages = bFitToPages; }
61
63 void Finalize();
64
65private:
68};
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Contains all page (print) settings for a single sheet.
Definition: xipage.hxx:30
void ReadPrintHeaders(XclImpStream &rStrm)
Reads a PRINTHEADERS record.
Definition: xipage.cxx:171
void ReadSetup(XclImpStream &rStrm)
Reads a SETUP record and inserts contained data.
Definition: xipage.cxx:53
void ReadCenter(XclImpStream &rStrm)
Reads a HCENTER or VCENTER record.
Definition: xipage.cxx:101
XclImpPageSettings(const XclImpRoot &rRoot)
Definition: xipage.cxx:41
void ReadPrintGridLines(XclImpStream &rStrm)
Reads a PRINTGRIDLINES record.
Definition: xipage.cxx:176
void SetPaperSize(sal_uInt16 nXclPaperSize, bool bPortrait)
Overrides paper size and orientation (used in sheet-charts).
Definition: xipage.cxx:188
bool mbValidPaper
Page settings data.
Definition: xipage.hxx:67
XclPageData maData
Definition: xipage.hxx:66
void SetFitToPages(bool bFitToPages)
Sets or clears the fit-to-pages setting (contained in WSBOOL record).
Definition: xipage.hxx:60
void Initialize()
Initializes the object to be used for a new sheet.
Definition: xipage.cxx:47
void Finalize()
Creates a page stylesheet from current settings and sets it at current sheet.
Definition: xipage.cxx:231
void ReadMargin(XclImpStream &rStrm)
Reads a ***MARGIN record (reads all 4 margin records).
Definition: xipage.cxx:89
const XclPageData & GetPageData() const
Returns read-only access to the page data.
Definition: xipage.hxx:35
void ReadImgData(XclImpStream &rStrm)
Reads an IMGDATA record and creates the SvxBrushItem.
Definition: xipage.cxx:181
void ReadPageBreaks(XclImpStream &rStrm)
Reads a HORIZONTALPAGEBREAKS or VERTICALPAGEBREAKS record.
Definition: xipage.cxx:141
void ReadHeaderFooter(XclImpStream &rStrm)
Reads a HEADER or FOOTER record.
Definition: xipage.cxx:113
Access to global data from other classes.
Definition: xiroot.hxx:129
This class is used to import record oriented streams.
Definition: xistream.hxx:278
Contains all page (print) settings for a single sheet.
Definition: xlpage.hxx:102
bool mbFitToPages
true = mnStartPage valid; false = automatic.
Definition: xlpage.hxx:148