LibreOffice Module xmloff (master) 1
Functions | Variables
txtprhdl.cxx File Reference
#include <sal/config.h>
#include <o3tl/any.hxx>
#include <osl/diagnose.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/style/DropCapFormat.hpp>
#include <com/sun/star/text/FontRelief.hpp>
#include <com/sun/star/text/WrapTextMode.hpp>
#include <com/sun/star/text/XTextColumns.hpp>
#include <com/sun/star/text/TextColumn.hpp>
#include <com/sun/star/text/RelOrientation.hpp>
#include <com/sun/star/text/HoriOrientation.hpp>
#include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/RubyAdjust.hpp>
#include <com/sun/star/text/RubyPosition.hpp>
#include <com/sun/star/text/FontEmphasis.hpp>
#include <com/sun/star/text/ParagraphVertAlign.hpp>
#include <com/sun/star/graphic/XGraphic.hpp>
#include <sax/tools/converter.hxx>
#include <xmloff/xmltypes.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmlement.hxx>
#include "XMLAnchorTypePropHdl.hxx"
#include <enummaps.hxx>
#include <xmloff/XMLConstantsPropertyHandler.hxx>
#include <XMLClipPropertyHandler.hxx>
#include <XMLTextColumnsPropertyHandler.hxx>
#include <xmloff/NamedBoolPropertyHdl.hxx>
#include "txtprhdl.hxx"
#include <com/sun/star/text/WrapInfluenceOnPosition.hpp>
#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
#include <xmloff/EnumPropertyHdl.hxx>
#include <XMLFillBitmapSizePropertyHandler.hxx>
#include <XMLBitmapLogicalSizePropertyHandler.hxx>
#include <XMLBitmapRepeatOffsetPropertyHandler.hxx>
#include <xmloff/XMLComplexColorHandler.hxx>
#include <vcl/graph.hxx>
Include dependency graph for txtprhdl.cxx:

Go to the source code of this file.

Functions

static const XMLPropertyHandlerGetPropertyHandler (sal_Int32 nType)
 

Variables

SvXMLEnumMapEntry< sal_uInt16 > const pXML_HoriPos_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_HoriPosMirrored_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_HoriRel_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_HoriRelFrame_Enum []
 
SvXMLEnumMapEntry< bool > const pXML_HoriMirror_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_VertPosAtChar_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_VertRel_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_VertRelPage_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_VertRelFrame_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_VertRelAsChar_Enum []
 
SvXMLEnumMapEntry< RubyAdjust > const pXML_RubyAdjust_Enum []
 
SvXMLEnumMapEntry< sal_Int16 > const pXML_RubyPosition_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_FontRelief_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_ParaVerticalAlign_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_WrapInfluenceOnPosition_Enum []
 
SvXMLEnumMapEntry< drawing::TextVerticalAdjust > const pXML_VerticalAlign_Enum []
 
SvXMLEnumMapEntry< WrapTextMode > const pXML_Wrap_Enum []
 
SvXMLEnumMapEntry< TextContentAnchorType > const pXML_Anchor_Enum []
 
SvXMLEnumMapEntry< sal_uInt16 > const pXML_Emphasize_Enum []
 

Function Documentation

◆ GetPropertyHandler()

static const XMLPropertyHandler * GetPropertyHandler ( sal_Int32  nType)
static

Definition at line 1222 of file txtprhdl.cxx.

