LCOV - code coverage report
Current view: top level - sw/source/core/uibase/inc - numfmtlb.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 7 0.0 %
Date: 2014-04-14 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_UI_INC_NUMFMTLB_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_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_uInt16              nStdEntry;
      32             :     sal_Bool                bOneArea;
      33             :     sal_uLong               nDefFormat;
      34             :     SwView*             pVw;
      35             :     SvNumberFormatter*  pOwnFormatter;
      36             :     LanguageType        eCurLanguage;
      37             :     sal_Bool                bShowLanguageControl; //determine whether the language control has
      38             :                                               //to be shown in the number format dialog
      39             :     sal_Bool                bUseAutomaticLanguage;//determine whether language is automatically assigned
      40             : 
      41             :     SAL_DLLPRIVATE DECL_LINK( SelectHdl, ListBox * );
      42             : 
      43             :     SAL_DLLPRIVATE double          GetDefValue(const short nFormatType) const;
      44             :     SAL_DLLPRIVATE void            Init(short nFormatType, sal_Bool bUsrFmts);
      45             :     SAL_DLLPRIVATE SwView*           GetView();
      46             : 
      47             : public:
      48             :     NumFormatListBox(Window* pWin, WinBits nStyle);
      49             : 
      50             :     virtual ~NumFormatListBox();
      51             : 
      52             :     void            Clear();
      53             : 
      54           0 :     inline void     SetOneArea(sal_Bool bOnlyOne = sal_True) { bOneArea = bOnlyOne; }
      55             : 
      56             :     void            SetFormatType(const short nFormatType);
      57           0 :     inline short    GetFormatType() const { return nCurrFormatType; }
      58             :     void            SetDefFormat(const sal_uLong nDefFmt);
      59             :     sal_uLong           GetFormat() const;
      60             : 
      61           0 :     inline LanguageType GetCurLanguage() const { return eCurLanguage;}
      62           0 :     void                SetLanguage(LanguageType eSet)  { eCurLanguage = eSet;}
      63             : 
      64           0 :     void            SetAutomaticLanguage(sal_Bool bSet){bUseAutomaticLanguage = bSet;}
      65           0 :     sal_Bool            IsAutomaticLanguage()const {return bUseAutomaticLanguage;}
      66             : 
      67           0 :     void            SetShowLanguageControl(sal_Bool bSet){bShowLanguageControl = bSet;}
      68             : 
      69             : };
      70             : 
      71             : #endif
      72             : 
      73             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10