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
26class XclExpImgData;
27
28// Page settings records ======================================================
29
30// Header/footer --------------------------------------------------------------
31
34{
35public:
36 explicit XclExpHeaderFooter( sal_uInt16 nRecId, OUString aHdrString );
37
38 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
39private:
41 virtual void WriteBody( XclExpStream& rStrm ) override;
42
43private:
44 OUString maHdrString;
45};
46
47// General page settings ------------------------------------------------------
48
51{
52public:
53 explicit XclExpSetup( const XclPageData& rPageData );
54
55 virtual void SaveXml( XclExpXmlStream& rStrm ) override;
56private:
58 virtual void WriteBody( XclExpStream& rStrm ) override;
59
60private:
62};
63
64// Manual page breaks ---------------------------------------------------------
65
68{
69public:
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
79private:
81 virtual void WriteBody( XclExpStream& rStrm ) override;
82
83private:
85 sal_uInt16 mnMaxPos;
86};
87
88// Page settings ==============================================================
89
92{
93public:
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
106private:
108};
109
112{
113public:
115 explicit XclExpChartPageSettings( const XclExpRoot& rRoot );
116
118 virtual void Save( XclExpStream& rStrm ) override;
119
120private:
122};
123
124/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Contains all page (print) settings records for a chart object.
Definition: xepage.hxx:112
virtual void Save(XclExpStream &rStrm) override
Writes all page settings records to the stream.
Definition: xepage.cxx:503
XclPageData maData
Definition: xepage.hxx:121
XclExpChartPageSettings(const XclExpRoot &rRoot)
Creates all records containing the current page settings.
Definition: xepage.cxx:498
Represents a HEADER or FOOTER record.
Definition: xepage.hxx:34
virtual void WriteBody(XclExpStream &rStrm) override
Writes the header or footer string.
Definition: xepage.cxx:77
XclExpHeaderFooter(sal_uInt16 nRecId, OUString aHdrString)
Definition: xepage.cxx:53
OUString maHdrString
Definition: xepage.hxx:44
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:59
Provides export of bitmap data to an IMGDATA record.
Definition: xeescher.hxx:150
Stores an array of manual page breaks for columns or rows.
Definition: xepage.hxx:68
XclExpPageBreaks(sal_uInt16 nRecId, const ScfUInt16Vec &rPageBreaks, sal_uInt16 nMaxPos)
Definition: xepage.cxx:170
sal_uInt16 mnMaxPos
Page settings data of current sheet.
Definition: xepage.hxx:85
virtual void Save(XclExpStream &rStrm) override
Writes the record, if the list is not empty.
Definition: xepage.cxx:177
virtual void WriteBody(XclExpStream &rStrm) override
Writes the page break list.
Definition: xepage.cxx:186
const ScfUInt16Vec & mrPageBreaks
Definition: xepage.hxx:84
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:199
Contains all page (print) settings records for a single sheet.
Definition: xepage.hxx:92
const XclPageData & GetPageData() const
Returns read-only access to the page data.
Definition: xepage.hxx:98
virtual void Save(XclExpStream &rStrm) override
Writes all page settings records to the stream.
Definition: xepage.cxx:426
XclExpImgData * getGraphicExport()
Definition: xepage.cxx:490
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:448
XclPageData maData
Definition: xepage.hxx:107
XclExpPageSettings(const XclExpRoot &rRoot)
Creates all records containing the current page settings.
Definition: xepage.cxx:225
Base class for all Excel records.
Definition: xerecord.hxx:39
Base class for single records with any content.
Definition: xerecord.hxx:143
Access to global data from other classes.
Definition: xeroot.hxx:113
Represents a SETUP record that contains common page settings.
Definition: xepage.hxx:51
XclExpSetup(const XclPageData &rPageData)
Definition: xepage.cxx:92
virtual void SaveXml(XclExpXmlStream &rStrm) override
Definition: xepage.cxx:98
virtual void WriteBody(XclExpStream &rStrm) override
Writes the contents of the SETUP record.
Definition: xepage.cxx:139
const XclPageData & mrData
Definition: xepage.hxx:61
This class is used to export Excel record streams.
Definition: xestream.hxx:73
::std::vector< sal_uInt16 > ScfUInt16Vec
Definition: ftools.hxx:255
void SvStream & rStrm
Contains all page (print) settings for a single sheet.
Definition: xlpage.hxx:102