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

Generated by: LCOV version 1.10