summaryrefslogtreecommitdiff
path: root/odk/examples/cpp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-19 17:06:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-19 17:06:30 +0100
commit26cf7dcf19933feffabcb6b690e840c51f04c31b (patch)
tree55f7c6c5193e39e031fa638bc614191d343ca057 /odk/examples/cpp
parent4123c2bac37821584b354e016ac4f5c5bc598d02 (diff)
Make SDK examples compile again
...after various recent changes to include files etc. Change-Id: I9d2acbcfb09ca1df6247038afa6fbd99aa74a90d
Diffstat (limited to 'odk/examples/cpp')
-rw-r--r--odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx1
-rw-r--r--odk/examples/cpp/complextoolbarcontrols/MyJob.h1
-rw-r--r--odk/examples/cpp/complextoolbarcontrols/MyListener.h1
-rw-r--r--odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx1
-rw-r--r--odk/examples/cpp/counter/counter.cxx1
-rw-r--r--odk/examples/cpp/counter/countermain.cxx2
-rw-r--r--odk/examples/cpp/remoteclient/remoteclient.cxx1
7 files changed, 8 insertions, 0 deletions
diff --git a/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx b/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx
index a55ce0dd5ab1..8a39becd63a7 100644
--- a/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx
+++ b/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <osl/diagnose.h>
#include "ListenerHelper.h"
diff --git a/odk/examples/cpp/complextoolbarcontrols/MyJob.h b/odk/examples/cpp/complextoolbarcontrols/MyJob.h
index 2f3f984466eb..6687dc7c8be6 100644
--- a/odk/examples/cpp/complextoolbarcontrols/MyJob.h
+++ b/odk/examples/cpp/complextoolbarcontrols/MyJob.h
@@ -21,6 +21,7 @@
#define INCLUDED_EXAMPLES_COMPLEXTOOLBARCONTROLS_MYJOB_H
#include <com/sun/star/task/XJob.hpp>
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase2.hxx>
diff --git a/odk/examples/cpp/complextoolbarcontrols/MyListener.h b/odk/examples/cpp/complextoolbarcontrols/MyListener.h
index 5e228592eb24..303916545c14 100644
--- a/odk/examples/cpp/complextoolbarcontrols/MyListener.h
+++ b/odk/examples/cpp/complextoolbarcontrols/MyListener.h
@@ -20,6 +20,7 @@
#ifndef 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/task/XJob.hpp>
#include <com/sun/star/document/XEventListener.hpp>
diff --git a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx
index 41fc283b202d..07003304ad2e 100644
--- a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx
+++ b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx
@@ -31,6 +31,7 @@
#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
#include <com/sun/star/system/XSystemShellExecute.hpp>
#include <cppuhelper/supportsservice.hxx>
+#include <osl/diagnose.h>
using namespace com::sun::star::awt;
using namespace com::sun::star::frame;
diff --git a/odk/examples/cpp/counter/counter.cxx b/odk/examples/cpp/counter/counter.cxx
index 88cfe29db1c5..86f8d87b6271 100644
--- a/odk/examples/cpp/counter/counter.cxx
+++ b/odk/examples/cpp/counter/counter.cxx
@@ -56,6 +56,7 @@
#define SERVICENAME "foo.Counter"
#define IMPLNAME "com.sun.star.comp.example.cpp.Counter"
+using namespace ::rtl;
using namespace ::osl;
using namespace ::cppu;
using namespace ::com::sun::star::uno;
diff --git a/odk/examples/cpp/counter/countermain.cxx b/odk/examples/cpp/counter/countermain.cxx
index 8e53793f20af..f917a4fe8da5 100644
--- a/odk/examples/cpp/counter/countermain.cxx
+++ b/odk/examples/cpp/counter/countermain.cxx
@@ -57,6 +57,8 @@ using namespace cppu;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
+using namespace ::rtl;
+
SAL_IMPLEMENT_MAIN()
diff --git a/odk/examples/cpp/remoteclient/remoteclient.cxx b/odk/examples/cpp/remoteclient/remoteclient.cxx
index 63ff64cb80ee..373efaee8a24 100644
--- a/odk/examples/cpp/remoteclient/remoteclient.cxx
+++ b/odk/examples/cpp/remoteclient/remoteclient.cxx
@@ -52,6 +52,7 @@
#include <cppuhelper/implbase1.hxx>
+using namespace ::rtl;
using namespace ::cppu;
using namespace ::osl;
using namespace ::com::sun::star::uno;