Hi Jan,
in content.xml of a document containing placeholders you will find an
attribute "text:description" in every placeholder:
....<text:placeholder text:placeholder-type="text"
text:description="reference1">....
you can define this description in the dialog while creating the
placeholder. I don't know how you can get this information through the
API but I would bet it's easy to find if you have already found all
placeholders :).
Perhaps someone on the list will post a snippet .
Cheers
Harald
Jan Füssel schrieb:
This service seems to be an "internal" service that is not
instantiatable without a certain context. I assume that you can
instantiate it only with the XMultiServiceFactory interface of a text
document, but not from the general service manager you either received
or bootstrapped. Such services very often are just UNO wrappers around
some C++ classes bound to other C++ classes so that these services are
not exchangeable.
Can you explain why you wanted to extend this service?
i want to write an addon which is similar to known mailmerge-scenarios.
the user can add a placeholder via an basic dialog into an textdocument.
this placeholder has the following properties:
- a displayed value
- an expression which selects the value in an datasource
- some other conditions, like repeatable, inserted value if value isn't
present in the datasource, ...
this properties must be stored persistent IN the document.
the placeholder have to be unmodifiable by the user directly
if the user (double-)click on the placeholder an edit dialog should be
shown
i have a resolution for the most of this cases. i can also store the
properties of the placeholder in the document in different ways, but i
need
a way to reference the placeholder, like an id.
is there an undocumented way to get an document-wide, unique
identifier of
an text-element?
regards
jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]