References aXML_BitmapMode_EnumMap, aXML_FillStyle_EnumMap, aXML_RefPoint_EnumMap, xmloff::token::GetXMLToken(), nType, pXML_FontRelief_Enum, pXML_HoriPos_Enum, pXML_HoriPosMirrored_Enum, pXML_HoriRel_Enum, pXML_HoriRelFrame_Enum, pXML_ParaVerticalAlign_Enum, pXML_RubyAdjust_Enum, pXML_RubyPosition_Enum, pXML_VerticalAlign_Enum, pXML_VertPosAtChar_Enum, pXML_VertRel_Enum, pXML_VertRelAsChar_Enum, pXML_VertRelFrame_Enum, pXML_VertRelPage_Enum, pXML_WrapInfluenceOnPosition_Enum, xmloff::token::XML_ABOVE, xmloff::token::XML_ALWAYS, xmloff::token::XML_AUTO, xmloff::token::XML_BELOW, xmloff::token::XML_COLLAPSING, xmloff::token::XML_CONTENT, xmloff::token::XML_CONTINUOUS, xmloff::token::XML_FIXED, xmloff::token::XML_HANGING, xmloff::token::XML_HORIZONTAL_ON_EVEN, xmloff::token::XML_HORIZONTAL_ON_ODD, xmloff::token::XML_IDEOGRAPH_ALPHA, xmloff::token::XML_LETTERS, xmloff::token::XML_LINE_HEIGHT, xmloff::token::XML_LINES, xmloff::token::XML_NONE, xmloff::token::XML_NORMAL, xmloff::token::XML_POSITION, xmloff::token::XML_SCALE, xmloff::token::XML_SCALE_MIN, xmloff::token::XML_SEPARATING, xmloff::token::XML_SIMPLE, xmloff::token::XML_SIZE, xmloff::token::XML_SKIP_WHITE_SPACE, xmloff::token::XML_STRICT, XML_SW_TYPE_BITMAP_MODE, XML_SW_TYPE_BITMAP_REFPOINT, XML_SW_TYPE_BITMAPREPOFFSETX, XML_SW_TYPE_BITMAPREPOFFSETY, XML_SW_TYPE_FILLBITMAPSIZE, XML_SW_TYPE_FILLSTYLE, XML_SW_TYPE_LOGICAL_SIZE, xmloff::token::XML_TOKEN_INVALID, XML_TYPE_BORDER_MODEL, XML_TYPE_COMPLEX_COLOR, XML_TYPE_GRAPHIC, XML_TYPE_TEXT_ANCHOR_TYPE, XML_TYPE_TEXT_AUTOSPACE, XML_TYPE_TEXT_CLIP, XML_TYPE_TEXT_CLIP11, XML_TYPE_TEXT_COLUMNS, XML_TYPE_TEXT_COMBINE, XML_TYPE_TEXT_COMBINE_CHARACTERS, XML_TYPE_TEXT_COMBINECHAR, XML_TYPE_TEXT_DROPCAP, XML_TYPE_TEXT_EMPHASIZE, XML_TYPE_TEXT_FONT_RELIEF, XML_TYPE_TEXT_HORIZONTAL_MIRROR, XML_TYPE_TEXT_HORIZONTAL_POS, XML_TYPE_TEXT_HORIZONTAL_POS_MIRRORED, XML_TYPE_TEXT_HORIZONTAL_REL, XML_TYPE_TEXT_HORIZONTAL_REL_FRAME, XML_TYPE_TEXT_KEEP, XML_TYPE_TEXT_LINE_BREAK, XML_TYPE_TEXT_LINE_MODE, XML_TYPE_TEXT_MIRROR_HORIZONTAL_LEFT, XML_TYPE_TEXT_MIRROR_HORIZONTAL_RIGHT, XML_TYPE_TEXT_MIRROR_VERTICAL, XML_TYPE_TEXT_NKEEP, XML_TYPE_TEXT_NUMBER8_ONE_BASED, XML_TYPE_TEXT_OPAQUE, XML_TYPE_TEXT_PARAGRAPH_ONLY, XML_TYPE_TEXT_PROTECT_CONTENT, XML_TYPE_TEXT_PROTECT_POSITION, XML_TYPE_TEXT_PROTECT_SIZE, XML_TYPE_TEXT_PUNCTUATION_WRAP, XML_TYPE_TEXT_REL_WIDTH_HEIGHT, XML_TYPE_TEXT_ROTATION_ANGLE, XML_TYPE_TEXT_ROTATION_SCALE, XML_TYPE_TEXT_RUBY_ADJUST, XML_TYPE_TEXT_RUBY_IS_ABOVE, XML_TYPE_TEXT_RUBY_POSITION, XML_TYPE_TEXT_SYNC_WIDTH_HEIGHT, XML_TYPE_TEXT_SYNC_WIDTH_HEIGHT_MIN, XML_TYPE_TEXT_VERTICAL_ALIGN, XML_TYPE_TEXT_VERTICAL_POS_AT_CHAR, XML_TYPE_TEXT_VERTICAL_REL, XML_TYPE_TEXT_VERTICAL_REL_AS_CHAR, XML_TYPE_TEXT_VERTICAL_REL_FRAME, XML_TYPE_TEXT_VERTICAL_REL_PAGE, XML_TYPE_TEXT_WRAP, XML_TYPE_TEXT_WRAP_OUTSIDE, XML_TYPE_VERTICAL_ALIGN, XML_TYPE_WRAP_INFLUENCE_ON_POSITION, and xmloff::token::XML_VERTICAL.

Variable Documentation

◆ pXML_Anchor_Enum

SvXMLEnumMapEntry<TextContentAnchorType> const pXML_Anchor_Enum[]
Initial value:
=
{
{ XML_CHAR, TextContentAnchorType_AT_CHARACTER },
{ XML_PAGE, TextContentAnchorType_AT_PAGE },
{ XML_FRAME, TextContentAnchorType_AT_FRAME },
{ XML_PARAGRAPH, TextContentAnchorType_AT_PARAGRAPH },
{ XML_AS_CHAR, TextContentAnchorType_AS_CHARACTER },
{ XML_TOKEN_INVALID, TextContentAnchorType(0) }
}

Definition at line 589 of file txtprhdl.cxx.

Referenced by XMLAnchorTypePropHdl::convert(), XMLAnchorTypePropHdl::exportXML(), and XMLAnchorTypePropHdl::importXML().

◆ pXML_Emphasize_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_Emphasize_Enum[]
Initial value:
=
{
{ XML_NONE, FontEmphasis::NONE },
{ XML_DOT, FontEmphasis::DOT_ABOVE },
{ XML_CIRCLE, FontEmphasis::CIRCLE_ABOVE },
{ XML_DISC, FontEmphasis::DISK_ABOVE },
{ XML_ACCENT, FontEmphasis::ACCENT_ABOVE },
}

Definition at line 829 of file txtprhdl.cxx.

◆ pXML_FontRelief_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_FontRelief_Enum[]
Initial value:
=
{
{ XML_NONE, FontRelief::NONE },
{ XML_ENGRAVED, FontRelief::ENGRAVED },
{ XML_EMBOSSED, FontRelief::EMBOSSED },
}

Definition at line 216 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_HoriMirror_Enum

SvXMLEnumMapEntry<bool> const pXML_HoriMirror_Enum[]
Initial value:
=
{
{ XML_FROM_LEFT, false },
{ XML_FROM_INSIDE, true },
{ XML_LEFT, false },
{ XML_INSIDE, true },
{ XML_CENTER, false },
{ XML_RIGHT, false },
{ XML_OUTSIDE, true },
{ XML_TOKEN_INVALID, false }
}

Definition at line 122 of file txtprhdl.cxx.

◆ pXML_HoriPos_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_HoriPos_Enum[]
Initial value:
=
{
{ XML_FROM_LEFT, HoriOrientation::NONE },
{ XML_FROM_INSIDE, HoriOrientation::NONE },
{ XML_LEFT, HoriOrientation::LEFT },
{ XML_INSIDE, HoriOrientation::LEFT },
{ XML_CENTER, HoriOrientation::CENTER },
{ XML_RIGHT, HoriOrientation::RIGHT },
{ XML_OUTSIDE, HoriOrientation::RIGHT },
}

Definition at line 69 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_HoriPosMirrored_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_HoriPosMirrored_Enum[]
Initial value:
=
{
{ XML_FROM_INSIDE, HoriOrientation::NONE },
{ XML_INSIDE, HoriOrientation::LEFT },
{ XML_CENTER, HoriOrientation::CENTER },
{ XML_OUTSIDE, HoriOrientation::RIGHT },
}

Definition at line 81 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_HoriRel_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_HoriRel_Enum[]
Initial value:
=
{
{ XML_PARAGRAPH, RelOrientation::FRAME },
{ XML_PARAGRAPH_CONTENT, RelOrientation::PRINT_AREA },
{ XML_PAGE, RelOrientation::PAGE_FRAME },
{ XML_PAGE_CONTENT, RelOrientation::PAGE_PRINT_AREA },
{ XML_PARAGRAPH_START_MARGIN, RelOrientation::FRAME_LEFT },
{ XML_PARAGRAPH_END_MARGIN, RelOrientation::FRAME_RIGHT },
{ XML_PAGE_START_MARGIN, RelOrientation::PAGE_LEFT },
{ XML_PAGE_END_MARGIN, RelOrientation::PAGE_RIGHT },
{ XML_CHAR, RelOrientation::CHAR },
{ XML_FRAME, RelOrientation::FRAME },
{ XML_FRAME_CONTENT, RelOrientation::PRINT_AREA },
{ XML_FRAME_START_MARGIN, RelOrientation::FRAME_LEFT },
{ XML_FRAME_END_MARGIN, RelOrientation::FRAME_RIGHT },
}
@ XML_FRAME_END_MARGIN
Definition: xmltoken.hxx:943
@ XML_FRAME_START_MARGIN
Definition: xmltoken.hxx:947
@ XML_PARAGRAPH_START_MARGIN
Definition: xmltoken.hxx:1500
@ XML_PARAGRAPH_END_MARGIN
Definition: xmltoken.hxx:1499

Definition at line 90 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_HoriRelFrame_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_HoriRelFrame_Enum[]
Initial value:
=
{
{ XML_FRAME, RelOrientation::FRAME },
{ XML_FRAME_CONTENT, RelOrientation::PRINT_AREA },
{ XML_PAGE, RelOrientation::PAGE_FRAME },
{ XML_PAGE_CONTENT, RelOrientation::PAGE_PRINT_AREA },
{ XML_FRAME_START_MARGIN, RelOrientation::FRAME_LEFT },
{ XML_FRAME_END_MARGIN, RelOrientation::FRAME_RIGHT },
{ XML_PAGE_START_MARGIN, RelOrientation::PAGE_LEFT },
{ XML_PAGE_END_MARGIN, RelOrientation::PAGE_RIGHT },
{ XML_CHAR, RelOrientation::CHAR },
}

Definition at line 108 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_ParaVerticalAlign_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_ParaVerticalAlign_Enum[]
Initial value:
=
{
{ XML_TOP, ParagraphVertAlign::TOP },
{ XML_MIDDLE, ParagraphVertAlign::CENTER },
{ XML_BOTTOM, ParagraphVertAlign::BOTTOM },
{ XML_BASELINE, ParagraphVertAlign::BASELINE },
{ XML_AUTO, ParagraphVertAlign::AUTOMATIC },
}

Definition at line 224 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_RubyAdjust_Enum

SvXMLEnumMapEntry<RubyAdjust> const pXML_RubyAdjust_Enum[]
Initial value:
=
{
{ XML_LEFT, RubyAdjust_LEFT },
{ XML_CENTER, RubyAdjust_CENTER },
{ XML_RIGHT, RubyAdjust_RIGHT },
{ XML_DISTRIBUTE_LETTER, RubyAdjust_BLOCK },
{ XML_DISTRIBUTE_SPACE, RubyAdjust_INDENT_BLOCK },
{ XML_TOKEN_INVALID, RubyAdjust(0) }
}
@ XML_DISTRIBUTE_SPACE
Definition: xmltoken.hxx:699
@ XML_DISTRIBUTE_LETTER
Definition: xmltoken.hxx:698

Definition at line 198 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_RubyPosition_Enum

SvXMLEnumMapEntry<sal_Int16> const pXML_RubyPosition_Enum[]
Initial value:
=
{
{ XML_ABOVE, RubyPosition::ABOVE},
{ XML_BELOW, RubyPosition::BELOW},
{ XML_INTER_CHARACTER, RubyPosition::INTER_CHARACTER},
}

Definition at line 208 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_VerticalAlign_Enum

SvXMLEnumMapEntry<drawing::TextVerticalAdjust> const pXML_VerticalAlign_Enum[]
Initial value:
=
{
{ XML_TOP, drawing::TextVerticalAdjust_TOP },
{ XML_MIDDLE, drawing::TextVerticalAdjust_CENTER },
{ XML_BOTTOM, drawing::TextVerticalAdjust_BOTTOM },
{ XML_JUSTIFY, drawing::TextVerticalAdjust_BLOCK },
{ XML_TOKEN_INVALID, drawing::TextVerticalAdjust(0) }
}

Definition at line 244 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_VertPosAtChar_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_VertPosAtChar_Enum[]
Initial value:
=
{
{ XML_FROM_TOP, VertOrientation::NONE },
{ XML_TOP, VertOrientation::TOP },
{ XML_TOP, VertOrientation::CHAR_TOP },
{ XML_TOP, VertOrientation::LINE_TOP },
{ XML_MIDDLE, VertOrientation::CENTER },
{ XML_MIDDLE, VertOrientation::CHAR_CENTER },
{ XML_MIDDLE, VertOrientation::LINE_CENTER },
{ XML_BOTTOM, VertOrientation::BOTTOM },
{ XML_BELOW, VertOrientation::CHAR_BOTTOM },
{ XML_BOTTOM, VertOrientation::LINE_BOTTOM },
}

Definition at line 134 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_VertRel_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_VertRel_Enum[]
Initial value:
=
{
{ XML_PARAGRAPH, RelOrientation::FRAME },
{ XML_PARAGRAPH_CONTENT, RelOrientation::PRINT_AREA },
{ XML_CHAR, RelOrientation::CHAR },
{ XML_PAGE, RelOrientation::PAGE_FRAME },
{ XML_PAGE_CONTENT, RelOrientation::PAGE_PRINT_AREA },
{ XML_PAGE_CONTENT_TOP, RelOrientation::PAGE_PRINT_AREA_TOP },
{ XML_PAGE_CONTENT_BOTTOM, RelOrientation::PAGE_PRINT_AREA_BOTTOM },
{ XML_FRAME, RelOrientation::FRAME },
{ XML_FRAME_CONTENT, RelOrientation::PRINT_AREA },
{ XML_LINE, RelOrientation::TEXT_LINE },
}
@ XML_PAGE_CONTENT_BOTTOM
Definition: xmltoken.hxx:3471

Definition at line 149 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_VertRelAsChar_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_VertRelAsChar_Enum[]
Initial value:
=
{
{ XML_BASELINE, VertOrientation::TOP },
{ XML_BASELINE, VertOrientation::CENTER },
{ XML_BASELINE, VertOrientation::BOTTOM },
{ XML_TEXT, VertOrientation::CHAR_TOP },
{ XML_TEXT, VertOrientation::CHAR_CENTER },
{ XML_TEXT, VertOrientation::CHAR_BOTTOM },
{ XML_LINE, VertOrientation::LINE_TOP },
{ XML_LINE, VertOrientation::LINE_CENTER },
{ XML_LINE, VertOrientation::LINE_BOTTOM },
}

Definition at line 184 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_VertRelFrame_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_VertRelFrame_Enum[]
Initial value:
=
{
{ XML_FRAME, RelOrientation::FRAME },
{ XML_FRAME_CONTENT, RelOrientation::PRINT_AREA },
}

Definition at line 177 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_VertRelPage_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_VertRelPage_Enum[]
Initial value:
=
{
{ XML_PAGE, RelOrientation::FRAME },
{ XML_PAGE_CONTENT, RelOrientation::PRINT_AREA },
{ XML_PAGE, RelOrientation::PAGE_FRAME },
{ XML_PAGE_CONTENT, RelOrientation::PAGE_PRINT_AREA },
{ XML_PAGE_CONTENT_TOP, RelOrientation::PAGE_PRINT_AREA_TOP },
{ XML_PAGE_CONTENT_BOTTOM, RelOrientation::PAGE_PRINT_AREA_BOTTOM },
}

Definition at line 166 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().

◆ pXML_Wrap_Enum

SvXMLEnumMapEntry<WrapTextMode> const pXML_Wrap_Enum[]
Initial value:
=
{
{ XML_NONE, WrapTextMode_NONE },
{ XML_RUN_THROUGH, WrapTextMode_THROUGH },
{ XML_PARALLEL, WrapTextMode_PARALLEL },
{ XML_DYNAMIC, WrapTextMode_DYNAMIC },
{ XML_LEFT, WrapTextMode_LEFT },
{ XML_RIGHT, WrapTextMode_RIGHT },
{ XML_TOKEN_INVALID, WrapTextMode(0) }
}

Definition at line 454 of file txtprhdl.cxx.

◆ pXML_WrapInfluenceOnPosition_Enum

SvXMLEnumMapEntry<sal_uInt16> const pXML_WrapInfluenceOnPosition_Enum[]
Initial value:
=
{
{ XML_ONCE_SUCCESSIVE, WrapInfluenceOnPosition::ONCE_SUCCESSIVE },
{ XML_ONCE_CONCURRENT, WrapInfluenceOnPosition::ONCE_CONCURRENT },
{ XML_ITERATIVE, WrapInfluenceOnPosition::ITERATIVE },
}

Definition at line 235 of file txtprhdl.cxx.

Referenced by GetPropertyHandler().