OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [office] How to store a background image of a shape in flat format


Hi members,

I have made https://issues.oasis-open.org/browse/OFFICE-3933 for it. The attachment contains the diff for the schema.

Kind regards
Regina

Regina Henschel schrieb:
If you use the packed format you can use a folder 'Pictures' (or 'media'
in case of PowerPoint) with an image e.g. XYZ.png.

And in <office:styles> you have
<draw:fill-image draw:name="foo" xlink:href="Pictures/XYZ.png"
xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>

But how do you store the image in flat format? In contrast to a
<style:background-image> the <draw:fill-image> has no child element
<office:binary-data>.

--- OpenDocument-v1.2-os-schema.rng	2017-08-23 01:39:12.187248700 +0200
+++ OpenDocument-v1.2-os-schema_drawFillImage.rng	2017-08-28 22:38:25.626770100 +0200
@@ -14021,27 +14021,17 @@
 		</interleave>
 	</define>
 	<define name="draw-fill-image">
 		<element name="draw:fill-image">
 			<ref name="draw-fill-image-attlist"/>
-			<attribute name="xlink:type">
-				<value>simple</value>
-			</attribute>
-			<attribute name="xlink:href">
-				<ref name="anyIRI"/>
-			</attribute>
-			<optional>
-				<attribute name="xlink:show">
-					<value>embed</value>
-				</attribute>
-			</optional>
-			<optional>
-				<attribute name="xlink:actuate">
-					<value>onLoad</value>
-				</attribute>
-			</optional>
-			<empty/>
+            <choice>
+                <group>
+                    <ref name="common-draw-data-attlist"/>
+                    <empty/>
+                </group>    
+                <ref name="office-binary-data"/>                
+            </choice>
 		</element>
 	</define>
 	<define name="draw-fill-image-attlist">
 		<interleave>
 			<attribute name="draw:name">


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]