LibreOffice Module sw (master)  1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
SwXMLImportTableItemMapper_Impl Class Reference
Inheritance diagram for SwXMLImportTableItemMapper_Impl:
[legend]
Collaboration diagram for SwXMLImportTableItemMapper_Impl:
[legend]

Public Member Functions

 SwXMLImportTableItemMapper_Impl (const SvXMLItemMapEntriesRef &rMapEntries)
 
virtual bool handleSpecialItem (const SvXMLItemMapEntry &rEntry, SfxPoolItem &rItem, SfxItemSet &rSet, const OUString &rValue, const SvXMLUnitConverter &rUnitConverter) override
 this method is called for every item that has the MID_SW_FLAG_SPECIAL_ITEM_IMPORT flag set More...
 
virtual bool handleNoItem (SvXMLItemMapEntry const &rEntry, SfxItemSet &rSet, OUString const &rValue, SvXMLUnitConverter const &rUnitConverter, SvXMLNamespaceMap const &rNamespaceMap) override
 
virtual void finished (SfxItemSet &rSet, SvXMLUnitConverter const &rUnitConverter) const override
 This method is called when all attributes have benn processed. More...
 
virtual void setMapEntries (SvXMLItemMapEntriesRef rMapEntries) override
 
- Public Member Functions inherited from SvXMLImportItemMapper
 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 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...
 
const SvXMLItemMapEntriesRefgetMapEntries () const
 

Private Types

enum  {
  LEFT = 0,
  RIGHT = 1,
  TOP = 2,
  BOTTOM = 3
}
 

Private Member Functions

void Reset ()
 

Private Attributes

OUString m_FoMarginValue
 
bool m_bHaveMargin [4]
 

Additional Inherited Members

- Static Public Member Functions inherited from SvXMLImportItemMapper
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 inherited from SvXMLImportItemMapper
SvXMLItemMapEntriesRef mrMapEntries
 

Detailed Description

Definition at line 55 of file xmlitemi.cxx.

Member Enumeration Documentation

anonymous enum
private
Enumerator
LEFT 
RIGHT 
TOP 
BOTTOM 

Definition at line 84 of file xmlitemi.cxx.

Constructor & Destructor Documentation

SwXMLImportTableItemMapper_Impl::SwXMLImportTableItemMapper_Impl ( const SvXMLItemMapEntriesRef rMapEntries)
explicit

Definition at line 88 of file xmlitemi.cxx.

References Reset().

Member Function Documentation

void SwXMLImportTableItemMapper_Impl::finished ( SfxItemSet rSet,
SvXMLUnitConverter const &  rUnitConverter 
) const
overridevirtual

This method is called when all attributes have benn processed.

It may be used to remove items that are incomplete

Reimplemented from SvXMLImportItemMapper.

Definition at line 185 of file xmlitemi.cxx.

References SfxPoolItem::Clone(), SfxItemPool::GetDefaultItem(), SfxItemSet::GetItemState(), SfxItemSet::GetPool(), i, SfxItemPool::IsWhich(), m_bHaveMargin, m_FoMarginValue, MID_L_MARGIN, MID_LO_MARGIN, MID_R_MARGIN, MID_UP_MARGIN, SfxItemSet::Put(), SvXMLImportItemMapper::PutXMLValue(), RES_LR_SPACE, and RES_UL_SPACE.

bool SwXMLImportTableItemMapper_Impl::handleNoItem ( SvXMLItemMapEntry const &  rEntry,
SfxItemSet rSet,
OUString const &  rValue,
SvXMLUnitConverter const &  rUnitConverter,
SvXMLNamespaceMap const &  rNamespaceMap 
)
overridevirtual
bool SwXMLImportTableItemMapper_Impl::handleSpecialItem ( const SvXMLItemMapEntry rEntry,
SfxPoolItem rItem,
SfxItemSet rSet,
const OUString &  rValue,
const SvXMLUnitConverter rUnitConverter 
)
overridevirtual
void SwXMLImportTableItemMapper_Impl::Reset ( void  )
private

Definition at line 95 of file xmlitemi.cxx.

References i, m_bHaveMargin, and m_FoMarginValue.

Referenced by setMapEntries(), and SwXMLImportTableItemMapper_Impl().

void SwXMLImportTableItemMapper_Impl::setMapEntries ( SvXMLItemMapEntriesRef  rMapEntries)
overridevirtual

Reimplemented from SvXMLImportItemMapper.

Definition at line 104 of file xmlitemi.cxx.

References Reset(), and SvXMLImportItemMapper::setMapEntries().

Member Data Documentation

bool SwXMLImportTableItemMapper_Impl::m_bHaveMargin[4]
private

Definition at line 85 of file xmlitemi.cxx.

Referenced by finished(), handleSpecialItem(), and Reset().

OUString SwXMLImportTableItemMapper_Impl::m_FoMarginValue
private

Definition at line 83 of file xmlitemi.cxx.

Referenced by finished(), handleNoItem(), and Reset().


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