LCOV - code coverage report
Current view: top level - libreoffice/sd/source/ui/toolpanel/controls - SlideTransitionPanel.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 30 0.0 %
Date: 2012-12-27 Functions: 0 12 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 "SlideTransitionPanel.hxx"
      21             : 
      22             : #include "taskpane/TaskPaneControlFactory.hxx"
      23             : #include "taskpane/ToolPanelViewShell.hxx"
      24             : 
      25             : #include "strings.hrc"
      26             : #include "sdresid.hxx"
      27             : #include <com/sun/star/frame/XModel.hpp>
      28             : 
      29             : namespace sd
      30             : {
      31             : 
      32             :     class ViewShellBase;
      33             :     extern ::Window * createSlideTransitionPanel( ::Window* pParent, ViewShellBase& rBase );
      34             : 
      35             : namespace toolpanel { namespace controls {
      36             : 
      37             : 
      38             : 
      39           0 : SlideTransitionPanel::SlideTransitionPanel(Window& i_rParentWindow, ToolPanelViewShell& i_rToolPanelShell)
      40             :     :SubToolPanel( i_rParentWindow )
      41             :     ,maPreferredSize( 100, 200 )
      42           0 :     ,m_pPanelViewShell( &i_rToolPanelShell )
      43             : {
      44           0 :     mpWrappedControl = createSlideTransitionPanel( &i_rParentWindow, i_rToolPanelShell.GetViewShellBase() );
      45           0 :     mpWrappedControl->Show();
      46           0 : }
      47             : 
      48           0 : SlideTransitionPanel::~SlideTransitionPanel()
      49             : {
      50           0 :     delete mpWrappedControl;
      51           0 : }
      52             : 
      53           0 : std::auto_ptr< ControlFactory > SlideTransitionPanel::CreateControlFactory( ToolPanelViewShell& i_rToolPanelShell )
      54             : {
      55             :     return std::auto_ptr< ControlFactory >(
      56           0 :         new RootControlFactoryWithArg< SlideTransitionPanel, ToolPanelViewShell >( i_rToolPanelShell ) );
      57             : }
      58             : 
      59           0 : TaskPaneShellManager* SlideTransitionPanel::GetShellManager()
      60             : {
      61           0 :     if ( m_pPanelViewShell )
      62           0 :         return &m_pPanelViewShell->GetSubShellManager();
      63           0 :     return SubToolPanel::GetShellManager();
      64             : }
      65             : 
      66           0 : Size SlideTransitionPanel::GetPreferredSize()
      67             : {
      68           0 :     return maPreferredSize;
      69             : }
      70           0 : sal_Int32 SlideTransitionPanel::GetPreferredWidth(sal_Int32 )
      71             : {
      72           0 :     return maPreferredSize.Width();
      73             : }
      74           0 : sal_Int32 SlideTransitionPanel::GetPreferredHeight(sal_Int32 )
      75             : {
      76           0 :     return maPreferredSize.Height();
      77             : }
      78           0 : ::Window* SlideTransitionPanel::GetWindow()
      79             : {
      80           0 :     return mpWrappedControl;
      81             : }
      82           0 : bool SlideTransitionPanel::IsResizable()
      83             : {
      84           0 :     return true;
      85             : }
      86           0 : bool SlideTransitionPanel::IsExpandable() const
      87             : {
      88           0 :     return true;
      89             : }
      90             : 
      91             : 
      92             : 
      93             : 
      94             : ::com::sun::star::uno::Reference<
      95           0 :     ::com::sun::star::accessibility::XAccessible> SlideTransitionPanel::CreateAccessibleObject (
      96             :         const ::com::sun::star::uno::Reference<
      97             :         ::com::sun::star::accessibility::XAccessible>& )
      98             : {
      99           0 :     if (GetWindow() != NULL)
     100           0 :         return GetWindow()->GetAccessible();
     101             :     else
     102           0 :         return NULL;
     103             : }
     104             : 
     105             : 
     106             : } } } // end of namespace ::sd::toolpanel::controls
     107             : 
     108             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10