<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Thorsten,<br>
<br>
On 04/03/2013 11:38 AM, Thorsten Behrens wrote:<br>
</div>
<blockquote
cite="mid:20130403093844.GM10700@thinkpad.thebehrens.net"
type="cite">
<pre wrap="">
you were asking about my API extension comment - I admit the code is
indeed rather involved in that case, you want to look into:
- xmloff/source/draw/sdpropls.cxx (the XML_SD_TYPE_PRESPAGE_DURATION
property)
- xmloff/source/draw/propimp0.cxx
(XMLDurationPropertyHdl::import/exportXML - it currently works with
integers)
- offapi/com/sun/star/presentation/DrawPage.idl (which is published
API, and has this [property] long Duration entry)
- sd/source/ui/unoidl/unopage.cxx
The ODF export works by extracting / pushing back UNO properties into
various presentation document bits and pieces, and wraps this a bit
opaquely, if generically, via this huge property table. So concretely,
I'd add a new HighresDuration (or somesuch) optional api property, and
handle that in xmloff during import. Keep the old Duration
implementation in sdpage, by simply rounding your internal model value
to integers.
</pre>
</blockquote>
<br>
I did as you suggested, created a new additional property
HighResDuration.<br>
<br>
However, I changed the duration in the sdpage too, since it's needed
to store the new double time value.<br>
<br>
You can review it on
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="https://gerrit.libreoffice.org/#/c/3176/">https://gerrit.libreoffice.org/#/c/3176/</a><br>
<br>
Thanks,<br>
Cuong Ngo.<br>
</body>
</html>