1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xiview.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
37 // Document view settings =====================================================
39 /** Contains document view settings (WINDOW1 record). */
40 class XclImpDocViewSettings
: protected XclImpRoot
43 explicit XclImpDocViewSettings( const XclImpRoot
& rRoot
);
45 /** Reads a WINDOW1 record. */
46 void ReadWindow1( XclImpStream
& rStrm
);
48 /** Returns the Calc index of the displayed sheet. */
49 SCTAB
GetDisplScTab() const;
51 /** Sets the view settings at the document. */
55 XclDocViewData maData
; /// Document view settings data.
58 // Sheet view settings ========================================================
60 /** Contains all view settings for a single sheet.
63 1) When import filter starts reading a worksheet substream, inizialize an
64 instance of this class with the Initialize() function. This will set
65 all view options to Excel default values.
66 2) Read all view related records using the Read*() functions.
67 3) When import filter ends reading a worksheet substream, call Finalize()
68 to set all view settings to the current sheet of the Calc document.
70 class XclImpTabViewSettings
: protected XclImpRoot
73 explicit XclImpTabViewSettings( const XclImpRoot
& rRoot
);
75 /** Initializes the object to be used for a new sheet. */
78 /** Reads a WINDOW2 record. */
79 void ReadWindow2( XclImpStream
& rStrm
, bool bChart
);
80 /** Reads an SCL record. */
81 void ReadScl( XclImpStream
& rStrm
);
82 /** Reads a PANE record. */
83 void ReadPane( XclImpStream
& rStrm
);
84 /** Reads a SELECTION record. */
85 void ReadSelection( XclImpStream
& rStrm
);
86 /** Reads a SHEETEXT record (Tab Color). */
87 void ReadTabBgColor( XclImpStream
& rStrm
, XclImpPalette
& rPal
);
88 /** Sets the view settings at the current sheet or the extended sheet options object. */
92 XclTabViewData maData
; /// Sheet view settings data.
95 // ============================================================================