LCOV - code coverage report
Current view: top level - sc/source/ui/inc - filldlg.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 7 0.0 %
Date: 2015-06-13 12:38:46 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             :     virtual void dispose() SAL_OVERRIDE;
      47             : 
      48           0 :     FillDir     GetFillDir() const          { return theFillDir; }
      49           0 :     FillCmd     GetFillCmd() const          { return theFillCmd; }
      50           0 :     FillDateCmd GetFillDateCmd() const      { return theFillDateCmd; }
      51           0 :     double      GetStart() const            { return fStartVal; }
      52           0 :     double      GetStep() const             { return fIncrement; }
      53           0 :     double      GetMax() const              { return fEndVal; }
      54             : 
      55           0 :     OUString GetStartStr() const       { return m_pEdStartVal->GetText(); }
      56             : 
      57             :     void SetEdStartValEnabled(bool bFlag = false);
      58             : 
      59             : private:
      60             :     VclPtr<FixedText> m_pFtStartVal;
      61             :     VclPtr<Edit> m_pEdStartVal;
      62             :     const OUString aStartStrVal;
      63             : 
      64             :     VclPtr<FixedText> m_pFtEndVal;
      65             :     VclPtr<Edit> m_pEdEndVal;
      66             : 
      67             :     VclPtr<FixedText> m_pFtIncrement;
      68             :     VclPtr<Edit> m_pEdIncrement;
      69             :     VclPtr<RadioButton> m_pBtnDown;
      70             :     VclPtr<RadioButton> m_pBtnRight;
      71             :     VclPtr<RadioButton> m_pBtnUp;
      72             :     VclPtr<RadioButton> m_pBtnLeft;
      73             : 
      74             :     VclPtr<RadioButton> m_pBtnArithmetic;
      75             :     VclPtr<RadioButton> m_pBtnGeometric;
      76             :     VclPtr<RadioButton> m_pBtnDate;
      77             :     VclPtr<RadioButton> m_pBtnAutoFill;
      78             : 
      79             :     VclPtr<FixedText> m_pFtTimeUnit;
      80             :     VclPtr<RadioButton> m_pBtnDay;
      81             :     VclPtr<RadioButton> m_pBtnDayOfWeek;
      82             :     VclPtr<RadioButton> m_pBtnMonth;
      83             :     VclPtr<RadioButton> m_pBtnYear;
      84             : 
      85             :     VclPtr<OKButton> m_pBtnOk;
      86             : 
      87             :     const OUString aErrMsgInvalidVal;
      88             : 
      89             :     ScDocument& rDoc;
      90             :     FillDir     theFillDir;
      91             :     FillCmd     theFillCmd;
      92             :     FillDateCmd theFillDateCmd;
      93             :     double      fStartVal;
      94             :     double      fIncrement;
      95             :     double      fEndVal;
      96             : 
      97             :     bool        bStartValFlag;
      98             : 
      99             :     void Init( sal_uInt16 nPossDir );
     100             :     bool CheckStartVal();
     101             :     bool CheckIncrementVal();
     102             :     bool CheckEndVal();
     103             : 
     104             :     DECL_LINK( OKHdl, void * );
     105             :     DECL_LINK( DisableHdl, Button * );
     106             : };
     107             : 
     108             : #endif // INCLUDED_SC_SOURCE_UI_INC_FILLDLG_HXX
     109             : 
     110             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11