Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


found in the API samples from OO
hope it helps
greetz

Fernand

REM   *****  BASIC  *****
Sub  Main
   oFF=  createUnoService(  "com.sun.star.document.FilterFactory"  )
   oFilterNames=  oFF.getElementNames()
' Now print the filter names.
'   For i = LBound( oFilterNames ) To UBound( oFilterNames )
'      Print oFilterNames(i)
'   Next
' Create a Writer doc and save the filter names to it.
   oDoc=  StarDesktop.loadComponentFromURL(  "private:factory/swriter","_blank",0, Array()  )
   oText=  oDoc.getText()
   oCursor=  oText.createTextCursor()
   oCursor.gotoEnd(  False  )
' Print the filter names into a Writer document.
   For  i=  LBound(  oFilterNames)  To  UBound(  oFilterNames)
      oText.insertString(  oCursor, oFilterNames(i),False  )
      oText.insertControlCharacter(  oCursor, 
com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK,False  )
   Next
End  Sub


On 16/09/2015 17:45, Pranav Kant wrote:
Hi,

Just wondering what is the internal API to query LO to fetch supported document formats.

Would be great to have that exposed via LOK too.

--
Regards,
Pranav Kant
http://pranavk.me <http://pricked.in/>


_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.