LCOV - code coverage report
Current view: top level - sc/source/ui/inc - prevwsh.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 4 0.0 %
Date: 2014-04-14 Functions: 0 4 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 SC_PREVWSH_HXX
      21             : #define SC_PREVWSH_HXX
      22             : 
      23             : class ScrollBar;
      24             : 
      25             : #include "address.hxx"
      26             : #include <sfx2/viewfac.hxx>
      27             : #include <sfx2/viewsh.hxx>
      28             : #include <sfx2/zoomitem.hxx>
      29             : 
      30             : #include "shellids.hxx"
      31             : 
      32             : class ScDocument;
      33             : class ScDocShell;
      34             : class ScPreview;
      35             : struct ScHeaderFieldData;
      36             : class ScPreviewLocationData;
      37             : class CommandEvent;
      38             : 
      39             : 
      40             : class ScPreviewShell: public SfxViewShell
      41             : {
      42             :     ScDocShell*     pDocShell;
      43             : 
      44             :     SystemWindow*   mpFrameWindow;
      45             :     ScPreview*      pPreview;               // Output window
      46             :     ScrollBar*      pHorScroll;
      47             :     ScrollBar*      pVerScroll;
      48             :     Window*         pCorner;
      49             : 
      50             :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aSourceData;  // ViewData
      51             :     sal_uInt8           nSourceDesignMode;      // form design mode from TabView
      52             :     SvxZoomType     eZoom;
      53             :     long            nMaxVertPos;
      54             : 
      55             :     SfxBroadcaster* pAccessibilityBroadcaster;
      56             :     bool            GetPageSize( Size& aPageSize );
      57             : private:
      58             :     void            Construct( Window* pParent );
      59             :     DECL_LINK(ScrollHandler, ScrollBar* );
      60             :     DECL_LINK(CloseHdl, SystemWindow*);
      61             :     void            DoScroll( sal_uInt16 nMode );
      62             :     void ExitPreview();
      63             : 
      64             : protected:
      65             :     virtual void    Activate(bool bMDI) SAL_OVERRIDE;
      66             :     virtual void    Deactivate(bool bMDI) SAL_OVERRIDE;
      67             :     virtual void    AdjustPosSizePixel( const Point &rPos, const Size &rSize ) SAL_OVERRIDE;
      68             : 
      69             :     virtual void    InnerResizePixel( const Point &rOfs, const Size &rSize ) SAL_OVERRIDE;
      70             :     virtual void    OuterResizePixel( const Point &rOfs, const Size &rSize ) SAL_OVERRIDE;
      71             : 
      72             :     virtual OUString  GetDescription() const;
      73             : 
      74             :     virtual void    WriteUserData(OUString &, bool bBrowse = false) SAL_OVERRIDE;
      75             :     virtual void    ReadUserData(const OUString &, bool bBrowse = false) SAL_OVERRIDE;
      76             : 
      77             :     virtual void    WriteUserDataSequence (::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, bool bBrowse = false ) SAL_OVERRIDE;
      78             :     virtual void    ReadUserDataSequence (const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, bool bBrowse = false ) SAL_OVERRIDE;
      79             : 
      80             : public:
      81             :                     TYPEINFO_VISIBILITY( SC_DLLPUBLIC );
      82             : 
      83           0 :                     SFX_DECL_INTERFACE(SCID_PREVIEW_SHELL)
      84           0 :                     SFX_DECL_VIEWFACTORY(ScPreviewShell);
      85             : 
      86             :                     ScPreviewShell( SfxViewFrame*           pViewFrame,
      87             :                                     SfxViewShell*           pOldSh );
      88             : 
      89             :     virtual         ~ScPreviewShell();
      90             : 
      91             :     void            InitStartTable(SCTAB nTab);
      92             : 
      93             :     void            UpdateScrollBars();
      94             :     void            UpdateNeededScrollBars(bool bFromZoom = false);
      95             :     bool            ScrollCommand( const CommandEvent& rCEvt );
      96             : 
      97             :     void            Execute( SfxRequest& rReq );
      98             :     void            GetState( SfxItemSet& rSet );
      99             : 
     100             :     void            FillFieldData( ScHeaderFieldData& rData );
     101             : 
     102             :     ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >
     103             :                     GetSourceData() const       { return aSourceData; }
     104           0 :     sal_uInt8           GetSourceDesignMode() const { return nSourceDesignMode; }
     105             : 
     106             :     virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
     107             : 
     108             :     virtual SfxPrinter*     GetPrinter( bool bCreate = false ) SAL_OVERRIDE;
     109             :     virtual sal_uInt16      SetPrinter( SfxPrinter* pNewPrinter, sal_uInt16 nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false ) SAL_OVERRIDE;
     110             :     virtual bool            HasPrintOptionsPage() const SAL_OVERRIDE;
     111             :     virtual SfxTabPage*     CreatePrintOptionsPage( Window *pParent, const SfxItemSet &rOptions ) SAL_OVERRIDE;
     112             : 
     113             :     void    AddAccessibilityObject( SfxListener& rObject );
     114             :     void    RemoveAccessibilityObject( SfxListener& rObject );
     115             :     void    BroadcastAccessibility( const SfxHint &rHint );
     116             :     bool    HasAccessibilityObjects();
     117             : 
     118             :     const ScPreviewLocationData& GetLocationData();
     119             :     ScDocument*     GetDocument();
     120           0 :     SC_DLLPUBLIC ScPreview*      GetPreview() { return pPreview; }
     121             : };
     122             : 
     123             : #endif
     124             : 
     125             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10