LCOV - code coverage report
Current view: top level - sc/source/ui/inc - filldlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 7 0.0 %
Date: 2012-08-25 Functions: 0 7 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef SC_FILLDLG_HXX
      30                 :            : #define SC_FILLDLG_HXX
      31                 :            : 
      32                 :            : #include <vcl/dialog.hxx>
      33                 :            : #include <vcl/button.hxx>
      34                 :            : #include <vcl/fixed.hxx>
      35                 :            : #include <vcl/edit.hxx>
      36                 :            : #include "global.hxx"
      37                 :            : 
      38                 :            : class ScDocument;
      39                 :            : 
      40                 :            : //----------------------------------------------------------------------------
      41                 :            : 
      42                 :            : #include "scui_def.hxx"
      43                 :            : //============================================================================
      44                 :            : 
      45                 :            : class ScFillSeriesDlg : public ModalDialog
      46                 :            : {
      47                 :            : public:
      48                 :            :             ScFillSeriesDlg( Window*        pParent,
      49                 :            :                              ScDocument&    rDocument,
      50                 :            :                              FillDir        eFillDir,
      51                 :            :                              FillCmd        eFillCmd,
      52                 :            :                              FillDateCmd    eFillDateCmd,
      53                 :            :                              const rtl::OUString& aStartStr,
      54                 :            :                              double         fStep,
      55                 :            :                              double         fMax,
      56                 :            :                              sal_uInt16     nPossDir );
      57                 :            :             ~ScFillSeriesDlg();
      58                 :            : 
      59                 :          0 :     FillDir     GetFillDir() const          { return theFillDir; }
      60                 :          0 :     FillCmd     GetFillCmd() const          { return theFillCmd; }
      61                 :          0 :     FillDateCmd GetFillDateCmd() const      { return theFillDateCmd; }
      62                 :          0 :     double      GetStart() const            { return fStartVal; }
      63                 :          0 :     double      GetStep() const             { return fIncrement; }
      64                 :          0 :     double      GetMax() const              { return fEndVal; }
      65                 :            : 
      66                 :          0 :     rtl::OUString GetStartStr() const       { return aEdStartVal.GetText(); }
      67                 :            : 
      68                 :            :     void SetEdStartValEnabled(bool bFlag = false);
      69                 :            : 
      70                 :            : private:
      71                 :            :     FixedText       aFtStartVal;
      72                 :            :     Edit            aEdStartVal;
      73                 :            :     const rtl::OUString aStartStrVal;
      74                 :            : 
      75                 :            :     FixedText       aFtEndVal;
      76                 :            :     Edit            aEdEndVal;
      77                 :            : 
      78                 :            :     FixedText       aFtIncrement;
      79                 :            :     Edit            aEdIncrement;
      80                 :            :     FixedLine       aFlDirection;
      81                 :            :     RadioButton     aBtnDown;
      82                 :            :     RadioButton     aBtnRight;
      83                 :            :     RadioButton     aBtnUp;
      84                 :            :     RadioButton     aBtnLeft;
      85                 :            : 
      86                 :            :     FixedLine       aFlSep1;
      87                 :            :     FixedLine       aFlType;
      88                 :            :     RadioButton     aBtnArithmetic;
      89                 :            :     RadioButton     aBtnGeometric;
      90                 :            :     RadioButton     aBtnDate;
      91                 :            :     RadioButton     aBtnAutoFill;
      92                 :            : 
      93                 :            :     FixedLine       aFlSep2;
      94                 :            :     FixedLine       aFlTimeUnit;
      95                 :            :     RadioButton     aBtnDay;
      96                 :            :     RadioButton     aBtnDayOfWeek;
      97                 :            :     RadioButton     aBtnMonth;
      98                 :            :     RadioButton     aBtnYear;
      99                 :            : 
     100                 :            :     OKButton        aBtnOk;
     101                 :            :     CancelButton    aBtnCancel;
     102                 :            :     HelpButton      aBtnHelp;
     103                 :            : 
     104                 :            :     const rtl::OUString aErrMsgInvalidVal;
     105                 :            : 
     106                 :            :     //----------------------------------------------------------
     107                 :            : 
     108                 :            :     ScDocument& rDoc;
     109                 :            :     FillDir     theFillDir;
     110                 :            :     FillCmd     theFillCmd;
     111                 :            :     FillDateCmd theFillDateCmd;
     112                 :            :     double      fStartVal;
     113                 :            :     double      fIncrement;
     114                 :            :     double      fEndVal;
     115                 :            : 
     116                 :            :     bool        bStartValFlag;
     117                 :            : 
     118                 :            : #ifdef _FILLDLG_CXX
     119                 :            : private:
     120                 :            :     void Init( sal_uInt16 nPossDir );
     121                 :            :     bool CheckStartVal();
     122                 :            :     bool CheckIncrementVal();
     123                 :            :     bool CheckEndVal();
     124                 :            : 
     125                 :            :     DECL_LINK( OKHdl, void * );
     126                 :            :     DECL_LINK( DisableHdl, Button * );
     127                 :            : #endif
     128                 :            : };
     129                 :            : 
     130                 :            : 
     131                 :            : 
     132                 :            : #endif // SC_FILLDLG_HXX
     133                 :            : 
     134                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10