LCOV - code coverage report
Current view: top level - sc/source/filter/inc - xiview.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 2 100.0 %
Date: 2015-06-13 12:38:46 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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_XIVIEW_HXX
      21             : #define INCLUDED_SC_SOURCE_FILTER_INC_XIVIEW_HXX
      22             : 
      23             : #include "xlview.hxx"
      24             : #include "xiroot.hxx"
      25             : 
      26             : // Document view settings =====================================================
      27             : 
      28             : /** Contains document view settings (WINDOW1 record). */
      29         168 : class XclImpDocViewSettings : protected XclImpRoot
      30             : {
      31             : public:
      32             :     explicit            XclImpDocViewSettings( const XclImpRoot& rRoot );
      33             : 
      34             :     /** Reads a WINDOW1 record. */
      35             :     void                ReadWindow1( XclImpStream& rStrm );
      36             : 
      37             :     /** Returns the Calc index of the displayed sheet. */
      38             :     SCTAB               GetDisplScTab() const;
      39             : 
      40             :     /** Sets the view settings at the document. */
      41             :     void                Finalize();
      42             : 
      43             : private:
      44             :     XclDocViewData      maData;         /// Document view settings data.
      45             : };
      46             : 
      47             : // Sheet view settings ========================================================
      48             : 
      49             : /** Contains all view settings for a single sheet.
      50             : 
      51             :     Usage:
      52             :     1)  When import filter starts reading a worksheet substream, inizialize 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.
      58             :  */
      59         168 : class XclImpTabViewSettings : protected XclImpRoot
      60             : {
      61             : public:
      62             :     explicit            XclImpTabViewSettings( const XclImpRoot& rRoot );
      63             : 
      64             :     /** Initializes the object to be used for a new sheet. */
      65             :     void                Initialize();
      66             : 
      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, XclImpPalette& rPal );
      77             :     /** Sets the view settings at the current sheet or the extended sheet options object. */
      78             :     void                Finalize();
      79             : 
      80             : private:
      81             :     XclTabViewData      maData;         /// Sheet view settings data.
      82             : };
      83             : 
      84             : #endif
      85             : 
      86             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11