diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-21 22:18:12 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-21 22:23:38 +0100 |
commit | 4b544037c4fdbcb8958723bb9ea3d9a33f43e6ee (patch) | |
tree | e37487e87b62cc91cc7f9d4fcea76ba4588ed186 | |
parent | 27a03eb3ba2064cdcf14fc61bfd83facd1ef4282 (diff) |
writerfilter: convert sprm:P{WAlignFont,TightWrap,OutLvl}
Change-Id: Id2090637953d98e899481a2e802815cdc6244e50
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper.cxx | 8 | ||||
-rw-r--r-- | writerfilter/source/doctok/resources.xmi | 93 | ||||
-rw-r--r-- | writerfilter/source/ooxml/model.xml | 6 | ||||
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 2 |
4 files changed, 8 insertions, 101 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx index acd7f8bb78e8..e9f57fa555e8 100644 --- a/writerfilter/source/dmapper/DomainMapper.cxx +++ b/writerfilter/source/dmapper/DomainMapper.cxx @@ -1234,7 +1234,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType break; case NS_ooxml::LN_CT_PPrBase_autoSpaceDN: break; - case NS_sprm::LN_PWAlignFont: + case NS_ooxml::LN_CT_PPrBase_textAlignment: { sal_Int16 nAlignment = 0; switch (nIntValue) @@ -1257,10 +1257,10 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType } rContext->Insert( PROP_PARA_VERT_ALIGNMENT, uno::makeAny( nAlignment) ); } - break; // sprmPWAlignFont + break; case NS_ooxml::LN_CT_PPrBase_textDirection: break; - case NS_sprm::LN_POutLvl: + case NS_ooxml::LN_CT_PPrBase_outlineLvl: { sal_Int16 nLvl = static_cast< sal_Int16 >( nIntValue ); if( m_pImpl->IsStyleSheetImport() ) @@ -1275,7 +1275,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType rContext->Insert(PROP_OUTLINE_LEVEL, uno::makeAny ( nLvl )); } } - break; // sprmPOutLvl + break; case NS_ooxml::LN_CT_PPrBase_bidi: { if (nIntValue != 0) diff --git a/writerfilter/source/doctok/resources.xmi b/writerfilter/source/doctok/resources.xmi index 18d9e645e3e7..0b8c40c35f1b 100644 --- a/writerfilter/source/doctok/resources.xmi +++ b/writerfilter/source/doctok/resources.xmi @@ -224,68 +224,6 @@ </UML:ModelElement.taggedValue> </UML:Class> <!--SPRM sprmPFWidowControl--> - <!--SPRM sprmPWAlignFont--> - <UML:Class xmi.id="sprmPWAlignFont" name="sprmPWAlignFont"> - <UML:ModelElement.stereotype> - <UML:Stereotype xmi.idref="ww8sprm"/> - </UML:ModelElement.stereotype> - <UML:ModelElement.taggedValue> - <UML:TaggedValue> - <UML:TaggedValue.dataValue>0x4439</UML:TaggedValue.dataValue> - <UML:TaggedValue.type> - <UML:TagDefinition xmi.idref="sprmcode"/> - </UML:TaggedValue.type> - </UML:TaggedValue> - </UML:ModelElement.taggedValue> - <UML:ModelElement.taggedValue> - <UML:TaggedValue> - <UML:TaggedValue.dataValue>rtf:sprmPWAlignFont</UML:TaggedValue.dataValue> - <UML:TaggedValue.type> - <UML:TagDefinition xmi.idref="sprmid"/> - </UML:TaggedValue.type> - </UML:TaggedValue> - </UML:ModelElement.taggedValue> - <UML:ModelElement.taggedValue> - <UML:TaggedValue> - <UML:TaggedValue.dataValue>paragraph</UML:TaggedValue.dataValue> - <UML:TaggedValue.type> - <UML:TagDefinition xmi.idref="kind"/> - </UML:TaggedValue.type> - </UML:TaggedValue> - </UML:ModelElement.taggedValue> - </UML:Class> - <!--SPRM sprmPWAlignFont--> - <!--SPRM sprmPOutLvl--> - <UML:Class xmi.id="sprmPOutLvl" name="sprmPOutLvl"> - <UML:ModelElement.stereotype> - <UML:Stereotype xmi.idref="ww8sprm"/> - </UML:ModelElement.stereotype> - <UML:ModelElement.taggedValue> - <UML:TaggedValue> - <UML:TaggedValue.dataValue>0x2640</UML:TaggedValue.dataValue> - <UML:TaggedValue.type> - <UML:TagDefinition xmi.idref="sprmcode"/> - </UML:TaggedValue.type> - </UML:TaggedValue> - </UML:ModelElement.taggedValue> - <UML:ModelElement.taggedValue> - <UML:TaggedValue> - <UML:TaggedValue.dataValue>rtf:sprmPOutLvl</UML:TaggedValue.dataValue> - <UML:TaggedValue.type> - <UML:TagDefinition xmi.idref="sprmid"/> - </UML:TaggedValue.type> - </UML:TaggedValue> - </UML:ModelElement.taggedValue> - <UML:ModelElement.taggedValue> - <UML:TaggedValue> - <UML:TaggedValue.dataValue>paragraph</UML:TaggedValue.dataValue> - <UML:TaggedValue.type> - <UML:TagDefinition xmi.idref="kind"/> - </UML:TaggedValue.type> - </UML:TaggedValue> - </UML:ModelElement.taggedValue> - </UML:Class> - <!--SPRM sprmPOutLvl--> <!--SPRM sprmCHighlight--> <UML:Class xmi.id="sprmCHighlight" name="sprmCHighlight"> <UML:ModelElement.stereotype> @@ -1092,37 +1030,6 @@ </UML:ModelElement.taggedValue> </UML:Class> <!--SPRM sprmCComplexScript--> - <!--SPRM sprmPTightWrap--> - <UML:Class xmi.id="sprmPTightWrap" name="sprmPTightWrap"> - <UML:ModelElement.stereotype> - <UML:Stereotype xmi.idref="ww8sprm"/> - </UML:ModelElement.stereotype> - <UML:ModelElement.taggedValue> - <UML:TaggedValue> - <UML:TaggedValue.dataValue>0x2471</UML:TaggedValue.dataValue> - <UML:TaggedValue.type> - <UML:TagDefinition xmi.idref="sprmcode"/> - </UML:TaggedValue.type> - </UML:TaggedValue> - </UML:ModelElement.taggedValue> - <UML:ModelElement.taggedValue> - <UML:TaggedValue> - <UML:TaggedValue.dataValue>rtf:sprmPTightWrap</UML:TaggedValue.dataValue> - <UML:TaggedValue.type> - <UML:TagDefinition xmi.idref="sprmid"/> - </UML:TaggedValue.type> - </UML:TaggedValue> - </UML:ModelElement.taggedValue> - <UML:ModelElement.taggedValue> - <UML:TaggedValue> - <UML:TaggedValue.dataValue>paragraph</UML:TaggedValue.dataValue> - <UML:TaggedValue.type> - <UML:TagDefinition xmi.idref="kind"/> - </UML:TaggedValue.type> - </UML:TaggedValue> - </UML:ModelElement.taggedValue> - </UML:Class> - <!--SPRM sprmPTightWrap--> <!--SPRM sprmCFEmboss--> <UML:Class xmi.id="sprmCFEmboss" name="sprmCFEmboss"> <UML:ModelElement.stereotype> diff --git a/writerfilter/source/ooxml/model.xml b/writerfilter/source/ooxml/model.xml index 10ded769ca92..0a00ea212991 100644 --- a/writerfilter/source/ooxml/model.xml +++ b/writerfilter/source/ooxml/model.xml @@ -22592,9 +22592,9 @@ <element name="suppressOverlap" tokenid="ooxml:CT_PPrBase_suppressOverlap"/> <element name="jc" tokenid="ooxml:CT_PPrBase_jc"/> <element name="textDirection" tokenid="ooxml:CT_PPrBase_textDirection"/> - <element name="textAlignment" tokenid="sprm:PWAlignFont"/> - <element name="textboxTightWrap" tokenid="sprm:PTightWrap"/> - <element name="outlineLvl" tokenid="sprm:POutLvl"/> + <element name="textAlignment" tokenid="ooxml:CT_PPrBase_textAlignment"/> + <element name="textboxTightWrap" tokenid="ooxml:CT_PPrBase_textboxTightWrap"/> + <element name="outlineLvl" tokenid="ooxml:CT_PPrBase_outlineLvl"/> <element name="divId" tokenid="ooxml:CT_PPrBase_divId"/> <element name="cnfStyle" tokenid="ooxml:CT_PPrBase_cnfStyle"/> </resource> diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index b7613281db30..52e2c1920692 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -2126,7 +2126,7 @@ int RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword) if (nParam >= 0) { RTFValue::Pointer_t pValue(new RTFValue(nParam)); - m_aStates.top().aParagraphSprms.set(NS_sprm::LN_PWAlignFont, pValue); + m_aStates.top().aParagraphSprms.set(NS_ooxml::LN_CT_PPrBase_textAlignment, pValue); return 0; } |