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

#include <xmlimpit.hxx>

Inheritance diagram for SvXMLImportItemMapper:
[legend]
Collaboration diagram for SvXMLImportItemMapper:
[legend]

Public Member Functions

 SvXMLImportItemMapper (SvXMLItemMapEntriesRef const &rMapEntries)
 
virtual ~SvXMLImportItemMapper ()
 
void importXML (SfxItemSet &rSet, css::uno::Reference< css::xml::sax::XAttributeList > const &xAttrList, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap)
 fills the given itemset with the attributes in the given list More...
 
virtual bool handleSpecialItem (const SvXMLItemMapEntry &rEntry, SfxPoolItem &rItem, SfxItemSet &rSet, const OUString &rValue, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap)
 this method is called for every item that has the MID_SW_FLAG_SPECIAL_ITEM_IMPORT flag set More...
 
virtual bool handleNoItem (const SvXMLItemMapEntry &rEntry, SfxItemSet &rSet, const OUString &rValue, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap)
 this method is called for every item that has the MID_SW_FLAG_NO_ITEM_IMPORT flag set More...
 
virtual void finished (SfxItemSet &rSet, SvXMLUnitConverter const &rUnitConverter) const
 This method is called when all attributes have benn processed. More...
 
virtual void setMapEntries (SvXMLItemMapEntriesRef rMapEntries)
 
const SvXMLItemMapEntriesRefgetMapEntries () const
 

Static Public Member Functions

static bool PutXMLValue (SfxPoolItem &rItem, const OUString &rValue, sal_uInt16 nMemberId, const SvXMLUnitConverter &rUnitConverter)
 This method is called for every item that should be set based upon an XML attribute value. More...
 

Protected Attributes

SvXMLItemMapEntriesRef mrMapEntries
 

Detailed Description

Definition at line 31 of file xmlimpit.hxx.

Constructor & Destructor Documentation

SvXMLImportItemMapper::SvXMLImportItemMapper ( SvXMLItemMapEntriesRef const &  rMapEntries)
explicit

Definition at line 65 of file xmlimpit.cxx.

SvXMLImportItemMapper::~SvXMLImportItemMapper ( )
virtual

Definition at line 71 of file xmlimpit.cxx.

Member Function Documentation

void SvXMLImportItemMapper::finished ( SfxItemSet rSet,
SvXMLUnitConverter const &  rUnitConverter 
) const
virtual

This method is called when all attributes have benn processed.

It may be used to remove items that are incomplete

Reimplemented in SwXMLImportTableItemMapper_Impl.

Definition at line 215 of file xmlimpit.cxx.

Referenced by importXML().

const SvXMLItemMapEntriesRef & SvXMLImportItemMapper::getMapEntries ( ) const
inline

Definition at line 81 of file xmlimpit.hxx.

References mrMapEntries.

bool SvXMLImportItemMapper::handleNoItem ( const SvXMLItemMapEntry rEntry,
SfxItemSet rSet,
const OUString &  rValue,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap 
)
virtual

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

Definition at line 204 of file xmlimpit.cxx.

Referenced by SwXMLImportTableItemMapper_Impl::handleNoItem(), and importXML().

bool SvXMLImportItemMapper::handleSpecialItem ( const SvXMLItemMapEntry rEntry,
SfxPoolItem rItem,
SfxItemSet rSet,
const OUString &  rValue,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap 
)
virtual

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

Reimplemented in SwXMLImportTableItemMapper_Impl.

Definition at line 191 of file xmlimpit.cxx.

Referenced by importXML().

void SvXMLImportItemMapper::importXML ( SfxItemSet rSet,
css::uno::Reference< css::xml::sax::XAttributeList > const &  xAttrList,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap 
)
bool SvXMLImportItemMapper::PutXMLValue ( SfxPoolItem rItem,
const OUString &  rValue,
sal_uInt16  nMemberId,
const SvXMLUnitConverter rUnitConverter 
)
static

This method is called for every item that should be set based upon an XML attribute value.

Definition at line 244 of file xmlimpit.cxx.

