LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Attributes | List of all members
SvXMLExportItemMapper Class Reference

#include <xmlexpit.hxx>

Collaboration diagram for SvXMLExportItemMapper:
[legend]

Public Member Functions

 SvXMLExportItemMapper (SvXMLItemMapEntriesRef rMapEntries)
 
virtual ~SvXMLExportItemMapper ()
 
void exportXML (SvXMLExport &rExport, const SfxItemSet &rSet, const SvXMLUnitConverter &rUnitConverter, ::xmloff::token::XMLTokenEnum ePropToken) const
 
virtual void handleSpecialItem (comphelper::AttributeList &rAttrList, const SvXMLItemMapEntry &rEntry, const SfxPoolItem &rItem, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, const SfxItemSet *pSet) const
 this method is called for every item that has the MID_SW_FLAG_SPECIAL_ITEM_EXPORT flag set More...
 
virtual void handleElementItem (const SvXMLItemMapEntry &rEntry, const SfxPoolItem &rItem) const
 this method is called for every item that has the MID_SW_FLAG_ELEMENT_EXPORT flag set More...
 
void setMapEntries (SvXMLItemMapEntriesRef rMapEntries)
 

Static Public Member Functions

static bool QueryXMLValue (const SfxPoolItem &rItem, OUString &rValue, sal_uInt16 nMemberId, const SvXMLUnitConverter &rUnitConverter)
 

Protected Member Functions

void exportXML (const SvXMLExport &rExport, comphelper::AttributeList &rAttrList, const SfxItemSet &rSet, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, std::vector< sal_uInt16 > *pIndexArray) const
 fills the given attribute list with the items in the given set More...
 
void exportXML (const SvXMLExport &rExport, comphelper::AttributeList &rAttrList, const SfxPoolItem &rItem, const SvXMLItemMapEntry &rEntry, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, const SfxItemSet *pSet) const
 
void exportElementItems (SvXMLExport &rExport, const SfxItemSet &rSet, const std::vector< sal_uInt16 > &rIndexArray) const
 

Static Protected Member Functions

static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nWhichId)
 returns the item with the given WhichId from the given ItemSet if it's set More...
 

Private Attributes

SvXMLItemMapEntriesRef mrMapEntries
 

Detailed Description

Definition at line 34 of file xmlexpit.hxx.

Constructor & Destructor Documentation

◆ SvXMLExportItemMapper()

SvXMLExportItemMapper::SvXMLExportItemMapper ( SvXMLItemMapEntriesRef  rMapEntries)
explicit

Definition at line 290 of file xmlexpit.cxx.

◆ ~SvXMLExportItemMapper()

SvXMLExportItemMapper::~SvXMLExportItemMapper ( )
virtual

Definition at line 295 of file xmlexpit.cxx.

Member Function Documentation

◆ exportElementItems()

void SvXMLExportItemMapper::exportElementItems ( SvXMLExport rExport,
const SfxItemSet rSet,
const std::vector< sal_uInt16 > &  rIndexArray 
) const
protected

◆ exportXML() [1/3]

void SvXMLExportItemMapper::exportXML ( const SvXMLExport rExport,
comphelper::AttributeList rAttrList,
const SfxItemSet rSet,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap,
std::vector< sal_uInt16 > *  pIndexArray 
) const
protected

fills the given attribute list with the items in the given set

Definition at line 63 of file xmlexpit.cxx.

References exportXML(), GetItem(), MID_SW_FLAG_ELEMENT_ITEM_EXPORT, MID_SW_FLAG_NO_ITEM_EXPORT, mrMapEntries, nCount, nIndex, SvXMLItemMapEntry::nMemberId, SvXMLItemMapEntry::nWhichId, and rSet.

Referenced by exportXML().

◆ exportXML() [2/3]

void SvXMLExportItemMapper::exportXML ( const SvXMLExport rExport,
comphelper::AttributeList rAttrList,
const SfxPoolItem rItem,
const SvXMLItemMapEntry rEntry,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap,
const SfxItemSet pSet 
) const
protected

