LCOV - code coverage report
Current view: top level - svx/inc/sdr/contact - viewobjectcontactofunocontrol.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 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_SVX_INC_SDR_CONTACT_VIEWOBJECTCONTACTOFUNOCONTROL_HXX
      21             : #define INCLUDED_SVX_INC_SDR_CONTACT_VIEWOBJECTCONTACTOFUNOCONTROL_HXX
      22             : 
      23             : #include <svx/sdr/contact/viewobjectcontactofsdrobj.hxx>
      24             : 
      25             : #include <com/sun/star/uno/Reference.hxx>
      26             : #include <rtl/ref.hxx>
      27             : #include <svx/svxdllapi.h>
      28             : 
      29             : class OutputDevice;
      30             : namespace vcl { class Window; }
      31             : class SdrUnoObj;
      32             : namespace com { namespace sun { namespace star {
      33             :     namespace awt {
      34             :         class XControl;
      35             :         class XControlContainer;
      36             :     }
      37             : } } }
      38             : 
      39             : 
      40             : namespace sdr { namespace contact {
      41             : 
      42             : 
      43             :     class ViewContactOfUnoControl;
      44             :     class ObjectContactOfPageView;
      45             : 
      46             :     //= ViewObjectContactOfUnoControl
      47             : 
      48             :     class ViewObjectContactOfUnoControl_Impl;
      49             :     class SVX_DLLPRIVATE ViewObjectContactOfUnoControl : public ViewObjectContactOfSdrObj
      50             :     {
      51             :     protected:
      52             :         ::rtl::Reference< ViewObjectContactOfUnoControl_Impl >    m_pImpl;
      53             : 
      54             :     public:
      55             :         ViewObjectContactOfUnoControl( ObjectContact& _rObjectContact, ViewContactOfUnoControl& _rViewContact );
      56             : 
      57             :         /// returns the ->XControl instance belonging to the instance, creates it if necessary
      58             :         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >
      59             :                 getControl();
      60             : 
      61             :         /** retrieves a temporary XControl instance, whose parent is the given device
      62             :             @seealso SdrUnoObj::GetTemporaryControlForWindow
      63             :         */
      64             :         static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >
      65             :             getTemporaryControlForWindow(
      66             :                 const vcl::Window& _rWindow,
      67             :                 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >& _inout_ControlContainer,
      68             :                 const SdrUnoObj& _rUnoObject
      69             :             );
      70             : 
      71             :         /// ensures that the control belonging to this instances has a given visibility
      72             :         void    ensureControlVisibility( bool _bVisible ) const;
      73             : 
      74             :         /** sets the design/alive mode of the control
      75             :         */
      76             :         void    setControlDesignMode( bool _bDesignMode ) const;
      77             : 
      78             :         /** callback from impl class to react on changes of properties form the XControlModel
      79             :         */
      80             :         void propertyChange();
      81             : 
      82             :         /** React on changes of the object of this ViewContact
      83             :         */
      84             :         virtual void ActionChanged() SAL_OVERRIDE;
      85             : 
      86             :         /** to be called when any aspect of the control which requires view updates changed
      87             :         */
      88           0 :         struct ImplAccess { friend class ViewObjectContactOfUnoControl_Impl; friend class ViewObjectContactOfUnoControl; private: ImplAccess() { } };
      89           0 :         void onControlChangedOrModified( ImplAccess ) { impl_onControlChangedOrModified(); }
      90             : 
      91             :     protected:
      92             :         virtual ~ViewObjectContactOfUnoControl();
      93             : 
      94             :         // support for Primitive2D
      95             :         virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const SAL_OVERRIDE;
      96             : 
      97             :         // visibility check
      98             :         virtual bool isPrimitiveVisible( const DisplayInfo& _rDisplayInfo ) const SAL_OVERRIDE;
      99             :         /// to be called when any aspect of the control which requires view updates changed
     100             :         void impl_onControlChangedOrModified();
     101             : 
     102             :     private:
     103             :         ViewObjectContactOfUnoControl( const ViewObjectContactOfUnoControl& ) SAL_DELETED_FUNCTION;
     104             :         ViewObjectContactOfUnoControl& operator=( const ViewObjectContactOfUnoControl& ) SAL_DELETED_FUNCTION;
     105             :     };
     106             : 
     107             :     class SVX_DLLPRIVATE UnoControlPrintOrPreviewContact : public ViewObjectContactOfUnoControl
     108             :     {
     109             :     public:
     110             :         UnoControlPrintOrPreviewContact( ObjectContactOfPageView& _rObjectContact, ViewContactOfUnoControl& _rViewContact );
     111             :         virtual ~UnoControlPrintOrPreviewContact();
     112             : 
     113             :     private:
     114             :         UnoControlPrintOrPreviewContact( const UnoControlPrintOrPreviewContact& ) SAL_DELETED_FUNCTION;
     115             :         UnoControlPrintOrPreviewContact& operator=( const UnoControlPrintOrPreviewContact& ) SAL_DELETED_FUNCTION;
     116             : 
     117             :         virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo ) const SAL_OVERRIDE;
     118             :     };
     119             : 
     120             : 
     121             : } } // namespace sdr::contact
     122             : 
     123             : 
     124             : #endif // INCLUDED_SVX_INC_SDR_CONTACT_VIEWOBJECTCONTACTOFUNOCONTROL_HXX
     125             : 
     126             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11