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

Generated by: LCOV version 1.10