| LibreOffice Module sw (master) 1
    | 
#include <limits.h>#include "xmlithlp.hxx"#include <sax/tools/converter.hxx>#include <editeng/borderline.hxx>#include <editeng/brushitem.hxx>#include <xmloff/xmluconv.hxx>#include <osl/diagnose.h>#include <o3tl/safeint.hxx>#include <com/sun/star/table/BorderLineStyle.hpp>#include <com/sun/star/text/HoriOrientation.hpp>#include <com/sun/star/text/VertOrientation.hpp>Go to the source code of this file.
| Macros | |
| #define | SVX_XML_BORDER_WIDTH_THIN 0 | 
| #define | SVX_XML_BORDER_WIDTH_MIDDLE 1 | 
| #define | SVX_XML_BORDER_WIDTH_THICK 2 | 
| Functions | |
| bool | sw_frmitems_parseXMLBorder (std::u16string_view rValue, const SvXMLUnitConverter &rUnitConverter, bool &rHasStyle, sal_uInt16 &rStyle, bool &rHasWidth, sal_uInt16 &rWidth, sal_uInt16 &rNamedWidth, bool &rHasColor, Color &rColor) | 
| Define various helper variables and functions for xmlimpit.cxx and xmlexpit.cxx.  More... | |
| static void | sw_frmitems_setXMLBorderStyle (SvxBorderLine &rLine, sal_uInt16 nStyle) | 
| bool | sw_frmitems_setXMLBorder (std::unique_ptr< SvxBorderLine > &rpLine, bool bHasStyle, sal_uInt16 nStyle, bool bHasWidth, sal_uInt16 nWidth, sal_uInt16 nNamedWidth, bool bHasColor, const Color &rColor) | 
| void | sw_frmitems_setXMLBorder (std::unique_ptr< SvxBorderLine > &rpLine, sal_uInt16 nWidth, sal_uInt16 nOutWidth, sal_uInt16 nInWidth, sal_uInt16 nDistance) | 
| void | sw_frmitems_MergeXMLHoriPos (SvxGraphicPosition &ePos, SvxGraphicPosition eHori) | 
| void | sw_frmitems_MergeXMLVertPos (SvxGraphicPosition &ePos, SvxGraphicPosition eVert) | 
| Variables | |
| const struct SvXMLEnumMapEntry< sal_uInt16 > | psXML_BorderStyles [] | 
| const struct SvXMLEnumMapEntry< sal_uInt16 > | psXML_NamedBorderWidths [] | 
| const sal_uInt16 | aBorderWidths [] | 
| const struct SvXMLEnumMapEntry< SvxGraphicPosition > | psXML_BrushRepeat [] | 
| const struct SvXMLEnumMapEntry< SvxGraphicPosition > | psXML_BrushHoriPos [] | 
| const struct SvXMLEnumMapEntry< SvxGraphicPosition > | psXML_BrushVertPos [] | 
| const struct SvXMLEnumMapEntry< sal_uInt16 > | psXML_BreakType [] | 
| const struct SvXMLEnumMapEntry< sal_Int16 > | aXMLTableAlignMap [] | 
| const struct SvXMLEnumMapEntry< sal_Int16 > | aXMLTableVAlignMap [] | 
| const struct SvXMLEnumMapEntry< sal_uInt16 > | aXML_KeepTogetherType [] | 
| #define SVX_XML_BORDER_WIDTH_MIDDLE 1 | 
Definition at line 40 of file xmlithlp.cxx.
| #define SVX_XML_BORDER_WIDTH_THICK 2 | 
Definition at line 41 of file xmlithlp.cxx.
| #define SVX_XML_BORDER_WIDTH_THIN 0 | 
Definition at line 39 of file xmlithlp.cxx.
| void sw_frmitems_MergeXMLHoriPos | ( | SvxGraphicPosition & | ePos, | 
| SvxGraphicPosition | eHori | ||
| ) | 
| void sw_frmitems_MergeXMLVertPos | ( | SvxGraphicPosition & | ePos, | 
| SvxGraphicPosition | eVert | ||
| ) | 
| bool sw_frmitems_parseXMLBorder | ( | std::u16string_view | rValue, | 
| const SvXMLUnitConverter & | rUnitConverter, | ||
| bool & | rHasStyle, | ||
| sal_uInt16 & | rStyle, | ||
| bool & | rHasWidth, | ||
| sal_uInt16 & | rWidth, | ||
| sal_uInt16 & | rNamedWidth, | ||
| bool & | rHasColor, | ||
| Color & | rColor | ||
| ) | 
Define various helper variables and functions for xmlimpit.cxx and xmlexpit.cxx.
 
Definition at line 77 of file xmlithlp.cxx.
References sax::Converter::convertColor(), SvXMLUnitConverter::convertEnum(), SvXMLUnitConverter::convertMeasureToCore(), SvXMLTokenEnumerator::getNextToken(), psXML_BorderStyles, and psXML_NamedBorderWidths.
Referenced by SvXMLImportItemMapper::PutXMLValue().
| bool sw_frmitems_setXMLBorder | ( | std::unique_ptr< SvxBorderLine > & | rpLine, | 
| bool | bHasStyle, | ||
| sal_uInt16 | nStyle, | ||
| bool | bHasWidth, | ||
| sal_uInt16 | nWidth, | ||
| sal_uInt16 | nNamedWidth, | ||
| bool | bHasColor, | ||
| const Color & | rColor | ||
| ) | 
Definition at line 138 of file xmlithlp.cxx.
References aBorderWidths, SwPostItHelper::NONE, and sw_frmitems_setXMLBorderStyle().
Referenced by SvXMLImportItemMapper::PutXMLValue().
| void sw_frmitems_setXMLBorder | ( | std::unique_ptr< SvxBorderLine > & | rpLine, | 
| sal_uInt16 | nWidth, | ||
| sal_uInt16 | nOutWidth, | ||
| sal_uInt16 | nInWidth, | ||
| sal_uInt16 | nDistance | ||
| ) | 
Definition at line 201 of file xmlithlp.cxx.
| 
 | static | 
Definition at line 130 of file xmlithlp.cxx.
References SwPostItHelper::NONE.
Referenced by sw_frmitems_setXMLBorder().
| const sal_uInt16 aBorderWidths[] | 
Definition at line 71 of file xmlithlp.cxx.
Referenced by sw_frmitems_setXMLBorder().
| const struct SvXMLEnumMapEntry< sal_uInt16 > aXML_KeepTogetherType[] | 
Definition at line 326 of file xmlithlp.cxx.
Referenced by SvXMLExportItemMapper::exportXML().
| const struct SvXMLEnumMapEntry< sal_Int16 > aXMLTableAlignMap[] | 
Definition at line 307 of file xmlithlp.cxx.
Referenced by SvXMLImportItemMapper::PutXMLValue(), and SvXMLExportItemMapper::QueryXMLValue().
| const struct SvXMLEnumMapEntry< sal_Int16 > aXMLTableVAlignMap[] | 
Definition at line 318 of file xmlithlp.cxx.
Referenced by SvXMLImportItemMapper::PutXMLValue(), and SvXMLExportItemMapper::QueryXMLValue().
| const struct SvXMLEnumMapEntry< sal_uInt16 > psXML_BorderStyles[] | 
Definition at line 43 of file xmlithlp.cxx.
Referenced by sw_frmitems_parseXMLBorder().
| const struct SvXMLEnumMapEntry< sal_uInt16 > psXML_BreakType[] | 
Definition at line 297 of file xmlithlp.cxx.
Referenced by SvXMLImportItemMapper::PutXMLValue(), and SvXMLExportItemMapper::QueryXMLValue().
| const struct SvXMLEnumMapEntry< SvxGraphicPosition > psXML_BrushHoriPos[] | 
Definition at line 223 of file xmlithlp.cxx.
Referenced by SvXMLImportItemMapper::PutXMLValue().
| const struct SvXMLEnumMapEntry< SvxGraphicPosition > psXML_BrushRepeat[] | 
Definition at line 215 of file xmlithlp.cxx.
Referenced by SvXMLImportItemMapper::PutXMLValue().
| const struct SvXMLEnumMapEntry< SvxGraphicPosition > psXML_BrushVertPos[] | 
Definition at line 230 of file xmlithlp.cxx.
Referenced by SvXMLImportItemMapper::PutXMLValue().
| const struct SvXMLEnumMapEntry< sal_uInt16 > psXML_NamedBorderWidths[] | 
Definition at line 62 of file xmlithlp.cxx.
Referenced by sw_frmitems_parseXMLBorder().