LCOV - code coverage report
Current view: top level - sw/source/ui/vba - vbasection.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 29 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 10 0.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             : #include "vbasection.hxx"
      20             : #include <vbahelper/vbahelper.hxx>
      21             : #include <tools/diagnose_ex.h>
      22             : #include "vbapagesetup.hxx"
      23             : #include "vbaheadersfooters.hxx"
      24             : 
      25             : using namespace ::ooo::vba;
      26             : using namespace ::com::sun::star;
      27             : 
      28           0 : SwVbaSection::SwVbaSection( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< frame::XModel >& xModel, const uno::Reference< beans::XPropertySet >& xProps ) throw ( uno::RuntimeException ) :
      29           0 :     SwVbaSection_BASE( rParent, rContext ), mxModel( xModel ), mxPageProps( xProps )
      30             : {
      31           0 : }
      32             : 
      33           0 : SwVbaSection::~SwVbaSection()
      34             : {
      35           0 : }
      36             : 
      37           0 : sal_Bool SAL_CALL SwVbaSection::getProtectedForForms() throw (uno::RuntimeException, std::exception)
      38             : {
      39           0 :     return sal_False;
      40             : }
      41             : 
      42           0 : void SAL_CALL SwVbaSection::setProtectedForForms( sal_Bool /*_protectedforforms*/ ) throw (uno::RuntimeException, std::exception)
      43             : {
      44           0 : }
      45             : 
      46           0 : uno::Any SAL_CALL SwVbaSection::Headers( const uno::Any& index ) throw (uno::RuntimeException, std::exception)
      47             : {
      48           0 :     uno::Reference< XCollection > xCol( new SwVbaHeadersFooters( this, mxContext, mxModel, mxPageProps, true ) );
      49           0 :     if ( index.hasValue() )
      50           0 :         return xCol->Item( index, uno::Any() );
      51           0 :     return uno::makeAny( xCol );
      52             : }
      53             : 
      54           0 : uno::Any SAL_CALL SwVbaSection::Footers( const uno::Any& index ) throw (uno::RuntimeException, std::exception)
      55             : {
      56           0 :     uno::Reference< XCollection > xCol( new SwVbaHeadersFooters( this, mxContext, mxModel, mxPageProps, false ) );
      57           0 :     if ( index.hasValue() )
      58           0 :         return xCol->Item( index, uno::Any() );
      59           0 :     return uno::makeAny( xCol );
      60             : }
      61             : 
      62             : uno::Any SAL_CALL
      63           0 : SwVbaSection::PageSetup( ) throw (uno::RuntimeException, std::exception)
      64             : {
      65           0 :     return uno::makeAny( uno::Reference< word::XPageSetup >( new SwVbaPageSetup( this, mxContext, mxModel, mxPageProps ) ) );
      66             : }
      67             : 
      68             : OUString
      69           0 : SwVbaSection::getServiceImplName()
      70             : {
      71           0 :     return OUString("SwVbaSection");
      72             : }
      73             : 
      74             : uno::Sequence< OUString >
      75           0 : SwVbaSection::getServiceNames()
      76             : {
      77           0 :     static uno::Sequence< OUString > aServiceNames;
      78           0 :     if ( aServiceNames.getLength() == 0 )
      79             :     {
      80           0 :         aServiceNames.realloc( 1 );
      81           0 :         aServiceNames[ 0 ] = "ooo.vba.word.Section";
      82             :     }
      83           0 :     return aServiceNames;
      84             : }
      85             : 
      86             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11