LCOV - code coverage report
Current view: top level - svx/inc/sdr/contact - viewobjectcontactofunocontrol.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 2 0.0 %
Date: 2014-11-03 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();                                                    // never implemented
     104             :         ViewObjectContactOfUnoControl( const ViewObjectContactOfUnoControl& );              // never implemented
     105             :         ViewObjectContactOfUnoControl& operator=( const ViewObjectContactOfUnoControl& );   // never implemented
     106             :     };
     107             : 
     108             :     class SVX_DLLPRIVATE UnoControlPrintOrPreviewContact : public ViewObjectContactOfUnoControl
     109             :     {
     110             :     public:
     111             :         UnoControlPrintOrPreviewContact( ObjectContactOfPageView& _rObjectContact, ViewContactOfUnoControl& _rViewContact );
     112             :         virtual ~UnoControlPrintOrPreviewContact();
     113             : 
     114             :     private:
     115             :         UnoControlPrintOrPreviewContact();                                                 // never implemented
     116             :         UnoControlPrintOrPreviewContact( const UnoControlPrintOrPreviewContact& );            // never implemented
     117             :         UnoControlPrintOrPreviewContact& operator=( const UnoControlPrintOrPreviewContact& ); // never implemented
     118             : 
     119             :         virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo ) const SAL_OVERRIDE;
     120             :     };
     121             : 
     122             : 
     123             : } } // namespace sdr::contact
     124             : 
     125             : 
     126             : #endif // INCLUDED_SVX_INC_SDR_CONTACT_VIEWOBJECTCONTACTOFUNOCONTROL_HXX
     127             : 
     128             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10