LCOV - code coverage report
Current view: top level - sc/source/filter/inc - worksheetfragment.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 2 50.0 %
Date: 2015-06-13 12:38:46 Functions: 2 4 50.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_WORKSHEETFRAGMENT_HXX
      21             : #define INCLUDED_SC_SOURCE_FILTER_INC_WORKSHEETFRAGMENT_HXX
      22             : 
      23             : #include "excelhandlers.hxx"
      24             : 
      25             : namespace oox {
      26             : namespace xls {
      27             : 
      28           0 : class DataValidationsContext : public WorksheetContextBase
      29             : {
      30             : public:
      31             :     explicit            DataValidationsContext( WorksheetFragmentBase& rFragment );
      32             : 
      33             : protected:
      34             :     virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) SAL_OVERRIDE;
      35             :     virtual void        onCharacters( const OUString& rChars ) SAL_OVERRIDE;
      36             :     virtual void        onEndElement() SAL_OVERRIDE;
      37             : 
      38             :     virtual ::oox::core::ContextHandlerRef onCreateRecordContext( sal_Int32 nRecId, SequenceInputStream& rStrm ) SAL_OVERRIDE;
      39             : 
      40             : private:
      41             :     /** Imports the dataValidation element containing data validation settings. */
      42             :     void                importDataValidation( const AttributeList& rAttribs );
      43             :     /** Imports the DATAVALIDATION record containing data validation settings. */
      44             :     void                importDataValidation( SequenceInputStream& rStrm );
      45             : 
      46             : private:
      47             :     ::std::unique_ptr< ValidationModel > mxValModel;
      48             : };
      49             : 
      50         538 : class WorksheetFragment : public WorksheetFragmentBase
      51             : {
      52             : public:
      53             :     explicit            WorksheetFragment(
      54             :                             const WorksheetHelper& rHelper,
      55             :                             const OUString& rFragmentPath );
      56             : 
      57             : protected:
      58             :     virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) SAL_OVERRIDE;
      59             :     virtual void        onCharacters( const OUString& rChars ) SAL_OVERRIDE;
      60             : 
      61             :     virtual ::oox::core::ContextHandlerRef onCreateRecordContext( sal_Int32 nRecId, SequenceInputStream& rStrm ) SAL_OVERRIDE;
      62             : 
      63             :     virtual const ::oox::core::RecordInfo* getRecordInfos() const SAL_OVERRIDE;
      64             :     virtual void        initializeImport() SAL_OVERRIDE;
      65             :     virtual void        finalizeImport() SAL_OVERRIDE;
      66             : 
      67             : private:
      68             :     /** Imports page settings from a pageSetUpPr element. */
      69             :     void                importPageSetUpPr( const AttributeList& rAttribs );
      70             :     /** Imports the dimension element containing the used area of the sheet. */
      71             :     void                importDimension( const AttributeList& rAttribs );
      72             :     /** Imports sheet format properties from a sheetFormatPr element. */
      73             :     void                importSheetFormatPr( const AttributeList& rAttribs );
      74             :     /** Imports column settings from a col element. */
      75             :     void                importCol( const AttributeList& rAttribs );
      76             :     /** Imports a merged cell range from a mergeCell element. */
      77             :     void                importMergeCell( const AttributeList& rAttribs );
      78             :     /** Imports the hyperlink element containing a hyperlink for a cell range. */
      79             :     void                importHyperlink( const AttributeList& rAttribs );
      80             :     /** Imports individual break that is either within row or column break context. */
      81             :     void                importBrk( const AttributeList& rAttribs, bool bRowBreak );
      82             :     /** Imports the relation identifier for the DrawingML part. */
      83             :     void                importDrawing( const AttributeList& rAttribs );
      84             :     /** Imports the relation identifier for the legacy VML drawing part. */
      85             :     void                importLegacyDrawing( const AttributeList& rAttribs );
      86             :     /** Imports additional data for an OLE object. */
      87             :     void                importOleObject( const AttributeList& rAttribs );
      88             :     /** Imports additional data for an OCX form control. */
      89             :     void                importControl( const AttributeList& rAttribs );
      90             : 
      91             :     /** Imports the DIMENSION record containing the used area of the sheet. */
      92             :     void                importDimension( SequenceInputStream& rStrm );
      93             :     /** Imports sheet format properties from a SHEETFORMATPR record. */
      94             :     void                importSheetFormatPr( SequenceInputStream& rStrm );
      95             :     /** Imports column settings from a COL record. */
      96             :     void                importCol( SequenceInputStream& rStrm );
      97             :     /** Imports a merged cell range from a MERGECELL record. */
      98             :     void                importMergeCell( SequenceInputStream& rStrm );
      99             :     /** Imports a hyperlink for a cell range from a HYPERLINK record. */
     100             :     void                importHyperlink( SequenceInputStream& rStrm );
     101             :     /** Imports the BRK record for an individual row or column page break. */
     102             :     void                importBrk( SequenceInputStream& rStrm, bool bRowBreak );
     103             :     /** Imports the DRAWING record containing the relation identifier for the DrawingML part. */
     104             :     void                importDrawing( SequenceInputStream& rStrm );
     105             :     /** Imports the LEGACYDRAWING record containing the relation identifier for the VML drawing part. */
     106             :     void                importLegacyDrawing( SequenceInputStream& rStrm );
     107             :     /** Imports additional data for an OLE object. */
     108             :     void                importOleObject( SequenceInputStream& rStrm );
     109             :     /** Imports additional data for an OCX form control. */
     110             :     void                importControl( SequenceInputStream& rStrm );
     111             : 
     112             :     /** Imports the binary data of an embedded OLE object from the fragment with the passed ID. */
     113             :     void                importEmbeddedOleData( StreamDataSequence& orEmbeddedData, const OUString& rRelId );
     114             : };
     115             : 
     116             : } // namespace xls
     117             : } // namespace oox
     118             : 
     119             : #endif
     120             : 
     121             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11