Page 1 of 1

[Solved] How to search for specific APIs from AOO API Info?

Posted: Sun Jul 30, 2017 7:58 pm
by rajibando
I have the following Macro code:

Code: Select all

REM Replaces all Paragraph breaks with a Linefeed character within the current Writer document.
REM Returns: the number of found/replaced occurrences.
    Dim oReplace as Object
    oReplace = ThisComponent.createReplaceDescriptor()
    oReplace.setSearchString( "[a-z,A-Z,0-9]$" )
    oReplace.setReplaceString( "&" + chr(10) )
    oReplace.SearchRegularExpression = True
    Writer_ReplaceAll_Paragraph_Breaks_With_Linefeeds = ThisComponent.replaceAll( oReplace )
How do I find the APIs such as :
  • createReplaceDescriptor()
  • setSearchString()
  • setReplaceString()
  • SearchRegularExpression()
  • replaceAll()
at The OpenOffice API information, accessible through http://www.openoffice.org/api/ ?

Re: How to search for specific APIs from OO API Info?

Posted: Sun Jul 30, 2017 8:48 pm
by Zizi64
Install one of the object inspection extensions: MRI or the XrayTool.

Then you will able display the properties, methods and services of the programming objects in your code.

MRI:
https://extensions.openoffice.org/en/pr ... ction-tool
viewtopic.php?f=74&t=49294

XrayTool:
viewtopic.php?f=20&t=54217
viewtopic.php?f=20&t=10134

Re: How to search for specific APIs from OO API Info?

Posted: Sun Jul 30, 2017 9:02 pm
by Zizi64
How to search for specific APIs from OO API Info?
Use the Google search with these words:

OpenOffice API SearchRegularExpression()

Re: How to search for specific APIs from OO API Info?

Posted: Mon Jul 31, 2017 7:45 am
by rajibando
Thanks, Zizi,
What I intended is akin to finding results in Google with the search string:
SearchRegularExpression() site:http://www.openoffice.org/api/docs/java/ref/index-files

[Subsequently]
Found from the search bar within the Index html files.
Thanks, Zizi! It appears at the first glance to be definitely better than Oracle's APIs information webpages!