LCOV - code coverage report
Current view: top level - libreoffice/sc/source/ui/inc - tabopdlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 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             : //------------------------------------------------------------------------
      31             : 
      32             : enum ScTabOpErr
      33             : {
      34             :     TABOPERR_NOFORMULA = 1,
      35             :     TABOPERR_NOCOLROW,
      36             :     TABOPERR_WRONGFORMULA,
      37             :     TABOPERR_WRONGROW,
      38             :     TABOPERR_NOCOLFORMULA,
      39             :     TABOPERR_WRONGCOL,
      40             :     TABOPERR_NOROWFORMULA
      41             : };
      42             : 
      43             : //========================================================================
      44             : 
      45             : class ScTabOpDlg : public ScAnyRefDlg
      46             : {
      47             : public:
      48             :                     ScTabOpDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
      49             :                                 ScDocument*     pDocument,
      50             :                                 const ScRefAddress& rCursorPos );
      51             :                     ~ScTabOpDlg();
      52             : 
      53             :     virtual void    SetReference( const ScRange& rRef, ScDocument* pDoc );
      54           0 :     virtual sal_Bool    IsRefInputMode() const { return sal_True; }
      55             :     virtual void    SetActive();
      56             : 
      57             :     virtual sal_Bool    Close();
      58             : 
      59             : private:
      60             :     FixedLine       aFlVariables;
      61             :     FixedText       aFtFormulaRange;
      62             :     formula::RefEdit        aEdFormulaRange;
      63             :     formula::RefButton      aRBFormulaRange;
      64             : 
      65             :     FixedText       aFtRowCell;
      66             :     formula::RefEdit        aEdRowCell;
      67             :     formula::RefButton      aRBRowCell;
      68             : 
      69             :     FixedText       aFtColCell;
      70             :     formula::RefEdit        aEdColCell;
      71             :     formula::RefButton      aRBColCell;
      72             : 
      73             :     OKButton        aBtnOk;
      74             :     CancelButton    aBtnCancel;
      75             :     HelpButton      aBtnHelp;
      76             : 
      77             :     ScRefAddress    theFormulaCell;
      78             :     ScRefAddress    theFormulaEnd;
      79             :     ScRefAddress    theRowCell;
      80             :     ScRefAddress    theColCell;
      81             : 
      82             :     ScDocument*     pDoc;
      83             :     const SCTAB     nCurTab;
      84             :     formula::RefEdit*       pEdActive;
      85             :     sal_Bool            bDlgLostFocus;
      86             :     const String    errMsgNoFormula;
      87             :     const String    errMsgNoColRow;
      88             :     const String    errMsgWrongFormula;
      89             :     const String    errMsgWrongRowCol;
      90             :     const String    errMsgNoColFormula;
      91             :     const String    errMsgNoRowFormula;
      92             : 
      93             : #ifdef _TABOPDLG_CXX
      94             :     void    Init();
      95             :     void    RaiseError( ScTabOpErr eError );
      96             : 
      97             :     DECL_LINK( BtnHdl, PushButton* );
      98             :     DECL_LINK( GetFocusHdl, Control* );
      99             :     DECL_LINK( LoseFocusHdl, void* );
     100             : #endif  // _TABOPDLG_CXX
     101             : };
     102             : 
     103             : #endif // SC_TABOPDLG_HXX
     104             : 
     105             : 
     106             : 
     107             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10