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

#include <xmlexpit.hxx>

Inheritance diagram for SvXMLExportItemMapper:
[legend]
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 (SvXMLAttributeList &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, SvXMLAttributeList &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, SvXMLAttributeList &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 its set More...
 

Protected Attributes

SvXMLItemMapEntriesRef mrMapEntries
 

Detailed Description

Definition at line 34 of file xmlexpit.hxx.

Constructor & Destructor Documentation

SvXMLExportItemMapper::SvXMLExportItemMapper ( SvXMLItemMapEntriesRef  rMapEntries)
explicit

Definition at line 289 of file xmlexpit.cxx.

References mrMapEntries.

SvXMLExportItemMapper::~SvXMLExportItemMapper ( )
virtual

Definition at line 294 of file xmlexpit.cxx.

Member Function Documentation

void SvXMLExportItemMapper::exportElementItems ( SvXMLExport rExport,
const SfxItemSet rSet,
const std::vector< sal_uInt16 > &  rIndexArray 
) const
protected
void SvXMLExportItemMapper::exportXML ( const SvXMLExport rExport,
SvXMLAttributeList rAttrList,
const SfxItemSet rSet,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap,
std::vector< sal_uInt16 > *  pIndexArray 
) const
protected
void SvXMLExportItemMapper::exportXML ( const SvXMLExport rExport,
SvXMLAttributeList rAttrList,
const SfxPoolItem rItem,
const SvXMLItemMapEntry rEntry,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap,
const SfxItemSet pSet 
) const
protected
void SvXMLExportItemMapper::exportXML ( SvXMLExport rExport,
const SfxItemSet rSet,
const SvXMLUnitConverter rUnitConverter,
::xmloff::token::XMLTokenEnum  ePropToken 
) const
const SfxPoolItem * SvXMLExportItemMapper::GetItem ( const SfxItemSet rSet,
sal_uInt16  nWhichId 
)
staticprotected

returns the item with the given WhichId from the given ItemSet if its set

Definition at line 272 of file xmlexpit.cxx.

References SfxItemSet::GetItemState().

Referenced by exportElementItems(), and exportXML().

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

Reimplemented in SwXMLTableItemMapper_Impl.

Definition at line 332 of file xmlexpit.cxx.

Referenced by exportElementItems().

void SvXMLExportItemMapper::handleSpecialItem ( SvXMLAttributeList 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

Reimplemented in SwXMLTableItemMapper_Impl.

Definition at line 320 of file xmlexpit.cxx.

Referenced by exportXML().

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 359 of file xmlexpit.cxx.

References ALL_BORDER, ALL_BORDER_LINE_WIDTH, ALL_BORDER_PADDING, ATT_FIX_SIZE, ATT_MIN_SIZE, 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(), 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::GetPropTextFirstLineOfst(), SvxULSpaceItem::GetPropUpper(), SvxBoxItem::GetRight(), SvxLRSpaceItem::GetRight(), SvxLRSpaceItem::GetTextFirstLineOfst(), SvxBoxItem::GetTop(), Color::GetTransparency(), 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(), 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, 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_PAGEDESC, 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_BACKGROUND_STRETCH, 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_TOP, XML_TRANSPARENT, and XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT.

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

void SvXMLExportItemMapper::setMapEntries ( SvXMLItemMapEntriesRef  rMapEntries)
inline

Definition at line 93 of file xmlexpit.hxx.

References mrMapEntries.

Member Data Documentation

SvXMLItemMapEntriesRef SvXMLExportItemMapper::mrMapEntries
protected

Definition at line 37 of file xmlexpit.hxx.

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


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