DffUDefProp
This commit is contained in:
parent
e6a6fe31df
commit
70c3efa149
3 changed files with 142 additions and 7 deletions
|
@ -4,9 +4,9 @@
|
|||
*
|
||||
* $RCSfile: DffImpl.cxx,v $
|
||||
*
|
||||
* $Revision: 1.9 $
|
||||
* $Revision: 1.10 $
|
||||
*
|
||||
* last change: $Author: hbrinkm $ $Date: 2006-11-27 09:03:47 $
|
||||
* last change: $Author: hbrinkm $ $Date: 2006-12-01 10:17:21 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -485,4 +485,36 @@ DffSpContainer::get_shptxt()
|
|||
|
||||
return pResult;
|
||||
}
|
||||
|
||||
// DffUDefProp
|
||||
|
||||
void DffUDefProp::resolveNoAuto(Properties & rHandler)
|
||||
{
|
||||
sal_uInt32 nOffset = 0x8;
|
||||
sal_uInt32 nCount = getCount();
|
||||
|
||||
while (nOffset + 6 <= nCount)
|
||||
{
|
||||
sal_uInt16 nPid = getU16(nOffset);
|
||||
sal_uInt32 nValue = getU32(nOffset + 2);
|
||||
|
||||
sal_uInt32 nAttrid = 0;
|
||||
switch (nPid)
|
||||
{
|
||||
case 0x18f: nAttrid = NS_rtf::LN_XAlign; break;
|
||||
case 0x190: nAttrid = NS_rtf::LN_XRelTo; break;
|
||||
case 0x191: nAttrid = NS_rtf::LN_YAlign; break;
|
||||
case 0x192: nAttrid = NS_rtf::LN_YRelTo; break;
|
||||
case 0x1bf: nAttrid = NS_rtf::LN_LayoutInTableCell; break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
WW8Value::Pointer_t pVal = createValue(nValue);
|
||||
rHandler.attribute(nAttrid, *pVal);
|
||||
|
||||
nOffset += 6;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -380,6 +380,81 @@
|
|||
</UML:ModelElement.stereotype>
|
||||
</UML:Attribute>
|
||||
</UML:Classifier.feature>
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute name="XAlign">
|
||||
<UML:ModelElement.taggedValue>
|
||||
<UML:TaggedValue>
|
||||
<UML:TaggedValue.dataValue>rtf:XAlign</UML:TaggedValue.dataValue>
|
||||
<UML:TaggedValue.type>
|
||||
<UML:TagDefinition xmi.idref="attrid"/>
|
||||
</UML:TaggedValue.type>
|
||||
</UML:TaggedValue>
|
||||
</UML:ModelElement.taggedValue>
|
||||
<UML:ModelElement.stereotype>
|
||||
<UML:Stereotype xmi.idref="attribute"/>
|
||||
</UML:ModelElement.stereotype>
|
||||
</UML:Attribute>
|
||||
</UML:Classifier.feature>
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute name="YAlign">
|
||||
<UML:ModelElement.taggedValue>
|
||||
<UML:TaggedValue>
|
||||
<UML:TaggedValue.dataValue>rtf:YAlign</UML:TaggedValue.dataValue>
|
||||
<UML:TaggedValue.type>
|
||||
<UML:TagDefinition xmi.idref="attrid"/>
|
||||
</UML:TaggedValue.type>
|
||||
</UML:TaggedValue>
|
||||
</UML:ModelElement.taggedValue>
|
||||
<UML:ModelElement.stereotype>
|
||||
<UML:Stereotype xmi.idref="attribute"/>
|
||||
</UML:ModelElement.stereotype>
|
||||
</UML:Attribute>
|
||||
</UML:Classifier.feature>
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute name="XRelTo">
|
||||
<UML:ModelElement.taggedValue>
|
||||
<UML:TaggedValue>
|
||||
<UML:TaggedValue.dataValue>rtf:XRelTo</UML:TaggedValue.dataValue>
|
||||
<UML:TaggedValue.type>
|
||||
<UML:TagDefinition xmi.idref="attrid"/>
|
||||
</UML:TaggedValue.type>
|
||||
</UML:TaggedValue>
|
||||
</UML:ModelElement.taggedValue>
|
||||
<UML:ModelElement.stereotype>
|
||||
<UML:Stereotype xmi.idref="attribute"/>
|
||||
</UML:ModelElement.stereotype>
|
||||
</UML:Attribute>
|
||||
</UML:Classifier.feature>
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute name="YRelTo">
|
||||
<UML:ModelElement.taggedValue>
|
||||
<UML:TaggedValue>
|
||||
<UML:TaggedValue.dataValue>rtf:YRelTo</UML:TaggedValue.dataValue>
|
||||
<UML:TaggedValue.type>
|
||||
<UML:TagDefinition xmi.idref="attrid"/>
|
||||
</UML:TaggedValue.type>
|
||||
</UML:TaggedValue>
|
||||
</UML:ModelElement.taggedValue>
|
||||
<UML:ModelElement.stereotype>
|
||||
<UML:Stereotype xmi.idref="attribute"/>
|
||||
</UML:ModelElement.stereotype>
|
||||
</UML:Attribute>
|
||||
</UML:Classifier.feature>
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute name="LayoutInTableCell">
|
||||
<UML:ModelElement.taggedValue>
|
||||
<UML:TaggedValue>
|
||||
<UML:TaggedValue.dataValue>rtf:LayoutInTableCell</UML:TaggedValue.dataValue>
|
||||
<UML:TaggedValue.type>
|
||||
<UML:TagDefinition xmi.idref="attrid"/>
|
||||
</UML:TaggedValue.type>
|
||||
</UML:TaggedValue>
|
||||
</UML:ModelElement.taggedValue>
|
||||
<UML:ModelElement.stereotype>
|
||||
<UML:Stereotype xmi.idref="attribute"/>
|
||||
</UML:ModelElement.stereotype>
|
||||
</UML:Attribute>
|
||||
</UML:Classifier.feature>
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute name="dffrecord">
|
||||
<UML:ModelElement.taggedValue>
|
||||
|
@ -36276,6 +36351,30 @@
|
|||
<!--SPRM sprmTTRLeft-->
|
||||
<!--SPRMS-->
|
||||
<!--DFFS-->
|
||||
<UML:Class xmi.id="UDefProp" name="UDefProp">
|
||||
<UML:ModelElement.stereotype>
|
||||
<UML:Stereotype xmi.idref="dffrecord"/>
|
||||
</UML:ModelElement.stereotype>
|
||||
<UML:ModelElement.stereotype>
|
||||
<UML:Stereotype xmi.idref="resolvenoauto"/>
|
||||
</UML:ModelElement.stereotype>
|
||||
<UML:ModelElement.taggedValue>
|
||||
<UML:TaggedValue>
|
||||
<UML:TaggedValue.dataValue>0xf122</UML:TaggedValue.dataValue>
|
||||
<UML:TaggedValue.type>
|
||||
<UML:TagDefinition xmi.idref="dffid"/>
|
||||
</UML:TaggedValue.type>
|
||||
</UML:TaggedValue>
|
||||
</UML:ModelElement.taggedValue>
|
||||
</UML:Class>
|
||||
<UML:Generalization isSpecification="false" xmi.id="UDefProp-Properties" >
|
||||
<UML:Generalization.child>
|
||||
<UML:Class xmi.idref="UDefProp" />
|
||||
</UML:Generalization.child>
|
||||
<UML:Generalization.parent>
|
||||
<UML:Class xmi.idref="Properties" />
|
||||
</UML:Generalization.parent>
|
||||
</UML:Generalization>
|
||||
<!--DFF FSPGR-->
|
||||
<UML:Class xmi.id="FSPGR" name="FSPGR">
|
||||
<UML:ModelElement.stereotype>
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
*
|
||||
* $RCSfile: resources.xsl,v $
|
||||
*
|
||||
* $Revision: 1.5 $
|
||||
* $Revision: 1.6 $
|
||||
*
|
||||
* last change: $Author: hbrinkm $ $Date: 2006-11-27 09:03:48 $
|
||||
* last change: $Author: hbrinkm $ $Date: 2006-12-01 10:17:21 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -48,9 +48,9 @@
|
|||
*
|
||||
* $RCSfile: resources.xsl,v $
|
||||
*
|
||||
* $Revision: 1.5 $
|
||||
* $Revision: 1.6 $
|
||||
*
|
||||
* last change: $Author: hbrinkm $ $Date: 2006-11-27 09:03:48 $
|
||||
* last change: $Author: hbrinkm $ $Date: 2006-12-01 10:17:21 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -844,7 +844,11 @@ public:
|
|||
<xsl:value-of select="$classname"/>
|
||||
<xsl:text>();
|
||||
|
||||
virtual void resolveLocal(Properties & props);
|
||||
virtual void resolveLocal(Properties & props);</xsl:text>
|
||||
<xsl:if test='.//UML:Stereotype[@xmi.idref = "resolvenoauto"]'>
|
||||
void resolveNoAuto(Properties & rHandler);
|
||||
</xsl:if>
|
||||
<xsl:text>
|
||||
virtual void dump(OutputWithDepth < string > & o) const;
|
||||
|
||||
virtual DffRecord * clone() const { return new </xsl:text>
|
||||
|
|
Loading…
Reference in a new issue