1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef INCLUDED_DMAPPER_CONVERSIONHELPER_HXX 24 #define INCLUDED_DMAPPER_CONVERSIONHELPER_HXX 25 26 #include <sal/types.h> 27 #include <rtl/ustring.hxx> 28 #include <com/sun/star/util/DateTime.hpp> 29 namespace com{ namespace sun{ namespace star{ 30 namespace lang{ 31 struct Locale; 32 } 33 namespace table{ 34 struct BorderLine; 35 }}}} 36 37 namespace writerfilter { 38 namespace dmapper{ 39 namespace ConversionHelper{ 40 41 // create a border line and return the distance value 42 sal_Int32 MakeBorderLine( sal_Int32 nSprmValue, ::com::sun::star::table::BorderLine& rToFill ); 43 void MakeBorderLine( sal_Int32 nLineThickness, sal_Int32 nLineType, 44 sal_Int32 nLineColor, 45 ::com::sun::star::table::BorderLine& rToFill, bool bIsOOXML ); 46 //convert the number format string form MS format to SO format 47 ::rtl::OUString ConvertMSFormatStringToSO( 48 const ::rtl::OUString& rFormat, ::com::sun::star::lang::Locale& rLocale, bool bHijri); 49 sal_Int32 convertTwipToMM100(sal_Int32 _t); 50 // probably the most useless unit in the world - English Metric Units (EMU) 360 000 EMU == 1cm 51 sal_Int32 convertEMUToMM100(sal_Int32 _t); 52 sal_Int32 ConvertColor(sal_Int32 nWordColor ); 53 sal_Int16 convertTableJustification( sal_Int32 nIntValue ); 54 ::com::sun::star::util::DateTime convertDateTime( const ::rtl::OUString& rDateTimeString ); 55 sal_Int16 ConvertNumberingType(sal_Int32 nNFC); 56 57 } // namespace ConversionHelper 58 } //namespace dmapper 59 } // namespace writerfilter 60 #endif 61