LCOV - code coverage report
Current view: top level - chart2/source/controller/dialogs - tp_Scale.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 1 0.0 %
Date: 2014-04-11 Functions: 0 2 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             : #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_SCALE_HXX
      20             : #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_SCALE_HXX
      21             : 
      22             : // header for SfxTabPage
      23             : #include <sfx2/tabdlg.hxx>
      24             : // header for class FormattedField
      25             : #include <svtools/fmtfield.hxx>
      26             : // header for FixedText
      27             : #include <vcl/fixed.hxx>
      28             : // header for CheckBox
      29             : #include <vcl/button.hxx>
      30             : // header for MetricField
      31             : #include <vcl/field.hxx>
      32             : // header for class ListBox
      33             : #include <vcl/lstbox.hxx>
      34             : 
      35             : namespace chart
      36             : {
      37             : 
      38           0 : class ScaleTabPage : public SfxTabPage
      39             : {
      40             : public:
      41             :     ScaleTabPage( Window* pParent, const SfxItemSet& rInAttrs );
      42             : 
      43             :     static SfxTabPage* Create( Window* pParent, const SfxItemSet& rInAttrs );
      44             :     virtual bool FillItemSet( SfxItemSet& rOutAttrs ) SAL_OVERRIDE;
      45             :     virtual void Reset( const SfxItemSet& rInAttrs ) SAL_OVERRIDE;
      46             :     using TabPage::DeactivatePage;
      47             :     virtual int DeactivatePage( SfxItemSet* pItemSet = NULL ) SAL_OVERRIDE;
      48             : 
      49             :     void SetNumFormatter( SvNumberFormatter* pFormatter );
      50             :     void SetNumFormat();
      51             : 
      52             :     void ShowAxisOrigin( bool bShowOrigin );
      53             : 
      54             :     virtual void StateChanged( StateChangedType nType ) SAL_OVERRIDE;
      55             : 
      56             : private:
      57             :     CheckBox*            m_pCbxReverse;
      58             :     CheckBox*            m_pCbxLogarithm;
      59             : 
      60             :     VclBox*              m_pBxType;
      61             :     ListBox*             m_pLB_AxisType;
      62             : 
      63             :     VclGrid*              m_pBxMinMax;
      64             :     FormattedField*      m_pFmtFldMin;
      65             :     CheckBox*            m_pCbxAutoMin;
      66             : 
      67             :     FormattedField*      m_pFmtFldMax;
      68             :     CheckBox*            m_pCbxAutoMax;
      69             : 
      70             :     VclBox*              m_pBxResolution;
      71             :     ListBox*             m_pLB_TimeResolution;
      72             :     CheckBox*            m_pCbx_AutoTimeResolution;
      73             : 
      74             :     VclBox*              m_pBxMain;
      75             :     FormattedField*      m_pFmtFldStepMain;
      76             :     MetricField*         m_pMt_MainDateStep;
      77             :     ListBox*             m_pLB_MainTimeUnit;
      78             :     CheckBox*            m_pCbxAutoStepMain;
      79             : 
      80             :     VclBox*              m_pBxMinor;
      81             :     FixedText*           m_pTxtHelpCount;
      82             :     FixedText*           m_pTxtHelp;
      83             :     MetricField*         m_pMtStepHelp;
      84             :     ListBox*             m_pLB_HelpTimeUnit;
      85             :     CheckBox*            m_pCbxAutoStepHelp;
      86             : 
      87             :     FormattedField*      m_pFmtFldOrigin;
      88             :     CheckBox*            m_pCbxAutoOrigin;
      89             :     VclBox*              m_pBxOrigin;
      90             : 
      91             :     double              fMin;
      92             :     double              fMax;
      93             :     double              fStepMain;
      94             :     sal_Int32           nStepHelp;
      95             :     double              fOrigin;
      96             :     sal_Int32           m_nTimeResolution;
      97             :     sal_Int32           m_nMainTimeUnit;
      98             :     sal_Int32           m_nHelpTimeUnit;
      99             :     int                 m_nAxisType;
     100             :     bool                m_bAllowDateAxis;
     101             :     SvNumberFormatter*  pNumFormatter;
     102             : 
     103             :     bool                m_bShowAxisOrigin;
     104             : 
     105             :     void EnableControls();
     106             : 
     107             :     DECL_LINK( SelectAxisTypeHdl, void* );
     108             :     DECL_LINK( EnableValueHdl, CheckBox* );
     109             :     DECL_LINK( FmtFieldModifiedHdl, FormattedField* );
     110             : 
     111             :     /** shows a warning window due to an invalid input.
     112             : 
     113             :         @param nResIdMessage
     114             :             The resource identifier that represents the localized warning text.
     115             :             If this is 0, no warning is shown and false is returned.
     116             : 
     117             :         @param pControl
     118             :             If non-NULL, contains a pointer to the control in which the
     119             :             errornous value was in.  This method gives this control the focus
     120             :             and selects its content.
     121             : 
     122             :         @return false, if nResIdMessage was 0, true otherwise
     123             :      */
     124             :     bool ShowWarning( sal_uInt16 nResIdMessage, Control* pControl = NULL );
     125             : 
     126             :     void HideAllControls();
     127             : };
     128             : 
     129             : } //namespace chart
     130             : 
     131             : #endif
     132             : 
     133             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10