LCOV - code coverage report
Current view: top level - include/editeng - itemtype.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 6 0.0 %
Date: 2014-04-14 Functions: 0 1 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_EDITENG_ITEMTYPE_HXX
      20             : #define INCLUDED_EDITENG_ITEMTYPE_HXX
      21             : 
      22             : #include <editeng/editrids.hrc>
      23             : #include <editeng/eerdll.hxx>
      24             : 
      25             : // forward ---------------------------------------------------------------
      26             : #include <rtl/ustring.hxx>
      27             : #include <tools/resid.hxx>
      28             : #include <tools/bigint.hxx>
      29             : #include <svl/poolitem.hxx>
      30             : #include <tools/shl.hxx>
      31             : #include <editeng/editengdllapi.h>
      32             : 
      33             : class Color;
      34             : class IntlWrapper;
      35             : // static and prototypes -------------------------------------------------
      36             : 
      37             : static const sal_Unicode cpDelim[] = { ',' , ' ', '\0' };
      38             : 
      39             : EDITENG_DLLPUBLIC OUString GetSvxString( sal_uInt16 nId );
      40             : EDITENG_DLLPUBLIC OUString GetMetricText( long nVal, SfxMapUnit eSrcUnit, SfxMapUnit eDestUnit, const IntlWrapper * pIntl );
      41             : OUString GetColorString( const Color& rCol );
      42             : EDITENG_DLLPUBLIC sal_uInt16 GetMetricId( SfxMapUnit eUnit );
      43             : 
      44             : 
      45             : 
      46             : inline OUString GetBoolString(bool bVal)
      47             : {
      48             :     return EE_RESSTR(bVal ? RID_SVXITEMS_TRUE : RID_SVXITEMS_FALSE);
      49             : }
      50             : 
      51             : 
      52             : 
      53           0 : inline long Scale( long nVal, long nMult, long nDiv )
      54             : {
      55           0 :     BigInt aVal( nVal );
      56           0 :     aVal *= nMult;
      57           0 :     aVal += nDiv/2;
      58           0 :     aVal /= nDiv;
      59           0 :     return aVal;
      60             : }
      61             : 
      62             : #endif
      63             : 
      64             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10