LCOV - code coverage report
Current view: top level - extensions/source/bibliography - bibcont.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 1 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_EXTENSIONS_SOURCE_BIBLIOGRAPHY_BIBCONT_HXX
      21             : #define INCLUDED_EXTENSIONS_SOURCE_BIBLIOGRAPHY_BIBCONT_HXX
      22             : 
      23             : #include <com/sun/star/frame/XFrame.hpp>
      24             : #include <vcl/splitwin.hxx>
      25             : #include <vcl/timer.hxx>
      26             : #include <vcl/idle.hxx>
      27             : #include "bibshortcuthandler.hxx"
      28             : 
      29             : #include "bibmod.hxx"
      30             : 
      31             : #define TOP_WINDOW                          1
      32             : #define BOTTOM_WINDOW                       2
      33             : 
      34             : class BibWindowContainer : public BibWindow     //Window
      35             : {
      36             :     private:
      37             :         // !BibShortCutHandler is also always a Window!
      38             :         BibShortCutHandler*     pChild;
      39             : 
      40             :     protected:
      41             :         virtual void            Resize() SAL_OVERRIDE;
      42             : 
      43             :     public:
      44             :         BibWindowContainer( vcl::Window* pParent, BibShortCutHandler* pChild, WinBits nStyle = WB_3DLOOK);
      45             :         virtual ~BibWindowContainer();
      46             :         virtual void            dispose() SAL_OVERRIDE;
      47             : 
      48             :         inline vcl::Window*     GetChild();
      49             : 
      50             :         virtual void            GetFocus() SAL_OVERRIDE;
      51             : 
      52             :         virtual bool            HandleShortCutKey( const KeyEvent& rKeyEvent ) SAL_OVERRIDE; // returns true, if key was handled
      53             : 
      54             :         using Window::GetChild;
      55             : };
      56             : 
      57           0 : inline vcl::Window* BibWindowContainer::GetChild()
      58             : {
      59           0 :     return pChild ? pChild->GetWindow() : NULL;
      60             : }
      61             : 
      62             : 
      63             : class BibBookContainer: public BibSplitWindow
      64             : {
      65             :     private:
      66             : 
      67             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >             xTopFrameRef;
      68             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >             xBottomFrameRef;
      69             : 
      70             :         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >              xTopPeerRef;
      71             :         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >              xBottomPeerRef;
      72             : 
      73             :         VclPtr<BibWindowContainer>     pTopWin;
      74             :         VclPtr<BibWindowContainer>     pBottomWin;
      75             :         HdlBibModul             pBibMod;
      76             :         Idle                    aIdle;
      77             : 
      78             :         DECL_LINK_TYPED( SplitHdl, Idle*, void );
      79             : 
      80             :     protected:
      81             : 
      82             :         virtual void            Split() SAL_OVERRIDE;
      83             : 
      84             :         virtual bool            PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      85             : 
      86             :     public:
      87             : 
      88             :         BibBookContainer(vcl::Window* pParent, WinBits nStyle = WB_3DLOOK );
      89             :         virtual ~BibBookContainer();
      90             :         virtual void dispose() SAL_OVERRIDE;
      91             : 
      92             :         inline BibWindow*       GetTopWin() {return pTopWin;}
      93             :         inline BibWindow*       GetBottomWin() {return pBottomWin;}
      94             : 
      95             :         // !BibShortCutHandler is also always a Window!
      96             :         void                    createTopFrame( BibShortCutHandler* pWin );
      97             : 
      98             :         void                    createBottomFrame( BibShortCutHandler* pWin );
      99             : 
     100             :         virtual void            GetFocus() SAL_OVERRIDE;
     101             : 
     102             :         virtual bool        HandleShortCutKey( const KeyEvent& rKeyEvent ) SAL_OVERRIDE; // returns true, if key was handled
     103             : };
     104             : 
     105             : #endif
     106             : 
     107             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11