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

Creating a macro - Writing a Script - Using the API

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

Postby rajibando » Sun Jul 30, 2017 7:58 pm

I have the following Macro code:
Code: Select all   Expand viewCollapse view
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
rajibando
 
Posts: 24
Joined: Sat Jul 29, 2017 4:59 am

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

Postby Zizi64 » Sun Jul 30, 2017 8:48 pm

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
https://forum.openoffice.org/en/forum/v ... 74&t=49294

XrayTool:
https://forum.openoffice.org/en/forum/v ... 20&t=54217
https://forum.openoffice.org/en/forum/v ... 20&t=10134
Tibor Kovacs, Hungary; LibreOffice4.4.7 on Win7x64Prof.
And the portable versions: LO3.3.0-LO5.3.4 and AOO4.1.3
Please, edit the topic's initial post, and add the word "[Solved]" at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 5601
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

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

Postby Zizi64 » Sun Jul 30, 2017 9:02 pm

How to search for specific APIs from OO API Info?


Use the Google search with these words:

OpenOffice API SearchRegularExpression()
Tibor Kovacs, Hungary; LibreOffice4.4.7 on Win7x64Prof.
And the portable versions: LO3.3.0-LO5.3.4 and AOO4.1.3
Please, edit the topic's initial post, and add the word "[Solved]" at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 5601
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

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

Postby rajibando » Mon Jul 31, 2017 7:45 am

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
rajibando
 
Posts: 24
Joined: Sat Jul 29, 2017 4:59 am


Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 4 guests