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 #pragma once
21 
22 #include "xerecord.hxx"
23 #include "xlpage.hxx"
24 #include "xeroot.hxx"
25 
26 class XclExpImgData;
27 
28 // Page settings records ======================================================
29 
30 // Header/footer --------------------------------------------------------------
31 
34 {
35 public:
36  explicit XclExpHeaderFooter( sal_uInt16 nRecId, const OUString& rHdrString );
37 
38  virtual void SaveXml( XclExpXmlStream& rStrm ) override;
39 private:
41  virtual void WriteBody( XclExpStream& rStrm ) override;
42 
43 private:
44  OUString maHdrString;
45 };
46 
47 // General page settings ------------------------------------------------------
48 
50 class XclExpSetup : public XclExpRecord
51 {
52 public:
53  explicit XclExpSetup( const XclPageData& rPageData );
54 
55  virtual void SaveXml( XclExpXmlStream& rStrm ) override;
56 private:
58  virtual void WriteBody( XclExpStream& rStrm ) override;
59 
60 private:
62 };
63 
64 // Manual page breaks ---------------------------------------------------------
65 
68 {
69 public:
70  explicit XclExpPageBreaks(
71  sal_uInt16 nRecId,
72  const ScfUInt16Vec& rPageBreaks,
73  sal_uInt16 nMaxPos );
74 
76  virtual void Save( XclExpStream& rStrm ) override;
77  virtual void SaveXml( XclExpXmlStream& rStrm ) override;
78 
79 private:
81  virtual void WriteBody( XclExpStream& rStrm ) override;
82 
83 private:
85  sal_uInt16 mnMaxPos;
86 };
87 
88 // Page settings ==============================================================
89 
92 {
93 public:
95  explicit XclExpPageSettings( const XclExpRoot& rRoot );
96 
98  const XclPageData& GetPageData() const { return maData; }
99 
101  virtual void Save( XclExpStream& rStrm ) override;
102  virtual void SaveXml( XclExpXmlStream& rStrm ) override;
103 
105 
106 private:
108 };
109 
112 {
113 public:
115  explicit XclExpChartPageSettings( const XclExpRoot& rRoot );
116 
118  virtual void Save( XclExpStream& rStrm ) override;
119 
120 private:
122 };
123 
124 /* 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:176
Contains all page (print) settings records for a chart object.
Definition: xepage.hxx:111
This class is used to export Excel record streams.
Definition: xestream.hxx:72
virtual void WriteBody(XclExpStream &rStrm) override
Writes the page break list.
Definition: xepage.cxx:185
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:447
sal_uInt16 mnMaxPos
Page settings data of current sheet.
Definition: xepage.hxx:85
XclPageData maData
Definition: xepage.hxx:107
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:58
Stores an array of manual page breaks for columns or rows.
Definition: xepage.hxx:67
Access to global data from other classes.
Definition: xeroot.hxx:112
Represents a HEADER or FOOTER record.
Definition: xepage.hxx:33
OUString maHdrString
Definition: xepage.hxx:44
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:198
XclExpChartPageSettings(const XclExpRoot &rRoot)
Creates all records containing the current page settings.
Definition: xepage.cxx:497
virtual void Save(XclExpStream &rStrm) override
Writes all page settings records to the stream.
Definition: xepage.cxx:502
const ScfUInt16Vec & mrPageBreaks
Definition: xepage.hxx:84
virtual void WriteBody(XclExpStream &rStrm) override
Writes the contents of the SETUP record.
Definition: xepage.cxx:138
Base class for all Excel records.
Definition: xerecord.hxx:37
Represents a SETUP record that contains common page settings.
Definition: xepage.hxx:50
XclExpPageSettings(const XclExpRoot &rRoot)
Creates all records containing the current page settings.
Definition: xepage.cxx:224
XclExpImgData * getGraphicExport()
Definition: xepage.cxx:489
Contains all page (print) settings for a single sheet.
Definition: xlpage.hxx:101
const XclPageData & mrData
Definition: xepage.hxx:61
const XclPageData & GetPageData() const
Returns read-only access to the page data.
Definition: xepage.hxx:98
Contains all page (print) settings records for a single sheet.
Definition: xepage.hxx:91
::std::vector< sal_uInt16 > ScfUInt16Vec
Definition: ftools.hxx:255
Provides export of bitmap data to an IMGDATA record.
Definition: xeescher.hxx:148
XclExpSetup(const XclPageData &rPageData)
Definition: xepage.cxx:91
XclExpPageBreaks(sal_uInt16 nRecId, const ScfUInt16Vec &rPageBreaks, sal_uInt16 nMaxPos)
Definition: xepage.cxx:169
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:97
XclPageData maData
Definition: xepage.hxx:121
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:425
virtual void WriteBody(XclExpStream &rStrm) override
Writes the header or footer string.
Definition: xepage.cxx:76
void SvStream & rStrm
Base class for single records with any content.
Definition: xerecord.hxx:141