LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - numfmtlb.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             : #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_NUMFMTLB_HXX
      20             : #define INCLUDED_SW_SOURCE_UIBASE_INC_NUMFMTLB_HXX
      21             : 
      22             : #include <vcl/lstbox.hxx>
      23             : #include <svl/zforlist.hxx>
      24             : #include "swdllapi.h"
      25             : 
      26             : class SwView;
      27             : 
      28             : class SW_DLLPUBLIC NumFormatListBox : public ListBox
      29             : {
      30             :     short               nCurrFormatType;
      31             :     sal_Int32           nStdEntry;
      32             :     bool                bOneArea;
      33             :     sal_uLong               nDefFormat;
      34             :     SwView*             pVw;
      35             :     SvNumberFormatter*  pOwnFormatter;
      36             :     LanguageType        eCurLanguage;
      37             :     bool                bShowLanguageControl; //determine whether the language control has
      38             :                                               //to be shown in the number format dialog
      39             :     bool                bUseAutomaticLanguage;//determine whether language is automatically assigned
      40             : 
      41             :     DECL_DLLPRIVATE_LINK( SelectHdl, ListBox * );
      42             : 
      43             :     SAL_DLLPRIVATE double          GetDefValue(const short nFormatType) const;
      44             :     SAL_DLLPRIVATE void            Init(short nFormatType, bool bUsrFormats);
      45             :     SAL_DLLPRIVATE SwView*           GetView();
      46             : 
      47             : public:
      48             :     NumFormatListBox(vcl::Window* pWin, WinBits nStyle);
      49             : 
      50             :     virtual ~NumFormatListBox();
      51             :     virtual void    dispose() SAL_OVERRIDE;
      52             : 
      53             :     void            Clear();
      54             : 
      55           0 :     inline void     SetOneArea(bool bOnlyOne = true) { bOneArea = bOnlyOne; }
      56             : 
      57             :     void            SetFormatType(const short nFormatType);
      58           0 :     inline short    GetFormatType() const { return nCurrFormatType; }
      59             :     void            SetDefFormat(const sal_uLong nDefFormat);
      60             :     sal_uLong           GetFormat() const;
      61             : 
      62           0 :     inline LanguageType GetCurLanguage() const { return eCurLanguage;}
      63           0 :     void                SetLanguage(LanguageType eSet)  { eCurLanguage = eSet;}
      64             : 
      65           0 :     void            SetAutomaticLanguage(bool bSet){bUseAutomaticLanguage = bSet;}
      66           0 :     bool            IsAutomaticLanguage()const {return bUseAutomaticLanguage;}
      67             : 
      68           0 :     void            SetShowLanguageControl(bool bSet){bShowLanguageControl = bSet;}
      69             : 
      70             : };
      71             : 
      72             : #endif
      73             : 
      74             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11