Commit 0c585ebf979ae18fd21e51fe312b2a6fc73ee220
1 parent
ae8948cb
Exists in
master
and in
5 other branches
Remodelando interface libreoffice
Showing
6 changed files
with
173 additions
and
7 deletions
Show diff stats
configure.ac
| @@ -489,11 +489,10 @@ if test "$IDLC" == "no" ; then | @@ -489,11 +489,10 @@ if test "$IDLC" == "no" ; then | ||
| 489 | app_cv_office="no" | 489 | app_cv_office="no" |
| 490 | fi | 490 | fi |
| 491 | 491 | ||
| 492 | -AC_PATH_TOOL([UCPP], ucpp, "no", path=$PATH:$OO_SDK_HOME/bin) | ||
| 493 | -if test "$UCPP" == "no" ; then | ||
| 494 | - app_cv_office="no" | ||
| 495 | -fi | ||
| 496 | - | 492 | +#AC_PATH_TOOL([UCPP], ucpp, "no", path=$PATH:$OO_SDK_HOME/bin) |
| 493 | +#if test "$UCPP" == "no" ; then | ||
| 494 | +# app_cv_office="no" | ||
| 495 | +#fi | ||
| 497 | 496 | ||
| 498 | AC_PATH_TOOL([REGMERGE], regmerge, "no", path=$PATH:$OO_SDK_URE_BIN_DIR) | 497 | AC_PATH_TOOL([REGMERGE], regmerge, "no", path=$PATH:$OO_SDK_URE_BIN_DIR) |
| 499 | if test "$REGMERGE" == "no" ; then | 498 | if test "$REGMERGE" == "no" ; then |
| @@ -572,8 +571,6 @@ AC_CONFIG_FILES([ | @@ -572,8 +571,6 @@ AC_CONFIG_FILES([ | ||
| 572 | src/lib3270/mkversion.sh | 571 | src/lib3270/mkversion.sh |
| 573 | src/pw3270/Makefile | 572 | src/pw3270/Makefile |
| 574 | src/oxt/Makefile | 573 | src/oxt/Makefile |
| 575 | - src/oxt/description.xml | ||
| 576 | - src/oxt/manifest.xml | ||
| 577 | src/pw3270/uiparser/Makefile | 574 | src/pw3270/uiparser/Makefile |
| 578 | src/tools/Makefile | 575 | src/tools/Makefile |
| 579 | src/plugins/hllapi/Makefile | 576 | src/plugins/hllapi/Makefile |
pw3270.cbp
| @@ -31,6 +31,17 @@ | @@ -31,6 +31,17 @@ | ||
| 31 | <Add option="-s" /> | 31 | <Add option="-s" /> |
| 32 | </Linker> | 32 | </Linker> |
| 33 | </Target> | 33 | </Target> |
| 34 | + <Target title="oxt"> | ||
| 35 | + <Option output=".bin/Debug/pw3270" prefix_auto="1" extension_auto="1" /> | ||
| 36 | + <Option object_output=".obj/Debug/" /> | ||
| 37 | + <Option type="1" /> | ||
| 38 | + <Option compiler="gcc" /> | ||
| 39 | + <Option use_console_runner="0" /> | ||
| 40 | + <Compiler> | ||
| 41 | + <Add option="-g" /> | ||
| 42 | + <Add option="-DDEBUG=1" /> | ||
| 43 | + </Compiler> | ||
| 44 | + </Target> | ||
| 34 | </Build> | 45 | </Build> |
| 35 | <Compiler> | 46 | <Compiler> |
| 36 | <Add option="-Wall" /> | 47 | <Add option="-Wall" /> |
pw3270.spec.in
| @@ -42,6 +42,11 @@ | @@ -42,6 +42,11 @@ | ||
| 42 | %if %{?suse_version} < 1200 | 42 | %if %{?suse_version} < 1200 |
| 43 | %define _bldreq gtk2-devel >= 2.16 libopenssl-devel | 43 | %define _bldreq gtk2-devel >= 2.16 libopenssl-devel |
| 44 | %endif | 44 | %endif |
| 45 | + | ||
| 46 | + %if %{?suse_version} >= 1310 | ||
| 47 | + %define _office 0 | ||
| 48 | + %define _bldreq gtk3-devel libopenssl-devel ucpp | ||
| 49 | + %endif | ||
| 45 | %endif | 50 | %endif |
| 46 | 51 | ||
| 47 | %if 0%{?fedora} | 52 | %if 0%{?fedora} |
| @@ -0,0 +1,74 @@ | @@ -0,0 +1,74 @@ | ||
| 1 | +# | ||
| 2 | +# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
| 3 | +# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
| 4 | +# aplicativos mainframe. Registro no INPI sob o nome G3270. | ||
| 5 | +# | ||
| 6 | +# Copyright (C) <2008> <Banco do Brasil S.A.> | ||
| 7 | +# | ||
| 8 | +# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
| 9 | +# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
| 10 | +# Free Software Foundation. | ||
| 11 | +# | ||
| 12 | +# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
| 13 | +# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
| 14 | +# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
| 15 | +# obter mais detalhes. | ||
| 16 | +# | ||
| 17 | +# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
| 18 | +# programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple | ||
| 19 | +# Place, Suite 330, Boston, MA, 02111-1307, USA | ||
| 20 | +# | ||
| 21 | +# Contatos: | ||
| 22 | +# | ||
| 23 | +# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
| 24 | +# erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) | ||
| 25 | +# | ||
| 26 | + | ||
| 27 | +#---[ LibreOffice SDK ]-------------------------------------------------------- | ||
| 28 | + | ||
| 29 | +OO_SDK_HOME=@OO_SDK_HOME@ | ||
| 30 | +IDLC=@IDLC@ | ||
| 31 | +REGMERGE=@REGMERGE@ | ||
| 32 | +CPPUMAKER=@CPPUMAKER@ | ||
| 33 | +TYPES_RDB=@OO_SDK_URE_HOME@/share/misc/types.rdb | ||
| 34 | + | ||
| 35 | +#---[ Tools ]------------------------------------------------------------------ | ||
| 36 | + | ||
| 37 | +CXX=@CXX@ | ||
| 38 | +MKDIR=@MKDIR_P@ | ||
| 39 | + | ||
| 40 | +#---[ lib3270 common class ]--------------------------------------------------- | ||
| 41 | + | ||
| 42 | +CLASSLIBDIR=../classlib | ||
| 43 | +include $(CLASSLIBDIR)/class.mak | ||
| 44 | + | ||
| 45 | +#---[ Rules ]------------------------------------------------------------------ | ||
| 46 | + | ||
| 47 | +%.urd: %.idl | ||
| 48 | + @echo $@ ... | ||
| 49 | + @$(MKDIR) `dirname $@` | ||
| 50 | + @$(IDLC) -C -I$(OO_SDK_HOME)/idl -O`dirname $@` $< | ||
| 51 | + | ||
| 52 | +%.rdb: %.urd | ||
| 53 | + @echo $@ ... | ||
| 54 | + @$(MKDIR) `dirname $@` | ||
| 55 | + @$(REGMERGE) $@ /UCR $< | ||
| 56 | + | ||
| 57 | +#---[ UNO targets ]------------------------------------------------------------ | ||
| 58 | + | ||
| 59 | +include/pw3270/lib3270.hpp: pw3270.rdb | ||
| 60 | + @echo $@ ... | ||
| 61 | + @$(MKDIR) `dirname $@` | ||
| 62 | + @$(CPPUMAKER) -O./include -Tpw3270.lib3270 $(TYPES_RDB) $< | ||
| 63 | + | ||
| 64 | + | ||
| 65 | +#---[ Misc targets ]----------------------------------------------------------- | ||
| 66 | + | ||
| 67 | +all: include/pw3270/lib3270.hpp | ||
| 68 | + | ||
| 69 | +clean: | ||
| 70 | + @rm -f *.urd | ||
| 71 | + @rm -f *.rdb | ||
| 72 | + @rm -fr include | ||
| 73 | + | ||
| 74 | + |
| @@ -0,0 +1,53 @@ | @@ -0,0 +1,53 @@ | ||
| 1 | +/* | ||
| 2 | + * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
| 3 | + * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
| 4 | + * aplicativos mainframe. Registro no INPI sob o nome G3270. | ||
| 5 | + * | ||
| 6 | + * Copyright (C) <2008> <Banco do Brasil S.A.> | ||
| 7 | + * | ||
| 8 | + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
| 9 | + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
| 10 | + * Free Software Foundation. | ||
| 11 | + * | ||
| 12 | + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
| 13 | + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
| 14 | + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
| 15 | + * obter mais detalhes. | ||
| 16 | + * | ||
| 17 | + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
| 18 | + * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
| 19 | + * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 20 | + * | ||
| 21 | + * Este programa está nomeado como pw3270.idl e possui - linhas de código. | ||
| 22 | + * | ||
| 23 | + * Contatos: | ||
| 24 | + * | ||
| 25 | + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
| 26 | + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | ||
| 27 | + * | ||
| 28 | + * | ||
| 29 | + * Referências: | ||
| 30 | + * | ||
| 31 | + * https://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/C++/C++_Component | ||
| 32 | + * | ||
| 33 | + */ | ||
| 34 | + | ||
| 35 | +#include <com/sun/star/uno/XInterface.idl> | ||
| 36 | +#include <com/sun/star/lang/XTypeProvider.idl> | ||
| 37 | + | ||
| 38 | +module pw3270 | ||
| 39 | +{ | ||
| 40 | + /* | ||
| 41 | + * Interface to lib3270 | ||
| 42 | + */ | ||
| 43 | + interface lib3270 : com::sun::star::uno::XInterface | ||
| 44 | + { | ||
| 45 | + string getVersion(); | ||
| 46 | + }; | ||
| 47 | + | ||
| 48 | + service host | ||
| 49 | + { | ||
| 50 | + interface lib3270; | ||
| 51 | + }; | ||
| 52 | +}; | ||
| 53 | + |
| @@ -0,0 +1,26 @@ | @@ -0,0 +1,26 @@ | ||
| 1 | +#!/bin/bash | ||
| 2 | + | ||
| 3 | +OO_SDK_HOME=/usr/lib64/libreoffice/sdk | ||
| 4 | +IDLC=/usr/lib64/libreoffice/sdk/bin/idlc | ||
| 5 | +CPPUMAKER=/usr/lib64/libreoffice/sdk/bin/cppumaker | ||
| 6 | +TYPES_RDB=/usr/lib64/libreoffice/ure/share/misc/types.rdb | ||
| 7 | +REGMERGE=/usr/lib64/libreoffice/ure/bin/regmerge | ||
| 8 | + | ||
| 9 | +$IDLC -C -I$OO_SDK_HOME/idl -O. pw3270.idl | ||
| 10 | +if [ "$?" != "0" ]; then | ||
| 11 | + exit -1 | ||
| 12 | +fi | ||
| 13 | + | ||
| 14 | +$REGMERGE pw3270.rdb /UCR pw3270.urd | ||
| 15 | +if [ "$?" != "0" ]; then | ||
| 16 | + exit -1 | ||
| 17 | +fi | ||
| 18 | + | ||
| 19 | + | ||
| 20 | +$CPPUMAKER -O./include -Tpw3270.lib3270 $TYPES_RDB pw3270.rdb | ||
| 21 | +if [ "$?" != "0" ]; then | ||
| 22 | + exit -1 | ||
| 23 | +fi | ||
| 24 | + | ||
| 25 | +echo ok | ||
| 26 | + |