You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Mathias Röllig <mr...@gmx.net> on 2015/09/14 18:55:40 UTC
reload of registered template directories (by extension)
Hello!
I created an extension with templates in it. The template path is
registered via Paths.xcu.
In general it works. But the problem is, that the templates must be
reloaded before.
For me this is a bug. AOO should update the template structure itself if
an extension provides a template path.
As a workaround: how can I update the templates via API?
In other words: what is the API equivalent for
File → Templates → Organise…: (Commands) Update
?
Thanks
Mathias
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: reload of registered template directories (by extension)
Posted by Mathias Röllig <mr...@gmx.net>.
Hello!
> Try the followings to update:
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/DocumentTemplates.html
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/XDocumentTemplates.html#update
Thank you very much! This is what I was searching for.
Regards, Mathias
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: reload of registered template directories (by extension)
Posted by Tsutomu Uchino <ha...@gmail.com>.
Hi,
Try the followings to update:
http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/DocumentTemplates.html
http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/XDocumentTemplates.html#update
Regards
2015-09-15 3:41 GMT+09:00 Mathias Röllig <mr...@gmx.net>:
> I created an extension with templates in it. The template path is
>> registered via Paths.xcu.
>> In general it works. But the problem is, that the templates must be
>> reloaded before.
>> For me this is a bug. AOO should update the template structure itself if
>> an extension provides a template path.
>>
>
> Sorry, must correct myself. All is working. The problem was, that the
> quickstarter was active, but under Ubuntu (64) 14.04 there is no
> quickstarter visible. So AOO wasn't complete closed and the configuration
> was not updated.
>
>
>
> As a workaround: how can I update the templates via API?
>> In other words: what is the API equivalent for
>> File → Templates → Organise…: (Commands) Update
>> ?
>>
>
> But if anybody knows the answer of the question above, I'm interested in.
>
>
>
> Thanks
> Mathias
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
>
Re: reload of registered template directories (by extension)
Posted by Mathias Röllig <mr...@gmx.net>.
> I created an extension with templates in it. The template path is
> registered via Paths.xcu.
> In general it works. But the problem is, that the templates must be
> reloaded before.
> For me this is a bug. AOO should update the template structure itself if
> an extension provides a template path.
Sorry, must correct myself. All is working. The problem was, that the
quickstarter was active, but under Ubuntu (64) 14.04 there is no
quickstarter visible. So AOO wasn't complete closed and the
configuration was not updated.
> As a workaround: how can I update the templates via API?
> In other words: what is the API equivalent for
> File → Templates → Organise…: (Commands) Update
> ?
But if anybody knows the answer of the question above, I'm interested in.
Thanks
Mathias
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org