-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloDoc.bat
More file actions
80 lines (61 loc) · 1.26 KB
/
Copy pathloDoc.bat
File metadata and controls
80 lines (61 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@echo off
setlocal
set S1=%1
set S2=%2
set S3=%3
rem lookup the top-level LO module
if "%1"=="" (
set S1="star"
set S2="module"
)
rem Map LO appl names to suitable modules
if /I "%1"=="writer" (
if "%2"=="" (
set S1=text
set S2=module
)
)
if /I "%1"=="draw" (
if "%2"=="" (
set S1=drawing
set S2=module
)
)
if /I "%1"=="impress" (
if "%2"=="" (
set S1=presentation
set S2=module
)
)
if /I "%1"=="calc" (
if "%2"=="" (
set S1=sheet
set S2=module
)
)
if /I "%1"=="chart2" (
if "%2"=="" (
set S1=chart2
set S2=module
)
)
if /I "%1"=="base" (
if "%2"=="" (
set S1=sdbc
set S2=module
)
)
rem Suggest a tighter search for non-interface names
set FIRST_CH=%S1:~0,1%
rem echo %FIRST_CH%
if /I not "%FIRST_CH%"=="x" (
rem echo This is "%S2%"
if "%S2%"=="" (
echo Consider adding 'service' or 'module' to the search args
)
)
echo Searching LO docs for %S1% %S2% %S3%...
rem https://duck.co/help/results/syntax
start http://duckduckgo.com/?q=\%S1%+%S2%+%S3%+site:api.libreoffice.org/docs/idl/ref
:: start http://duckduckgo.com/?q=\%S1%+%S2%+%S3%+site:api.libreoffice.org/docs/idl/ref+intitle:Reference
rem start http://duckduckgo.com/?q=\%S1%+%S2%+%S3%+site:api.libreoffice.org/docs+intitle:-idl