Commit e924338261c82b9a849d32ce8f2e4ad2722d61af

Authored by perry.werneck@gmail.com
1 parent 0ffc370d

Corrigindo erros detectados ao tentar carregar a extensão

src/openoffice/Makefile.in
@@ -129,7 +129,7 @@ include/$(PACKAGE_NAME)/lib3270.hpp: $(RDBDIR)/$(PACKAGE_NAME).rdb @@ -129,7 +129,7 @@ include/$(PACKAGE_NAME)/lib3270.hpp: $(RDBDIR)/$(PACKAGE_NAME).rdb
129 Debug: $(BINDBG)/$(PACKAGE_NAME).oxt 129 Debug: $(BINDBG)/$(PACKAGE_NAME).oxt
130 130
131 add: $(BINDBG)/$(PACKAGE_NAME).oxt 131 add: $(BINDBG)/$(PACKAGE_NAME).oxt
132 - @$(UNOPKG) add --verbose --force $(BINDBG)/$(PACKAGE_NAME).oxt 132 + @SHARED=false $(UNOPKG) add --verbose --force $(BINDBG)/$(PACKAGE_NAME).oxt
133 133
134 $(BINDBG)/testprogram: $(OBJDBG)/testprogram@OBJEXT@ $(foreach SRC, $(basename $(SOURCES)), $(OBJDBG)/$(SRC)@OBJEXT@) 134 $(BINDBG)/testprogram: $(OBJDBG)/testprogram@OBJEXT@ $(foreach SRC, $(basename $(SOURCES)), $(OBJDBG)/$(SRC)@OBJEXT@)
135 @echo $@ ... 135 @echo $@ ...
@@ -141,7 +141,7 @@ $(BINDBG)/$(PACKAGE_NAME).uno@DLLEXT@: \ @@ -141,7 +141,7 @@ $(BINDBG)/$(PACKAGE_NAME).uno@DLLEXT@: \
141 $(CLASS_DEBUG_OBJECTS) 141 $(CLASS_DEBUG_OBJECTS)
142 @echo " LD `basename $@`" 142 @echo " LD `basename $@`"
143 @$(MKDIR) `dirname $@` 143 @$(MKDIR) `dirname $@`
144 - $(CXX) -shared $(LDFLAGS) $(OO_LDFLAGS) -o $@ $^ 144 + $(CXX) -shared $(LDFLAGS) $(OO_LDFLAGS) $(CLASS_LIBS) -o $@ $^
145 145
146 146
147 $(BINDBG)/$(PACKAGE_NAME).oxt: \ 147 $(BINDBG)/$(PACKAGE_NAME).oxt: \
src/openoffice/service.cc
@@ -37,27 +37,25 @@ @@ -37,27 +37,25 @@
37 37
38 /*---[ Implement ]-----------------------------------------------------------------------------------------*/ 38 /*---[ Implement ]-----------------------------------------------------------------------------------------*/
39 39
40 -using namespace pw3270_impl;  
41 -  
42 -Sequence< OUString > SAL_CALL getSupportedServiceNames_session_impl() 40 +namespace pw3270_impl
43 { 41 {
44 - Sequence<OUString> names(1);  
45 - names[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("pw3270.session"));  
46 - return names;  
47 -} 42 + Sequence< OUString > SAL_CALL getSupportedServiceNames_session_impl()
  43 + {
  44 + Sequence<OUString> names(1);
  45 + names[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("pw3270.session"));
  46 + return names;
  47 + }
48 48
49 -OUString SAL_CALL getImplementationName_session_impl()  
50 -{  
51 - return OUString( RTL_CONSTASCII_USTRINGPARAM("pw3270.lib3270.session") );  
52 -} 49 + OUString SAL_CALL getImplementationName_session_impl()
  50 + {
  51 + return OUString( RTL_CONSTASCII_USTRINGPARAM("pw3270.lib3270.session") );
  52 + }
53 53
54 -Reference< XInterface > SAL_CALL create_session_impl(Reference< XComponentContext > const & xContext ) SAL_THROW( () )  
55 -{  
56 - return static_cast< lang::XTypeProvider * >( new session_impl() );  
57 -} 54 + Reference< XInterface > SAL_CALL create_session_impl(Reference< XComponentContext > const & xContext ) SAL_THROW( () )
  55 + {
  56 + return static_cast< lang::XTypeProvider * >( new session_impl() );
  57 + }
58 58
59 -namespace pw3270_impl  
60 -{  
61 static struct ::cppu::ImplementationEntry s_component_entries [] = 59 static struct ::cppu::ImplementationEntry s_component_entries [] =
62 { 60 {
63 { 61 {