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 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_XIPAGE_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_XIPAGE_HXX
22 
23 #include "xlpage.hxx"
24 #include "xiroot.hxx"
25 
26 // Page settings ==============================================================
27 
30 class XclImpPageSettings : protected XclImpRoot
31 {
32 public:
33  explicit XclImpPageSettings( const XclImpRoot& rRoot );
34 
36  const XclPageData& GetPageData() const { return maData; }
37 
39  void Initialize();
40 
42  void ReadSetup( XclImpStream& rStrm );
44  void ReadMargin( XclImpStream& rStrm );
46  void ReadCenter( XclImpStream& rStrm );
48  void ReadHeaderFooter( XclImpStream& rStrm );
50  void ReadPageBreaks( XclImpStream& rStrm );
52  void ReadPrintHeaders( XclImpStream& rStrm );
54  void ReadPrintGridLines( XclImpStream& rStrm );
56  void ReadImgData( XclImpStream& rStrm );
57 
59  void SetPaperSize( sal_uInt16 nXclPaperSize, bool bPortrait );
61  void SetFitToPages( bool bFitToPages ) { maData.mbFitToPages = bFitToPages; }
62 
64  void Finalize();
65 
66 private:
68  bool mbValidPaper;
69 };
70 
71 #endif
72 
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetPaperSize(sal_uInt16 nXclPaperSize, bool bPortrait)
Overrides paper size and orientation (used in sheet-charts).
Definition: xipage.cxx:181
void ReadPageBreaks(XclImpStream &rStrm)
Reads a HORIZONTALPAGEBREAKS or VERTICALPAGEBREAKS record.
Definition: xipage.cxx:134
void ReadCenter(XclImpStream &rStrm)
Reads a HCENTER or VCENTER record.
Definition: xipage.cxx:101
const XclPageData & GetPageData() const
Returns read-only access to the page data.
Definition: xipage.hxx:36
bool mbFitToPages
true = mnStartPage valid; false = automatic.
Definition: xlpage.hxx:142
void Finalize()
Creates a page stylesheet from current settings and sets it at current sheet.
Definition: xipage.cxx:224
XclPageData maData
Definition: xipage.hxx:67
void ReadMargin(XclImpStream &rStrm)
Reads a ***MARGIN record (reads all 4 margin records).
Definition: xipage.cxx:89
Contains all page (print) settings for a single sheet.
Definition: xlpage.hxx:97
Contains all page (print) settings for a single sheet.
Definition: xipage.hxx:30
void ReadHeaderFooter(XclImpStream &rStrm)
Reads a HEADER or FOOTER record.
Definition: xipage.cxx:113
bool mbValidPaper
Page settings data.
Definition: xipage.hxx:68
void SetFitToPages(bool bFitToPages)
Sets or clears the fit-to-pages setting (contained in WSBOOL record).
Definition: xipage.hxx:61
void ReadPrintHeaders(XclImpStream &rStrm)
Reads a PRINTHEADERS record.
Definition: xipage.cxx:164
void ReadImgData(XclImpStream &rStrm)
Reads an IMGDATA record and creates the SvxBrushItem.
Definition: xipage.cxx:174
void Initialize()
Initializes the object to be used for a new sheet.
Definition: xipage.cxx:47
void ReadPrintGridLines(XclImpStream &rStrm)
Reads a PRINTGRIDLINES record.
Definition: xipage.cxx:169
XclImpPageSettings(const XclImpRoot &rRoot)
Definition: xipage.cxx:41
This class is used to import record oriented streams.
Definition: xistream.hxx:278
void ReadSetup(XclImpStream &rStrm)
Reads a SETUP record and inserts contained data.
Definition: xipage.cxx:53
Access to global data from other classes.
Definition: xiroot.hxx:126