LibreOffice Module sw (master) 1
|
#include <xmlexpit.hxx>
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 SfxPoolItem * | GetItem (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 |
Definition at line 34 of file xmlexpit.hxx.
|
explicit |
Definition at line 290 of file xmlexpit.cxx.
|
virtual |
Definition at line 295 of file xmlexpit.cxx.
|
protected |
Definition at line 241 of file xmlexpit.cxx.
References GetItem(), handleElementItem(), SvXMLExport::IgnorableWhitespace(), MID_SW_FLAG_ELEMENT_ITEM_EXPORT, mrMapEntries, nCount, nIndex, SvXMLItemMapEntry::nMemberId, SvXMLItemMapEntry::nWhichId, and rSet.
|
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().
|
protected |
Definition at line 107 of file xmlexpit.cxx.
References SvXMLNamespaceMap::Add(), comphelper::AttributeList::AddAttribute(), aXML_KeepTogetherType, SvXMLUnitConverter::convertEnum(), SvXMLItemMapEntry::eLocalName, SvXMLNamespaceMap::GetIndexByPrefix(), SvXMLNamespaceMap::GetNameByIndex(), SvXMLNamespaceMap::GetQNameByKey(), SfxBoolItem::GetValue(), GetXMLToken(), handleSpecialItem(), i, MID_SW_FLAG_ELEMENT_ITEM_EXPORT, MID_SW_FLAG_MASK, MID_SW_FLAG_SPECIAL_ITEM_EXPORT, nCount, SvXMLItemMapEntry::nMemberId, SvXMLItemMapEntry::nNameSpace, QueryXMLValue(), RES_FRAMEDIR(), sName, sPrefix, SfxPoolItem::Which(), XML_BT_LR, XML_NAMESPACE_LO_EXT, XML_NAMESPACE_STYLE, XML_TB_RL90, XML_WRITING_MODE, and XML_XMLNS.
void SvXMLExportItemMapper::exportXML | ( | SvXMLExport & | rExport, |
const SfxItemSet & | rSet, | ||
const SvXMLUnitConverter & | rUnitConverter, | ||
::xmloff::token::XMLTokenEnum | ePropToken | ||
) | const |
|
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().
|
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().
|
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().
|
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().
|
inline |
Definition at line 93 of file xmlexpit.hxx.
References mrMapEntries.
|
private |
Definition at line 36 of file xmlexpit.hxx.
Referenced by exportElementItems(), exportXML(), and setMapEntries().