update credits
[LibreOffice.git] / sw / source / filter / xml / xmlithlp.hxx
blob1b38dd7bc09989972add39001af884faabb1770c
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 .
20 #ifndef _SW_XMLITHLP_HXX
21 #define _SW_XMLITHLP_HXX
23 #include <sal/types.h>
24 #include <xmloff/xmlement.hxx>
25 #include "hintids.hxx" // for following include
26 #include <editeng/brushitem.hxx> // for SvxGraphicsPosition
28 namespace editeng { class SvxBorderLine; }
30 struct SvXMLEnumMapEntry;
31 class SvXMLUnitConverter;
32 class Color;
36 /** Define various helper variables and functions for xmlimpit.cxx and
37 * xmlexpit.cxx. */
39 bool sw_frmitems_parseXMLBorder( const OUString& rValue,
40 const SvXMLUnitConverter& rUnitConverter,
41 bool& rHasStyle, sal_uInt16& rStyle,
42 bool& rHasWidth, sal_uInt16& rWidth,
43 sal_uInt16& rNamedWidth,
44 bool& rHasColor, Color& rColor );
46 bool sw_frmitems_setXMLBorder( editeng::SvxBorderLine*& rpLine,
47 bool bHasStyle, sal_uInt16 nStyle,
48 bool bHasWidth, sal_uInt16 nWidth,
49 sal_uInt16 nNamedWidth,
50 bool bHasColor, const Color& rColor );
52 void sw_frmitems_setXMLBorder( editeng::SvxBorderLine*& rpLine,
53 sal_uInt16 nWidth, sal_uInt16 nOutWidth,
54 sal_uInt16 nInWidth, sal_uInt16 nDistance );
56 void sw_frmitems_MergeXMLHoriPos( SvxGraphicPosition& ePos,
57 SvxGraphicPosition eHori );
59 void sw_frmitems_MergeXMLVertPos( SvxGraphicPosition& ePos,
60 SvxGraphicPosition eVert );
62 extern const struct SvXMLEnumMapEntry psXML_BorderStyles[];
63 extern const struct SvXMLEnumMapEntry psXML_NamedBorderWidths[];
64 extern const struct SvXMLEnumMapEntry psXML_BrushRepeat[];
65 extern const struct SvXMLEnumMapEntry psXML_BrushHoriPos[];
66 extern const struct SvXMLEnumMapEntry psXML_BrushVertPos[];
67 extern const struct SvXMLEnumMapEntry psXML_BreakType[];
68 extern const struct SvXMLEnumMapEntry aXMLTableAlignMap[];
69 extern const struct SvXMLEnumMapEntry aXMLTableVAlignMap[];
70 extern const struct SvXMLEnumMapEntry aXML_KeepTogetherType[];
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */