LCOV - code coverage report
Current view: top level - vbahelper/source/vbahelper - vbacommandbar.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-08-25 Functions: 0 4 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 6 0.0 %

           Branch data     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                 :            : #ifndef SC_VBA_COMMANDBAR_HXX
      20                 :            : #define SC_VBA_COMMANDBAR_HXX
      21                 :            : 
      22                 :            : #include <ooo/vba/XCommandBar.hpp>
      23                 :            : #include <com/sun/star/ui/XUIConfigurationManager.hpp>
      24                 :            : #include <com/sun/star/ui/XUIConfigurationPersistence.hpp>
      25                 :            : #include <com/sun/star/container/XIndexContainer.hpp>
      26                 :            : #include <com/sun/star/beans/PropertyValues.hpp>
      27                 :            : 
      28                 :            : #include <vbahelper/vbahelperinterface.hxx>
      29                 :            : #include "vbacommandbarhelper.hxx"
      30                 :            : 
      31                 :            : #include <map>
      32                 :            : 
      33                 :            : typedef InheritedHelperInterfaceImpl1< ov::XCommandBar > CommandBar_BASE;
      34                 :            : 
      35 [ #  # ][ #  # ]:          0 : class ScVbaCommandBar : public CommandBar_BASE
      36                 :            : {
      37                 :            : private:
      38                 :            :     VbaCommandBarHelperRef pCBarHelper;
      39                 :            :     css::uno::Reference< css::container::XIndexAccess > m_xBarSettings;
      40                 :            :     rtl::OUString   m_sResourceUrl;
      41                 :            :     sal_Bool        m_bIsMenu;
      42                 :            :     sal_Bool        m_bTemporary;
      43                 :            : 
      44                 :            : public:
      45                 :            :     ScVbaCommandBar( const css::uno::Reference< ov::XHelperInterface > xParent, const css::uno::Reference< css::uno::XComponentContext > xContext, VbaCommandBarHelperRef pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const rtl::OUString& sResourceUrl, sal_Bool bIsMenu, sal_Bool bTemporary = sal_True ) throw( css::uno::RuntimeException );
      46                 :            : 
      47                 :            :     sal_Bool IsMenu() const { return m_bIsMenu; }
      48                 :            : 
      49                 :            :     // Attributes
      50                 :            :     virtual ::rtl::OUString SAL_CALL getName() throw (css::uno::RuntimeException);
      51                 :            :     virtual void SAL_CALL setName( const ::rtl::OUString& _name ) throw (css::uno::RuntimeException);
      52                 :            :     virtual ::sal_Bool SAL_CALL getVisible() throw (css::uno::RuntimeException);
      53                 :            :     virtual void SAL_CALL setVisible( ::sal_Bool _visible ) throw (css::uno::RuntimeException);
      54                 :            :     virtual ::sal_Bool SAL_CALL getEnabled() throw (css::uno::RuntimeException);
      55                 :            :     virtual void SAL_CALL setEnabled( ::sal_Bool _enabled ) throw (css::uno::RuntimeException);
      56                 :            : 
      57                 :            :     // Methods
      58                 :            :     virtual void SAL_CALL Delete(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      59                 :            :     virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& aIndex ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      60                 :            :     virtual sal_Int32 SAL_CALL Type(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      61                 :            :     virtual css::uno::Any SAL_CALL FindControl( const css::uno::Any& aType, const css::uno::Any& aId, const css::uno::Any& aTag, const css::uno::Any& aVisible, const css::uno::Any& aRecursive ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      62                 :            : 
      63                 :            :     // XHelperInterface
      64                 :            :     virtual rtl::OUString getServiceImplName();
      65                 :            :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
      66                 :            : };
      67                 :            : 
      68                 :            : /** Dummy command bar implementation. Does nothing but provide its name. */
      69         [ #  # ]:          0 : class VbaDummyCommandBar : public CommandBar_BASE
      70                 :            : {
      71                 :            : public:
      72                 :            :     VbaDummyCommandBar(
      73                 :            :             const css::uno::Reference< ov::XHelperInterface > xParent,
      74                 :            :             const css::uno::Reference< css::uno::XComponentContext > xContext,
      75                 :            :             const ::rtl::OUString& rName,
      76                 :            :             sal_Int32 nType ) throw( css::uno::RuntimeException );
      77                 :            : 
      78                 :            :     // Attributes
      79                 :            :     virtual ::rtl::OUString SAL_CALL getName() throw (css::uno::RuntimeException);
      80                 :            :     virtual void SAL_CALL setName( const ::rtl::OUString& _name ) throw (css::uno::RuntimeException);
      81                 :            :     virtual ::sal_Bool SAL_CALL getVisible() throw (css::uno::RuntimeException);
      82                 :            :     virtual void SAL_CALL setVisible( ::sal_Bool _visible ) throw (css::uno::RuntimeException);
      83                 :            :     virtual ::sal_Bool SAL_CALL getEnabled() throw (css::uno::RuntimeException);
      84                 :            :     virtual void SAL_CALL setEnabled( ::sal_Bool _enabled ) throw (css::uno::RuntimeException);
      85                 :            : 
      86                 :            :     // Methods
      87                 :            :     virtual void SAL_CALL Delete(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      88                 :            :     virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& aIndex ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      89                 :            :     virtual sal_Int32 SAL_CALL Type(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      90                 :            :     virtual css::uno::Any SAL_CALL FindControl( const css::uno::Any& aType, const css::uno::Any& aId, const css::uno::Any& aTag, const css::uno::Any& aVisible, const css::uno::Any& aRecursive ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
      91                 :            : 
      92                 :            :     // XHelperInterface
      93                 :            :     virtual rtl::OUString getServiceImplName();
      94                 :            :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
      95                 :            : 
      96                 :            : private:
      97                 :            :     ::rtl::OUString maName;
      98                 :            :     sal_Int32 mnType;
      99                 :            : };
     100                 :            : 
     101                 :            : #endif//SC_VBA_COMMANDBAR_HXX
     102                 :            : 
     103                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10