LCOV - code coverage report
Current view: top level - sc/source/ui/inc - tabopdlg.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 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 SC_TABOPDLG_HXX
      21             : #define SC_TABOPDLG_HXX
      22             : 
      23             : #include <vcl/fixed.hxx>
      24             : #include <vcl/group.hxx>
      25             : #include "global.hxx"
      26             : #include "address.hxx"
      27             : #include "anyrefdg.hxx"
      28             : 
      29             : 
      30             : enum ScTabOpErr
      31             : {
      32             :     TABOPERR_NOFORMULA = 1,
      33             :     TABOPERR_NOCOLROW,
      34             :     TABOPERR_WRONGFORMULA,
      35             :     TABOPERR_WRONGROW,
      36             :     TABOPERR_NOCOLFORMULA,
      37             :     TABOPERR_WRONGCOL,
      38             :     TABOPERR_NOROWFORMULA
      39             : };
      40             : 
      41             : class ScTabOpDlg : public ScAnyRefDlg
      42             : {
      43             : public:
      44             :                     ScTabOpDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
      45             :                                 ScDocument*     pDocument,
      46             :                                 const ScRefAddress& rCursorPos );
      47             :                     virtual ~ScTabOpDlg();
      48             : 
      49             :     virtual void    SetReference( const ScRange& rRef, ScDocument* pDoc ) SAL_OVERRIDE;
      50           0 :     virtual bool    IsRefInputMode() const SAL_OVERRIDE { return true; }
      51             :     virtual void    SetActive() SAL_OVERRIDE;
      52             : 
      53             :     virtual bool    Close() SAL_OVERRIDE;
      54             : 
      55             : private:
      56             :     FixedText* m_pFtFormulaRange;
      57             :     formula::RefEdit* m_pEdFormulaRange;
      58             :     formula::RefButton* m_pRBFormulaRange;
      59             : 
      60             :     FixedText* m_pFtRowCell;
      61             :     formula::RefEdit* m_pEdRowCell;
      62             :     formula::RefButton* m_pRBRowCell;
      63             : 
      64             :     FixedText* m_pFtColCell;
      65             :     formula::RefEdit* m_pEdColCell;
      66             :     formula::RefButton* m_pRBColCell;
      67             : 
      68             :     OKButton*       m_pBtnOk;
      69             :     CancelButton*   m_pBtnCancel;
      70             : 
      71             :     ScRefAddress    theFormulaCell;
      72             :     ScRefAddress    theFormulaEnd;
      73             :     ScRefAddress    theRowCell;
      74             :     ScRefAddress    theColCell;
      75             : 
      76             :     ScDocument*         pDoc;
      77             :     const SCTAB         nCurTab;
      78             :     formula::RefEdit*   pEdActive;
      79             :     bool                bDlgLostFocus;
      80             :     const OUString      errMsgNoFormula;
      81             :     const OUString      errMsgNoColRow;
      82             :     const OUString      errMsgWrongFormula;
      83             :     const OUString      errMsgWrongRowCol;
      84             :     const OUString      errMsgNoColFormula;
      85             :     const OUString      errMsgNoRowFormula;
      86             : 
      87             :     void    Init();
      88             :     void    RaiseError( ScTabOpErr eError );
      89             : 
      90             :     DECL_LINK( BtnHdl, PushButton* );
      91             :     DECL_LINK( GetFocusHdl, Control* );
      92             :     DECL_LINK( LoseFocusHdl, void* );
      93             : };
      94             : 
      95             : #endif // SC_TABOPDLG_HXX
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10