LCOV - code coverage report
Current view: top level - sc/source/ui/inc - filldlg.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 7 0.0 %
Date: 2014-11-03 Functions: 0 7 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_FILLDLG_HXX
      21             : #define INCLUDED_SC_SOURCE_UI_INC_FILLDLG_HXX
      22             : 
      23             : #include <vcl/dialog.hxx>
      24             : #include <vcl/button.hxx>
      25             : #include <vcl/fixed.hxx>
      26             : #include <vcl/edit.hxx>
      27             : #include "global.hxx"
      28             : 
      29             : class ScDocument;
      30             : 
      31             : #include "scui_def.hxx"
      32             : 
      33             : class ScFillSeriesDlg : public ModalDialog
      34             : {
      35             : public:
      36             :             ScFillSeriesDlg( vcl::Window*        pParent,
      37             :                              ScDocument&    rDocument,
      38             :                              FillDir        eFillDir,
      39             :                              FillCmd        eFillCmd,
      40             :                              FillDateCmd    eFillDateCmd,
      41             :                              const OUString& aStartStr,
      42             :                              double         fStep,
      43             :                              double         fMax,
      44             :                              sal_uInt16     nPossDir );
      45             :             virtual ~ScFillSeriesDlg();
      46             : 
      47           0 :     FillDir     GetFillDir() const          { return theFillDir; }
      48           0 :     FillCmd     GetFillCmd() const          { return theFillCmd; }
      49           0 :     FillDateCmd GetFillDateCmd() const      { return theFillDateCmd; }
      50           0 :     double      GetStart() const            { return fStartVal; }
      51           0 :     double      GetStep() const             { return fIncrement; }
      52           0 :     double      GetMax() const              { return fEndVal; }
      53             : 
      54           0 :     OUString GetStartStr() const       { return m_pEdStartVal->GetText(); }
      55             : 
      56             :     void SetEdStartValEnabled(bool bFlag = false);
      57             : 
      58             : private:
      59             :     FixedText* m_pFtStartVal;
      60             :     Edit* m_pEdStartVal;
      61             :     const OUString aStartStrVal;
      62             : 
      63             :     FixedText* m_pFtEndVal;
      64             :     Edit* m_pEdEndVal;
      65             : 
      66             :     FixedText* m_pFtIncrement;
      67             :     Edit* m_pEdIncrement;
      68             :     RadioButton* m_pBtnDown;
      69             :     RadioButton* m_pBtnRight;
      70             :     RadioButton* m_pBtnUp;
      71             :     RadioButton* m_pBtnLeft;
      72             : 
      73             :     RadioButton* m_pBtnArithmetic;
      74             :     RadioButton* m_pBtnGeometric;
      75             :     RadioButton* m_pBtnDate;
      76             :     RadioButton* m_pBtnAutoFill;
      77             : 
      78             :     FixedText* m_pFtTimeUnit;
      79             :     RadioButton* m_pBtnDay;
      80             :     RadioButton* m_pBtnDayOfWeek;
      81             :     RadioButton* m_pBtnMonth;
      82             :     RadioButton* m_pBtnYear;
      83             : 
      84             :     OKButton* m_pBtnOk;
      85             : 
      86             :     const OUString aErrMsgInvalidVal;
      87             : 
      88             :     ScDocument& rDoc;
      89             :     FillDir     theFillDir;
      90             :     FillCmd     theFillCmd;
      91             :     FillDateCmd theFillDateCmd;
      92             :     double      fStartVal;
      93             :     double      fIncrement;
      94             :     double      fEndVal;
      95             : 
      96             :     bool        bStartValFlag;
      97             : 
      98             :     void Init( sal_uInt16 nPossDir );
      99             :     bool CheckStartVal();
     100             :     bool CheckIncrementVal();
     101             :     bool CheckEndVal();
     102             : 
     103             :     DECL_LINK( OKHdl, void * );
     104             :     DECL_LINK( DisableHdl, Button * );
     105             : };
     106             : 
     107             : #endif // INCLUDED_SC_SOURCE_UI_INC_FILLDLG_HXX
     108             : 
     109             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10