Bump version to 4.1-6
[LibreOffice.git] / writerfilter / source / dmapper / ConversionHelper.hxx
blobb23872b53e29408ec2894e34bf94cf571e9bd837
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_DMAPPER_CONVERSIONHELPER_HXX
20 #define INCLUDED_DMAPPER_CONVERSIONHELPER_HXX
22 #include <sal/types.h>
23 #include <rtl/ustring.hxx>
24 #include <com/sun/star/util/DateTime.hpp>
25 #include <com/sun/star/table/BorderLine2.hpp>
26 namespace com{ namespace sun{ namespace star{
27 namespace lang{
28 struct Locale;
30 namespace table{
31 struct BorderLine2;
32 }}}}
34 namespace writerfilter {
35 namespace dmapper{
36 namespace ConversionHelper{
38 // create a border line and return the distance value
39 sal_Int32 MakeBorderLine( sal_Int32 nSprmValue, ::com::sun::star::table::BorderLine2& rToFill );
40 void MakeBorderLine( sal_Int32 nLineThickness, sal_Int32 nLineType,
41 sal_Int32 nLineColor,
42 ::com::sun::star::table::BorderLine2& rToFill, bool bIsOOXML );
43 //convert the number format string form MS format to SO format
44 OUString ConvertMSFormatStringToSO(
45 const OUString& rFormat, ::com::sun::star::lang::Locale& rLocale, bool bHijri);
46 sal_Int32 convertTwipToMM100(sal_Int32 _t);
47 // probably the most useless unit in the world - English Metric Units (EMU) 360 000 EMU == 1cm
48 sal_Int32 convertEMUToMM100(sal_Int32 _t);
49 sal_Int32 ConvertColor(sal_Int32 nWordColor );
50 sal_Int16 convertTableJustification( sal_Int32 nIntValue );
51 sal_Int16 ConvertNumberingType(sal_Int32 nNFC);
53 } // namespace ConversionHelper
54 } //namespace dmapper
55 } // namespace writerfilter
56 #endif
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */