LCOV - code coverage report
Current view: top level - sc/source/ui/inc - reffact.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 21 0.0 %
Date: 2014-04-14 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             : #include "ChildWindowWrapper.hxx"
      25             : 
      26             : #include "dbfunc.hxx"
      27             : 
      28             : #include "sc.hrc"
      29             : 
      30             : #define DECL_WRAPPER_WITHID(Class) \
      31             :     class Class : public SfxChildWindow                                         \
      32             :     {                                                                           \
      33             :     public:                                                                     \
      34             :         Class( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );           \
      35             :         SFX_DECL_CHILDWINDOW_WITHID(Class);                                     \
      36             :     };
      37             : 
      38           0 : DECL_WRAPPER_WITHID(ScNameDlgWrapper)
      39           0 : DECL_WRAPPER_WITHID(ScNameDefDlgWrapper)
      40           0 : DECL_WRAPPER_WITHID(ScSolverDlgWrapper)
      41           0 : DECL_WRAPPER_WITHID(ScOptSolverDlgWrapper)
      42           0 : DECL_WRAPPER_WITHID(ScXMLSourceDlgWrapper)
      43           0 : DECL_WRAPPER_WITHID(ScPivotLayoutWrapper)
      44           0 : DECL_WRAPPER_WITHID(ScTabOpDlgWrapper)
      45           0 : DECL_WRAPPER_WITHID(ScFilterDlgWrapper)
      46           0 : DECL_WRAPPER_WITHID(ScSpecialFilterDlgWrapper)
      47           0 : DECL_WRAPPER_WITHID(ScDbNameDlgWrapper)
      48           0 : DECL_WRAPPER_WITHID(ScConsolidateDlgWrapper)
      49           0 : DECL_WRAPPER_WITHID(ScPrintAreasDlgWrapper)
      50           0 : DECL_WRAPPER_WITHID(ScColRowNameRangesDlgWrapper)
      51           0 : DECL_WRAPPER_WITHID(ScFormulaDlgWrapper)
      52           0 : DECL_WRAPPER_WITHID(ScHighlightChgDlgWrapper)
      53             : 
      54             : class ScDescriptiveStatisticsDialogWrapper :
      55             :     public ChildWindowWrapper<SID_DESCRIPTIVE_STATISTICS_DIALOG>
      56             : {
      57             : private:
      58             :     ScDescriptiveStatisticsDialogWrapper() SAL_DELETED_FUNCTION;
      59             : };
      60             : 
      61             : class ScSamplingDialogWrapper :
      62             :     public ChildWindowWrapper<SID_SAMPLING_DIALOG>
      63             : {
      64             : private:
      65             :     ScSamplingDialogWrapper() SAL_DELETED_FUNCTION;
      66             : };
      67             : 
      68             : class ScRandomNumberGeneratorDialogWrapper :
      69             :     public ChildWindowWrapper<SID_RANDOM_NUMBER_GENERATOR_DIALOG>
      70             : {
      71             : private:
      72             :     ScRandomNumberGeneratorDialogWrapper() SAL_DELETED_FUNCTION;
      73             : };
      74             : 
      75             : class ScAnalysisOfVarianceDialogWrapper :
      76             :     public ChildWindowWrapper<SID_ANALYSIS_OF_VARIANCE_DIALOG>
      77             : {
      78             : private:
      79             :     ScAnalysisOfVarianceDialogWrapper() SAL_DELETED_FUNCTION;
      80             : };
      81             : 
      82             : class ScCorrelationDialogWrapper :
      83             :     public ChildWindowWrapper<SID_CORRELATION_DIALOG>
      84             : {
      85             : private:
      86             :     ScCorrelationDialogWrapper() SAL_DELETED_FUNCTION;
      87             : };
      88             : 
      89             : class ScCovarianceDialogWrapper :
      90             :     public ChildWindowWrapper<SID_COVARIANCE_DIALOG>
      91             : {
      92             : private:
      93             :     ScCovarianceDialogWrapper() SAL_DELETED_FUNCTION;
      94             : };
      95             : 
      96             : class ScExponentialSmoothingDialogWrapper :
      97             :     public ChildWindowWrapper<SID_EXPONENTIAL_SMOOTHING_DIALOG>
      98             : {
      99             : private:
     100             :     ScExponentialSmoothingDialogWrapper() SAL_DELETED_FUNCTION;
     101             : };
     102             : 
     103             : class ScMovingAverageDialogWrapper :
     104             :     public ChildWindowWrapper<SID_MOVING_AVERAGE_DIALOG>
     105             : {
     106             : private:
     107             :     ScMovingAverageDialogWrapper() SAL_DELETED_FUNCTION;
     108             : };
     109             : 
     110             : class ScTTestDialogWrapper :
     111             :     public ChildWindowWrapper<SID_TTEST_DIALOG>
     112             : {
     113             : private:
     114             :     ScTTestDialogWrapper() SAL_DELETED_FUNCTION;
     115             : };
     116             : 
     117           0 : class ScAcceptChgDlgWrapper: public SfxChildWindow
     118             : {
     119             :     public:
     120             :         ScAcceptChgDlgWrapper(  Window*,
     121             :                                 sal_uInt16,
     122             :                                 SfxBindings*,
     123             :                                 SfxChildWinInfo* );
     124             : 
     125             :         SFX_DECL_CHILDWINDOW_WITHID(Class);
     126             : 
     127             :         virtual void ReInitDlg();
     128             : };
     129             : 
     130           0 : class ScSimpleRefDlgWrapper: public SfxChildWindow
     131             : {
     132             :     public:
     133             :         ScSimpleRefDlgWrapper(  Window*,
     134             :                                 sal_uInt16,
     135             :                                 SfxBindings*,
     136             :                                 SfxChildWinInfo* );
     137             : 
     138             :         SFX_DECL_CHILDWINDOW_WITHID(Class);
     139             : 
     140             :         static void     SetDefaultPosSize(Point aPos, Size aSize, bool bSet = true);
     141             :         void            SetRefString(const OUString& rStr);
     142             :         void            SetCloseHdl( const Link& rLink );
     143             :         void            SetUnoLinks( const Link& rDone, const Link& rAbort,
     144             :                                         const Link& rChange );
     145             :         void            SetFlags( bool bCloseOnButtonUp, bool bSingleCell, bool bMultiSelection );
     146             :         static void     SetAutoReOpen(bool bFlag);
     147             : 
     148             :         void            StartRefInput();
     149             : };
     150             : 
     151             : class SC_DLLPUBLIC ScValidityRefChildWin : public SfxChildWindow
     152             : {
     153             :     bool    m_bVisibleLock:1;
     154             :     bool    m_bFreeWindowLock:1;
     155             :     Window * m_pSavedWndParent;
     156             : public:
     157             :     ScValidityRefChildWin( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
     158             :     SFX_DECL_CHILDWINDOW_WITHID(ScValidityRefChildWin);
     159             :     virtual ~ScValidityRefChildWin();
     160           0 :     bool    LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; }
     161           0 :     bool    LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; }
     162           0 :     void                Hide() SAL_OVERRIDE { if( !m_bVisibleLock) SfxChildWindow::Hide(); }
     163           0 :     void                Show( sal_uInt16 nFlags ) SAL_OVERRIDE { if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); }
     164             : };
     165             : 
     166             : 
     167             : #endif // SC_REFFACT_HXX
     168             : 
     169             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10