LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/vba - vbapane.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 19 0.0 %
Date: 2012-12-17 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 "vbapane.hxx"
      20             : #include <vbahelper/vbahelper.hxx>
      21             : #include <tools/diagnose_ex.h>
      22             : #include "vbaview.hxx"
      23             : 
      24             : using namespace ::ooo::vba;
      25             : using namespace ::com::sun::star;
      26             : 
      27           0 : SwVbaPane::SwVbaPane( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext,
      28             :     const uno::Reference< frame::XModel >& xModel ) throw ( uno::RuntimeException ) :
      29           0 :     SwVbaPane_BASE( rParent, rContext ), mxModel( xModel )
      30             : {
      31           0 : }
      32             : 
      33           0 : SwVbaPane::~SwVbaPane()
      34             : {
      35           0 : }
      36             : 
      37             : uno::Any SAL_CALL
      38           0 : SwVbaPane::View() throw ( css::uno::RuntimeException )
      39             : {
      40           0 :     return uno::makeAny( uno::Reference< word::XView >( new SwVbaView( this,  mxContext, mxModel ) ) );
      41             : }
      42             : 
      43             : void SAL_CALL
      44           0 : SwVbaPane::Close( ) throw ( css::uno::RuntimeException )
      45             : {
      46           0 :     rtl::OUString url = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CloseWin"));
      47           0 :     dispatchRequests( mxModel,url );
      48           0 : }
      49             : 
      50             : rtl::OUString
      51           0 : SwVbaPane::getServiceImplName()
      52             : {
      53           0 :     return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SwVbaPane"));
      54             : }
      55             : 
      56             : uno::Sequence< rtl::OUString >
      57           0 : SwVbaPane::getServiceNames()
      58             : {
      59           0 :     static uno::Sequence< rtl::OUString > aServiceNames;
      60           0 :     if ( aServiceNames.getLength() == 0 )
      61             :     {
      62           0 :         aServiceNames.realloc( 1 );
      63           0 :         aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.word.Pane" ) );
      64             :     }
      65           0 :     return aServiceNames;
      66             : }
      67             : 
      68             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10