LCOV - code coverage report
Current view: top level - svx/inc/sdr/contact - objectcontactofpageview.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 1 100.0 %
Date: 2015-06-13 12:38:46 Functions: 1 1 100.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_OBJECTCONTACTOFPAGEVIEW_HXX
      21             : #define INCLUDED_SVX_INC_SDR_CONTACT_OBJECTCONTACTOFPAGEVIEW_HXX
      22             : 
      23             : #include <svx/sdr/contact/objectcontact.hxx>
      24             : #include <vcl/idle.hxx>
      25             : 
      26             : class SdrPageWindow;
      27             : class SdrPage;
      28             : 
      29             : namespace sdr
      30             : {
      31             :     namespace contact
      32             :     {
      33             :         class ObjectContactOfPageView : public ObjectContact, public Idle
      34             :         {
      35             :         protected:
      36             :             // the owner of this ObjectContactOfPageView. Set from constructor and not
      37             :             // to be changed in any way.
      38             :             SdrPageWindow&                                      mrPageWindow;
      39             : 
      40             :             // Process the whole displaying, the real version
      41             :             void DoProcessDisplay(DisplayInfo& rDisplayInfo);
      42             : 
      43             :         public:
      44             :             // access to SdrPageWindow
      45      512883 :             SdrPageWindow& GetPageWindow() const { return mrPageWindow; }
      46             : 
      47             :             // access to SdrPage of PageView
      48             :             SdrPage* GetSdrPage() const;
      49             : 
      50             :             // basic constructor, used from SdrPageView.
      51             :             explicit ObjectContactOfPageView(SdrPageWindow& rPageWindow);
      52             :             virtual ~ObjectContactOfPageView();
      53             : 
      54             :             // LazyInvalidate request. This is used from the VOCs to mark that they
      55             :             // got invalidated by an ActionCanged() call. An active view needs to remember
      56             :             // this and take action on it. Default implementation directly calls back
      57             :             // triggerLazyInvalidate() which promptly handles the request
      58             :             virtual void setLazyInvalidate(ViewObjectContact& rVOC) SAL_OVERRIDE;
      59             : 
      60             :             // call this to support evtl. preparations for repaint
      61             :             virtual void PrepareProcessDisplay() SAL_OVERRIDE;
      62             : 
      63             :             // From baseclass Timer, the timeout call triggered by te LazyInvalidate mechanism
      64             :             virtual void Invoke() SAL_OVERRIDE;
      65             : 
      66             :             // Process the whole displaying
      67             :             virtual void ProcessDisplay(DisplayInfo& rDisplayInfo) SAL_OVERRIDE;
      68             : 
      69             :             // test if visualizing of entered groups is switched on at all
      70             :             virtual bool DoVisualizeEnteredGroup() const SAL_OVERRIDE;
      71             : 
      72             :             // get active group's (the entered group) ViewContact
      73             :             virtual const ViewContact* getActiveViewContact() const SAL_OVERRIDE;
      74             : 
      75             :             // Invalidate given rectangle at the window/output which is represented by
      76             :             // this ObjectContact.
      77             :             virtual void InvalidatePartOfView(const basegfx::B2DRange& rRange) const SAL_OVERRIDE;
      78             : 
      79             :             // Get info if given Rectangle is visible in this view
      80             :             virtual bool IsAreaVisible(const basegfx::B2DRange& rRange) const SAL_OVERRIDE;
      81             : 
      82             :             // Get info about the need to visualize GluePoints. The default
      83             :             // is that it is not necessary.
      84             :             virtual bool AreGluePointsVisible() const SAL_OVERRIDE;
      85             : 
      86             :             // check if text animation is allowed.
      87             :             virtual bool IsTextAnimationAllowed() const SAL_OVERRIDE;
      88             : 
      89             :             // check if graphic animation is allowed.
      90             :             virtual bool IsGraphicAnimationAllowed() const SAL_OVERRIDE;
      91             : 
      92             :             // check if asynchronious graphis loading is allowed. Default is sal_False.
      93             :             virtual bool IsAsynchronGraphicsLoadingAllowed() const SAL_OVERRIDE;
      94             : 
      95             :             // check if buffering of MasterPages is allowed. Default is sal_False.
      96             :             virtual bool IsMasterPageBufferingAllowed() const SAL_OVERRIDE;
      97             : 
      98             :             // print? Default is false
      99             :             virtual bool isOutputToPrinter() const SAL_OVERRIDE;
     100             : 
     101             :             // window? Default is true
     102             :             virtual bool isOutputToWindow() const SAL_OVERRIDE;
     103             : 
     104             :             // VirtualDevice? Default is false
     105             :             virtual bool isOutputToVirtualDevice() const SAL_OVERRIDE;
     106             : 
     107             :             // recording MetaFile? Default is false
     108             :             virtual bool isOutputToRecordingMetaFile() const SAL_OVERRIDE;
     109             : 
     110             :             // pdf export? Default is false
     111             :             virtual bool isOutputToPDFFile() const SAL_OVERRIDE;
     112             : 
     113             :             // gray display mode
     114             :             virtual bool isDrawModeGray() const SAL_OVERRIDE;
     115             : 
     116             :             // gray display mode
     117             :             virtual bool isDrawModeBlackWhite() const SAL_OVERRIDE;
     118             : 
     119             :             // high contrast display mode
     120             :             virtual bool isDrawModeHighContrast() const SAL_OVERRIDE;
     121             : 
     122             :             // override access to SdrPageView
     123             :             virtual SdrPageView* TryToGetSdrPageView() const SAL_OVERRIDE;
     124             : 
     125             :             // access to OutputDevice. May return 0L like the default implementations do. Override as needed.
     126             :             virtual OutputDevice* TryToGetOutputDevice() const SAL_OVERRIDE;
     127             : 
     128             :             /** sets all UNO controls which are associated with this ObjectContact to
     129             :                 design or alive mode.
     130             :             */
     131             :             void    SetUNOControlsDesignMode( bool _bDesignMode ) const;
     132             :         };
     133             :     } // end of namespace contact
     134             : } // end of namespace sdr
     135             : 
     136             : #endif // INCLUDED_SVX_INC_SDR_CONTACT_OBJECTCONTACTOFPAGEVIEW_HXX
     137             : 
     138             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11