LCOV - code coverage report
Current view: top level - include/sfx2 - ipclient.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 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_SFX2_IPCLIENT_HXX
      20             : #define INCLUDED_SFX2_IPCLIENT_HXX
      21             : 
      22             : #include <sal/config.h>
      23             : #include <sfx2/dllapi.h>
      24             : #include <sal/types.h>
      25             : #include <com/sun/star/uno/Reference.h>
      26             : #include <com/sun/star/embed/Aspects.hpp>
      27             : #include <com/sun/star/embed/XEmbeddedObject.hpp>
      28             : 
      29             : #include <tools/gen.hxx>
      30             : 
      31             : #include <sfx2/objsh.hxx>
      32             : 
      33             : class SfxInPlaceClient_Impl;
      34             : class SfxViewShell;
      35             : class SfxObjectShell;
      36             : class Window;
      37             : class Fraction;
      38             : 
      39             : 
      40             : 
      41             : class SFX2_DLLPUBLIC SfxInPlaceClient
      42             : {
      43             : friend class SfxInPlaceClient_Impl;
      44             : 
      45             :     SfxInPlaceClient_Impl*  m_pImp;
      46             :     SfxViewShell*           m_pViewSh;
      47             :     Window*                 m_pEditWin;
      48             : 
      49             :     // called after the requested new object area was negotiated
      50             :     SAL_DLLPRIVATE virtual void ObjectAreaChanged();
      51             : 
      52             :     // an active object was resized by the user and now asks for the new space
      53             :     SAL_DLLPRIVATE virtual void RequestNewObjectArea( Rectangle& );
      54             : 
      55             :     // notify the client that an active object has changed its VisualAreaSize
      56             :     SAL_DLLPRIVATE virtual void ViewChanged();
      57             : 
      58             :     // an object wants to become visible
      59             :     SAL_DLLPRIVATE virtual void MakeVisible();
      60             : 
      61             : public:
      62             :                         SfxInPlaceClient( SfxViewShell* pViewShell, Window* pDraw, sal_Int64 nAspect = com::sun::star::embed::Aspects::MSOLE_CONTENT );
      63             :     virtual             ~SfxInPlaceClient();
      64             : 
      65           0 :     SfxViewShell*       GetViewShell() const { return m_pViewSh; }
      66           0 :     Window*             GetEditWin() const { return m_pEditWin; }
      67             :     com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > GetObject() const;
      68             :     void                SetObject( const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& rObject );
      69             :     void                SetObjectState( sal_Int32 );
      70             :     Size                GetObjectVisAreaSize() const;
      71             :     bool                IsObjectUIActive() const;
      72             :     bool                IsObjectInPlaceActive() const;
      73             :     void                DeactivateObject();
      74             :     bool                SetObjArea( const Rectangle & );
      75             :     Rectangle           GetObjArea() const;
      76             :     Rectangle           GetScaledObjArea() const;
      77             :     void                SetSizeScale( const Fraction & rScaleWidth, const Fraction & rScaleHeight );
      78             :     bool                SetObjAreaAndScale( const Rectangle&, const Fraction&, const Fraction& );
      79             :     const Fraction&     GetScaleWidth() const;
      80             :     const Fraction&     GetScaleHeight() const;
      81             :     void                Invalidate();
      82             :     static SfxInPlaceClient* GetClient( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject );
      83             :     sal_Int64           GetAspect() const;
      84             :     sal_Int64           GetObjectMiscStatus() const;
      85             :     ErrCode             DoVerb( long nVerb );
      86             :     void                VisAreaChanged();
      87             :     void                ResetObject();
      88             :     bool                IsUIActive();
      89             : 
      90             :     virtual void        FormatChanged(); // object format was changed (used for StarMath formulas aligning)
      91             : };
      92             : 
      93             : #endif
      94             : 
      95             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10