LCOV - code coverage report
Current view: top level - svx/source/inc - fmPropBrw.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             : #ifndef INCLUDED_SVX_SOURCE_INC_FMPROPBRW_HXX
      20             : #define INCLUDED_SVX_SOURCE_INC_FMPROPBRW_HXX
      21             : 
      22             : #include <com/sun/star/awt/XControlContainer.hpp>
      23             : #include <com/sun/star/frame/XFrame2.hpp>
      24             : #include <com/sun/star/inspection/XObjectInspectorModel.hpp>
      25             : #include <com/sun/star/uno/XComponentContext.hpp>
      26             : 
      27             : #include <sfx2/basedlgs.hxx>
      28             : #include <sfx2/ctrlitem.hxx>
      29             : #include <sfx2/childwin.hxx>
      30             : #include "svx/fmtools.hxx"
      31             : 
      32             : 
      33           0 : class FmPropBrwMgr : public SfxChildWindow
      34             : {
      35             : public:
      36             :     FmPropBrwMgr(Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo);
      37             :     SFX_DECL_CHILDWINDOW(FmPropBrwMgr);
      38             : };
      39             : 
      40             : class SfxBindings;
      41             : class FmFormShell;
      42             : 
      43             : class FmPropBrw : public SfxFloatingWindow, public SfxControllerItem
      44             : {
      45             :     sal_Bool        m_bInitialStateChange;
      46             :     bool            m_bInStateChange;
      47             :     OUString m_sLastActivePage;
      48             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
      49             :                         m_xInspectorContext;
      50             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
      51             :                     m_xORB;
      52             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame2 >
      53             :                     m_xMeAsFrame;
      54             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      55             :                     m_xLastKnownDocument;
      56             :     ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorModel >
      57             :                     m_xInspectorModel;
      58             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController >
      59             :                     m_xBrowserController;
      60             :     ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >
      61             :                     m_xBrowserComponentWindow;
      62             :     ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >
      63             :                     m_xFrameContainerWindow;
      64             : 
      65             : protected:
      66             :     virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState) SAL_OVERRIDE;
      67             :     virtual void FillInfo( SfxChildWinInfo& rInfo ) const SAL_OVERRIDE;
      68             :     virtual bool Close() SAL_OVERRIDE;
      69             : 
      70             :     DECL_LINK( OnAsyncGetFocus, void* );
      71             : 
      72             :     void implSetNewSelection( const InterfaceBag& _rSelection );
      73             :     void implDetachController();
      74             :     bool implIsReadOnlyModel() const;
      75             :     OUString getCurrentPage() const;
      76             : 
      77             : public:
      78             :     FmPropBrw(
      79             :         const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _xORB,
      80             :         SfxBindings* pBindings,
      81             :         SfxChildWindow* pMgr,
      82             :         Window* pParent,
      83             :         const SfxChildWinInfo* _pInfo
      84             :     );
      85             :     virtual ~FmPropBrw();
      86             : 
      87             :     using SfxFloatingWindow::StateChanged;
      88             : 
      89             : protected:
      90             :     virtual void        Resize() SAL_OVERRIDE;
      91             : 
      92             : private:
      93             :     /** creates the PropertyBrowser (aka ObjectInspector) and plugs it into our frame
      94             : 
      95             :         This method ensures that a new component is created every time the XModel which
      96             :         we're working for changed. This is necessary since this model is part of the
      97             :         ComponentContext we use to create the ObjectInspector.
      98             :     */
      99             :     void    impl_ensurePropertyBrowser_nothrow( FmFormShell* _pFormShell );
     100             : 
     101             :     /** creates a property browser
     102             : 
     103             :         After this method returns, m_xBrowserController and m_xBrowserComponentWindow are
     104             :         not <NULL/>.
     105             : 
     106             :     @precond
     107             :         we don't have an ObjectInspector, yet, i.e. m_xBrowserController and m_xBrowserComponentWindow
     108             :         are <NULL/>.
     109             :     */
     110             :     void    impl_createPropertyBrowser_throw( FmFormShell* _pFormShell );
     111             : };
     112             : #endif // INCLUDED_SVX_SOURCE_INC_FMPROPBRW_HXX
     113             : 
     114             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10