[Libreoffice-commits] .: odk/examples

2012-12-14 Thread Libreoffice Gerrit user
 odk/examples/DevelopersGuide/OfficeDev/makefile.mk |1 -
 1 file changed, 1 deletion(-)

New commits:
commit 88909169372fd342f8e93aff689f744c18f14fe3
Author: Lior Kaplan 
Date:   Fri Dec 14 11:20:53 2012 +0200

Remove xml2cmp leftovers: Remove FlatXmlFilter_cpp.uno.xml from make files
(follow up for a9916dabb48df8ea857ce6b255563e31352988a8)

Change-Id: I816c9dd797fbf49d300cd0442c87f343bd1308d4
Reviewed-on: https://gerrit.libreoffice.org/1336
Reviewed-by: Stephan Bergmann 
Tested-by: Stephan Bergmann 

diff --git a/odk/examples/DevelopersGuide/OfficeDev/makefile.mk 
b/odk/examples/DevelopersGuide/OfficeDev/makefile.mk
index c6bf8a8..09d4a5b 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/makefile.mk
+++ b/odk/examples/DevelopersGuide/OfficeDev/makefile.mk
@@ -92,7 +92,6 @@ FILTERDETECTION_FILES=\
 
DESTFLATXMLCPP=$(DESTDIRDEVGUIDEEXAMPLES)$/OfficeDev$/FilterDevelopment$/FlatXmlFilter_cpp
 FLATXMLCPP_FILES=\
 $(DESTFLATXMLCPP)$/FlatXml.cxx \
-$(DESTFLATXMLCPP)$/FlatXmlFilter_cpp.uno.xml \
 $(DESTFLATXMLCPP)$/Makefile \
 $(DESTFLATXMLCPP)$/FlatXmlFilter_cpp.xcu
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: odk/examples

2012-12-11 Thread Libreoffice Gerrit user
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
  |   10 --
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.hxx
  |   12 +-
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
  |   10 --
 
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java/ProtocolHandlerAddon.java
 |   50 --
 odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx 
|8 -
 odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java   
|   50 --
 odk/examples/DevelopersGuide/Forms/ButtonOperator.java 
|   14 --
 odk/examples/java/ToDo/ToDo.java   
|2 
 8 files changed, 72 insertions(+), 84 deletions(-)

New commits:
commit 693332c0b4a8e340b8350f548dce07456975531a
Author: Stephan Bergmann 
Date:   Tue Dec 11 18:05:45 2012 +0100

Fix SDK examples

Change-Id: I0a3153bc3fa8338a1a0865db2fbe65a56ae064a4

diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
index fb35eed..8fac616 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
@@ -36,8 +36,6 @@
 #include 
 #include 
 #include 
-#include 
-#include 
 #include 
 #include 
 #include 
@@ -45,12 +43,12 @@
 #include 
 #include 
 #include 
+#include 
 
 using rtl::OUString;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::frame;
 using namespace com::sun::star::awt;
-using com::sun::star::lang::XMultiServiceFactory;
 using com::sun::star::beans::PropertyValue;
 using com::sun::star::util::URL;
 
@@ -105,7 +103,7 @@ void SAL_CALL Addon::initialize( const Sequence< Any >& 
aArguments ) throw ( Exc
 }
 
 // Create the toolkit to have access to it later
-mxToolkit = Reference< XToolkit >( 
Toolkit::create(comphelper::getComponentContext(mxMSF)), UNO_QUERY_THROW );
+mxToolkit = Reference< XToolkit >( Toolkit::create(mxContext), 
UNO_QUERY_THROW );
 }
 
 /**
@@ -220,10 +218,10 @@ throw (RuntimeException)
 return aRet;
 }
 
-Reference< XInterface > SAL_CALL Addon_createInstance( const Reference< 
XMultiServiceFactory > & rSMgr)
+Reference< XInterface > SAL_CALL Addon_createInstance( const Reference< 
XComponentContext > & rContext)
 throw( Exception )
 {
-return (cppu::OWeakObject*) new Addon( rSMgr );
+return (cppu::OWeakObject*) new Addon( rContext );
 }
 
 
//##
diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.hxx
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.hxx
index f2e4a0f..9568aea 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.hxx
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.hxx
@@ -57,6 +57,10 @@ namespace com
 {
 class XToolkit;
 }
+namespace uno
+{
+class XComponentContext;
+}
 }
 }
 }
@@ -70,13 +74,13 @@ class Addon : public cppu::WeakImplHelper4
 >
 {
 private:
-::com::sun::star::uno::Reference< 
::com::sun::star::lang::XMultiServiceFactory > mxMSF;
+::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext 
> mxContext;
 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > 
mxFrame;
 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit > 
mxToolkit;
 
 public:
-Addon( const ::com::sun::star::uno::Reference< 
::com::sun::star::lang::XMultiServiceFactory > &rxMSF)
-: mxMSF( rxMSF ) {}
+Addon( const ::com::sun::star::uno::Reference< 
::com::sun::star::uno::XComponentContext > &rxContext)
+: mxContext( rxContext ) {}
 
 // XDispatchProvider
 virtual ::com::sun::star::uno::Reference< 
::com::sun::star::frame::XDispatch >
@@ -120,7 +124,7 @@ sal_Bool SAL_CALL Addon_supportsService( const 
::rtl::OUString& ServiceName )
 throw ( ::com::sun::star::uno::RuntimeException );
 
 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
-SAL_CALL Addon_createInstance( const ::com::sun::star::uno::Reference< 
::com::sun::star::lang::XMultiServiceFactory > & rSMgr)
+SAL_CALL Addon_createInstance( const ::com::sun::star::uno::Reference< 
::com::sun::star::uno::XComponentContext > & rContext)
 throw ( ::com::sun::star::uno::Exception );
 
 #endif // _Addon_HXX
diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/c