LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sc/source/ui/inc - reffact.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 21 0.0 %
Date: 2013-07-09 Functions: 0 38 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_REFFACT_HXX
      21             : #define SC_REFFACT_HXX
      22             : 
      23             : #include <sfx2/childwin.hxx>
      24             : 
      25             : #include "dbfunc.hxx"
      26             : 
      27             : #define DECL_WRAPPER_WITHID(Class) \
      28             :     class Class : public SfxChildWindow                                         \
      29             :     {                                                                           \
      30             :     public:                                                                     \
      31             :         Class( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );           \
      32             :         SFX_DECL_CHILDWINDOW_WITHID(Class);                                     \
      33             :     };
      34             : 
      35             : //==================================================================
      36             : 
      37           0 : DECL_WRAPPER_WITHID(ScNameDlgWrapper)
      38           0 : DECL_WRAPPER_WITHID(ScNameDefDlgWrapper)
      39           0 : DECL_WRAPPER_WITHID(ScSolverDlgWrapper)
      40           0 : DECL_WRAPPER_WITHID(ScOptSolverDlgWrapper)
      41           0 : DECL_WRAPPER_WITHID(ScXMLSourceDlgWrapper)
      42           0 : DECL_WRAPPER_WITHID(ScPivotLayoutWrapper)
      43           0 : DECL_WRAPPER_WITHID(ScTabOpDlgWrapper)
      44           0 : DECL_WRAPPER_WITHID(ScFilterDlgWrapper)
      45           0 : DECL_WRAPPER_WITHID(ScSpecialFilterDlgWrapper)
      46           0 : DECL_WRAPPER_WITHID(ScDbNameDlgWrapper)
      47           0 : DECL_WRAPPER_WITHID(ScConsolidateDlgWrapper)
      48           0 : DECL_WRAPPER_WITHID(ScPrintAreasDlgWrapper)
      49           0 : DECL_WRAPPER_WITHID(ScColRowNameRangesDlgWrapper)
      50           0 : DECL_WRAPPER_WITHID(ScFormulaDlgWrapper)
      51           0 : DECL_WRAPPER_WITHID(ScHighlightChgDlgWrapper)
      52             : 
      53           0 : class ScAcceptChgDlgWrapper: public SfxChildWindow
      54             : {
      55             :     public:
      56             :         ScAcceptChgDlgWrapper(  Window*,
      57             :                                 sal_uInt16,
      58             :                                 SfxBindings*,
      59             :                                 SfxChildWinInfo* );
      60             : 
      61             :         SFX_DECL_CHILDWINDOW_WITHID(Class);
      62             : 
      63             :         virtual void ReInitDlg();
      64             : };
      65             : 
      66           0 : class ScSimpleRefDlgWrapper: public SfxChildWindow
      67             : {
      68             :     public:
      69             :         ScSimpleRefDlgWrapper(  Window*,
      70             :                                 sal_uInt16,
      71             :                                 SfxBindings*,
      72             :                                 SfxChildWinInfo* );
      73             : 
      74             :         SFX_DECL_CHILDWINDOW_WITHID(Class);
      75             : 
      76             :         static void     SetDefaultPosSize(Point aPos, Size aSize, sal_Bool bSet=sal_True);
      77             :         virtual String  GetRefString();
      78             :         virtual void    SetRefString(const String& rStr);
      79             :         void            SetCloseHdl( const Link& rLink );
      80             :         void            SetUnoLinks( const Link& rDone, const Link& rAbort,
      81             :                                         const Link& rChange );
      82             :         void            SetFlags( sal_Bool bCloseOnButtonUp, sal_Bool bSingleCell, sal_Bool bMultiSelection );
      83             :         static void     SetAutoReOpen(sal_Bool bFlag);
      84             : 
      85             :         void            StartRefInput();
      86             : };
      87             : 
      88             : class SC_DLLPUBLIC ScValidityRefChildWin : public SfxChildWindow
      89             : {
      90             :     bool    m_bVisibleLock:1;
      91             :     bool    m_bFreeWindowLock:1;
      92             :     Window * m_pSavedWndParent;
      93             : public:
      94             :     ScValidityRefChildWin( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
      95             :     SFX_DECL_CHILDWINDOW_WITHID(ScValidityRefChildWin);
      96             :     ~ScValidityRefChildWin();
      97           0 :     bool    LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; }
      98           0 :     bool    LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; }
      99           0 :     void                Hide(){ if( !m_bVisibleLock) SfxChildWindow::Hide(); }
     100           0 :     void                Show( sal_uInt16 nFlags ){ if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); }
     101             : };
     102             : 
     103             : //==================================================================
     104             : 
     105             : 
     106             : #endif // SC_REFFACT_HXX
     107             : 
     108             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10