LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/vba - vbalistgallery.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 17 0.0 %
Date: 2012-12-27 Functions: 0 6 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 "vbalistgallery.hxx"
      20             : #include <vbahelper/vbahelper.hxx>
      21             : #include <tools/diagnose_ex.h>
      22             : #include "vbalisttemplates.hxx"
      23             : 
      24             : using namespace ::ooo::vba;
      25             : using namespace ::com::sun::star;
      26             : 
      27           0 : SwVbaListGallery::SwVbaListGallery( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< text::XTextDocument >& xTextDoc, sal_Int32 nType ) throw ( uno::RuntimeException ) : SwVbaListGallery_BASE( rParent, rContext ), mxTextDocument( xTextDoc ), mnType( nType )
      28             : {
      29           0 : }
      30             : 
      31           0 : SwVbaListGallery::~SwVbaListGallery()
      32             : {
      33           0 : }
      34             : 
      35             : uno::Any SAL_CALL
      36           0 : SwVbaListGallery::ListTemplates( const uno::Any& index ) throw (uno::RuntimeException)
      37             : {
      38           0 :     uno::Reference< XCollection > xCol( new SwVbaListTemplates( mxParent, mxContext, mxTextDocument, mnType ) );
      39           0 :     if ( index.hasValue() )
      40           0 :         return xCol->Item( index, uno::Any() );
      41           0 :     return uno::makeAny( xCol );
      42             : }
      43             : 
      44             : rtl::OUString
      45           0 : SwVbaListGallery::getServiceImplName()
      46             : {
      47           0 :     return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SwVbaListGallery"));
      48             : }
      49             : 
      50             : uno::Sequence< rtl::OUString >
      51           0 : SwVbaListGallery::getServiceNames()
      52             : {
      53           0 :     static uno::Sequence< rtl::OUString > aServiceNames;
      54           0 :     if ( aServiceNames.getLength() == 0 )
      55             :     {
      56           0 :         aServiceNames.realloc( 1 );
      57           0 :         aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.word.ListGallery" ) );
      58             :     }
      59           0 :     return aServiceNames;
      60             : }
      61             : 
      62             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10