update emoji autocorrect entries from po-files
[LibreOffice.git] / include / editeng / itemtype.hxx
blob54a518e97c05190722473af70140b4027db54fe4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_EDITENG_ITEMTYPE_HXX
20 #define INCLUDED_EDITENG_ITEMTYPE_HXX
22 #include <editeng/editrids.hrc>
23 #include <editeng/eerdll.hxx>
25 // forward ---------------------------------------------------------------
26 #include <rtl/ustring.hxx>
27 #include <tools/resid.hxx>
28 #include <tools/bigint.hxx>
29 #include <svl/poolitem.hxx>
30 #include <editeng/editengdllapi.h>
32 class Color;
33 class IntlWrapper;
34 // static and prototypes -------------------------------------------------
36 static const sal_Unicode cpDelim[] = { ',' , ' ', '\0' };
38 EDITENG_DLLPUBLIC OUString GetSvxString( sal_uInt16 nId );
39 EDITENG_DLLPUBLIC OUString GetMetricText( long nVal, SfxMapUnit eSrcUnit, SfxMapUnit eDestUnit, const IntlWrapper * pIntl );
40 OUString GetColorString( const Color& rCol );
41 EDITENG_DLLPUBLIC sal_uInt16 GetMetricId( SfxMapUnit eUnit );
45 inline OUString GetBoolString(bool bVal)
47 return EE_RESSTR(bVal ? RID_SVXITEMS_TRUE : RID_SVXITEMS_FALSE);
52 inline long Scale( long nVal, long nMult, long nDiv )
54 BigInt aVal( nVal );
55 aVal *= nMult;
56 aVal += nDiv/2;
57 aVal /= nDiv;
58 return aVal;
61 #endif
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */