LibreOffice Module sw (master)  1
Macros | Functions | Variables
xmlithlp.cxx File Reference
#include "xmlithlp.hxx"
#include <hintids.hxx>
#include <unomid.h>
#include <sax/tools/converter.hxx>
#include <svx/unomid.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/shaditem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/formatbreakitem.hxx>
#include <editeng/keepitem.hxx>
#include <editeng/brushitem.hxx>
#include <fmtpdsc.hxx>
#include <fmtornt.hxx>
#include <fmtfsize.hxx>
#include <fmtlsplt.hxx>
#include <xmloff/xmluconv.hxx>
#include <osl/diagnose.h>
Include dependency graph for xmlithlp.cxx:

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 (const OUString &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< SvxGraphicPositionpsXML_BrushRepeat []
 
const struct SvXMLEnumMapEntry< SvxGraphicPositionpsXML_BrushHoriPos []
 
const struct SvXMLEnumMapEntry< SvxGraphicPositionpsXML_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 []
 

Macro Definition Documentation

#define SVX_XML_BORDER_WIDTH_MIDDLE   1

Definition at line 45 of file xmlithlp.cxx.

#define SVX_XML_BORDER_WIDTH_THICK   2

Definition at line 46 of file xmlithlp.cxx.

#define SVX_XML_BORDER_WIDTH_THIN   0

Definition at line 44 of file xmlithlp.cxx.

Function Documentation

void sw_frmitems_MergeXMLHoriPos ( SvxGraphicPosition ePos,
SvxGraphicPosition  eHori 
)

Definition at line 243 of file xmlithlp.cxx.

References GPOS_LB, GPOS_LM, GPOS_LT, GPOS_MB, GPOS_MM, GPOS_MT, GPOS_RB, GPOS_RM, and GPOS_RT.

Referenced by SvXMLImportItemMapper::PutXMLValue().

void sw_frmitems_MergeXMLVertPos ( SvxGraphicPosition ePos,
SvxGraphicPosition  eVert 
)

Definition at line 273 of file xmlithlp.cxx.

References GPOS_LB, GPOS_LM, GPOS_LT, GPOS_MB, GPOS_MM, GPOS_MT, GPOS_RB, GPOS_RM, and GPOS_RT.

Referenced by SvXMLImportItemMapper::PutXMLValue().

bool sw_frmitems_parseXMLBorder ( const OUString &  rValue,
const SvXMLUnitConverter rUnitConverter,
bool &  rHasStyle,
sal_uInt16 &  rStyle,
bool &  rHasWidth,
sal_uInt16 &  rWidth,
sal_uInt16 &  rNamedWidth,
bool &  rHasColor,
Color rColor 
)
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 
)

Definition at line 207 of file xmlithlp.cxx.

static void sw_frmitems_setXMLBorderStyle ( SvxBorderLine &  rLine,
sal_uInt16  nStyle 
)
static

Definition at line 136 of file xmlithlp.cxx.

References sw::sidebar::NONE.

Referenced by sw_frmitems_setXMLBorder().

Variable Documentation

const sal_uInt16 aBorderWidths[]
Initial value:
=
{
}
#define DEF_LINE_WIDTH_1
#define DEF_LINE_WIDTH_5
#define DEF_LINE_WIDTH_0

Definition at line 76 of file xmlithlp.cxx.

Referenced by sw_frmitems_setXMLBorder().

const struct SvXMLEnumMapEntry< sal_uInt16 > aXML_KeepTogetherType[]
Initial value:
=
{
{ XML_ALWAYS, 0 },
{ XML_AUTO, 1 },
}
XML_ALWAYS
XML_TOKEN_INVALID
XML_AUTO

Definition at line 332 of file xmlithlp.cxx.

Referenced by SvXMLExportItemMapper::exportXML().

const struct SvXMLEnumMapEntry< sal_Int16 > aXMLTableAlignMap[]
Initial value:
=
{
{ XML_LEFT, text::HoriOrientation::LEFT_AND_WIDTH },
{ XML_CENTER, text::HoriOrientation::CENTER },
{ XML_MARGINS, text::HoriOrientation::FULL },
}
XML_RIGHT
XML_TOKEN_INVALID
XML_CENTER
XML_LEFT
XML_MARGINS

Definition at line 313 of file xmlithlp.cxx.

Referenced by SvXMLImportItemMapper::PutXMLValue(), and SvXMLExportItemMapper::QueryXMLValue().

const struct SvXMLEnumMapEntry< sal_Int16 > aXMLTableVAlignMap[]
Initial value:
=
{
{ XML_MIDDLE, text::VertOrientation::CENTER },
}
XML_BOTTOM
XML_MIDDLE
XML_TOP
XML_TOKEN_INVALID

Definition at line 324 of file xmlithlp.cxx.

Referenced by SvXMLImportItemMapper::PutXMLValue(), and SvXMLExportItemMapper::QueryXMLValue().

const struct SvXMLEnumMapEntry< sal_uInt16 > psXML_BorderStyles[]
Initial value:
=
{
{ XML_DOUBLE, table::BorderLineStyle::DOUBLE },
{ XML_DOUBLE_THIN, table::BorderLineStyle::DOUBLE_THIN },
{ XML_DOTTED, table::BorderLineStyle::DOTTED },
{ XML_DASHED, table::BorderLineStyle::DASHED },
{ XML_FINE_DASHED, table::BorderLineStyle::FINE_DASHED },
{ XML_DASH_DOT, table::BorderLineStyle::DASH_DOT },
{ XML_DASH_DOT_DOT, table::BorderLineStyle::DASH_DOT_DOT },
{ XML_GROOVE, table::BorderLineStyle::ENGRAVED },
{ XML_RIDGE, table::BorderLineStyle::EMBOSSED },
{ XML_INSET, table::BorderLineStyle::INSET },
{ XML_OUTSET, table::BorderLineStyle::OUTSET },
}
XML_DOUBLE_THIN
XML_OUTSET
XML_DOUBLE
XML_HIDDEN
XML_INSET
XML_SOLID
XML_FINE_DASHED
XML_TOKEN_INVALID
XML_GROOVE
XML_DASH_DOT_DOT
XML_RIDGE
XML_DASHED
XML_NONE
XML_DOTTED
XML_DASH_DOT

Definition at line 48 of file xmlithlp.cxx.

const struct SvXMLEnumMapEntry< sal_uInt16 > psXML_BreakType[]
Initial value:
=
{
{ XML_AUTO, 0 },
{ XML_COLUMN, 1 },
{ XML_PAGE, 2 },
{ XML_EVEN_PAGE, 2 },
{ XML_ODD_PAGE, 2 },
}
XML_COLUMN
XML_ODD_PAGE
XML_EVEN_PAGE
XML_TOKEN_INVALID
XML_PAGE
XML_AUTO

Definition at line 303 of file xmlithlp.cxx.

Referenced by SvXMLImportItemMapper::PutXMLValue(), and SvXMLExportItemMapper::QueryXMLValue().

const struct SvXMLEnumMapEntry< SvxGraphicPosition > psXML_BrushHoriPos[]
Initial value:
=
{
}
GPOS_RM
XML_RIGHT
GPOS_LM
SvxGraphicPosition
XML_TOKEN_INVALID
XML_LEFT

Definition at line 229 of file xmlithlp.cxx.

Referenced by SvXMLImportItemMapper::PutXMLValue().

const struct SvXMLEnumMapEntry< SvxGraphicPosition > psXML_BrushRepeat[]
Initial value:
=
{
}
GPOS_TILED
XML_BACKGROUND_STRETCH
SvxGraphicPosition
XML_TOKEN_INVALID
GPOS_MM
GPOS_AREA
XML_BACKGROUND_REPEAT
XML_BACKGROUND_NO_REPEAT

Definition at line 221 of file xmlithlp.cxx.

Referenced by SvXMLImportItemMapper::PutXMLValue().

const struct SvXMLEnumMapEntry< SvxGraphicPosition > psXML_BrushVertPos[]
Initial value:
=
{
}
XML_BOTTOM
XML_TOP
GPOS_MT
SvxGraphicPosition
XML_TOKEN_INVALID
GPOS_MB

Definition at line 236 of file xmlithlp.cxx.

Referenced by SvXMLImportItemMapper::PutXMLValue().

const struct SvXMLEnumMapEntry< sal_uInt16 > psXML_NamedBorderWidths[]
Initial value:
=
{
}
#define SVX_XML_BORDER_WIDTH_MIDDLE
Definition: xmlithlp.cxx:45
XML_MIDDLE
XML_THIN
XML_TOKEN_INVALID
#define SVX_XML_BORDER_WIDTH_THIN
Definition: xmlithlp.cxx:44
XML_THICK
#define SVX_XML_BORDER_WIDTH_THICK
Definition: xmlithlp.cxx:46

Definition at line 67 of file xmlithlp.cxx.