I could swear I had posted here a reply, anyways here is the answer.
LibreOffice and other using ODF (OpenDocument Formats) do not need this DDE/Interop thing.
The format .ODT contains XML in a ZIP file.
So you can open the zip file, edit content.xml file and replace the #CLIENT_NAME# variable by whatever you like and save.
Just compress everything back on ZIP file and name it with ODT extension and everything works.
Here is a sample file I´ve create to test this on linux CLI:
you must call it as:
LO-subs.sh FILE.ODT ClientName PhoneNumber
where
1st parameter is filename where subs will occuour,
2nd parameter is the client name to replace variable ##cliente##
3rd parameter is the client phone number that will replace the ##Fone## variable
(see the variable in shell script).
[root@andorinha ~]# cat LO-subs.sh
Arquivo=$1
Nome=$2
Fone=$3
dest="/tmp/LOs1"
mkdir $dest
cp $Arquivo $dest/
cd $dest
unzip $Arquivo
sed -i "s/\#\#cliente\#\#/$Nome/" content.xml
sed -i "s/\#\#telefone\#\#/$Fone/" content.xml
zip $Arquivo *
cd $dest
I´ve used it sucessfully, so if someone need helps, please write an e-mail to my gmail account: jader.marasca
I´ll be glad to help!