LCOV - code coverage report
Current view: top level - libreoffice/sw/source/core/access - accembedded.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 18 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             : 
      20             : #include <vcl/svapp.hxx>
      21             : #include <com/sun/star/accessibility/AccessibleRole.hpp>
      22             : #include <com/sun/star/uno/RuntimeException.hpp>
      23             : #include <comphelper/servicehelper.hxx>
      24             : #include <flyfrm.hxx>
      25             : #include "accembedded.hxx"
      26             : 
      27             : using namespace ::com::sun::star;
      28             : using namespace ::com::sun::star::lang;
      29             : using namespace ::com::sun::star::accessibility;
      30             : using ::rtl::OUString;
      31             : 
      32             : const sal_Char sServiceName[] = "com.sun.star.text.AccessibleTextEmbeddedObject";
      33             : const sal_Char sImplementationName[] = "com.sun.star.comp.Writer.SwAccessibleEmbeddedObject";
      34             : 
      35           0 : SwAccessibleEmbeddedObject::SwAccessibleEmbeddedObject(
      36             :         SwAccessibleMap* pInitMap,
      37             :         const SwFlyFrm* pFlyFrm  ) :
      38           0 :     SwAccessibleNoTextFrame( pInitMap, AccessibleRole::EMBEDDED_OBJECT, pFlyFrm )
      39             : {
      40           0 : }
      41             : 
      42           0 : SwAccessibleEmbeddedObject::~SwAccessibleEmbeddedObject()
      43             : {
      44           0 : }
      45             : 
      46           0 : OUString SAL_CALL SwAccessibleEmbeddedObject::getImplementationName()
      47             :         throw( uno::RuntimeException )
      48             : {
      49           0 :     return OUString(RTL_CONSTASCII_USTRINGPARAM(sImplementationName));
      50             : }
      51             : 
      52           0 : sal_Bool SAL_CALL SwAccessibleEmbeddedObject::supportsService(
      53             :         const ::rtl::OUString& sTestServiceName)
      54             :     throw (uno::RuntimeException)
      55             : {
      56             :     return sTestServiceName.equalsAsciiL( sServiceName,
      57           0 :                                           sizeof(sServiceName)-1 ) ||
      58             :            sTestServiceName.equalsAsciiL( sAccessibleServiceName,
      59           0 :                                              sizeof(sAccessibleServiceName)-1 );
      60             : }
      61             : 
      62           0 : uno::Sequence< OUString > SAL_CALL SwAccessibleEmbeddedObject::getSupportedServiceNames()
      63             :         throw( uno::RuntimeException )
      64             : {
      65           0 :     uno::Sequence< OUString > aRet(2);
      66           0 :     OUString* pArray = aRet.getArray();
      67           0 :     pArray[0] = OUString( RTL_CONSTASCII_USTRINGPARAM(sServiceName) );
      68           0 :     pArray[1] = OUString( RTL_CONSTASCII_USTRINGPARAM(sAccessibleServiceName) );
      69           0 :     return aRet;
      70             : }
      71             : 
      72             : namespace
      73             : {
      74             :     class theSwAccessibleEmbeddedObjectImplementationId : public rtl::Static< UnoTunnelIdInit, theSwAccessibleEmbeddedObjectImplementationId > {};
      75             : }
      76             : 
      77           0 : uno::Sequence< sal_Int8 > SAL_CALL SwAccessibleEmbeddedObject::getImplementationId()
      78             :         throw(uno::RuntimeException)
      79             : {
      80           0 :     return theSwAccessibleEmbeddedObjectImplementationId::get().getSeq();
      81             : }
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10