◆ exportXML() [3/3]

void SvXMLExportItemMapper::exportXML ( SvXMLExport rExport,
const SfxItemSet rSet,
const SvXMLUnitConverter rUnitConverter,
::xmloff::token::XMLTokenEnum  ePropToken 
) const

◆ GetItem()

const SfxPoolItem * SvXMLExportItemMapper::GetItem ( const SfxItemSet rSet,
sal_uInt16  nWhichId 
)
staticprotected

returns the item with the given WhichId from the given ItemSet if it's set

Definition at line 273 of file xmlexpit.cxx.

References SfxItemSet::GetItemState(), and rSet.

Referenced by exportElementItems(), and exportXML().

◆ handleElementItem()

void SvXMLExportItemMapper::handleElementItem ( const SvXMLItemMapEntry rEntry,
const SfxPoolItem rItem 
) const
virtual

this method is called for every item that has the MID_SW_FLAG_ELEMENT_EXPORT flag set

Definition at line 333 of file xmlexpit.cxx.

Referenced by exportElementItems().

◆ handleSpecialItem()

void SvXMLExportItemMapper::handleSpecialItem ( comphelper::AttributeList rAttrList,
const SvXMLItemMapEntry rEntry,
const SfxPoolItem rItem,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap,
const SfxItemSet pSet 
) const
virtual

this method is called for every item that has the MID_SW_FLAG_SPECIAL_ITEM_EXPORT flag set

Definition at line 321 of file xmlexpit.cxx.

Referenced by exportXML().

◆ QueryXMLValue()

bool SvXMLExportItemMapper::QueryXMLValue ( const SfxPoolItem rItem,
OUString &  rValue,
sal_uInt16  nMemberId,
const SvXMLUnitConverter rUnitConverter 
)
static

xml -> MemberId

border-padding ALL_BORDER_PADDING border-padding-before LEFT_BORDER_PADDING border-padding-after RIGHT_BORDER_PADDING border-padding-start TOP_BORDER_PADDING border-padding-end BOTTOM_BORDER_PADDING

border ALL_BORDER border-before LEFT_BORDER border-after RIGHT_BORDER border-start TOP_BORDER border-end BOTTOM_BORDER

border-line-width ALL_BORDER_LINE_WIDTH border-line-width-before LEFT_BORDER_LINE_WIDTH border-line-width-after RIGHT_BORDER_LINE_WIDTH border-line-width-start TOP_BORDER_LINE_WIDTH border-line-width-end BOTTOM_BORDER_LINE_WIDTH

Definition at line 360 of file xmlexpit.cxx.

