|
List Info
Thread: adding paragraphs to an empty document
|
|
| adding paragraphs to an empty document |

|
2007-08-06 04:11:52 |
Hi,
After creating an empty document using
TextDocument text = new TextDocument();
as an example, I would like to add two paragraphs: one with
normal text,
and the second with italic.
I'm not sure what method is the best. Is one supposed to use
getBody(),
then getNode() and manipulate the XML directly or is there a
better
method?
Thanks,
- M
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe odftoolkit.openoffice.org
For additional commands, e-mail: dev-help odftoolkit.openoffice.org
|
|
| Re: adding paragraphs to an empty
document |

|
2007-08-06 04:49:01 |
Hi Miklos,
These API are not yet available in odf4j. While you can
certainly use
getNode() and manipulate the XML directly this is not the
way it is
intended to work in the future.
I would be interesting to hear how you as a user of the API
would expect
the API for adding content to look like.
Bests,
Lars
Miklos Vajna wrote:
> Hi,
>
> After creating an empty document using
>
> TextDocument text = new TextDocument();
>
> as an example, I would like to add two paragraphs: one
with normal text,
> and the second with italic.
>
> I'm not sure what method is the best. Is one supposed
to use getBody(),
> then getNode() and manipulate the XML directly or is
there a better
> method?
>
> Thanks,
>
> - M
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribe odftoolkit.openoffice.org
> For additional commands, e-mail: dev-help odftoolkit.openoffice.org
>
--
Sun Microsystems Lars Oppermann
<lars.oppermann sun.com>
Nagelsweg 55 Software Engineer
20097 Hamburg, Germany Phone: +49 40 23646 959
http://www.sun.com/
Fax: +49 40 23646 550
------------------------------------------------------------
-----------
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee
1,
D-85551 Kirchheim-Heimstetten, Amtsgericht Muenchen: HRB
161028
Geschaeftsfuehrer: Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe odftoolkit.openoffice.org
For additional commands, e-mail: dev-help odftoolkit.openoffice.org
|
|
| Re: adding paragraphs to an empty
document |

|
2007-08-06 06:15:03 |
Hello,
Na Mon, Aug 06, 2007 at 11:49:01AM +0200, Lars Oppermann
<Lars.Oppermann Sun.COM> pisal(a):
> These API are not yet available in odf4j. While you can
certainly use
> getNode() and manipulate the XML directly this is not
the way it is
> intended to work in the future.
Okay, then at least I know that I haven't missed something.
> I would be interesting to hear how you as a user of the
API would
> expect the API for adding content to look like.
Well, I'm not sure, maybe it would be good to have a look at
the API of
aodl (the C# lib) or ooolib (the perl one)?
- M
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe odftoolkit.openoffice.org
For additional commands, e-mail: dev-help odftoolkit.openoffice.org
|
|
| Re: adding paragraphs to an empty
document |

|
2007-08-06 06:54:51 |
Miklos Vajna wrote:
> Well, I'm not sure, maybe it would be good to have a
look at the API of
> aodl (the C# lib) or ooolib (the perl one)?
Yes, AODL ooolib as well as the existing OpenOffice.org UNO
API is what
I am already looking at for reusable patterns. Just wanted
to know
whether there are any other things that should be
considered...
Cheers,
Lars
--
Sun Microsystems Lars Oppermann
<lars.oppermann sun.com>
Nagelsweg 55 Software Engineer
20097 Hamburg, Germany Phone: +49 40 23646 959
http://www.sun.com/
Fax: +49 40 23646 550
------------------------------------------------------------
-----------
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee
1,
D-85551 Kirchheim-Heimstetten, Amtsgericht Muenchen: HRB
161028
Geschaeftsfuehrer: Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe odftoolkit.openoffice.org
For additional commands, e-mail: dev-help odftoolkit.openoffice.org
|
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|