LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/vba - vbareplacement.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 22 0.0 %
Date: 2012-12-27 Functions: 0 8 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 "vbareplacement.hxx"
      20             : #include <vbahelper/vbahelper.hxx>
      21             : #include <tools/diagnose_ex.h>
      22             : 
      23             : using namespace ::ooo::vba;
      24             : using namespace ::com::sun::star;
      25             : 
      26           0 : SwVbaReplacement::SwVbaReplacement( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< util::XPropertyReplace >& xPropertyReplace ) throw ( uno::RuntimeException ) :
      27           0 :     SwVbaReplacement_BASE( rParent, rContext ), mxPropertyReplace( xPropertyReplace )
      28             : {
      29           0 : }
      30             : 
      31           0 : SwVbaReplacement::~SwVbaReplacement()
      32             : {
      33           0 : }
      34             : 
      35           0 : ::rtl::OUString SAL_CALL SwVbaReplacement::getText() throw (uno::RuntimeException)
      36             : {
      37           0 :     return mxPropertyReplace->getReplaceString();
      38             : }
      39             : 
      40           0 : void SAL_CALL SwVbaReplacement::setText( const ::rtl::OUString& _text ) throw (uno::RuntimeException)
      41             : {
      42           0 :     mxPropertyReplace->setReplaceString( _text );
      43           0 : }
      44             : 
      45           0 : void SAL_CALL SwVbaReplacement::ClearFormatting( ) throw (uno::RuntimeException)
      46             : {
      47           0 :     uno::Sequence< beans::PropertyValue > aPropValues;
      48           0 :     mxPropertyReplace->setReplaceAttributes( aPropValues );
      49           0 : }
      50             : 
      51             : rtl::OUString
      52           0 : SwVbaReplacement::getServiceImplName()
      53             : {
      54           0 :     return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SwVbaReplacement"));
      55             : }
      56             : 
      57             : uno::Sequence< rtl::OUString >
      58           0 : SwVbaReplacement::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.Replacement" ) );
      65             :     }
      66           0 :     return aServiceNames;
      67             : }
      68             : 
      69             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10