lok: vcl: fix multiple floatwin removal case more robustly.
[LibreOffice.git] / writerfilter / source / dmapper / ConversionHelper.hxx
blob25ca7f8b8ce97a5324eb3f91d1df443247ed908d
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_WRITERFILTER_SOURCE_DMAPPER_CONVERSIONHELPER_HXX
20 #define INCLUDED_WRITERFILTER_SOURCE_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 #include <com/sun/star/text/RubyAdjust.hpp>
28 namespace com{ namespace sun{ namespace star{
29 namespace lang{
30 struct Locale;
32 namespace table{
33 struct BorderLine2;
34 }}}}
36 namespace writerfilter {
37 namespace dmapper{
38 namespace ConversionHelper{
40 // create a border line and return the distance value
41 void MakeBorderLine(sal_Int32 nLineThickness,
42 sal_Int32 nLineType,
43 sal_Int32 nLineColor,
44 css::table::BorderLine2& rToFill,
45 bool bIsOOXML);
46 //convert the number format string form MS format to SO format
47 OUString ConvertMSFormatStringToSO(const OUString& rFormat, css::lang::Locale& rLocale, bool bHijri);
48 // export just for test
49 SAL_DLLPUBLIC_EXPORT sal_Int32 convertTwipToMM100(sal_Int32 _t);
50 SAL_DLLPUBLIC_EXPORT sal_uInt32 convertTwipToMM100Unsigned(sal_Int32 _t);
51 sal_Int16 convertTableJustification( sal_Int32 nIntValue );
52 css::text::RubyAdjust convertRubyAlign( sal_Int32 nIntValue );
53 sal_Int16 ConvertNumberingType(sal_Int32 nFmt);
55 css::util::DateTime ConvertDateStringToDateTime(const OUString& rDateTime);
56 } // namespace ConversionHelper
57 } //namespace dmapper
58 } // namespace writerfilter
59 #endif
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */