Hi Bryan,

You can set @style:vertical-pos="middle" in the associated draw:style ("gr2").

A good way to check these things is to create a simple document with openoffice and try to format it the way you wish and then look at the generated XML, but you probably already knew that ;)

Bests,
Lars

Bryan Rasmussen wrote:
Okay I find it is <text:p text:style-name="Standard">ID<draw:control
draw:style-name="gr2" draw:text-style-name="P4" svg:width="3.897cm"
svg:height="0.498cm" text:anchor-type="as-char"
draw:control="control1"></draw:control></text:p>

does however this puts the input slightly lower than the preceding text. I
guess I can solve this with having both inside of a text:span element.
Cheers,
Bryan Rasmussen
-----Oprindelig meddelelse-----
Fra: Bryan Rasmussen [mailto:[EMAIL PROTECTED]
Sendt: 19. januar 2007 12:50
Til: [email protected]
Emne: [xml-dev] anchoring declaratively?


        
Hi, If I want to anchor a graphical element to the text preceding it how do I
do this in the markup? For example If I have:

<text:p text:style-name="Standard">ID<draw:control
draw:style-name="gr2" draw:text-style-name="P4" svg:width="3.897cm"
svg:height="0.498cm" svg:x="4.342cm" svg:y="0.613cm"
draw:control="control1"></draw:control></text:p>

How do I anchor the drawn control to the Text ID?

Cheers,
Bryan Rasmussen

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Lars Oppermann <[EMAIL PROTECTED]>          Sun Microsystems Inc.
Software Engineer - StarOffice           http://www.sun.com/staroffice

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to