Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / sc / source / filter / inc / xiview.hxx
blobf8a89ecdd4075f7632c5f39b69d8df957970f525
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_XIVIEW_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_XIVIEW_HXX
23 #include "xlview.hxx"
24 #include "xiroot.hxx"
26 // Document view settings =====================================================
28 /** Contains document view settings (WINDOW1 record). */
29 class XclImpDocViewSettings : protected XclImpRoot
31 public:
32 explicit XclImpDocViewSettings( const XclImpRoot& rRoot );
34 /** Reads a WINDOW1 record. */
35 void ReadWindow1( XclImpStream& rStrm );
37 /** Returns the Calc index of the displayed sheet. */
38 SCTAB GetDisplScTab() const;
40 /** Sets the view settings at the document. */
41 void Finalize();
43 private:
44 XclDocViewData maData; /// Document view settings data.
47 // Sheet view settings ========================================================
49 /** Contains all view settings for a single sheet.
51 Usage:
52 1) When import filter starts reading a worksheet substream, initialize an
53 instance of this class with the Initialize() function. This will set
54 all view options to Excel default values.
55 2) Read all view related records using the Read*() functions.
56 3) When import filter ends reading a worksheet substream, call Finalize()
57 to set all view settings to the current sheet of the Calc document.
59 class XclImpTabViewSettings : protected XclImpRoot
61 public:
62 explicit XclImpTabViewSettings( const XclImpRoot& rRoot );
64 /** Initializes the object to be used for a new sheet. */
65 void Initialize();
67 /** Reads a WINDOW2 record. */
68 void ReadWindow2( XclImpStream& rStrm, bool bChart );
69 /** Reads an SCL record. */
70 void ReadScl( XclImpStream& rStrm );
71 /** Reads a PANE record. */
72 void ReadPane( XclImpStream& rStrm );
73 /** Reads a SELECTION record. */
74 void ReadSelection( XclImpStream& rStrm );
75 /** Reads a SHEETEXT record (Tab Color). */
76 void ReadTabBgColor( XclImpStream& rStrm, const XclImpPalette& rPal );
77 /** Sets the view settings at the current sheet or the extended sheet options object. */
78 void Finalize();
80 private:
81 XclTabViewData maData; /// Sheet view settings data.
84 #endif
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */