summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-12-11 10:05:12 +0200
committerTor Lillqvist <tml@collabora.com>2013-12-11 10:29:34 +0200
commit05096c32403eec3198223341b49dc9ae538bc81e (patch)
treec73225eabd7526c77a91cf8859169c3df9fa29f2 /vcl
parent545f87379d1a9afb66bb9e4e5f64243f02729357 (diff)
displayconnectiondispatch.hxx is private to vcl
Change-Id: I86fab011150be6f151e4fd6a51246f41e86e5833
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/displayconnectiondispatch.hxx46
-rw-r--r--vcl/inc/salinst.hxx2
-rw-r--r--vcl/inc/xconnection.hxx2
3 files changed, 48 insertions, 2 deletions
diff --git a/vcl/inc/displayconnectiondispatch.hxx b/vcl/inc/displayconnectiondispatch.hxx
new file mode 100644
index 000000000000..bff039e18919
--- /dev/null
+++ b/vcl/inc/displayconnectiondispatch.hxx
@@ -0,0 +1,46 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_VCL_INC_DISPLAYCONNECTIONDISPATCH_HXX
+#define INCLUDED_VCL_INC_DISPLAYCONNECTIONDISPATCH_HXX
+
+#include <sal/config.h>
+
+#include <com/sun/star/awt/XDisplayConnection.hpp>
+#include <cppuhelper/implbase1.hxx>
+
+namespace vcl {
+
+class DisplayConnectionDispatch:
+ public cppu::WeakImplHelper1< com::sun::star::awt::XDisplayConnection >
+{
+public:
+ virtual bool dispatchEvent(void * pData, int nBytes) = 0;
+
+ virtual bool dispatchErrorEvent(void * pData, int nBytes) = 0;
+
+protected:
+ virtual ~DisplayConnectionDispatch() {}
+};
+
+}
+
+#endif // INCLUDED_VCL_INC_DISPLAYCONNECTIONDISPATCH_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/salinst.hxx b/vcl/inc/salinst.hxx
index 7e8f4702875c..bcf754873aa2 100644
--- a/vcl/inc/salinst.hxx
+++ b/vcl/inc/salinst.hxx
@@ -26,7 +26,7 @@
#include "com/sun/star/ui/dialogs/XFolderPicker2.hpp"
#include "tools/solar.h"
-#include "vcl/displayconnectiondispatch.hxx"
+#include "displayconnectiondispatch.hxx"
#include "vcl/dllapi.h"
#include "rtl/ref.hxx"
diff --git a/vcl/inc/xconnection.hxx b/vcl/inc/xconnection.hxx
index 4a6a7603d82e..c55639689613 100644
--- a/vcl/inc/xconnection.hxx
+++ b/vcl/inc/xconnection.hxx
@@ -24,7 +24,7 @@
#include <rtl/ref.hxx>
#include <com/sun/star/uno/Reference.hxx>
-#include "vcl/displayconnectiondispatch.hxx"
+#include "displayconnectiondispatch.hxx"
#include <list>