LibreOffice Module sc (master)  1
xepage.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_XEPAGE_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_XEPAGE_HXX
22 
23 #include "xerecord.hxx"
24 #include "xlpage.hxx"
25 #include "xeroot.hxx"
26 
27 class XclExpImgData;
28 
29 // Page settings records ======================================================
30 
31 // Header/footer --------------------------------------------------------------
32 
35 {
36 public:
37  explicit XclExpHeaderFooter( sal_uInt16 nRecId, const OUString& rHdrString );
38 
39  virtual void SaveXml( XclExpXmlStream& rStrm ) override;
40 private:
42  virtual void WriteBody( XclExpStream& rStrm ) override;
43 
44 private:
45  OUString maHdrString;
46 };
47 
48 // General page settings ------------------------------------------------------
49 
51 class XclExpSetup : public XclExpRecord
52 {
53 public:
54  explicit XclExpSetup( const XclPageData& rPageData );
55 
56  virtual void SaveXml( XclExpXmlStream& rStrm ) override;
57 private:
59  virtual void WriteBody( XclExpStream& rStrm ) override;
60 
61 private:
63 };
64 
65 // Manual page breaks ---------------------------------------------------------
66 
69 {
70 public:
71  explicit XclExpPageBreaks(
72  sal_uInt16 nRecId,
73  const ScfUInt16Vec& rPageBreaks,
74  sal_uInt16 nMaxPos );
75 
77  virtual void Save( XclExpStream& rStrm ) override;
78  virtual void SaveXml( XclExpXmlStream& rStrm ) override;
79 
80 private:
82  virtual void WriteBody( XclExpStream& rStrm ) override;
83 
84 private:
86  sal_uInt16 mnMaxPos;
87 };
88 
89 // Page settings ==============================================================
90 
93 {
94 public:
96  explicit XclExpPageSettings( const XclExpRoot& rRoot );
97 
99  const XclPageData& GetPageData() const { return maData; }
100 
102  virtual void Save( XclExpStream& rStrm ) override;
103  virtual void SaveXml( XclExpXmlStream& rStrm ) override;
104 
106 
107 private:
109 };
110 
113 {
114 public:
116  explicit XclExpChartPageSettings( const XclExpRoot& rRoot );
117 
119  virtual void Save( XclExpStream& rStrm ) override;
120 
121 private:
123 };
124 
125 #endif
126 
127 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Save(XclExpStream &rStrm) override
Writes the record, if the list is not empty.
Definition: xepage.cxx:175
Contains all page (print) settings records for a chart object.
Definition: xepage.hxx:112
This class is used to export Excel record streams.
Definition: xestream.hxx:71
virtual void WriteBody(XclExpStream &rStrm) override
Writes the page break list.
Definition: xepage.cxx:184
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:422
sal_uInt16 mnMaxPos
Page settings data of current sheet.
Definition: xepage.hxx:86
XclPageData maData
Definition: xepage.hxx:108
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:58
Stores an array of manual page breaks for columns or rows.
Definition: xepage.hxx:68
Access to global data from other classes.
Definition: xeroot.hxx:113
Represents a HEADER or FOOTER record.
Definition: xepage.hxx:34
OUString maHdrString
Definition: xepage.hxx:45
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:197
XclExpChartPageSettings(const XclExpRoot &rRoot)
Creates all records containing the current page settings.
Definition: xepage.cxx:467
virtual void Save(XclExpStream &rStrm) override
Writes all page settings records to the stream.
Definition: xepage.cxx:472
const ScfUInt16Vec & mrPageBreaks
Definition: xepage.hxx:85
virtual void WriteBody(XclExpStream &rStrm) override
Writes the contents of the SETUP record.
Definition: xepage.cxx:137
Base class for all Excel records.
Definition: xerecord.hxx:39
Represents a SETUP record that contains common page settings.
Definition: xepage.hxx:51
XclExpPageSettings(const XclExpRoot &rRoot)
Creates all records containing the current page settings.
Definition: xepage.cxx:223
XclExpImgData * getGraphicExport()
Definition: xepage.cxx:459
Contains all page (print) settings for a single sheet.
Definition: xlpage.hxx:97
const XclPageData & mrData
Definition: xepage.hxx:62
const XclPageData & GetPageData() const
Returns read-only access to the page data.
Definition: xepage.hxx:99
Contains all page (print) settings records for a single sheet.
Definition: xepage.hxx:92
::std::vector< sal_uInt16 > ScfUInt16Vec
Definition: ftools.hxx:254
Provides export of bitmap data to an IMGDATA record.
Definition: xeescher.hxx:149
XclExpSetup(const XclPageData &rPageData)
Definition: xepage.cxx:89
XclExpPageBreaks(sal_uInt16 nRecId, const ScfUInt16Vec &rPageBreaks, sal_uInt16 nMaxPos)
Definition: xepage.cxx:168
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:95
XclPageData maData
Definition: xepage.hxx:122
XclExpHeaderFooter(sal_uInt16 nRecId, const OUString &rHdrString)
Definition: xepage.cxx:52
virtual void Save(XclExpStream &rStrm) override
Writes all page settings records to the stream.
Definition: xepage.cxx:400
virtual void WriteBody(XclExpStream &rStrm) override
Writes the header or footer string.
Definition: xepage.cxx:74
void SvStream & rStrm
Base class for single records with any content.
Definition: xerecord.hxx:143