LCOV - code coverage report
Current view: top level - include/vbahelper - vbawindowbase.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 2 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             : #ifndef INCLUDED_VBAHELPER_VBAWINDOWBASE_HXX
      21             : #define INCLUDED_VBAHELPER_VBAWINDOWBASE_HXX
      22             : 
      23             : #include <ooo/vba/XWindowBase.hpp>
      24             : #include <com/sun/star/awt/XWindow2.hpp>
      25             : #include <com/sun/star/frame/XController.hpp>
      26             : #include <vbahelper/vbahelperinterface.hxx>
      27             : 
      28             : typedef InheritedHelperInterfaceImpl1< ov::XWindowBase > WindowBaseImpl_BASE;
      29             : 
      30           0 : class VBAHELPER_DLLPUBLIC VbaWindowBase : public WindowBaseImpl_BASE
      31             : {
      32             : public:
      33             :     VbaWindowBase(
      34             :         const css::uno::Reference< ov::XHelperInterface >& xParent,
      35             :         const css::uno::Reference< css::uno::XComponentContext >& xContext,
      36             :         const css::uno::Reference< css::frame::XModel >& xModel,
      37             :         const css::uno::Reference< css::frame::XController >& xController )
      38             :         throw (css::uno::RuntimeException);
      39             :     VbaWindowBase(
      40             :         css::uno::Sequence< css::uno::Any > const& aArgs,
      41             :         css::uno::Reference< css::uno::XComponentContext > const& xContext )
      42             :         throw (css::uno::RuntimeException);
      43             : 
      44             :     // XWindowBase
      45             :     virtual sal_Int32 SAL_CALL getHeight() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      46             :     virtual void SAL_CALL setHeight( sal_Int32 _height ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      47             :     virtual sal_Int32 SAL_CALL getLeft() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      48             :     virtual void SAL_CALL setLeft( sal_Int32 _left ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      49             :     virtual sal_Int32 SAL_CALL getTop() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      50             :     virtual void SAL_CALL setTop( sal_Int32 _top ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      51             :     virtual sal_Bool SAL_CALL getVisible() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      52             :     virtual void SAL_CALL setVisible( sal_Bool _visible ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      53             :     virtual sal_Int32 SAL_CALL getWidth() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      54             :     virtual void SAL_CALL setWidth( sal_Int32 _width ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      55             : 
      56             :     // XHelperInterface
      57             :     virtual OUString getServiceImplName() SAL_OVERRIDE;
      58             :     virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
      59             : 
      60             : protected:
      61             :     css::uno::Reference< css::frame::XController > getController() throw (css::uno::RuntimeException);
      62             :     css::uno::Reference< css::awt::XWindow > getWindow() throw (css::uno::RuntimeException);
      63             :     css::uno::Reference< css::awt::XWindow2 > getWindow2() throw (css::uno::RuntimeException);
      64             : 
      65             :     css::uno::Reference< css::frame::XModel > m_xModel;
      66             : 
      67             : private:
      68             :     void construct( const css::uno::Reference< css::frame::XController >& xController ) throw (css::uno::RuntimeException);
      69             : 
      70             :     css::uno::WeakReference< css::frame::XController > m_xController;
      71             :     css::uno::WeakReference< css::awt::XWindow > m_xWindow;
      72             : };
      73             : 
      74             : #endif // INCLUDED_VBAHELPER_VBAWINDOWBASE_HXX
      75             : 
      76             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10