LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - querycontainerwindow.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 20 0.0 %
Date: 2014-04-14 Functions: 0 21 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_DBACCESS_SOURCE_UI_INC_QUERYCONTAINERWINDOW_HXX
      21             : #define INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYCONTAINERWINDOW_HXX
      22             : 
      23             : #include <vcl/window.hxx>
      24             : #include <vcl/split.hxx>
      25             : #include <dbaccess/dataview.hxx>
      26             : #include <com/sun/star/frame/XFrame2.hpp>
      27             : #include "QueryViewSwitch.hxx"
      28             : #include <vcl/dockwin.hxx>
      29             : 
      30             : namespace dbaui
      31             : {
      32             : 
      33             :     // OBeamer
      34             :     // tempoaray class until the beamer is implemented
      35           0 :     class OBeamer : public DockingWindow
      36             :     {
      37             :     public:
      38           0 :         OBeamer(Window* _pParent) : DockingWindow(_pParent,0){}
      39             :     };
      40             : 
      41             :     // OQueryContainerWindow
      42             :     class OQueryContainerWindow : public ODataView
      43             :     {
      44             :         OQueryViewSwitch*   m_pViewSwitch;
      45             :         OBeamer*            m_pBeamer;
      46             :         Splitter*           m_pSplitter;
      47             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame2 > m_xBeamer;
      48             : 
      49             :         DECL_LINK( SplitHdl, void* );
      50             :     public:
      51             :         OQueryContainerWindow(Window* pParent, OQueryController& _rController,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&);
      52             :         virtual ~OQueryContainerWindow();
      53             : 
      54             :         virtual void Construct() SAL_OVERRIDE;
      55             : 
      56             :         virtual bool        PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      57             : 
      58             :         // show the beamer
      59             :         void    showPreview(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame);
      60             :             // called when the beamer has been disposed
      61             :         void    disposingPreview();
      62             : 
      63             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame2 >
      64           0 :                 getPreviewFrame() const { return m_xBeamer; }
      65             : 
      66           0 :         OQueryDesignView*   getDesignView() { return m_pViewSwitch->getDesignView(); }
      67             : 
      68           0 :         sal_Bool isCutAllowed()     { return m_pViewSwitch->isCutAllowed(); }
      69           0 :         sal_Bool isPasteAllowed()   { return m_pViewSwitch->isPasteAllowed(); }
      70           0 :         sal_Bool isCopyAllowed()    { return m_pViewSwitch->isCopyAllowed(); }
      71           0 :         void copy()                 { m_pViewSwitch->copy(); }
      72           0 :         void cut()                  { m_pViewSwitch->cut(); }
      73           0 :         void paste()                { m_pViewSwitch->paste(); }
      74             : 
      75           0 :         void clear()                                                        { m_pViewSwitch->clear(); }
      76           0 :         sal_Bool isSlotEnabled( sal_Int32 _nSlotId )                        { return m_pViewSwitch->isSlotEnabled( _nSlotId ); }
      77           0 :         void     setSlotEnabled( sal_Int32 _nSlotId, sal_Bool _bEnable )    { m_pViewSwitch->setSlotEnabled( _nSlotId, _bEnable ); }
      78           0 :         void     setNoneVisbleRow(sal_Int32 _nRows)                         { m_pViewSwitch->setNoneVisbleRow( _nRows); }
      79             : 
      80             :         void setReadOnly( sal_Bool _bReadOnly )                             { m_pViewSwitch->setReadOnly( _bReadOnly ); }
      81             : 
      82           0 :         sal_Bool checkStatement()                                           { return m_pViewSwitch->checkStatement( ); }
      83           0 :         OUString getStatement()                                      { return m_pViewSwitch->getStatement( ); }
      84           0 :         void setStatement( const OUString& _rsStatement )            { m_pViewSwitch->setStatement( _rsStatement ); }
      85             : 
      86           0 :         void    initialize() SAL_OVERRIDE                                                { m_pViewSwitch->initialize(); }
      87           0 :         void    SaveUIConfig()                                              { m_pViewSwitch->SaveUIConfig(); }
      88           0 :         bool    reset( ::dbtools::SQLExceptionInfo* _pErrorInfo )           { return m_pViewSwitch->reset( _pErrorInfo ); }
      89             : 
      90             :         bool    switchView( ::dbtools::SQLExceptionInfo* _pErrorInfo );
      91             :         void    forceInitialView();
      92             : 
      93             :         virtual void GetFocus() SAL_OVERRIDE;
      94             : 
      95             :     protected:
      96             :         // re-arrange the controls belonging to the document itself
      97             :         virtual void resizeAll( const Rectangle& _rPlayground ) SAL_OVERRIDE;
      98             : 
      99             :         // arrange dericed classes controls in the rectangle given
     100             :         virtual void resizeDocumentView(Rectangle& _rPlayground) SAL_OVERRIDE;
     101             :     };
     102             :     // end of temp classes
     103             : 
     104             : }   // namespace dbaui
     105             : 
     106             : #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYCONTAINERWINDOW_HXX
     107             : 
     108             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10