This repository has been archived by the owner on Oct 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.1 - readme, install files, and more
- Loading branch information
Showing
12 changed files
with
621 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
run_testing: testing | ||
killall soffice.bin || echo "No libreoffice instance found" | ||
lowriter "$$TESTING_ODT" --norestore & | ||
|
||
testing: src/vibreoffice.vbs | ||
./compile.sh "src/vibreoffice.vbs" "$$TESTING_XBA" | ||
|
||
extension: clean src/vibreoffice.vbs | ||
if [ -z "$$VIBREOFFICE_VERSION" ]; then \ | ||
echo "VIBREOFFICE_VERSION must be set"; \ | ||
else \ | ||
mkdir -p build; mkdir -p dist; \ | ||
cp -r extension/template build/template; \ | ||
./compile.sh "src/vibreoffice.vbs" "build/template/vibreoffice/vibreoffice.xba"; \ | ||
cd "build/template"; \ | ||
sed -i "s/%VIBREOFFICE_VERSION%/$$VIBREOFFICE_VERSION/g" description.xml; \ | ||
zip -r "../../dist/vibreoffice-$$VIBREOFFICE_VERSION.oxt" .; \ | ||
fi | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# | ||
# "Compile" BASIC macro file to LibreOffice-compatible xba file | ||
|
||
# compile SRC DESTINATION | ||
compile() { | ||
# Escape XML &<>'" | ||
src=`sed "s/\&/\&/g; s/</\</g; s/>/\>/g; s/'/\'/g; s/\"/\"/g" "$1"` | ||
|
||
xbafile="$2" | ||
name="`basename -s \".xba\" "$xbafile"`" | ||
|
||
XBA_TEMPLATE='<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">\n<script:module xmlns:script="http://openoffice.org/2000/script" script:name="%s" script:language="StarBasic">\n%s\n</script:module>' | ||
|
||
printf "$XBA_TEMPLATE" "$name" "$src" > "$xbafile" | ||
} | ||
|
||
if [ "$#" -ne 2 ]; then | ||
echo "Usage: $0 SOURCE DESTINATION" | ||
else | ||
compile "$1" "$2" | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
oor:name="Addons" oor:package="org.openoffice.Office"> | ||
<node oor:name="AddonUI"> | ||
|
||
<node oor:name="AddonMenu"> | ||
<node oor:name="vibreoffice.N001" oor:op="replace"> | ||
<prop oor:name="Context" oor:type="xs:string"> | ||
<value>com.sun.star.text.TextDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument</value> | ||
</prop> | ||
<prop oor:name="Title" oor:type="xs:string"> | ||
<value xml:lang="en">vibreoffice - Toggle Vi Mode</value> | ||
</prop> | ||
<prop oor:name="URL" oor:type="xs:string"> | ||
<value>vnd.sun.star.script:vibreoffice.vibreoffice.Main?language=Basic&location=application</value> | ||
</prop> | ||
<prop oor:name="Target" oor:type="xs:string"> | ||
<value>_self</value> | ||
</prop> | ||
</node> | ||
</node> | ||
|
||
</node> | ||
</oor:component-data> |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Vi Mode Extension for LibreOffice/OpenOffice | ||
|
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd"> | ||
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest"> | ||
<manifest:file-entry manifest:media-type="application/vnd.sun.star.help" | ||
manifest:full-path="help" /> | ||
<manifest:file-entry manifest:media-type="application/vnd.sun.star.basic-library" | ||
manifest:full-path="vibreoffice/" /> | ||
<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data" | ||
manifest:full-path="AddonUI.xcu" /> | ||
</manifest:manifest> |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Extension files were created by Extension Compiler - version 2.1.1 --> | ||
<description xmlns="http://openoffice.org/extensions/description/2006" | ||
xmlns:dep="http://openoffice.org/extensions/description/2006" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" > | ||
<identifier value="vibreoffice" /> | ||
<version value="%VIBREOFFICE_VERSION%" /> | ||
<extension-description> | ||
<src xlink:href="Descriptions/descr-en.txt" lang="en"/> | ||
</extension-description> | ||
<dependencies> | ||
<OpenOffice.org-minimal-version value="3.1" dep:name="OpenOffice.org 3.1 minimum, or more recent" /> | ||
</dependencies> | ||
<display-name> | ||
<name lang="en">Vibreoffice - Vi-Mode Extension</name> | ||
</display-name> | ||
<publisher> | ||
<name lang="en" xlink:href="http://www.seanyeh.com">Sean Yeh</name> | ||
</publisher> | ||
<release-notes> | ||
<src lang="en" xlink:href="https://github.com/seanyeh/vibreoffice"/> | ||
</release-notes> | ||
</description> |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<helpdocument version="1.0"> | ||
<meta> | ||
<topic id="vibreoffice.Pagexx"> | ||
<title id="tit" xml-lang="en">Vibreoffice - Vi-Mode Extension : Write the title here</title> | ||
<filename>/vibreoffice/Pagexx.xhp</filename> | ||
</topic> | ||
</meta> | ||
<body> | ||
<paragraph role="heading" level="1" xml-lang="en" id="N0001"> | ||
Write your own help pages from here | ||
</paragraph> | ||
<paragraph role="paragraph" xml-lang="en" id="N0002"> | ||
Language en is the default value, you should have an english version of your help if your extension is internationally available. | ||
</paragraph> | ||
<paragraph role="paragraph" xml-lang="en" id="N0003"> | ||
|
||
</paragraph> | ||
<paragraph role="paragraph" xml-lang="en" id="N0004"> | ||
|
||
</paragraph> | ||
<paragraph role="paragraph" xml-lang="en" id="N0005"> | ||
|
||
</paragraph> | ||
<paragraph role="paragraph" xml-lang="en" id="N0006"> | ||
|
||
</paragraph> | ||
<paragraph role="paragraph" xml-lang="en" id="N0007"> | ||
|
||
</paragraph> | ||
<paragraph role="paragraph" xml-lang="en" id="N0008"> | ||
|
||
</paragraph> | ||
</body> | ||
</helpdocument> |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd"> | ||
<library:library xmlns:library="http://openoffice.org/2000/library" library:name="vibreoffice" library:readonly="false" library:passwordprotected="false"/> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd"> | ||
<library:library xmlns:library="http://openoffice.org/2000/library" library:name="vibreoffice" library:readonly="false" library:passwordprotected="false"> | ||
<library:element library:name="vibreoffice"/> | ||
</library:library> |
Oops, something went wrong.