Kaydet (Commit) f79f3e07 authored tarafından Jacobo Aragunde Pérez's avatar Jacobo Aragunde Pérez

ooxml: import combobox sdt control

This patch modifies the importer to reuse the code that imports the
dropdown control and creates a combo box with it.

The only drawback is that the combobox tag is transformed into a
dropdownlist when exported back, but it doesn't seem to be an issue
from the point of view of the user.

Change-Id: I340d0cf02d8c5ea575ad4784a1242d2a3e9bd214
üst 64ad5756
...@@ -2203,6 +2203,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext ) ...@@ -2203,6 +2203,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext )
} }
break; break;
case NS_ooxml::LN_CT_SdtPr_dropDownList: case NS_ooxml::LN_CT_SdtPr_dropDownList:
case NS_ooxml::LN_CT_SdtPr_comboBox:
{ {
writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps(); writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps();
if (pProperties.get() != NULL) if (pProperties.get() != NULL)
......
...@@ -18774,19 +18774,6 @@ ...@@ -18774,19 +18774,6 @@
</attribute> </attribute>
</optional> </optional>
</define> </define>
<define name="CT_SdtComboBox">
<zeroOrMore>
<element name="listItem">
<ref name="CT_SdtListItem"/>
</element>
</zeroOrMore>
<optional>
<attribute name="lastValue">
<text/>
<xs:documentation>Combo Box Last Saved Value</xs:documentation>
</attribute>
</optional>
</define>
<define name="CT_SdtDocPart"> <define name="CT_SdtDocPart">
<optional> <optional>
<element name="docPartGallery"> <element name="docPartGallery">
...@@ -18896,7 +18883,7 @@ ...@@ -18896,7 +18883,7 @@
<ref name="CT_OnOff"/> <ref name="CT_OnOff"/>
</element> </element>
<element name="comboBox"> <element name="comboBox">
<ref name="CT_SdtComboBox"/> <ref name="CT_SdtDropDownList"/>
</element> </element>
<element name="w14:checkbox"> <element name="w14:checkbox">
<ref name="CT_SdtCheckbox"/> <ref name="CT_SdtCheckbox"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment