[libreoffice-users] Re: Cannot assign template to existing writer odt file

2015-12-16 Thread Andreas Säger
Am 16.12.2015 um 19:05 schrieb V Stuart Foote:
> 
> @Andreas, I don't agree with your assessment.  The
> XDocumentPropertiesSupplier is fully functional and suited to task.
> 

XDocumentPropertiesSupplier replaced XDocumentInfo

Sub Main
obj = ThisComponent.getDocumentInfo()
End Sub

still works with AOO and old versions of LO 3(?) but not with recent LO.
It was marked as deprecated since OpenOffice.org 2.x


Sub Main
obj = ThisComponent.getDocumentProperties()
End Sub

works with all ODF suites since OOo 2.x. The template changer extension
uses the wrong document info interface.



-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



[libreoffice-users] Re: Cannot assign template to existing writer odt file

2015-12-16 Thread V Stuart Foote
@Ken, *

Beleive the template function described came from the Template Changer
extension--
http://extensions.libreoffice.org/extension-center/template-changer --which
appears to be defunct.  

Release notes clearly state is not functional with LO 4.x release and later.

The Writer 4.x guide indicates you are doing the only functional conversion
of opening a template creating a new document, and then copying in content
from the existing document.  One major shortcomming there (as with the
defunct extension) is that you have to assure the Styles are named the same
between the new template and the old source document.

@Andreas, I don't agree with your assessment.  The
XDocumentPropertiesSupplier is fully functional and suited to task.



--
View this message in context: 
http://nabble.documentfoundation.org/Cannot-assign-template-to-existing-writer-odt-file-tp4169509p4169539.html
Sent from the Users mailing list archive at Nabble.com.

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



[libreoffice-users] Re: Cannot assign template to existing writer odt file

2015-12-16 Thread Andreas Säger
Am 16.12.2015 um 10:09 schrieb Ken Heard:
> "Property or method not
> found: Document Info"


com.sun.star.document.XDocumentInfo was a deprecated interface in older
versions. For OpenOffice it is still documented here:
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/XDocumentInfoSupplier.html#getDocumentInfo

but it is gone in LibreOffice.

It looks as if the developers removed a deprecated interface in favour
of a newer, better one without considering all dependencies. This should
not happen.

Are you sure about menu:File->Templates->AssignTemplate? I can't find
the command in my LO 4.6.x


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted