This is not a source for an official boost library and is not reviewed, however meant as a prototype to be exhibit as a proof of concept to the community hoping to develop and submit a final library to formal review for inclusion.
Documentation will be updated at the following link
http://anuragxel.github.io/boost-document/
@ | Build | Tests coverage |
---|---|---|
Master branch: |
Compilers tested on - MSVC 12.0 and GCC 4.6.*
To install this library, you need to perform the following steps -
sudo apt-get install libreoffice-dev
cd /usr/lib/libreoffice/sdk
source setsdkenv_unix.sh # This sets the appropriate environment variables
cd ~/libreoffice_sdk # The folder name may vary
# types.rdb was earlier available in /usr/lib/ure/share/misc/types.rdb (pre-libreoffice 5)
cppumaker -Gc -O"$OO_SDK_OUT/include/" /usr/lib/libreoffice/program/types.rdb /usr/lib/libreoffice/program/types/offapi.rdb /usr/lib/libreoffice/program/types/oovbaapi.rdb # Add -BUCR after -Gc if neccessary. You can also run an example in sdk directory for the same effect.
cd boost_1_57_0/libs/ # The folder name may vary, it is your boost directory which you downloaded from sourceforge.
git clone https://github.com/anuragxel/boost-generic-document-library.git document
cd document/build
../../../b2
cd ../test
chmod 000 Test3.ods #This is just to make tests run effectively
soffice "--accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager" & #Running the libreoffice server instance
../../../b2 # This will run the test
-
Install both LibreOffice 4.4 and LibreOffice 4.4 SDK by downloading them from the official website.
-
Open Your Command Prompt, go to C:\Program Files (x86)\LibreOffice 4\sdk and run setsdkenv_windows.bat and provide the necessary paths. Install cat, sed, zip,
-
Add
C:\Program Files (x86)\LibreOffice 4\URE\bin
to the system PATH -
Go to C:\Program Files (x86)\LibreOffice 4\sdk\bin and run the following command to generate the includes,
cppumaker.exe -Gc -O"$OO_SDK_OUT\include" "C:\Program Files (x86)\LibreOffice 4\URE\misc\types.rdb" "C:\Program Files (x86)\LibreOffice 4\program\types\oovbaapi.rdb" "C:\Program Files (x86)\Libreoffice 4\program\types\offapi.rdb"
-
Change directory to the boost libs directory (assuming you have already run bootstrap.bat, else run it now)
-
Open a Git Bash instance and clone
git clone https://github.com/anuragxel/boost-generic-document-library.git document
-
In the cmd instance,
cd document\build
-
Run Commands nearly same as linux. :) However, you might need to start the soffice server manually.
ONLY SUPPORTED IN WINDOWS
You would need to have MSVC 12.0 (or higher) on your Windows Installation. (Untested on GCC or Clang).
-
Open a Git Bash instance and clone
git clone https://github.com/anuragxel/boost-generic-document-library.git document
at$lib_path\libs
-
In the bash instance,
cd $lib_path/libs/document/build
-
run '../../../b2'
-
You may run the tests in
test
folder now using the same command as above.