Make SDK examples compile again

...after various recent changes to include files etc.

Change-Id: I9d2acbcfb09ca1df6247038afa6fbd99aa74a90d
This commit is contained in:
Stephan Bergmann
2014-11-19 17:06:30 +01:00
parent 4123c2bac3
commit 26cf7dcf19
13 changed files with 18 additions and 0 deletions

View File

@@ -46,6 +46,7 @@
// include our specific addon header to get access to functions and definitions // include our specific addon header to get access to functions and definitions
#include <addon.hxx> #include <addon.hxx>
using namespace ::rtl;
using namespace ::osl; using namespace ::osl;
using namespace ::cppu; using namespace ::cppu;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;

View File

@@ -43,6 +43,7 @@
#include <my_module/XSomething.hpp> #include <my_module/XSomething.hpp>
using namespace ::rtl; // for OUString
using namespace ::com::sun::star; // for odk interfaces using namespace ::com::sun::star; // for odk interfaces
using namespace ::com::sun::star::uno; // for basic types using namespace ::com::sun::star::uno; // for basic types

View File

@@ -41,6 +41,10 @@
#include <cppuhelper/compbase2.hxx> #include <cppuhelper/compbase2.hxx>
#include "SConnection.hxx" #include "SConnection.hxx"
namespace com { namespace sun { namespace star { namespace lang {
class XMultiServiceFactory;
} } } }
namespace connectivity namespace connectivity
{ {
namespace skeleton namespace skeleton

View File

@@ -44,6 +44,7 @@
#include <com/sun/star/sdbc/FetchDirection.hpp> #include <com/sun/star/sdbc/FetchDirection.hpp>
#include <com/sun/star/lang/DisposedException.hpp> #include <com/sun/star/lang/DisposedException.hpp>
#include <cppuhelper/typeprovider.hxx> #include <cppuhelper/typeprovider.hxx>
#include <cppuhelper/queryinterface.hxx>
#include "propertyids.hxx" #include "propertyids.hxx"
using namespace connectivity::skeleton; using namespace connectivity::skeleton;

View File

@@ -43,6 +43,7 @@
#include "filterdetect.hxx" #include "filterdetect.hxx"
using namespace ::rtl;
using namespace ::cppu; using namespace ::cppu;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang; using namespace ::com::sun::star::lang;

View File

@@ -37,6 +37,7 @@
#include <cppuhelper/implbase1.hxx> #include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase2.hxx> #include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase3.hxx> #include <cppuhelper/implbase3.hxx>
#include <osl/diagnose.h>
#include <uno/lbnames.h> #include <uno/lbnames.h>
#include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XComponent.hpp>
@@ -59,6 +60,7 @@
#include <com/sun/star/io/XActiveDataSource.hpp> #include <com/sun/star/io/XActiveDataSource.hpp>
#include <com/sun/star/io/XSeekable.hpp> #include <com/sun/star/io/XSeekable.hpp>
using namespace ::rtl;
using namespace ::cppu; using namespace ::cppu;
using namespace ::osl; using namespace ::osl;
using namespace ::com::sun::star::beans; using namespace ::com::sun::star::beans;

View File

@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <osl/diagnose.h>
#include "ListenerHelper.h" #include "ListenerHelper.h"

View File

@@ -21,6 +21,7 @@
#define INCLUDED_EXAMPLES_COMPLEXTOOLBARCONTROLS_MYJOB_H #define INCLUDED_EXAMPLES_COMPLEXTOOLBARCONTROLS_MYJOB_H
#include <com/sun/star/task/XJob.hpp> #include <com/sun/star/task/XJob.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase2.hxx> #include <cppuhelper/implbase2.hxx>

View File

@@ -20,6 +20,7 @@
#ifndef INCLUDED_EXAMPLES_COMPLEXTOOLBARCONTROLS_MYLISTENER_H #ifndef INCLUDED_EXAMPLES_COMPLEXTOOLBARCONTROLS_MYLISTENER_H
#define INCLUDED_EXAMPLES_COMPLEXTOOLBARCONTROLS_MYLISTENER_H #define INCLUDED_EXAMPLES_COMPLEXTOOLBARCONTROLS_MYLISTENER_H
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/task/XJob.hpp> #include <com/sun/star/task/XJob.hpp>
#include <com/sun/star/document/XEventListener.hpp> #include <com/sun/star/document/XEventListener.hpp>

View File

@@ -31,6 +31,7 @@
#include <com/sun/star/system/SystemShellExecuteFlags.hpp> #include <com/sun/star/system/SystemShellExecuteFlags.hpp>
#include <com/sun/star/system/XSystemShellExecute.hpp> #include <com/sun/star/system/XSystemShellExecute.hpp>
#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/supportsservice.hxx>
#include <osl/diagnose.h>
using namespace com::sun::star::awt; using namespace com::sun::star::awt;
using namespace com::sun::star::frame; using namespace com::sun::star::frame;

View File

@@ -56,6 +56,7 @@
#define SERVICENAME "foo.Counter" #define SERVICENAME "foo.Counter"
#define IMPLNAME "com.sun.star.comp.example.cpp.Counter" #define IMPLNAME "com.sun.star.comp.example.cpp.Counter"
using namespace ::rtl;
using namespace ::osl; using namespace ::osl;
using namespace ::cppu; using namespace ::cppu;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;

View File

@@ -57,6 +57,8 @@ using namespace cppu;
using namespace com::sun::star::uno; using namespace com::sun::star::uno;
using namespace com::sun::star::lang; using namespace com::sun::star::lang;
using namespace ::rtl;
SAL_IMPLEMENT_MAIN() SAL_IMPLEMENT_MAIN()

View File

@@ -52,6 +52,7 @@
#include <cppuhelper/implbase1.hxx> #include <cppuhelper/implbase1.hxx>
using namespace ::rtl;
using namespace ::cppu; using namespace ::cppu;
using namespace ::osl; using namespace ::osl;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;