Update ooo320-m1
[ooovba.git] / writerfilter / source / dmapper / ConversionHelper.hxx
blobe84e6247a094feb71f0a9ea3c24ad30b543f389e
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ConversionHelper.hxx,v $
10 * $Revision: 1.12 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef INCLUDED_DMAPPER_CONVERSIONHELPER_HXX
31 #define INCLUDED_DMAPPER_CONVERSIONHELPER_HXX
33 #include <sal/types.h>
34 #include <rtl/ustring.hxx>
35 #include <com/sun/star/util/DateTime.hpp>
36 namespace com{ namespace sun{ namespace star{
37 namespace lang{
38 struct Locale;
40 namespace table{
41 struct BorderLine;
42 }}}}
44 namespace writerfilter {
45 namespace dmapper{
46 namespace ConversionHelper{
48 // create a border line and return the distance value
49 sal_Int32 MakeBorderLine( sal_Int32 nSprmValue, ::com::sun::star::table::BorderLine& rToFill );
50 void MakeBorderLine( sal_Int32 nLineThickness, sal_Int32 nLineType,
51 sal_Int32 nLineColor,
52 ::com::sun::star::table::BorderLine& rToFill, bool bIsOOXML );
53 //convert the number format string form MS format to SO format
54 ::rtl::OUString ConvertMSFormatStringToSO(
55 const ::rtl::OUString& rFormat, ::com::sun::star::lang::Locale& rLocale, bool bHijri);
56 sal_Int32 convertTwipToMM100(sal_Int32 _t);
57 // probably the most useless unit in the world - English Metric Units (EMU) 360 000 EMU == 1cm
58 sal_Int32 convertEMUToMM100(sal_Int32 _t);
59 sal_Int32 ConvertColor(sal_Int32 nWordColor );
60 sal_Int16 convertTableJustification( sal_Int32 nIntValue );
61 ::com::sun::star::util::DateTime convertDateTime( const ::rtl::OUString& rDateTimeString );
62 sal_Int16 ConvertNumberingType(sal_Int32 nNFC);
64 } // namespace ConversionHelper
65 } //namespace dmapper
66 } // namespace writerfilter
67 #endif