LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/vba - vbalisttemplate.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 22 0.0 %
Date: 2012-12-27 Functions: 0 7 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 "vbalisttemplate.hxx"
      20             : #include <vbahelper/vbahelper.hxx>
      21             : #include <tools/diagnose_ex.h>
      22             : #include "vbalistlevels.hxx"
      23             : 
      24             : using namespace ::ooo::vba;
      25             : using namespace ::com::sun::star;
      26             : 
      27           0 : SwVbaListTemplate::SwVbaListTemplate( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< text::XTextDocument >& xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType ) throw ( uno::RuntimeException ) : SwVbaListTemplate_BASE( rParent, rContext )
      28             : {
      29           0 :     pListHelper.reset( new SwVbaListHelper( xTextDoc, nGalleryType, nTemplateType ) );
      30           0 : }
      31             : 
      32           0 : SwVbaListTemplate::~SwVbaListTemplate()
      33             : {
      34           0 : }
      35             : 
      36             : uno::Any SAL_CALL
      37           0 : SwVbaListTemplate::ListLevels( const uno::Any& index ) throw (uno::RuntimeException)
      38             : {
      39           0 :     uno::Reference< XCollection > xCol( new SwVbaListLevels( mxParent, mxContext, pListHelper ) );
      40           0 :     if ( index.hasValue() )
      41           0 :         return xCol->Item( index, uno::Any() );
      42           0 :     return uno::makeAny( xCol );
      43             : }
      44             : 
      45           0 : void SwVbaListTemplate::applyListTemplate( uno::Reference< beans::XPropertySet >& xProps ) throw (uno::RuntimeException)
      46             : {
      47           0 :     uno::Reference< container::XIndexReplace > xNumberingRules = pListHelper->getNumberingRules();
      48           0 :     xProps->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("NumberingRules") ) , uno::makeAny( xNumberingRules ) );
      49           0 : }
      50             : 
      51             : rtl::OUString
      52           0 : SwVbaListTemplate::getServiceImplName()
      53             : {
      54           0 :     return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SwVbaListTemplate"));
      55             : }
      56             : 
      57             : uno::Sequence< rtl::OUString >
      58           0 : SwVbaListTemplate::getServiceNames()
      59             : {
      60           0 :     static uno::Sequence< rtl::OUString > aServiceNames;
      61           0 :     if ( aServiceNames.getLength() == 0 )
      62             :     {
      63           0 :         aServiceNames.realloc( 1 );
      64           0 :         aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.word.ListTemplate" ) );
      65             :     }
      66           0 :     return aServiceNames;
      67             : }
      68             : 
      69             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10