References ALL_BORDER, ALL_BORDER_LINE_WIDTH, ALL_BORDER_PADDING, ATT_FIX_SIZE, ATT_MIN_SIZE, ATT_VAR_SIZE, aXMLTableAlignMap, aXMLTableVAlignMap, BOTTOM_BORDER, BOTTOM_BORDER_LINE_WIDTH, BOTTOM_BORDER_PADDING, COL_BLACK(), sax::Converter::convertBool(), sax::Converter::convertColor(), SvXMLUnitConverter::convertEnum(), SvXMLUnitConverter::convertMeasureToCore(), sax::Converter::convertNumber(), sax::Converter::convertPercent(), XMLPropertyHandlerFactory::CreatePropertyHandler(), ePos, SvxBrushItem::GetColor(), SvxBrushItem::GetGraphicPos(), SvXMLTokenEnumerator::getNextToken(), GPOS_AREA, GPOS_LB, GPOS_LM, GPOS_LT, GPOS_MM, GPOS_NONE, GPOS_RB, GPOS_TILED, IsXMLToken(), 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_COL_WIDTH, MID_FRMSIZE_FIX_HEIGHT, MID_FRMSIZE_MIN_HEIGHT, MID_FRMSIZE_REL_COL_WIDTH, MID_FRMSIZE_REL_WIDTH, MID_FRMSIZE_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, MINLAY, sw::sidebar::NONE, nPos, BoxHolder::pBottom, BoxHolder::pLeft, BoxHolder::pRight, psXML_BreakType, psXML_BrushHoriPos, psXML_BrushRepeat, psXML_BrushVertPos, BoxHolder::pTop, SfxPoolItem::PutValue(), 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, SAL_MAX_UINT16, SvxLRSpaceItem::SetAutoFirst(), SvxBrushItem::SetColor(), SvxShadowItem::SetColor(), SvxBoxItem::SetDistance(), SvxBrushItem::SetGraphicFilter(), SvxBrushItem::SetGraphicPos(), SvxSizeItem::SetHeight(), SwFormatFrameSize::SetHeightSizeType(), SwFormatHoriOrient::SetHoriOrient(), SvxBoxItem::SetLine(), SvxShadowItem::SetLocation(), SvxULSpaceItem::SetLower(), SwFormatPageDesc::SetNumOffset(), SvxLRSpaceItem::SetRight(), SvxLRSpaceItem::SetTextFirstLineOfst(), SvxLRSpaceItem::SetTextLeft(), Color::SetTransparency(), SvxULSpaceItem::SetUpper(), SfxBoolItem::SetValue(), SwFormatVertOrient::SetVertOrient(), SvxSizeItem::SetWidth(), SvxShadowItem::SetWidth(), SwFormatFrameSize::SetWidthPercent(), sw_frmitems_MergeXMLHoriPos(), sw_frmitems_MergeXMLVertPos(), sw_frmitems_parseXMLBorder(), sw_frmitems_setXMLBorder(), TOP_BORDER, TOP_BORDER_LINE_WIDTH, TOP_BORDER_PADDING, USHRT_MAX, SfxPoolItem::Which(), XML_ALWAYS, XML_AUTO, XML_BT_LR, XML_CENTER, XML_COLLAPSING, XML_FALSE, XML_NONE, XML_SEPARATING, XML_TRANSPARENT, XML_TRUE, and XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT.

Referenced by SwXMLImportTableItemMapper_Impl::finished(), SwXMLImportTableItemMapper_Impl::handleSpecialItem(), importXML(), and SwXMLBrushItemImportContext::ProcessAttrs().

void SvXMLImportItemMapper::setMapEntries ( SvXMLItemMapEntriesRef  rMapEntries)
virtual

Reimplemented in SwXMLImportTableItemMapper_Impl.

Definition at line 76 of file xmlimpit.cxx.

References mrMapEntries.

Referenced by SwXMLImportTableItemMapper_Impl::setMapEntries().

Member Data Documentation

SvXMLItemMapEntriesRef SvXMLImportItemMapper::mrMapEntries
protected

Definition at line 34 of file xmlimpit.hxx.

Referenced by getMapEntries(), importXML(), and setMapEntries().


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