References ALL_BORDER, ALL_BORDER_LINE_WIDTH, ALL_BORDER_PADDING, aXMLTableAlignMap, aXMLTableVAlignMap, BOTTOM_BORDER, BOTTOM_BORDER_LINE_WIDTH, BOTTOM_BORDER_PADDING, sax::Converter::convertBool(), sax::Converter::convertColor(), SvXMLUnitConverter::convertEnum(), sax::Converter::convertMeasure(), SvXMLUnitConverter::convertMeasureToXML(), sax::Converter::convertPercent(), XMLPropertyHandlerFactory::CreatePropertyHandler(), Fixed, SvxBoxItem::GetBottom(), SvxFormatBreakItem::GetBreak(), SvxBrushItem::GetColor(), SvxShadowItem::GetColor(), SvxBoxItem::GetDistance(), SvxBrushItem::GetGraphicFilter(), SvxBrushItem::GetGraphicPos(), SvxSizeItem::GetHeight(), SwFormatFrameSize::GetHeightSizeType(), SwFormatHoriOrient::GetHoriOrient(), SvxBoxItem::GetLeft(), SvxLRSpaceItem::GetLeft(), SvxShadowItem::GetLocation(), SvxULSpaceItem::GetLower(), SwFormatPageDesc::GetNumOffset(), SvxLRSpaceItem::GetPropLeft(), SvxULSpaceItem::GetPropLower(), SvxLRSpaceItem::GetPropRight(), SvxLRSpaceItem::GetPropTextFirstLineOffset(), SvxULSpaceItem::GetPropUpper(), SvxBoxItem::GetRight(), SvxLRSpaceItem::GetRight(), SvxLRSpaceItem::GetTextFirstLineOffset(), SvxBoxItem::GetTop(), SvxULSpaceItem::GetUpper(), SfxBoolItem::GetValue(), SwFormatVertOrient::GetVertOrient(), SvxShadowItem::GetWidth(), SwFormatFrameSize::GetWidthPercent(), GetXMLToken(), GPOS_AREA, GPOS_LB, GPOS_LM, GPOS_LT, GPOS_MB, GPOS_MM, GPOS_MT, GPOS_NONE, GPOS_RB, GPOS_RM, GPOS_RT, GPOS_TILED, SvxLRSpaceItem::IsAutoFirst(), Color::IsTransparent(), lcl_isOdfDoubleLine(), LEFT_BORDER, LEFT_BORDER_LINE_WIDTH, LEFT_BORDER_PADDING, MID_BACK_COLOR, MID_BREAK_AFTER, MID_BREAK_BEFORE, MID_FIRST_AUTO, MID_FIRST_LINE_INDENT, MID_FRMSIZE_FIX_HEIGHT, MID_FRMSIZE_MIN_HEIGHT, MID_FRMSIZE_REL_WIDTH, MID_GRAPHIC_FILTER, MID_GRAPHIC_POSITION, MID_GRAPHIC_REPEAT, MID_L_MARGIN, MID_LO_MARGIN, MID_PAGEDESC_PAGENUMOFFSET, MID_R_MARGIN, MID_UP_MARGIN, Minimum, psXML_BreakType, SfxPoolItem::QueryValue(), RES_BACKGROUND(), RES_BOX(), RES_BREAK(), RES_COLLAPSING_BORDERS(), RES_FRAMEDIR(), RES_FRM_SIZE(), RES_HORI_ORIENT(), RES_KEEP(), RES_LAYOUT_SPLIT(), RES_LR_SPACE(), RES_MARGIN_FIRSTLINE(), RES_MARGIN_RIGHT(), RES_MARGIN_TEXTLEFT(), RES_PAGEDESC(), RES_PRINT(), RES_ROW_SPLIT(), RES_SHADOW(), RES_UL_SPACE(), RES_VERT_ORIENT(), RIGHT_BORDER, RIGHT_BORDER_LINE_WIDTH, RIGHT_BORDER_PADDING, TOP_BORDER, TOP_BORDER_LINE_WIDTH, TOP_BORDER_PADDING, SfxPoolItem::Which(), XML_ALWAYS, XML_AUTO, XML_BACKGROUND_NO_REPEAT, XML_BOTTOM, XML_CENTER, XML_COLLAPSING, XML_DASH_DOT, XML_DASH_DOT_DOT, XML_DASHED, XML_DOTTED, XML_DOUBLE, XML_DOUBLE_THIN, XML_FINE_DASHED, XML_GROOVE, XML_INSET, XML_LEFT, XML_NONE, XML_OUTSET, XML_RIDGE, XML_RIGHT, XML_SEPARATING, XML_SOLID, XML_STRETCH, XML_TOP, XML_TRANSPARENT, and XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT.

Referenced by SwXMLBrushItemExport::exportXML(), and exportXML().

◆ setMapEntries()

void SvXMLExportItemMapper::setMapEntries ( SvXMLItemMapEntriesRef  rMapEntries)
inline

Definition at line 93 of file xmlexpit.hxx.

References mrMapEntries.

Member Data Documentation

◆ mrMapEntries

SvXMLItemMapEntriesRef SvXMLExportItemMapper::mrMapEntries
private

Definition at line 36 of file xmlexpit.hxx.

Referenced by exportElementItems(), exportXML(), and setMapEntries().


The documentation for this class was generated from the following files: