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

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
rajibando
Posts: 52
Joined: Sat Jul 29, 2017 4:59 am

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

Post 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/ ?
Last edited by rajibando on Mon Jul 31, 2017 8:24 am, edited 1 time in total.
LibreOffice 4.0.3.3 (Build ID: 400m0(Build:3)) in Knoppix 7.2.0
User avatar
Zizi64
Volunteer
Posts: 11362
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

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

Post 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
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
Posts: 11362
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

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

Post by Zizi64 »

How to search for specific APIs from OO API Info?
Use the Google search with these words:

OpenOffice API SearchRegularExpression()
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
rajibando
Posts: 52
Joined: Sat Jul 29, 2017 4:59 am

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

Post 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!
LibreOffice 4.0.3.3 (Build ID: 400m0(Build:3)) in Knoppix 7.2.0
Post Reply