-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the help function os independent. TODO: Create help texts; update the documentation, and provide sample template documents.
- Loading branch information
1 parent
c201039
commit 4d082e2
Showing
15 changed files
with
63 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/src/__pycache__/ | ||
/tools/__pycache__/ | ||
/test/wd/ | ||
*.pyc |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> | ||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="help" script:language="StarBasic">REM ***** BASIC ***** | ||
|
||
Sub show_help | ||
Dim file_no As Integer | ||
Dim script_dir, batch_file, help_file As String | ||
|
||
oPackageInfoProvider = GetDefaultContext.getByName("/singletons/com.sun.star.deployment.PackageInformationProvider") | ||
sPackageLocation = oPackageInfoProvider.getPackageLocation("org.peter88213.StyleSwitcher") | ||
script_dir = ConvertFromURL(sPackageLocation) | ||
batch_file = script_dir + "\help\help.bat" | ||
|
||
If NOT FileExists(batch_file) Then | ||
help_file = ConvertFromURL(sPackageLocation + "/help/help-en.html") | ||
file_no = FreeFile | ||
Open batch_file For Output As #file_no | ||
Print #file_no, "cd " + script_dir + "\help" | ||
Print #file_no, help_file | ||
Close #file_no | ||
End If | ||
|
||
batch_file = ConvertToURL(batch_file) | ||
|
||
shell(batch_file, 2, "", false) | ||
|
||
End Sub | ||
|
||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> | ||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="help" script:language="StarBasic">REM ***** BASIC ***** | ||
|
||
' Thanks to Bernard Marcelly for his instruction how to open a web page | ||
' See: https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=70721 | ||
|
||
Sub show_help | ||
Dim launcher As Object | ||
Dim aWebPage As String | ||
oPackageInfoProvider = GetDefaultContext.getByName("/singletons/com.sun.star.deployment.PackageInformationProvider") | ||
sPackageLocation = oPackageInfoProvider.getPackageLocation("org.peter88213.StyleSwitcher") | ||
launcher = CreateUnoService("com.sun.star.system.SystemShellExecute") | ||
aWebPage = sPackageLocation + "/help/help-en.html" | ||
launcher.execute(aWebPage, "", 0) | ||
End Sub | ||
|
||
|
||
</script:module> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="build" basedir="."> | ||
<target name="collect setup"> | ||
<target name="publish"> | ||
<exec executable="cmd"> | ||
<arg value="/c"/> | ||
<arg value="cs.bat"/> | ||
<arg value="publish.bat"/> | ||
</exec> | ||
</target> | ||
</project> |
Oops, something went wrong.